Home
last modified time | relevance | path

Searched refs:getFormatCode (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaFileTest.java19 import static android.media.MediaFile.getFormatCode;
97 assertHexEquals(MtpConstants.FORMAT_TIFF, getFormatCode("FOO.CR2", "image/x-canon-cr2")); in testImageRaw()
105 assertHexEquals(MtpConstants.FORMAT_MP3, getFormatCode("foo.avi", "audio/mpeg")); in testConfusing()
113 getFormatCode("foo.example", "application/x-example")); in testUnknown()
115 getFormatCode("foo.example", "audio/x-example")); in testUnknown()
117 getFormatCode("foo.example", "video/x-example")); in testUnknown()
119 getFormatCode("foo.example", "image/x-example")); in testUnknown()
123 assertHexEquals(formatCode, getFormatCode(path, null)); in assertConsistent()
124 assertHexEquals(formatCode, getFormatCode(null, mimeType)); in assertConsistent()
125 assertHexEquals(formatCode, getFormatCode(path, mimeType)); in assertConsistent()
/frameworks/base/media/java/android/media/
DMediaFile.java308 public static int getFormatCode(@Nullable String path, @Nullable String mimeType) { in getFormatCode() method in MediaFile
DMediaScanner.java1111 format = MediaFile.getFormatCode(entry.mPath, mMimeType);
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsProvider.java435 MediaFile.getFormatCode(displayName, mimeType); in createDocument()
/frameworks/base/media/java/android/mtp/
DMtpStorageManager.java182 return mIsDir ? MtpConstants.FORMAT_ASSOCIATION : MediaFile.getFormatCode(mName, null); in getFormat()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt37396 Landroid/media/MediaFile;->getFormatCode(Ljava/lang/String;Ljava/lang/String;)I