Home
last modified time | relevance | path

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

/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java74 new MtpRoot[] { in testOpenAndCloseDevice()
75 new MtpRoot( in testOpenAndCloseDevice()
112 new MtpRoot[] { in testOpenAndCloseErrorDevice()
113 new MtpRoot( in testOpenAndCloseErrorDevice()
136 new MtpRoot[] { in testOpenDeviceOnDemand()
137 new MtpRoot( in testOpenDeviceOnDemand()
181 new MtpRoot[] { in testQueryRoots()
182 new MtpRoot( in testQueryRoots()
197 new MtpRoot[] { in testQueryRoots()
198 new MtpRoot( in testQueryRoots()
[all …]
DMtpDatabaseTest.java85 mDatabase.getMapper().putStorageDocuments("1", OPERATIONS_SUPPORTED, new MtpRoot[] { in testPutSingleStorageDocuments()
86 new MtpRoot(0, 1, "Storage", 1000, 2000, "") in testPutSingleStorageDocuments()
147 mDatabase.getMapper().putStorageDocuments("1", OPERATIONS_SUPPORTED, new MtpRoot[] { in testPutStorageDocuments()
148 new MtpRoot(0, 1, "Storage", 1000, 2000, ""), in testPutStorageDocuments()
149 new MtpRoot(0, 2, "Storage", 2000, 4000, ""), in testPutStorageDocuments()
150 new MtpRoot(0, 3, "/@#%&<>Storage", 3000, 6000,"") in testPutStorageDocuments()
330 mDatabase.getMapper().putStorageDocuments("1", OPERATIONS_SUPPORTED, new MtpRoot[] { in testRestoreIdForRootDocuments()
331 new MtpRoot(0, 100, "Storage A", 1000, 0, ""), in testRestoreIdForRootDocuments()
332 new MtpRoot(0, 101, "Storage B", 1001, 0, "") in testRestoreIdForRootDocuments()
361 mDatabase.getMapper().putStorageDocuments("1", OPERATIONS_SUPPORTED, new MtpRoot[] { in testRestoreIdForRootDocuments()
[all …]
DTestUtil.java72 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()
DDocumentLoaderTest.java49 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()
DTestMtpManager.java87 new MtpRoot[0], null, null); in getDevices()
/packages/services/Mtp/src/com/android/mtp/
DMtpRoot.java23 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()
DMtpManager.java253 private MtpRoot[] getRoots(int deviceId) throws IOException { in getRoots()
258 final ArrayList<MtpRoot> roots = new ArrayList<>(); in getRoots()
264 roots.add(new MtpRoot(device.getDeviceId(), info)); in getRoots()
266 return roots.toArray(new MtpRoot[roots.size()]); in getRoots()
296 MtpRoot[] roots; in createDeviceRecord()
309 roots = new MtpRoot[0]; in createDeviceRecord()
317 roots = new MtpRoot[0]; in createDeviceRecord()
DMtpDeviceRecord.java27 public final MtpRoot[] roots;
32 MtpRoot[] roots, @Nullable int[] operationsSupported, in MtpDeviceRecord()
DMapper.java93 String parentDocumentId, int[] operationsSupported, MtpRoot[] roots) in putStorageDocuments()
DMtpDatabase.java796 MtpRoot root) { in getStorageDocumentValues()