Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/mtp/
DMtpDevice.java193 public @Nullable int[] getObjectHandles(int storageId, int format, int objectHandle) { in getObjectHandles() argument
194 return native_get_object_handles(storageId, format, objectHandle); in getObjectHandles()
207 public @Nullable byte[] getObject(int objectHandle, int objectSize) { in getObject() argument
209 return native_get_object(objectHandle, objectSize); in getObject()
225 public long getPartialObject(int objectHandle, long offset, long size, @NonNull byte[] buffer) in getPartialObject() argument
227 return native_get_partial_object(objectHandle, offset, size, buffer); in getPartialObject()
246 public long getPartialObject64(int objectHandle, long offset, long size, @NonNull byte[] buffer) in getPartialObject64() argument
248 return native_get_partial_object_64(objectHandle, offset, size, buffer); in getPartialObject64()
261 public @Nullable byte[] getThumbnail(int objectHandle) { in getThumbnail() argument
262 return native_get_thumbnail(objectHandle); in getThumbnail()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/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()
/frameworks/base/packages/MtpDocumentsProvider/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.java428 int objectHandle = -1; in createDocument() local
459 objectHandle = mMtpManager.createDocument( in createDocument()
470 if (objectHandle == -1) { in createDocument()
476 new MtpObjectInfo.Builder(info).setObjectHandle(objectHandle).build(); in createDocument()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java305 public MtpObjectInfo getObjectInfo(String deviceName, int objectHandle) { in getObjectInfo() argument
310 return device.getObjectInfo(objectHandle); in getObjectInfo()
320 public boolean deleteObject(String deviceName, int objectHandle) { in deleteObject() argument
325 return device.deleteObject(objectHandle); in deleteObject()
341 public List<MtpObjectInfo> getObjectList(String deviceName, int storageId, int objectHandle) { in getObjectList() argument
346 if (objectHandle == 0) { in getObjectList()
348 objectHandle = 0xFFFFFFFF; in getObjectList()
350 int[] handles = device.getObjectHandles(storageId, 0, objectHandle); in getObjectList()
377 public byte[] getObject(String deviceName, int objectHandle, int objectSize) { in getObject() argument
382 return device.getObject(objectHandle, objectSize); in getObject()
[all …]
/frameworks/av/media/mtp/
DMtpServer.cpp1032 MtpObjectHandle objectHandle = mRequest.getParameter(1); in doMoveObject() local
1044 MtpObjectInfo info(objectHandle); in doMoveObject()
1045 result = mDatabase->getObjectInfo(objectHandle, info); in doMoveObject()
1048 result = mDatabase->getObjectFilePath(objectHandle, fromPath, fileLength, format); in doMoveObject()
1069 result = mDatabase->beginMoveObject(objectHandle, parent, storageID); in doMoveObject()
1099 mDatabase->endMoveObject(info.mParent, parent, info.mStorageID, storageID, objectHandle, in doMoveObject()
1111 MtpObjectHandle objectHandle = mRequest.getParameter(1); in doCopyObject() local
1122 MtpObjectInfo info(objectHandle); in doCopyObject()
1123 result = mDatabase->getObjectInfo(objectHandle, info); in doCopyObject()
1126 result = mDatabase->getObjectFilePath(objectHandle, fromPath, fileLength, format); in doCopyObject()
[all …]
/frameworks/base/media/java/android/media/
DMediaScanner.java1576 public void scanMtpFile(String path, int objectHandle, int format) {
1590 String[] whereArgs = new String[] { Integer.toString(objectHandle) };
1599 mMtpObjectHandle = objectHandle;
/frameworks/native/vulkan/api/
Dvulkan.api6769 u64 objectHandle
6778 u64 objectHandle