Home
last modified time | relevance | path

Searched refs:objectHandle (Results 1 – 10 of 10) sorted by relevance

/packages/services/Mtp/tests/src/com/android/mtp/
DTestMtpManager.java61 void setImportFileBytes(int deviceId, int objectHandle, byte[] bytes) { in setImportFileBytes() argument
62 mImportFileBytes.put(pack(deviceId, objectHandle), bytes); in setImportFileBytes()
65 byte[] getImportFileBytes(int deviceId, int objectHandle) { in getImportFileBytes() argument
66 return mImportFileBytes.get(pack(deviceId, objectHandle)); in getImportFileBytes()
69 void setThumbnail(int deviceId, int objectHandle, byte[] bytes) { in setThumbnail() argument
70 mThumbnailBytes.put(pack(deviceId, objectHandle), bytes); in setThumbnail()
73 void setObjectSizeLong(int deviceId, int objectHandle, int format, long value) { in setObjectSizeLong() argument
74 mObjectSizeLongs.put(pack(deviceId, objectHandle, format), value); in setObjectSizeLong()
119 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in getObjectInfo() argument
120 final String key = pack(deviceId, objectHandle); in getObjectInfo()
[all …]
DDocumentLoaderTest.java129 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in testError_GetObjectInfo()
130 if (objectHandle == DocumentLoader.NUM_INITIAL_ENTRIES) { in testError_GetObjectInfo()
133 return super.getObjectInfo(deviceId, objectHandle); in testError_GetObjectInfo()
191 final int objectHandle = i + 1; in setUpDocument() local
192 childDocuments[i] = objectHandle; in setUpDocument()
194 .setObjectHandle(objectHandle) in setUpDocument()
208 void blockDocument(int deviceId, int objectHandle) { in blockDocument() argument
209 blockedDocuments.put(pack(deviceId, objectHandle), new CountDownLatch(1)); in blockDocument()
212 void unblockDocument(int deviceId, int objectHandle) { in unblockDocument() argument
213 blockedDocuments.get(pack(deviceId, objectHandle)).countDown(); in unblockDocument()
[all …]
DMtpDocumentsProviderTest.java576 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in testOpenDocument_shortBytes()
577 if (objectHandle == 1) { in testOpenDocument_shortBytes()
578 return new MtpObjectInfo.Builder(super.getObjectInfo(deviceId, objectHandle)) in testOpenDocument_shortBytes()
582 return super.getObjectInfo(deviceId, objectHandle); in testOpenDocument_shortBytes()
703 final int objectHandle = i + objectHandleOffset; in testMappingDisconnectedDocuments() local
704 mMtpManager.setObjectHandles(0, 1, parentHandle, new int[] { objectHandle }); in testMappingDisconnectedDocuments()
709 .setObjectHandle(objectHandle) in testMappingDisconnectedDocuments()
985 int objectHandle; field in MtpDocumentsProviderTest.HierarchyDocument
991 doc.objectHandle = newHandle; in createChildDocument()
992 doc.parentHandle = objectHandle; in createChildDocument()
[all …]
DMtpManagerTest.java143 final int objectHandle = mManager.createDocument( in testCreateDocumentAndGetPartialObject() local
154 mUsbDevice.getDeviceId(), objectHandle, 0, 5, bytes)); in testCreateDocumentAndGetPartialObject()
157 mUsbDevice.getDeviceId(), objectHandle, 6, 100, bytes)); in testCreateDocumentAndGetPartialObject()
DMtpDatabaseTest.java185 private MtpObjectInfo createDocument(int objectHandle, String name, int format, int size) { in createDocument() argument
187 builder.setObjectHandle(objectHandle); in createDocument()
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java130 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in getObjectInfo() argument
134 device.getObjectInfo(objectHandle), in getObjectInfo()
135 "Failed to get object info: " + objectHandle); in getObjectInfo()
149 byte[] getObject(int deviceId, int objectHandle, int expectedSize) in getObject() argument
154 device.getObject(objectHandle, expectedSize), in getObject()
159 long getPartialObject(int deviceId, int objectHandle, long offset, long size, byte[] buffer) in getPartialObject() argument
163 return device.getPartialObject(objectHandle, offset, size, buffer); in getPartialObject()
167 long getPartialObject64(int deviceId, int objectHandle, long offset, long size, byte[] buffer) in getPartialObject64() argument
171 return device.getPartialObject64(objectHandle, offset, size, buffer); in getPartialObject64()
175 byte[] getThumbnail(int deviceId, int objectHandle) throws IOException { in getThumbnail() argument
[all …]
DIdentifier.java32 Identifier(int deviceId, int storageId, int objectHandle, String documentId, in Identifier() argument
36 mObjectHandle = objectHandle; in Identifier()
DMtpDocumentsProvider.java432 int objectHandle = -1; in createDocument() local
463 objectHandle = mMtpManager.createDocument( in createDocument()
474 if (objectHandle == -1) { in createDocument()
480 new MtpObjectInfo.Builder(info).setObjectHandle(objectHandle).build(); in createDocument()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java331 public MtpObjectInfo getObjectInfo(String deviceName, int objectHandle) { in getObjectInfo() argument
336 return device.getObjectInfo(objectHandle); in getObjectInfo()
346 public boolean deleteObject(String deviceName, int objectHandle) { in deleteObject() argument
351 return device.deleteObject(objectHandle); in deleteObject()
367 public List<MtpObjectInfo> getObjectList(String deviceName, int storageId, int objectHandle) { in getObjectList() argument
372 if (objectHandle == 0) { in getObjectList()
374 objectHandle = 0xFFFFFFFF; in getObjectList()
376 int[] handles = device.getObjectHandles(storageId, 0, objectHandle); in getObjectList()
403 public byte[] getObject(String deviceName, int objectHandle, int objectSize) { in getObject() argument
408 return device.getObject(objectHandle, objectSize); in getObject()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpDeviceIndexRunnable.java169 for (int objectHandle : mDevice.getObjectHandles(storageId, 0, dirHandle)) { in addAllObjects()
170 MtpObjectInfo mtpObjectInfo = mDevice.getObjectInfo(objectHandle); in addAllObjects()
175 pendingDirectories.add(objectHandle); in addAllObjects()