Home
last modified time | relevance | path

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

/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java67 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testOpenAndCloseDevice()
96 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testOpenAndCloseErrorDevice()
129 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testOpenDeviceOnDemand()
174 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryRoots()
244 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryRoots_error()
302 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument()
340 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument_directory()
374 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument_forStorage()
398 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument_forDeviceWithSingleStorage()
422 setupProvider(MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in testQueryDocument_forDeviceWithTwoStorages()
[all …]
DPipeManagerTest.java41 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in setUp()
55 new Identifier(0, 0, 1, null, MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT)); in testReadDocument_basic()
62 new Identifier(0, 0, 1, null, MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT)); in testReadDocument_error()
70 new Identifier(0, 0, 1, null, MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT)); in testReadThumbnail_basic()
77 new Identifier(0, 0, 1, null, MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT)); in testReadThumbnail_error()
DMtpDatabaseTest.java36 import static com.android.mtp.MtpDatabaseConstants.*;
43 MtpDatabaseConstants.COLUMN_DEVICE_ID,
44 MtpDatabaseConstants.COLUMN_STORAGE_ID,
45 MtpDatabaseConstants.COLUMN_OBJECT_HANDLE,
53 MtpDatabaseConstants.COLUMN_DOCUMENT_TYPE
61 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY); in setUp()
109 MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE, in testPutSingleStorageDocuments()
171MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE, getInt(cursor, COLUMN_DOCUMENT_TYPE)); in testPutStorageDocuments()
225 MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT, getInt(cursor, COLUMN_DOCUMENT_TYPE)); in testPutChildDocuments()
245 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()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsProvider.java115 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_FILE); in onCreate()
197 if (identifier.mDocumentType != MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE) { in queryDocument()
250 if (parentIdentifier.mDocumentType == MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE) { in queryChildDocuments()
360 if (parentIdentifier.mDocumentType == MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE) { in deleteDocument()
403 case MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE: in createDocument()
415 case MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE: in createDocument()
419 case MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT: in createDocument()
505 case MtpDatabaseConstants.DOCUMENT_TYPE_OBJECT: in findDocumentPath()
509 case MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE: { in findDocumentPath()
524 case MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE: in findDocumentPath()
[all …]
DIdentifier.java20 import static com.android.mtp.MtpDatabaseConstants.DocumentType;
DDocumentLoader.java258 assert identifier.mDocumentType != MtpDatabaseConstants.DOCUMENT_TYPE_DEVICE; in LoaderTask()
275 if (mIdentifier.mDocumentType == MtpDatabaseConstants.DOCUMENT_TYPE_STORAGE) { in loadObjectHandles()
DMtpDatabaseConstants.java32 class MtpDatabaseConstants { class
DMapper.java35 import static com.android.mtp.MtpDatabaseConstants.*;
DMtpDatabase.java19 import static com.android.mtp.MtpDatabaseConstants.*;