Searched refs:getFormatCode (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaFileTest.java | 19 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/ |
D | MediaFile.java | 308 public static int getFormatCode(@Nullable String path, @Nullable String mimeType) { in getFormatCode() method in MediaFile
|
D | MediaScanner.java | 1111 format = MediaFile.getFormatCode(entry.mPath, mMimeType);
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDocumentsProvider.java | 435 MediaFile.getFormatCode(displayName, mimeType); in createDocument()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpStorageManager.java | 182 return mIsDir ? MtpConstants.FORMAT_ASSOCIATION : MediaFile.getFormatCode(mName, null); in getFormat()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 37396 Landroid/media/MediaFile;->getFormatCode(Ljava/lang/String;Ljava/lang/String;)I
|