Home
last modified time | relevance | path

Searched refs:mMtpManager (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java48 private TestMtpManager mMtpManager; field in MtpDocumentsProviderTest
55 mMtpManager = new TestMtpManager(getContext()); in setUp()
66 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenAndCloseDevice()
104 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenAndCloseErrorDevice()
128 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenDeviceOnDemand()
144 mMtpManager.setObjectHandles(0, 1, -1, new int[0]); in testOpenDeviceOnDemand()
173 mMtpManager.addValidDevice(new MtpDeviceRecord( in testQueryRoots()
189 mMtpManager.addValidDevice(new MtpDeviceRecord( in testQueryRoots()
238 mMtpManager.addValidDevice(new MtpDeviceRecord( in testQueryRoots_error()
246 mMtpManager.addValidDevice(new MtpDeviceRecord( in testQueryRoots_error()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsProvider.java82 private MtpManager mMtpManager; field in MtpDocumentsProvider
105 mMtpManager = new MtpManager(getContext()); in onCreate()
109 mRootScanner = new RootScanner(mResolver, mMtpManager, mDatabase); in onCreate()
157 mMtpManager = mtpManager; in onCreateForTesting()
161 mRootScanner = new RootScanner(mResolver, mMtpManager, mDatabase); in onCreateForTesting()
261 return getPipeManager(identifier).readDocument(mMtpManager, identifier); in openDocument()
294 getPipeManager(identifier).readThumbnail(mMtpManager, identifier), in openDocumentThumbnail()
309 mMtpManager.deleteDocument(identifier.mDeviceId, identifier.mObjectHandle); in deleteDocument()
384 objectHandle = mMtpManager.createDocument( in createDocument()
425 final MtpDeviceRecord device = mMtpManager.openDevice(deviceId); in openDevice()
[all …]
DDocumentLoader.java51 private final MtpManager mMtpManager; field in DocumentLoader
60 mMtpManager = mtpManager; in DocumentLoader()
85 task = new LoaderTask(mMtpManager, mDatabase, mDevice.operationsSupported, parent); in queryChildDocuments()
134 mMtpManager, mDatabase, mDevice.operationsSupported, identifier); in getNextTaskOrReleaseBackgroundThread()