Home
last modified time | relevance | path

Searched refs:MtpConstants (Results 1 – 23 of 23) 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.java107 MtpConstants.FORMAT_UNDEFINED,
109 MtpConstants.FORMAT_ASSOCIATION,
110 MtpConstants.FORMAT_TEXT,
111 MtpConstants.FORMAT_HTML,
112 MtpConstants.FORMAT_WAV,
113 MtpConstants.FORMAT_MP3,
114 MtpConstants.FORMAT_MPEG,
115 MtpConstants.FORMAT_EXIF_JPEG,
116 MtpConstants.FORMAT_TIFF_EP,
117 MtpConstants.FORMAT_BMP,
[all …]
DMtpPropertyList.java66 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;
98 addFileType(MtpConstants.FORMAT_MP3, "audio/mpeg"); in addFileType()
99 addFileType(MtpConstants.FORMAT_WAV, "audio/x-wav"); in addFileType()
100 addFileType(MtpConstants.FORMAT_WMA, "audio/x-ms-wma"); in addFileType()
101 addFileType(MtpConstants.FORMAT_OGG, "audio/ogg"); in addFileType()
102 addFileType(MtpConstants.FORMAT_AAC, "audio/aac"); in addFileType()
103 addFileType(MtpConstants.FORMAT_FLAC, "audio/flac"); in addFileType()
104 addFileType(MtpConstants.FORMAT_AIFF, "audio/x-aiff"); in addFileType()
105 addFileType(MtpConstants.FORMAT_MP2, "audio/mpeg"); in addFileType()
107 addFileType(MtpConstants.FORMAT_MPEG, "video/mpeg"); in addFileType()
[all …]
DMediaScanner.java30 import android.mtp.MtpConstants;
581 (isDirectory ? MtpConstants.FORMAT_ASSOCIATION : 0), in beginFile()
1125 } else if (entry.mFormat == MtpConstants.FORMAT_ASSOCIATION) {
1323 if (!exists && !MtpConstants.isAbstractObject(format)) {
1618 (format == MtpConstants.FORMAT_ASSOCIATION), true, isNoMediaPath(path));
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaFileTest.java30 import android.mtp.MtpConstants;
43 assertConsistent("FOO.TXT", "text/plain", MtpConstants.FORMAT_TEXT); in testCommon()
44 assertConsistent("FOO.XML", "text/xml", MtpConstants.FORMAT_XML_DOCUMENT); in testCommon()
45 assertConsistent("FOO.HTML", "text/html", MtpConstants.FORMAT_HTML); in testCommon()
54 assertConsistent("FOO.MP3", "audio/mpeg", MtpConstants.FORMAT_MP3); in testAudio()
55 assertConsistent("FOO.AAC", "audio/aac", MtpConstants.FORMAT_AAC); in testAudio()
56 assertConsistent("FOO.OGG", "audio/ogg", MtpConstants.FORMAT_OGG); in testAudio()
57 assertConsistent("FOO.FLAC", "audio/flac", MtpConstants.FORMAT_FLAC); in testAudio()
65 assertConsistent("FOO.AVI", "video/avi", MtpConstants.FORMAT_AVI); in testVideo()
66 assertConsistent("FOO.MP4", "video/mp4", MtpConstants.FORMAT_MP4_CONTAINER); in testVideo()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestUtil.java22 import android.mtp.MtpConstants;
37 MtpConstants.OPERATION_GET_PARTIAL_OBJECT,
38 MtpConstants.OPERATION_SEND_OBJECT,
39 MtpConstants.OPERATION_SEND_OBJECT_INFO,
40 MtpConstants.OPERATION_DELETE_OBJECT,
41 MtpConstants.OPERATION_GET_OBJECT_PROP_DESC,
42 MtpConstants.OPERATION_GET_OBJECT_PROP_VALUE
DMtpDatabaseTest.java22 import android.mtp.MtpConstants;
200 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024), in testPutChildDocuments()
201 createDocument(101, "image.jpg", MtpConstants.FORMAT_EXIF_JPEG, 2 * 1024 * 1024), in testPutChildDocuments()
202 createDocument(102, "music.mp3", MtpConstants.FORMAT_MP3, 3 * 1024 * 1024) in testPutChildDocuments()
276 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
290 MtpConstants.OPERATION_SEND_OBJECT, in testPutChildDocuments_operationsSupported()
291 MtpConstants.OPERATION_SEND_OBJECT_INFO, in testPutChildDocuments_operationsSupported()
293 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
307 MtpConstants.OPERATION_DELETE_OBJECT in testPutChildDocuments_operationsSupported()
309 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
[all …]
DMtpDocumentsProviderTest.java20 import android.mtp.MtpConstants;
312 .setFormat(MtpConstants.FORMAT_EXIF_JPEG) in testQueryDocument()
351 .setFormat(MtpConstants.FORMAT_ASSOCIATION) in testQueryDocument_directory()
462 .setFormat(MtpConstants.FORMAT_EXIF_JPEG) in testQueryChildDocuments()
466 .setProtectionStatus(MtpConstants.PROTECTION_STATUS_READ_ONLY) in testQueryChildDocuments()
710 .setFormat(MtpConstants.FORMAT_ASSOCIATION) in testMappingDisconnectedDocuments()
832 mMtpManager.setObjectSizeLong(0, 100, MtpConstants.FORMAT_EXIF_JPEG, 0x400000000L); in testObjectSizeLong()
841 .setFormat(MtpConstants.FORMAT_EXIF_JPEG) in testObjectSizeLong()
1000 MtpConstants.FORMAT_ASSOCIATION : MtpConstants.FORMAT_TEXT) in toObjectInfo()
DMtpManagerTest.java22 import android.mtp.MtpConstants;
149 .setFormat(MtpConstants.FORMAT_TEXT) in testCreateDocumentAndGetPartialObject()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDeviceRecord.java20 import android.mtp.MtpConstants;
59 if (isSupported(supportedList, MtpConstants.OPERATION_GET_PARTIAL_OBJECT_64)) { in isPartialReadSupported()
64 isSupported(supportedList, MtpConstants.OPERATION_GET_PARTIAL_OBJECT)) { in isPartialReadSupported()
71 return isSupported(supportedList, MtpConstants.OPERATION_SEND_OBJECT_INFO) && in isWritingSupported()
72 isSupported(supportedList, MtpConstants.OPERATION_SEND_OBJECT); in isWritingSupported()
DMtpDatabase.java33 import android.mtp.MtpConstants;
760 MtpConstants.PROTECTION_STATUS_NONE, in getDeviceDocumentValues()
803 MtpConstants.PROTECTION_STATUS_NONE, in getStorageDocumentValues()
850 if (info.getFormat() == MtpConstants.FORMAT_ASSOCIATION) { in getMimeType()
871 protectionState == MtpConstants.PROTECTION_STATUS_NONE) { in getDocumentFlags()
875 operationsSupported, MtpConstants.OPERATION_DELETE_OBJECT) && in getDocumentFlags()
876 (protectionState == MtpConstants.PROTECTION_STATUS_NONE || in getDocumentFlags()
877 protectionState == MtpConstants.PROTECTION_STATUS_NON_TRANSFERABLE_DATA) && in getDocumentFlags()
883 protectionState == MtpConstants.PROTECTION_STATUS_NONE) { in getDocumentFlags()
DDocumentLoader.java23 import android.mtp.MtpConstants;
352 MtpConstants.OPERATION_GET_OBJECT_PROP_DESC) || in loadObjectInfoList()
355 MtpConstants.OPERATION_GET_OBJECT_PROP_VALUE)) { in loadObjectInfoList()
DMtpManager.java26 import android.mtp.MtpConstants;
201 if (objectInfo.getFormat() != MtpConstants.FORMAT_ASSOCIATION) { in createDocument()
DMtpDocumentsProvider.java32 import android.mtp.MtpConstants;
434 MtpConstants.FORMAT_ASSOCIATION : in createDocument()
791 record.operationsSupported, MtpConstants.OPERATION_GET_PARTIAL_OBJECT_64)) { in onRead()
798 record.operationsSupported, MtpConstants.OPERATION_GET_PARTIAL_OBJECT)) { in onRead()
/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/
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/config/
Dhiddenapi-greylist-max-o.txt45180 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_ARTIST:I
45181 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_BATTERY_LEVEL:I
45182 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_BURST_INTERVAL:I
45183 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_BURST_NUMBER:I
45184 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_CAPTURE_DELAY:I
45185 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_COMPRESSION_SETTING:I
45186 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_CONTRAST:I
45187 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_COPYRIGHT_INFO:I
45188 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_DATETIME:I
45189 Landroid/mtp/MtpConstants;->DEVICE_PROPERTY_DEVICE_FRIENDLY_NAME:I
[all …]
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt16784 public final class MtpConstants {
16785 ctor public MtpConstants();
/frameworks/base/api/
Dcurrent.txt28171 public final class MtpConstants {
28172 ctor public MtpConstants();