Searched refs:MtpDeviceRecord (Results 1 – 15 of 15) sorted by relevance
38 private final SparseArray<MtpDeviceRecord> mDevices = new SparseArray<>();49 void addValidDevice(MtpDeviceRecord device) { in addValidDevice()78 synchronized MtpDeviceRecord[] getDevices() { in getDevices()79 final MtpDeviceRecord[] result = new MtpDeviceRecord[mDevices.size()]; in getDevices()81 final MtpDeviceRecord device = mDevices.valueAt(i); in getDevices()85 result[i] = new MtpDeviceRecord( in getDevices()94 synchronized MtpDeviceRecord openDevice(int deviceId) throws IOException { in openDevice()95 final MtpDeviceRecord device = mDevices.get(deviceId); in openDevice()99 final MtpDeviceRecord record = new MtpDeviceRecord( in openDevice()108 final MtpDeviceRecord device = mDevices.get(deviceId); in closeDevice()[all …]
68 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenAndCloseDevice()106 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenAndCloseErrorDevice()130 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenDeviceOnDemand()160 final MtpDeviceRecord[] openedDevice = mProvider.getOpenedDeviceRecordsCache(); in testOpenDeviceOnDemand()167 final MtpDeviceRecord[] openedDevice = mProvider.getOpenedDeviceRecordsCache(); in testOpenDeviceOnDemand()175 mMtpManager.addValidDevice(new MtpDeviceRecord( in testQueryRoots()191 mMtpManager.addValidDevice(new MtpDeviceRecord( in testQueryRoots()245 mMtpManager.addValidDevice(new MtpDeviceRecord( in testQueryRoots_error()253 mMtpManager.addValidDevice(new MtpDeviceRecord( in testQueryRoots_error()633 synchronized MtpDeviceRecord openDevice(int deviceId) in testBusyDevice()[all …]
84 final MtpDeviceRecord[] records = mManager.getDevices(); in testOperationsSupported()91 final MtpDeviceRecord[] records = mManager.getDevices(); in testEventsSupported()98 final MtpDeviceRecord[] records = mManager.getDevices(); in testDeviceKey()119 for (final MtpDeviceRecord record : mManager.getDevices()) { in testCreateDocumentAndGetPartialObject()
71 database.getMapper().putDeviceDocument(new MtpDeviceRecord( in addTestDevice()113 MtpDeviceRecord device = null; in waitForStorages()114 for (final MtpDeviceRecord deviceCandidate : manager.getDevices()) { in waitForStorages()
448 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testRestoreIdForDifferentDevices()450 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testRestoreIdForDifferentDevices()492 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testRestoreIdForDifferentDevices()494 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testRestoreIdForDifferentDevices()954 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testGetClosedDevice()975 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testMappingWithoutKey()981 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testMappingWithoutKey()996 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testMappingFailsWithoutKey()1006 mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testMappingFailsWithoutKey()1021 assertTrue(mDatabase.getMapper().putDeviceDocument(new MtpDeviceRecord( in testUpdateDocumentWithoutChange()[all …]
49 new MtpDeviceRecord(0, "Device", null, true, new MtpRoot[0], null, null)); in setUp()180 new MtpDeviceRecord( in setUpLoader()
21 void sendUpdateNotificationIntent(MtpDeviceRecord[] record) {} in sendUpdateNotificationIntent()
290 final MtpDeviceRecord device = getDeviceToolkit(identifier.mDeviceId).mDeviceRecord; in openDocument()301 if (MtpDeviceRecord.isPartialReadSupported( in openDocument()315 if (MtpDeviceRecord.isWritingSupported(device.operationsSupported)) { in openDocument()393 final MtpDeviceRecord record; in createDocument()399 if (!MtpDeviceRecord.isWritingSupported(record.operationsSupported)) { in createDocument()590 final MtpDeviceRecord device = mMtpManager.openDevice(deviceId); in openDevice()614 MtpDeviceRecord[] getOpenedDeviceRecordsCache() { in getOpenedDeviceRecordsCache()616 final MtpDeviceRecord[] records = new MtpDeviceRecord[mDeviceToolkits.size()]; in getOpenedDeviceRecordsCache()753 public final MtpDeviceRecord mDeviceRecord;758 MtpDeviceRecord record) { in DeviceToolkit()[all …]
77 synchronized MtpDeviceRecord openDevice(int deviceId) throws IOException { in openDevice()123 synchronized MtpDeviceRecord[] getDevices() { in getDevices()124 final ArrayList<MtpDeviceRecord> devices = new ArrayList<>(); in getDevices()131 return devices.toArray(new MtpDeviceRecord[devices.size()]); in getDevices()282 if (MtpDeviceRecord.isSupported(devicePropertySupported, in setInitVersion()292 private MtpDeviceRecord createDeviceRecord(UsbDevice device) { in createDeviceRecord()319 return new MtpDeviceRecord( in createDeviceRecord()
136 final MtpDeviceRecord[] devices = mManager.getDevices(); in run()139 for (final MtpDeviceRecord device : devices) { in run()156 for (final MtpDeviceRecord device : devices) { in run()
50 private final MtpDeviceRecord mDevice;57 DocumentLoader(MtpDeviceRecord device, MtpManager mtpManager, ContentResolver resolver, in DocumentLoader()350 if (!MtpDeviceRecord.isSupported( in loadObjectInfoList()353 !MtpDeviceRecord.isSupported( in loadObjectInfoList()
22 class MtpDeviceRecord { class31 MtpDeviceRecord(int deviceId, String name, @Nullable String deviceKey, boolean opened, in MtpDeviceRecord() method in MtpDeviceRecord
59 void sendUpdateNotificationIntent(@NonNull MtpDeviceRecord[] records) { in sendUpdateNotificationIntent()78 private static Notification createNotification(Context context, MtpDeviceRecord device) { in createNotification()
752 MtpDeviceRecord device) { in getDeviceDocumentValues()869 if (MtpDeviceRecord.isWritingSupported(operationsSupported)) { in getRootFlags()880 MtpDeviceRecord.isWritingSupported(operationsSupported) && in getDocumentFlags()884 if (MtpDeviceRecord.isSupported( in getDocumentFlags()892 MtpDeviceRecord.isWritingSupported(operationsSupported) && in getDocumentFlags()
61 synchronized boolean putDeviceDocument(MtpDeviceRecord device) throws FileNotFoundException { in putDeviceDocument()