Home
last modified time | relevance | path

Searched refs:mOpenHelper (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java106 protected DatabaseHelper mOpenHelper; field in LauncherProvider
155 if (mOpenHelper == null) { in createDbIfNotExists()
156 mOpenHelper = new DatabaseHelper(getContext(), mListenerHandler); in createDbIfNotExists()
159 if (!RestoreDbTask.performRestore(getContext(), mOpenHelper, in createDbIfNotExists()
161 mOpenHelper.createEmptyDB(mOpenHelper.getWritableDatabase()); in createDbIfNotExists()
179 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query()
219 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
221 final int rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert()
223 mOpenHelper.onAddOrDeleteOp(db); in insert()
233 int id = mOpenHelper.generateNewItemId(); in initializeExternalAdd()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java44 private SQLiteOpenHelper mOpenHelper; field in SQLiteContentProvider
56 mOpenHelper = getDatabaseHelper(context); in onCreate()
83 return mOpenHelper; in getDatabaseHelper()
96 mDb = mOpenHelper.getWritableDatabase(); in insert()
124 mDb = mOpenHelper.getWritableDatabase(); in bulkInsert()
151 mDb = mOpenHelper.getWritableDatabase(); in update()
184 mDb = mOpenHelper.getWritableDatabase(); in delete()
224 mDb = mOpenHelper.getWritableDatabase(); in applyBatch()
334 return mOpenHelper != null ? mOpenHelper.getReadableDatabase() : null; in getReadableDatabase()
338 return mOpenHelper != null ? mOpenHelper.getWritableDatabase() : null; in getWritableDatabase()
DMetaData.java53 private final SQLiteOpenHelper mOpenHelper; field in MetaData
70 mOpenHelper = openHelper; in MetaData()
81 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getFields()
115 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getFieldsLocked()
171 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in write()
203 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in writeLocked()
227 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in clearInstanceRange()
DCalendarCache.java59 private final SQLiteOpenHelper mOpenHelper; field in CalendarCache
74 mOpenHelper = openHelper; in CalendarCache()
148 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in writeData()
201 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in readData()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java22 private final MySQLiteOpenHelper mOpenHelper; field in SQLiteCacheHelper
31 mOpenHelper = new MySQLiteOpenHelper(context, name, version); in SQLiteCacheHelper()
44 mOpenHelper.getWritableDatabase().delete(mTableName, whereClause, whereArgs); in delete()
60 mOpenHelper.getWritableDatabase().insertWithOnConflict( in insertOrReplace()
78 return mOpenHelper.getReadableDatabase().query( in query()
83 mOpenHelper.clearDB(mOpenHelper.getWritableDatabase()); in clear()
87 mOpenHelper.close(); in close()
/packages/apps/Gallery2/src/com/android/photos/data/
DSQLiteContentProvider.java43 private SQLiteOpenHelper mOpenHelper; field in SQLiteContentProvider
57 mOpenHelper = getDatabaseHelper(context); in onCreate()
108 return mOpenHelper; in getDatabaseHelper()
121 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
141 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert()
164 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
188 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
210 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in applyBatch()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java319 private SQLiteOpenHelper mOpenHelper; field in MmsSmsProvider
330 mOpenHelper = MmsSmsDatabaseHelper.getInstanceForCe(getContext()); in onCreate()
363 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
580 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getSingleAddressId()
589 db = mOpenHelper.getWritableDatabase(); in getSingleAddressId()
680 long result = mOpenHelper.getWritableDatabase().insert(TABLE_THREADS, null, values); in insertThread()
721 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getThreadId()
794 return mOpenHelper.getReadableDatabase().query(TABLE_THREADS, projection, in getSimpleConversations()
847 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getDraftThread()
912 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getConversations()
[all …]
DMmsProvider.java76 mOpenHelper = MmsSmsDatabaseHelper.getInstanceForCe(getContext()); in onCreate()
240 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
278 Cursor cursor = mOpenHelper.getReadableDatabase().query( in getType()
362 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
676 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
864 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
1051 private SQLiteOpenHelper mOpenHelper; field in MmsProvider
DTelephonyProvider.java2538 return mOpenHelper.getReadableDatabase(); in getReadableDatabase()
2541 return mOpenHelper.getWritableDatabase(); in getWritableDatabase()
2544 mOpenHelper.initDatabase(db); in initDatabaseWithDatabaseHelper()
2547 return mOpenHelper.apnDbUpdateNeeded(); in needApnDbUpdate()
2637 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
3936 private DatabaseHelper mOpenHelper; field in TelephonyProvider
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java98 private SQLiteOpenHelper mOpenHelper; field in CellBroadcastContentProvider
106 mOpenHelper = new CellBroadcastDatabaseHelper(getContext()); in onCreate()
149 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
258 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertNewBroadcast()
283 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteBroadcast()
301 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteAllBroadcasts()
322 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in markBroadcastRead()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java47 private ClockDatabaseHelper mOpenHelper; field in ClockProvider
143 mOpenHelper = new ClockDatabaseHelper(storageContext); in onCreate()
151 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
213 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
239 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
242 rowId = mOpenHelper.fixAlarmInsert(initialValues); in insert()
260 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
DClockProvider.kt45 private lateinit var mOpenHelper: ClockDatabaseHelper variable in com.android.deskclock.provider.ClockProvider
145 mOpenHelper = ClockDatabaseHelper(storageContext) in onCreate()
157 val db: SQLiteDatabase = mOpenHelper.getReadableDatabase() in query()
209 val db: SQLiteDatabase = mOpenHelper.getWritableDatabase() in update()
233 val db: SQLiteDatabase = mOpenHelper.getWritableDatabase() in insert()
235 ALARMS -> mOpenHelper.fixAlarmInsert(initialValues!!) in insert()
249 val db: SQLiteDatabase = mOpenHelper.getWritableDatabase() in delete()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberDatabaseHelper.java37 private final OpenHelper mOpenHelper; field in BlockedNumberDatabaseHelper
87 mOpenHelper = new OpenHelper(mContext, in BlockedNumberDatabaseHelper()
101 return mOpenHelper.getReadableDatabase(); in getReadableDatabase()
105 return mOpenHelper.getWritableDatabase(); in getWritableDatabase()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java141 private DatabaseHelper mOpenHelper; field in UserDictionaryProvider
145 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
187 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
246 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
265 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
294 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java93 private SQLiteOpenHelper mOpenHelper = null; field in BluetoothOppProvider
203 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
261 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
268 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
342 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
382 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1054 private DatabaseHelper mOpenHelper; field in TvProvider
1068 if (mOpenHelper == null) { in onCreate()
1069 mOpenHelper = DatabaseHelper.getInstance(getContext()); in onCreate()
1141 mOpenHelper = helper; in setOpenHelper()
1253 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in call()
1372 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
1430 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertChannel()
1452 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertProgram()
1473 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertWatchedProgram()
1502 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertRecordedProgram()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DTestLauncherProvider.java21 if (mOpenHelper == null) { in createDbIfNotExists()
22 mOpenHelper = new MyDatabaseHelper(getContext()); in createDbIfNotExists()
28 return mOpenHelper.getWritableDatabase(); in getDb()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java146 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in prepareForConfiguration()
344 private DatabaseHelper mOpenHelper; field in PartnerBookmarksProvider
348 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
354 mOpenHelper.prepareForConfiguration(getContext().getResources().getConfiguration()); in onConfigurationChanged()
361 mOpenHelper.prepareForConfiguration(getContext().getResources().getConfiguration()); in query()
362 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeTvProvider.java1450 private DatabaseHelper mOpenHelper; field in FakeTvProvider
1459 mOpenHelper = DatabaseHelper.createInstance(getContext()); in onCreate()
1473 mOpenHelper = helper; in setOpenHelper()
1566 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
1632 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertChannel()
1654 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertProgram()
1675 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertWatchedProgram()
1697 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertRecordedProgram()
1718 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertPreviewProgram()
1743 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertWatchNextProgram()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogDatabaseHelper.java59 private final OpenHelper mOpenHelper; field in CallLogDatabaseHelper
229 mOpenHelper = new OpenHelper(mContext, databaseName, /* factory=*/ null, DATABASE_VERSION); in CallLogDatabaseHelper()
249 return mOpenHelper.getReadableDatabase(); in getReadableDatabase()
253 return mOpenHelper.getWritableDatabase(); in getWritableDatabase()
573 mOpenHelper.close(); in closeForTest()
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DDataMigrationContentProvider.java30 private SQLiteOpenHelper mOpenHelper; field in DataMigrationContentProvider
48 mOpenHelper = new CellBroadcastMigrationDatabaseHelper(getContext()); in onCreate()
66 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java267 private SQLiteOpenHelper mOpenHelper = null; field in DownloadProvider
641 mOpenHelper = new DatabaseHelper(getContext()); in onCreate()
656 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in reconcileRemovedUidEntries()
700 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getType()
766 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
1346 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
1474 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
1711 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
1904 final SQLiteDatabase db = mOpenHelper.getReadableDatabase();