/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
Identifier.java | 32 Identifier(int deviceId, int storageId, int objectHandle, String documentId, 35 mStorageId = storageId;
|
MtpRoot.java | 33 int storageId, 39 mStorageId = storageId;
|
MtpManager.java | 139 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle) 144 device.getObjectHandles(storageId, 0 /* all format */, parentObjectHandle),
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
MtpManagerTest.java | 118 int storageId = 0; 121 storageId = record.roots[0].mStorageId; 125 assertTrue("Valid storage not found.", storageId != 0); 129 mUsbDevice.getDeviceId(), storageId, MtpManager.OBJECT_HANDLE_ROOT_CHILDREN)) { 146 .setStorageId(storageId)
|
TestMtpManager.java | 52 void setObjectHandles(int deviceId, int storageId, int parentHandle, int[] objectHandles) { 53 mObjectHandles.put(pack(deviceId, storageId, parentHandle), objectHandles); 128 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle) throws IOException { 129 final String key = pack(deviceId, storageId, parentObjectHandle);
|
MtpDocumentsProviderTest.java | 74 1 /* storageId */, 112 1 /* storageId */, 136 1 /* storageId */, 181 1 /* storageId */, 197 1 /* storageId */, 254 1 /* storageId */, 366 1 /* storageId */, 619 1 /* storageId */, 689 1 /* storageId */, 711 1 /* storageId */, [all...] |
DocumentLoaderTest.java | 110 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle)
|
/frameworks/av/media/mtp/ |
MtpDatabase.h | 48 virtual MtpObjectHandleList* getObjectList(MtpStorageID storageID, 52 virtual int getNumObjects(MtpStorageID storageID,
|
MtpDevice.h | 94 MtpStorageInfo* getStorageInfo(MtpStorageID storageID); 95 MtpObjectHandleList* getObjectHandles(MtpStorageID storageID, MtpObjectFormat format,
|
MtpServer.cpp | 574 MtpStorageID storageID = mRequest.getParameter(1); // 0xFFFFFFFF for all storage 579 if (!hasStorage(storageID)) 582 MtpObjectHandleList* handles = mDatabase->getObjectList(storageID, format, parent); 593 MtpStorageID storageID = mRequest.getParameter(1); // 0xFFFFFFFF for all storage 597 if (!hasStorage(storageID)) 600 int count = mDatabase->getNumObjects(storageID, format, parent); 890 MtpStorageID storageID = mRequest.getParameter(1); 891 MtpStorage* storage = getStorage(storageID); [all...] |
MtpDevice.cpp | 374 MtpStorageInfo* MtpDevice::getStorageInfo(MtpStorageID storageID) { 378 mRequest.setParameter(1, storageID); 385 MtpStorageInfo* info = new MtpStorageInfo(storageID); 394 MtpObjectHandleList* MtpDevice::getObjectHandles(MtpStorageID storageID, 399 mRequest.setParameter(1, storageID); 559 MtpObjectHandle storageId = info->mStorageID; 561 return storageId;
|
/external/libmtp/examples/ |
sendtr.c | 164 int sendtrack_function(char * from_path, char * to_path, char *partist, char *palbumartist, char *ptitle, char *pgenre, char *palbum, char *pcomposer, uint16_t tracknum, uint16_t length, uint16_t year, uint32_t storageid) 333 if (pds->id == storageid) 341 printf("Storage ID: %s (%u)\n", desc, storageid); 345 printf("Storage ID: %u\n", storageid); 346 trackmeta->storage_id = storageid; 387 uint32_t storageid = 0; local 415 storageid = (uint32_t) strtoul(optarg, NULL, 0); 441 printf("%s,%s,%s,%s,%s,%s,%s,%s,%d%d,%d,%u\n",argv[0],argv[1],partist,palbumartist,ptitle,pgenre,palbum,pcomposer,tracknum, length, year, storageid); 442 sendtrack_function(argv[0],argv[1],partist,palbumartist,ptitle,pgenre,palbum,pcomposer, tracknum, length, year, storageid);
|
/frameworks/base/media/java/android/mtp/ |
MtpDevice.java | 141 * @param storageId the storage unit to query 147 public int[] getObjectHandles(int storageId, int format, int objectHandle) { 148 return native_get_object_handles(storageId, format, objectHandle); 222 * @param storageId the ID of the storage unit 225 public MtpStorageInfo getStorageInfo(int storageId) { 226 return native_get_storage_info(storageId); 378 private native MtpStorageInfo native_get_storage_info(int storageId); 379 private native int[] native_get_object_handles(int storageId, int format, int objectHandle);
|
MtpServer.java | 77 private native final void native_remove_storage(int storageId);
|
MtpDatabase.java | 331 int storageId, long size, long modified) { 364 values.put(Files.FileColumns.STORAGE_ID, storageId); 417 private Cursor createObjectQuery(int storageID, int format, int parent) throws RemoteException { 421 if (storageID == 0xFFFFFFFF) { 460 whereArgs = new String[] { Integer.toString(storageID) }; 467 whereArgs = new String[] { Integer.toString(storageID), 475 whereArgs = new String[] { Integer.toString(storageID), 483 whereArgs = new String[] { Integer.toString(storageID), 517 private int[] getObjectList(int storageID, int format, int parent) { 520 c = createObjectQuery(storageID, format, parent) [all...] |
MtpEvent.java | 125 * Obtains storageID event parameter. 143 throw new IllegalParameterAccess("storageID", mEventCode);
|
/frameworks/base/media/jni/ |
android_mtp_MtpServer.cpp | 139 jint storageID = env->GetIntField(jstorage, field_MtpStorage_storageId); 150 MtpStorage* storage = new MtpStorage(storageID, pathStr, descriptionStr, 165 android_mtp_MtpServer_remove_storage(JNIEnv *env, jobject thiz, jint storageId) 171 MtpStorage* storage = server->getStorage(storageId);
|
android_mtp_MtpDatabase.cpp | 120 virtual MtpObjectHandleList* getObjectList(MtpStorageID storageID, 124 virtual int getNumObjects(MtpStorageID storageID, 263 MtpObjectHandleList* MyMtpDatabase::getObjectList(MtpStorageID storageID, 268 (jint)storageID, (jint)format, (jint)parent); 283 int MyMtpDatabase::getNumObjects(MtpStorageID storageID, 288 (jint)storageID, (jint)format, (jint)parent); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
MtpDeviceIndexRunnable.java | 158 for (int storageId : mDevice.getStorageIds()) { 169 for (int objectHandle : mDevice.getObjectHandles(storageId, 0, dirHandle)) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/ |
MtpHostTestActivity.java | 297 final int storageId = mMtpDevice.getStorageIds()[0]; 299 storageId, /* all format */ 0, /* Just under the root */ -1)) { 307 .setStorageId(storageId)
|
/external/libmtp/src/ |
ptp-pack.c | 471 htod32a(&oidata[PTP_oi_StorageID],oi->StorageID); 572 oi->StorageID=dtoh32a(&data[PTP_oi_StorageID]); 1833 uint32_t storageid; local [all...] |
ptp.h | 734 uint32_t StorageID; [all...] |
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
MtpClient.java | 337 * @param storageId the ID of the storage unit to query, or zero for all 341 public List<MtpObjectInfo> getObjectList(String deviceName, int storageId, int objectHandle) { 350 int[] handles = device.getObjectHandles(storageId, 0, objectHandle);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
MtpClient.java | 363 * @param storageId the ID of the storage unit to query, or zero for all 367 public List<MtpObjectInfo> getObjectList(String deviceName, int storageId, int objectHandle) { 376 int[] handles = device.getObjectHandles(storageId, 0, objectHandle);
|
/frameworks/base/core/java/android/os/storage/ |
StorageVolume.java | 124 public StorageVolume(String id, int storageId, File path, String description, boolean primary, 128 mStorageId = storageId;
|