• Home
  • Raw
  • Download

Lines Matching refs:database

21 import android.database.Cursor;
22 import android.database.DatabaseUtils;
23 import android.database.sqlite.SQLiteDatabase;
51 Mapper(MtpDatabase database) { in Mapper() argument
52 mDatabase = database; in Mapper()
62 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDeviceDocument() local
63 database.beginTransaction(); in putDeviceDocument()
77 database.setTransactionSuccessful(); in putDeviceDocument()
80 database.endTransaction(); in putDeviceDocument()
95 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putStorageDocuments() local
96 database.beginTransaction(); in putStorageDocuments()
118 database.setTransactionSuccessful(); in putStorageDocuments()
121 database.endTransaction(); in putStorageDocuments()
163 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in clearMapping() local
164 database.beginTransaction(); in clearMapping()
175 database.setTransactionSuccessful(); in clearMapping()
177 database.endTransaction(); in clearMapping()
200 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in startAddingDocuments() local
201 database.beginTransaction(); in startAddingDocuments()
209 database.update( in startAddingDocuments()
215 database.setTransactionSuccessful(); in startAddingDocuments()
218 database.endTransaction(); in startAddingDocuments()
245 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDocuments() local
247 database.beginTransaction(); in putDocuments()
265 rowId = database.insert(TABLE_DOCUMENTS, null, values); in putDocuments()
273 database.update( in putDocuments()
284 database.replace(TABLE_ROOT_EXTRA, null, rootExtraValues); in putDocuments()
298 database.setTransactionSuccessful(); in putDocuments()
301 database.endTransaction(); in putDocuments()
329 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in stopAddingDocuments() local
330 database.beginTransaction(); in stopAddingDocuments()
358 database.setTransactionSuccessful(); in stopAddingDocuments()
361 database.endTransaction(); in stopAddingDocuments()
380 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in cancelAddingDocuments() local
381 database.beginTransaction(); in cancelAddingDocuments()
394 database.setTransactionSuccessful(); in cancelAddingDocuments()
396 database.endTransaction(); in cancelAddingDocuments()
434 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in queryCandidate() local
435 return database.query( in queryCandidate()