Searched refs:MtpDatabase (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/media/java/android/mtp/
H A DMtpServer.java30 private final MtpDatabase mDatabase;
38 MtpDatabase database,
98 MtpDatabase database,
H A DMtpDatabase.java62 * MtpDatabase provides an interface for MTP operations that MtpServer can use. To do this, it uses
68 public class MtpDatabase implements AutoCloseable { class in inherits:AutoCloseable
69 private static final String TAG = MtpDatabase.class.getSimpleName();
249 public MtpDatabase(Context context, String volumeName, method in class:MtpDatabase
261 if (MtpDatabase.this.mServer != null)
262 MtpDatabase.this.mServer.sendObjectAdded(id);
267 if (MtpDatabase.this.mServer != null)
268 MtpDatabase.this.mServer.sendObjectRemoved(id);
/frameworks/av/media/mtp/
H A DMtpStorage.h26 class MtpDatabase;
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DPipeManager.java34 final MtpDatabase mDatabase;
36 PipeManager(MtpDatabase database) {
40 PipeManager(MtpDatabase database, ExecutorService executor) {
H A DMapper.java36 import static com.android.mtp.MtpDatabase.strings;
39 * Mapping operations for MtpDatabase.
40 * Also see the comments of {@link MtpDatabase}.
44 private final MtpDatabase mDatabase;
51 Mapper(MtpDatabase database) {
69 MtpDatabase.getDeviceDocumentValues(valuesList[0], extraValuesList[0], device);
103 MtpDatabase.getStorageDocumentValues(
145 MtpDatabase.getObjectDocumentValues(
H A DRootScanner.java56 final MtpDatabase mDatabase;
64 MtpDatabase database) {
H A DDocumentLoader.java53 private final MtpDatabase mDatabase;
58 MtpDatabase database) {
246 final MtpDatabase mDatabase;
255 LoaderTask(MtpManager manager, MtpDatabase database, int[] operationsSupported,
H A DMtpFileWriter.java64 void flush(MtpManager manager, MtpDatabase database, int[] operationsSupported)
H A DMtpDocumentsProvider.java95 private MtpDatabase mDatabase;
115 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_FILE);
151 MtpDatabase database,
212 MtpDatabase.strings(Document.COLUMN_DISPLAY_NAME, Document.COLUMN_FLAGS))) {
231 MtpDatabase.putValuesToCursor(values, output);
716 MtpDatabase.strings(Document.COLUMN_SIZE, Document.COLUMN_DISPLAY_NAME));
753 MtpDatabase database,
H A DMtpDatabase.java58 * Instead of fullpath, we use artificial ID generated by MtpDatabase itself. The database object
85 class MtpDatabase { class
93 MtpDatabase(Context context, int flags) { method in class:MtpDatabase
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDatabase.cpp100 class MtpDatabase : public IMtpDatabase { class in inherits:IMtpDatabase
108 MtpDatabase(JNIEnv *env, jobject client);
109 virtual ~MtpDatabase();
209 MtpDatabase::MtpDatabase(JNIEnv *env, jobject client) function in class:MtpDatabase
235 void MtpDatabase::cleanup(JNIEnv *env) {
242 MtpDatabase::~MtpDatabase() {
245 MtpObjectHandle MtpDatabase::beginSendObject(const char* path,
260 void MtpDatabase
[all...]
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DPipeManagerTest.java35 private MtpDatabase mDatabase;
41 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY);
H A DTestUtil.java69 static void addTestDevice(MtpDatabase database) throws FileNotFoundException {
77 static void addTestStorage(MtpDatabase database, String parentId) throws FileNotFoundException {
H A DDocumentLoaderTest.java36 private MtpDatabase mDatabase;
45 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY);
H A DMtpDocumentsProviderTest.java41 import static com.android.mtp.MtpDatabase.strings;
52 private MtpDatabase mDatabase;
63 MtpDatabase.deleteDatabase(getContext());
927 mDatabase = new MtpDatabase(getContext(), flag);
H A DMtpDatabaseTest.java35 import static com.android.mtp.MtpDatabase.strings;
57 MtpDatabase mDatabase;
61 mDatabase = new MtpDatabase(getContext(), MtpDatabaseConstants.FLAG_DATABASE_IN_MEMORY);
/frameworks/base/config/
H A Dpreloaded-classes2201 android.mtp.MtpDatabase
H A Dboot-image-profile.txt[all...]

Completed in 579 milliseconds