/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDocumentsProviderTest.java | 73 new MtpRoot[] { in testOpenAndCloseDevice() 74 new MtpRoot( in testOpenAndCloseDevice() 111 new MtpRoot[] { in testOpenAndCloseErrorDevice() 112 new MtpRoot( in testOpenAndCloseErrorDevice() 135 new MtpRoot[] { in testOpenDeviceOnDemand() 136 new MtpRoot( in testOpenDeviceOnDemand() 180 new MtpRoot[] { in testQueryRoots() 181 new MtpRoot( in testQueryRoots() 196 new MtpRoot[] { in testQueryRoots() 197 new MtpRoot( in testQueryRoots() [all …]
|
D | MtpDatabaseTest.java | 86 mDatabase.getMapper().putStorageDocuments("1", OPERATIONS_SUPPORTED, new MtpRoot[] { in testPutSingleStorageDocuments() 87 new MtpRoot(0, 1, "Storage", 1000, 2000, "") in testPutSingleStorageDocuments() 148 mDatabase.getMapper().putStorageDocuments("1", OPERATIONS_SUPPORTED, new MtpRoot[] { in testPutStorageDocuments() 149 new MtpRoot(0, 1, "Storage", 1000, 2000, ""), in testPutStorageDocuments() 150 new MtpRoot(0, 2, "Storage", 2000, 4000, ""), in testPutStorageDocuments() 151 new MtpRoot(0, 3, "/@#%&<>Storage", 3000, 6000,"") in testPutStorageDocuments() 331 mDatabase.getMapper().putStorageDocuments("1", OPERATIONS_SUPPORTED, new MtpRoot[] { in testRestoreIdForRootDocuments() 332 new MtpRoot(0, 100, "Storage A", 1000, 0, ""), in testRestoreIdForRootDocuments() 333 new MtpRoot(0, 101, "Storage B", 1001, 0, "") in testRestoreIdForRootDocuments() 362 mDatabase.getMapper().putStorageDocuments("1", OPERATIONS_SUPPORTED, new MtpRoot[] { in testRestoreIdForRootDocuments() [all …]
|
D | TestUtil.java | 72 0, "Device", "device_key", /* opened is */ true, new MtpRoot[0], in addTestDevice() 79 database.getMapper().putStorageDocuments(parentId, OPERATIONS_SUPPORTED, new MtpRoot[] { in addTestStorage() 80 new MtpRoot(0, 100, "Storage", 1024, 1024, ""), in addTestStorage()
|
D | DocumentLoaderTest.java | 49 new MtpDeviceRecord(0, "Device", null, true, new MtpRoot[0], null, null)); in setUp() 53 mDatabase.getMapper().putStorageDocuments("1", new int[0], new MtpRoot[] { in setUp() 54 new MtpRoot(0, 0, "Storage", 1000, 1000, "") in setUp() 181 0, "Device", "Key", true, new MtpRoot[0], in setUpLoader()
|
D | TestMtpManager.java | 87 new MtpRoot[0], null, null); in getDevices()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpRoot.java | 23 class MtpRoot { class 32 MtpRoot(int deviceId, in MtpRoot() method in MtpRoot 46 MtpRoot(int deviceId, MtpStorageInfo storageInfo) { in MtpRoot() method in MtpRoot 57 if (!(object instanceof MtpRoot)) in equals() 59 final MtpRoot other = (MtpRoot) object; in equals()
|
D | MtpManager.java | 249 private MtpRoot[] getRoots(int deviceId) throws IOException { in getRoots() 254 final ArrayList<MtpRoot> roots = new ArrayList<>(); in getRoots() 260 roots.add(new MtpRoot(device.getDeviceId(), info)); in getRoots() 262 return roots.toArray(new MtpRoot[roots.size()]); in getRoots() 270 MtpRoot[] roots; in createDeviceRecord() 281 roots = new MtpRoot[0]; in createDeviceRecord() 289 roots = new MtpRoot[0]; in createDeviceRecord()
|
D | MtpDeviceRecord.java | 27 public final MtpRoot[] roots; 32 MtpRoot[] roots, @Nullable int[] operationsSupported, in MtpDeviceRecord()
|
D | Mapper.java | 93 String parentDocumentId, int[] operationsSupported, MtpRoot[] roots) in putStorageDocuments()
|
D | MtpDatabase.java | 786 MtpRoot root) { in getStorageDocumentValues()
|