/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 108 protected DatabaseHelper mOpenHelper; field in LauncherProvider 157 if (mOpenHelper == null) { in createDbIfNotExists() 158 mOpenHelper = new DatabaseHelper(getContext(), mListenerHandler); in createDbIfNotExists() 161 if (!RestoreDbTask.performRestore(getContext(), mOpenHelper, in createDbIfNotExists() 163 mOpenHelper.createEmptyDB(mOpenHelper.getWritableDatabase()); in createDbIfNotExists() 181 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() 221 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 223 final int rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert() 225 mOpenHelper.onAddOrDeleteOp(db); in insert() 235 int id = mOpenHelper.generateNewItemId(); in initializeExternalAdd() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | SQLiteContentProvider.java | 44 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()
|
D | MetaData.java | 53 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()
|
D | CalendarCache.java | 59 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/ |
D | SQLiteCacheHelper.java | 22 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/ |
D | SQLiteContentProvider.java | 43 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/ |
D | MmsSmsProvider.java | 305 private SQLiteOpenHelper mOpenHelper; field in MmsSmsProvider 315 mOpenHelper = MmsSmsDatabaseHelper.getInstanceForCe(getContext()); in onCreate() 335 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 552 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getSingleAddressId() 561 db = mOpenHelper.getWritableDatabase(); in getSingleAddressId() 652 long result = mOpenHelper.getWritableDatabase().insert(TABLE_THREADS, null, values); in insertThread() 693 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getThreadId() 766 return mOpenHelper.getReadableDatabase().query(TABLE_THREADS, projection, in getSimpleConversations() 819 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getDraftThread() 884 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getConversations() [all …]
|
D | MmsProvider.java | 76 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
|
D | TelephonyProvider.java | 2434 return mOpenHelper.getReadableDatabase(); in getReadableDatabase() 2437 return mOpenHelper.getWritableDatabase(); in getWritableDatabase() 2440 mOpenHelper.initDatabase(db); in initDatabaseWithDatabaseHelper() 2443 return mOpenHelper.apnDbUpdateNeeded(); in needApnDbUpdate() 2533 mOpenHelper = new DatabaseHelper(getContext()); in onCreate() 3874 private DatabaseHelper mOpenHelper; field in TelephonyProvider
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastContentProvider.java | 69 private SQLiteOpenHelper mOpenHelper; field in CellBroadcastContentProvider 77 mOpenHelper = new CellBroadcastDatabaseHelper(getContext()); in onCreate() 121 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 192 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertNewBroadcast() 218 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteBroadcast() 236 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteAllBroadcasts() 257 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in markBroadcastRead()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | SearchRecentSuggestionsProvider.java | 40 private SQLiteOpenHelper mOpenHelper; field in SearchRecentSuggestionsProvider 75 mOpenHelper = new DatabaseHelper(mContext, DATABASE_VERSION); in SearchRecentSuggestionsProvider() 84 mOpenHelper.close(); in cleanup() 138 return readOnly ? mOpenHelper.getReadableDatabase() : in getDatabase() 139 mOpenHelper.getWritableDatabase(); in getDatabase()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockProvider.java | 47 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()
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberDatabaseHelper.java | 37 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/ |
D | UserDictionaryProvider.java | 141 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/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 1017 private DatabaseHelper mOpenHelper; field in TvProvider 1031 if (mOpenHelper == null) { in onCreate() 1032 mOpenHelper = DatabaseHelper.getInstance(getContext()); in onCreate() 1104 mOpenHelper = helper; in setOpenHelper() 1216 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in call() 1335 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 1393 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertChannel() 1415 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertProgram() 1436 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertWatchedProgram() 1465 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertRecordedProgram() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 93 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/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/ |
D | TestLauncherProvider.java | 21 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/ |
D | PartnerBookmarksProvider.java | 146 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/ |
D | FakeTvProvider.java | 1450 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/ |
D | CallLogDatabaseHelper.java | 59 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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadProvider.java | 264 private SQLiteOpenHelper mOpenHelper = null; field in DownloadProvider 615 mOpenHelper = new DatabaseHelper(getContext()); in onCreate() 630 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in reconcileRemovedUidEntries() 674 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getType() 740 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 1337 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 1465 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 1697 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 1890 final SQLiteDatabase db = mOpenHelper.getReadableDatabase();
|