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.java50 private TestMtpManager mMtpManager; field in MtpDocumentsProviderTest
57 mMtpManager = new TestMtpManager(getContext()); in setUp()
68 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenAndCloseDevice()
106 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenAndCloseErrorDevice()
130 mMtpManager.addValidDevice(new MtpDeviceRecord( in testOpenDeviceOnDemand()
146 mMtpManager.setObjectHandles(0, 1, -1, new int[0]); 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()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsProvider.java89 private MtpManager mMtpManager; field in MtpDocumentsProvider
112 mMtpManager = new MtpManager(getContext()); in onCreate()
116 mRootScanner = new RootScanner(mResolver, mMtpManager, mDatabase); in onCreate()
156 mMtpManager = mtpManager; in onCreateForTesting()
160 mRootScanner = new RootScanner(mResolver, mMtpManager, mDatabase); in onCreateForTesting()
306 return getPipeManager(identifier).readDocument(mMtpManager, identifier); in openDocument()
341 getPipeManager(identifier).readThumbnail(mMtpManager, identifier), in openDocumentThumbnail()
356 mMtpManager.deleteDocument(identifier.mDeviceId, identifier.mObjectHandle); in deleteDocument()
459 objectHandle = mMtpManager.createDocument( in createDocument()
586 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()