Home
last modified time | relevance | path

Searched refs:MtpConstants (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java79 case MtpConstants.PROPERTY_STORAGE_ID: in createProperty()
80 type = MtpConstants.TYPE_UINT32; in createProperty()
82 case MtpConstants.PROPERTY_OBJECT_FORMAT: in createProperty()
83 type = MtpConstants.TYPE_UINT16; in createProperty()
85 case MtpConstants.PROPERTY_PROTECTION_STATUS: in createProperty()
86 type = MtpConstants.TYPE_UINT16; in createProperty()
88 case MtpConstants.PROPERTY_OBJECT_SIZE: in createProperty()
89 type = MtpConstants.TYPE_UINT64; in createProperty()
91 case MtpConstants.PROPERTY_OBJECT_FILE_NAME: in createProperty()
92 type = MtpConstants.TYPE_STR; in createProperty()
[all …]
DMtpDatabase.java116 MtpConstants.FORMAT_UNDEFINED,
118 MtpConstants.FORMAT_ASSOCIATION,
119 MtpConstants.FORMAT_TEXT,
120 MtpConstants.FORMAT_HTML,
121 MtpConstants.FORMAT_WAV,
122 MtpConstants.FORMAT_MP3,
123 MtpConstants.FORMAT_MPEG,
124 MtpConstants.FORMAT_EXIF_JPEG,
125 MtpConstants.FORMAT_TIFF_EP,
126 MtpConstants.FORMAT_BMP,
[all …]
DMtpPropertyList.java67 mDataTypes.add(MtpConstants.TYPE_STR); in append()
DMtpConstants.java22 public final class MtpConstants { class
DMtpStorageManager.java182 return mIsDir ? MtpConstants.FORMAT_ASSOCIATION : MediaFile.getFormatCode(mName, null); in getFormat()
896 MtpObject obj = addObjectToCache(parent, name, format == MtpConstants.FORMAT_ASSOCIATION); in beginSendObject()
/frameworks/base/media/java/android/media/
DMediaFile.java24 import android.mtp.MtpConstants;
103 addFileType(MtpConstants.FORMAT_MP3, "audio/mpeg"); in addFileType()
104 addFileType(MtpConstants.FORMAT_WAV, "audio/x-wav"); in addFileType()
105 addFileType(MtpConstants.FORMAT_WMA, "audio/x-ms-wma"); in addFileType()
106 addFileType(MtpConstants.FORMAT_OGG, "audio/ogg"); in addFileType()
107 addFileType(MtpConstants.FORMAT_AAC, "audio/aac"); in addFileType()
108 addFileType(MtpConstants.FORMAT_FLAC, "audio/flac"); in addFileType()
109 addFileType(MtpConstants.FORMAT_AIFF, "audio/x-aiff"); in addFileType()
110 addFileType(MtpConstants.FORMAT_MP2, "audio/mpeg"); in addFileType()
112 addFileType(MtpConstants.FORMAT_MPEG, "video/mpeg"); in addFileType()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaFileTest.java31 import android.mtp.MtpConstants;
44 assertConsistent("FOO.TXT", "text/plain", MtpConstants.FORMAT_TEXT); in testCommon()
45 assertConsistent("FOO.XML", "text/xml", MtpConstants.FORMAT_XML_DOCUMENT); in testCommon()
46 assertConsistent("FOO.HTML", "text/html", MtpConstants.FORMAT_HTML); in testCommon()
55 assertConsistent("FOO.MP3", "audio/mpeg", MtpConstants.FORMAT_MP3); in testAudio()
56 assertConsistent("FOO.AAC", "audio/aac", MtpConstants.FORMAT_AAC); in testAudio()
57 assertConsistent("FOO.OGG", "audio/ogg", MtpConstants.FORMAT_OGG); in testAudio()
58 assertConsistent("FOO.FLAC", "audio/flac", MtpConstants.FORMAT_FLAC); in testAudio()
66 assertConsistent("FOO.AVI", "video/avi", MtpConstants.FORMAT_AVI); in testVideo()
67 assertConsistent("FOO.MP4", "video/mp4", MtpConstants.FORMAT_MP4_CONTAINER); in testVideo()
[all …]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DObjectBrowser.java25 import android.mtp.MtpConstants;
92 if (thumbFormat == MtpConstants.FORMAT_EXIF_JPEG in getView()
93 || thumbFormat == MtpConstants.FORMAT_JFIF) { in getView()
136 if (info.getFormat() == MtpConstants.FORMAT_ASSOCIATION) { in onListItemClick()
DObjectViewer.java26 import android.mtp.MtpConstants;
150 if (thumbFormat == MtpConstants.FORMAT_EXIF_JPEG in onResume()
151 || thumbFormat == MtpConstants.FORMAT_JFIF) { in onResume()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpDatabaseTest.java241 MtpConstants.FORMAT_ASSOCIATION, 0, MAIN_STORAGE_ID); in testMtpDatabaseThumbnail()
253 MtpConstants.FORMAT_EXIF_JPEG, baseHandle, MAIN_STORAGE_ID); in testMtpDatabaseThumbnail()
257 MtpConstants.FORMAT_EXIF_JPEG, baseHandle, MAIN_STORAGE_ID); in testMtpDatabaseThumbnail()
261 MtpConstants.FORMAT_EXIF_JPEG, baseHandle, MAIN_STORAGE_ID); in testMtpDatabaseThumbnail()
265 MtpConstants.FORMAT_PNG, baseHandle, MAIN_STORAGE_ID); in testMtpDatabaseThumbnail()
269 MtpConstants.FORMAT_PNG, baseHandle, MAIN_STORAGE_ID); in testMtpDatabaseThumbnail()
DMtpStorageManagerTest.java236 Assert.assertEquals(stream.get(0).getFormat(), MtpConstants.FORMAT_ASSOCIATION); in testMtpObjectGetFormatDir()
246 Assert.assertEquals(stream.get(0).getFormat(), MtpConstants.FORMAT_MP3); in testMtpObjectGetFormatNonDir()
432 MtpConstants.FORMAT_MP3, mainMtpStorage.getStorageId()); in testGetObjectsFormat()
604 "newFile", MtpConstants.FORMAT_UNDEFINED); in testSendObjectSuccess()
623 "newDir", MtpConstants.FORMAT_ASSOCIATION); in testSendObjectSuccessDir()
633 Assert.assertEquals(obj.getFormat(), MtpConstants.FORMAT_ASSOCIATION); in testSendObjectSuccessDir()
651 "newFile", MtpConstants.FORMAT_UNDEFINED); in testSendObjectSuccessDelayed()
670 "newDir", MtpConstants.FORMAT_ASSOCIATION); in testSendObjectSuccessDirDelayed()
680 Assert.assertEquals(obj.getFormat(), MtpConstants.FORMAT_ASSOCIATION); in testSendObjectSuccessDirDelayed()
698 "newFile", MtpConstants.FORMAT_UNDEFINED); in testSendObjectSuccessDeleted()
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt16784 public final class MtpConstants {
16785 ctor public MtpConstants();
/frameworks/base/api/
Dcurrent.txt29557 public final class MtpConstants {
29558 ctor public MtpConstants();