Home
last modified time | relevance | path

Searched refs:formatCode (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaFileTest.java121 private static void assertConsistent(String path, String mimeType, int formatCode) { in assertConsistent() argument
122 assertHexEquals(formatCode, getFormatCode(path, null)); in assertConsistent()
123 assertHexEquals(formatCode, getFormatCode(null, mimeType)); in assertConsistent()
124 assertHexEquals(formatCode, getFormatCode(path, mimeType)); in assertConsistent()
127 assertEquals(mimeType, getMimeType(null, formatCode)); in assertConsistent()
128 assertEquals(mimeType, getMimeType(path, formatCode)); in assertConsistent()
/frameworks/base/media/java/android/media/
DMediaFile.java276 public static @NonNull String getMimeType(@Nullable String path, int formatCode) { in getMimeType() argument
284 return getMimeTypeForFormatCode(formatCode); in getMimeType()
293 public static @NonNull String getMimeTypeForFormatCode(int formatCode) { in getMimeTypeForFormatCode() argument
294 final String mimeType = sFormatToMimeTypeMap.get(formatCode); in getMimeTypeForFormatCode()
305 int formatCode = getFormatCodeForMimeType(mimeType); in getFormatCode() local
306 if (formatCode != MtpConstants.FORMAT_UNDEFINED) { in getFormatCode()
307 return formatCode; in getFormatCode()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsProvider.java433 final int formatCode = Document.MIME_TYPE_DIR.equals(mimeType) ? in createDocument() local
439 .setFormat(formatCode) in createDocument()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java2515 int formatCode = SmsSession.Event.Format.SMS_FORMAT_UNKNOWN; in convertSmsFormat() local
2518 formatCode = SmsSession.Event.Format.SMS_FORMAT_3GPP; in convertSmsFormat()
2522 formatCode = SmsSession.Event.Format.SMS_FORMAT_3GPP2; in convertSmsFormat()
2526 return formatCode; in convertSmsFormat()