Fix security vulnerabilities in PduParser.java

- Fix ArrayIndexOutOfBoundsException in parseContentType by adding bounds check for PduContentTypes.contentTypes index.
- Fix NullPointerExceptions in parseContentTypeParams by adding null checks for map and charsetStr.

Bug: 513582756
Test: TelephonyCommonTests (PduParserTest)
Flag: EXEMPT BUGFIX
(cherry picked from commit cbb0d81bf0866a8249eca7c7ec53f7c179f8b171)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:ffbf593b30317c10dc95a9ab2a0ead09e33b9549
Merged-In: I4fab1579d22c4a1dcf2d75d4f4aab0a352df1bd9
Change-Id: I4fab1579d22c4a1dcf2d75d4f4aab0a352df1bd9
2 files changed