Searched refs:formatCode (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaFileTest.java | 134 private static void assertConsistent(String path, String mimeType, int formatCode) { in assertConsistent() argument 135 assertHexEquals(formatCode, getFormatCode(path, null)); in assertConsistent() 136 assertHexEquals(formatCode, getFormatCode(null, mimeType)); in assertConsistent() 137 assertHexEquals(formatCode, getFormatCode(path, mimeType)); in assertConsistent() 140 assertEquals(mimeType, getMimeType(null, formatCode)); in assertConsistent() 141 assertEquals(mimeType, getMimeType(path, formatCode)); in assertConsistent()
|
/frameworks/base/media/java/android/media/ |
D | MediaFile.java | 359 public static @NonNull String getMimeType(@Nullable String path, int formatCode) { in getMimeType() argument 367 return getMimeTypeForFormatCode(formatCode); in getMimeType() 377 public static @NonNull String getMimeTypeForFormatCode(int formatCode) { in getMimeTypeForFormatCode() argument 378 final String mimeType = sFormatToMimeTypeMap.get(formatCode); in getMimeTypeForFormatCode() 389 int formatCode = getFormatCodeForMimeType(mimeType); in getFormatCode() local 390 if (formatCode != MtpConstants.FORMAT_UNDEFINED) { in getFormatCode() 391 return formatCode; in getFormatCode()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | TelephonyMetrics.java | 2734 int formatCode = SmsSession.Event.Format.SMS_FORMAT_UNKNOWN; in convertSmsFormat() local 2737 formatCode = SmsSession.Event.Format.SMS_FORMAT_3GPP; in convertSmsFormat() 2741 formatCode = SmsSession.Event.Format.SMS_FORMAT_3GPP2; in convertSmsFormat() 2745 return formatCode; in convertSmsFormat()
|