Home
last modified time | relevance | path

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

/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java68 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testOpenAndCloseDevice()
97 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testOpenAndCloseErrorDevice()
130 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testOpenDeviceOnDemand()
175 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryRoots()
245 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryRoots_error()
303 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument()
341 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument_directory()
375 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument_forStorage()
399 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument_forDeviceWithSingleStorage()
423 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument_forDeviceWithTwoStorages()
[all …]
DPipeManagerTest.java42 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in setUp()
56 new Identifier(0, 0, 1, null, MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT)); in testReadDocument_basic()
63 new Identifier(0, 0, 1, null, MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT)); in testReadDocument_error()
71 new Identifier(0, 0, 1, null, MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT)); in testReadThumbnail_basic()
78 new Identifier(0, 0, 1, null, MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT)); in testReadThumbnail_error()
DMtpDatabaseTest.java22 import static com.android.mtp.MtpDatabaseConstants.*;
42 MtpDatabaseConstants.COLUMN_DEVICE_ID,
43 MtpDatabaseConstants.COLUMN_STORAGE_ID,
44 MtpDatabaseConstants.COLUMN_OBJECT_HANDLE,
52 MtpDatabaseConstants.COLUMN_DOCUMENT_TYPE
60 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in setUp()
108 MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE, in testPutSingleStorageDocuments()
170MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE, getInt(cursor, COLUMN_DOCUMENT_TYPE)); in testPutStorageDocuments()
224 MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT, getInt(cursor, COLUMN_DOCUMENT_TYPE)); in testPutChildDocuments()
244 MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT, getInt(cursor, COLUMN_DOCUMENT_TYPE)); in testPutChildDocuments()
[all …]
DDocumentLoaderTest.java41 0, 0, 0, "2", MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE);
45 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in setUp()
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsProvider.java115 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_FILE); in onCreate()
201 if (identifier.mDocumentType != MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE) { in queryDocument()
254 if (parentIdentifier.mDocumentType == MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE) { in queryChildDocuments()
364 if (parentIdentifier.mDocumentType == MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE) { in deleteDocument()
407 case MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE: in createDocument()
419 case MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE: in createDocument()
423 case MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT: in createDocument()
509 case MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT: in findDocumentPath()
513 case MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE: { in findDocumentPath()
528 case MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE: in findDocumentPath()
[all …]
DDocumentLoader.java258 assert identifier.mDocumentType != MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE; in LoaderTask()
275 if (mIdentifier.mDocumentType == MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE) { in loadObjectHandles()
DIdentifier.java20 import static com.android.mtp.MtpDatabaseConstants.DocumentType;
DMtpDatabaseConstants.java32 class MtpDatabaseConstants { class
DMapper.java35 import static com.android.mtp.MtpDatabaseConstants.*;
DMtpDatabase.java19 import static com.android.mtp.MtpDatabaseConstants.*;