/frameworks/base/media/java/android/mtp/ |
D | MtpDevice.java | 193 public @Nullable int[] getObjectHandles(int storageId, int format, int objectHandle) { in getObjectHandles() argument 194 return native_get_object_handles(storageId, format, objectHandle); in getObjectHandles() 271 public @Nullable MtpStorageInfo getStorageInfo(int storageId) { in getStorageInfo() argument 272 return native_get_storage_info(storageId); in getStorageInfo() 425 private native MtpStorageInfo native_get_storage_info(int storageId); in native_get_storage_info() argument 426 private native int[] native_get_object_handles(int storageId, int format, int objectHandle); in native_get_object_handles() argument
|
D | MtpStorage.java | 38 public MtpStorage(StorageVolume volume, int storageId) { in MtpStorage() argument 39 mStorageId = storageId; in MtpStorage()
|
D | MtpStorageManager.java | 424 int storageId = ((getNextStorageId() & 0x0000FFFF) << 16) + 1; in addMtpStorage() local 425 MtpStorage storage = new MtpStorage(volume, storageId); in addMtpStorage() 426 MtpObject root = new MtpObject(storage.getPath(), storageId, storage, null, true); in addMtpStorage() 427 mRoots.put(storageId, root); in addMtpStorage() 523 public synchronized List<MtpObject> getObjects(int parent, int format, int storageId) { in getObjects() argument 529 if (storageId == 0xFFFFFFFF) { in getObjects() 539 MtpObject obj = parent == 0 ? getStorageRoot(storageId) : getObject(parent); in getObjects()
|
D | MtpServer.java | 167 private native final void native_remove_storage(int storageId); in native_remove_storage() argument
|
D | MtpDatabase.java | 405 private int beginSendObject(String path, int format, int parent, int storageId) { in beginSendObject() argument 407 parent == 0 ? mManager.getStorageRoot(storageId) : mManager.getObject(parent); in beginSendObject()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpManagerTest.java | 118 int storageId = 0; in testCreateDocumentAndGetPartialObject() local 121 storageId = record.roots[0].mStorageId; in testCreateDocumentAndGetPartialObject() 125 assertTrue("Valid storage not found.", storageId != 0); in testCreateDocumentAndGetPartialObject() 129 mUsbDevice.getDeviceId(), storageId, MtpManager.OBJECT_HANDLE_ROOT_CHILDREN)) { in testCreateDocumentAndGetPartialObject() 146 .setStorageId(storageId) in testCreateDocumentAndGetPartialObject()
|
D | TestMtpManager.java | 53 void setObjectHandles(int deviceId, int storageId, int parentHandle, int[] objectHandles) { in setObjectHandles() argument 54 mObjectHandles.put(pack(deviceId, storageId, parentHandle), objectHandles); in setObjectHandles() 129 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle) throws IOException { in getObjectHandles() argument 130 final String key = pack(deviceId, storageId, parentObjectHandle); in getObjectHandles()
|
D | DocumentLoaderTest.java | 110 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle) in testError_GetObjectHandles()
|
D | MtpDocumentsProviderTest.java | 965 int storageId, in setupDocuments() argument 975 mMtpManager.setObjectHandles(deviceId, storageId, parentHandle, handles); in setupDocuments()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpRoot.java | 33 int storageId, in MtpRoot() argument 39 mStorageId = storageId; in MtpRoot()
|
D | Identifier.java | 32 Identifier(int deviceId, int storageId, int objectHandle, String documentId, in Identifier() argument 35 mStorageId = storageId; in Identifier()
|
D | MtpManager.java | 139 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle) in getObjectHandles() argument 144 device.getObjectHandles(storageId, 0 /* all format */, parentObjectHandle), in getObjectHandles()
|
D | MtpDocumentsProvider.java | 401 final int storageId; in createDocument() local 416 storageId = parentId.mStorageId; in createDocument() 420 storageId = parentId.mStorageId; in createDocument() 437 .setStorageId(storageId) in createDocument()
|
/frameworks/base/media/jni/ |
D | android_mtp_MtpServer.cpp | 193 android_mtp_MtpServer_remove_storage(JNIEnv *env, jobject thiz, jint storageId) in android_mtp_MtpServer_remove_storage() argument 199 MtpStorage* storage = server->getStorage(storageId); in android_mtp_MtpServer_remove_storage()
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 341 public List<MtpObjectInfo> getObjectList(String deviceName, int storageId, int objectHandle) { in getObjectList() argument 350 int[] handles = device.getObjectHandles(storageId, 0, objectHandle); in getObjectList()
|
/frameworks/av/media/mtp/ |
D | MtpDevice.cpp | 566 MtpObjectHandle storageId = info->mStorageID; in getStorageID() local 568 return storageId; in getStorageID()
|