/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelDbController.java | 99 protected DatabaseHelper mOpenHelper; field in ModelDbController 108 if (mOpenHelper == null) { in createDbIfNotExists() 109 mOpenHelper = createDatabaseHelper(false /* forMigration */); in createDbIfNotExists() 148 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() 153 extra.putString(EXTRA_DB_NAME, mOpenHelper.getDatabaseName()); in query() 165 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 167 int rowId = mOpenHelper.dbInsertAndCheck(db, table, initialValues); in insert() 180 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 198 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 218 return mOpenHelper.generateNewItemId(); in generateNewItemId() [all …]
|
/packages/modules/Permission/PermissionController/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/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/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 | MmsProvider.java | 94 mOpenHelper = MmsSmsDatabaseHelper.getInstanceForCe(getContext()); in onCreate() 297 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 298 if (mOpenHelper instanceof MmsSmsDatabaseHelper) { in query() 299 ((MmsSmsDatabaseHelper) mOpenHelper).addDatabaseOpeningDebugLog( in query() 306 if (mOpenHelper instanceof MmsSmsDatabaseHelper) { in query() 307 ((MmsSmsDatabaseHelper) mOpenHelper).printDatabaseOpeningDebugLog(); in query() 342 Cursor cursor = mOpenHelper.getReadableDatabase().query( in getType() 436 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 437 if (mOpenHelper instanceof MmsSmsDatabaseHelper) { in insert() 438 ((MmsSmsDatabaseHelper) mOpenHelper).addDatabaseOpeningDebugLog( in insert() [all …]
|
D | MmsSmsProvider.java | 316 private SQLiteOpenHelper mOpenHelper; field in MmsSmsProvider 329 mOpenHelper = MmsSmsDatabaseHelper.getInstanceForCe(getContext()); in onCreate() 372 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 373 if (mOpenHelper instanceof MmsSmsDatabaseHelper) { in query() 374 ((MmsSmsDatabaseHelper) mOpenHelper).addDatabaseOpeningDebugLog( in query() 681 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getSingleAddressId() 694 db = mOpenHelper.getWritableDatabase(); in getSingleAddressId() 788 long result = mOpenHelper.getWritableDatabase().insert(TABLE_THREADS, null, values); in insertThread() 833 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getThreadId() 854 if (mOpenHelper instanceof MmsSmsDatabaseHelper) { in getThreadId() [all …]
|
D | TelephonyProvider.java | 3216 return mOpenHelper.getReadableDatabase(); in getReadableDatabase() 3219 return mOpenHelper.getWritableDatabase(); in getWritableDatabase() 3222 mOpenHelper.initDatabase(db); in initDatabaseWithDatabaseHelper() 3225 return mOpenHelper.apnDbUpdateNeeded(); in needApnDbUpdate() 3340 mOpenHelper = new DatabaseHelper(getContext()); in onCreate() 5534 private DatabaseHelper mOpenHelper; field in TelephonyProvider
|
/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/ContactsProvider/src/com/android/providers/contacts/ |
D | CallComposerLocationProvider.java | 82 private OpenHelper mOpenHelper; field in CallComposerLocationProvider 86 mOpenHelper = new OpenHelper(getContext(), DB_NAME, null, VERSION); in onCreate() 112 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 135 long id = mOpenHelper.getWritableDatabase().insert(TABLE_NAME, null, values); in insert() 147 return mOpenHelper.getWritableDatabase().delete(TABLE_NAME, in delete() 151 return mOpenHelper.getWritableDatabase().delete(TABLE_NAME, "1", null); in delete()
|
D | CallLogDatabaseHelper.java | 71 private final OpenHelper mOpenHelper; field in CallLogDatabaseHelper 275 mOpenHelper = new OpenHelper(mContext, databaseName, /* factory=*/ null, DATABASE_VERSION); in CallLogDatabaseHelper() 295 return mOpenHelper.getReadableDatabase(); in getReadableDatabase() 299 return mOpenHelper.getWritableDatabase(); in getWritableDatabase() 601 mOpenHelper.close(); in closeForTest() 610 return mOpenHelper; in getOpenHelper()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockProvider.kt | 45 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/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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastContentProvider.java | 89 public CellBroadcastDatabaseHelper mOpenHelper; field in CellBroadcastContentProvider 101 mOpenHelper = new CellBroadcastDatabaseHelper(getContext(), false); in onCreate() 111 mOpenHelper.getReadableDatabase(); in onCreate() 127 return mOpenHelper.getWritableDatabase(); in awaitInitAndGetWritableDatabase() 140 return mOpenHelper.getReadableDatabase(); in awaitInitAndGetReadableDatabase() 255 mOpenHelper.migrateFromLegacyIfNeeded(awaitInitAndGetReadableDatabase()); in call()
|
/packages/apps/CellBroadcastReceiver/legacy/src/com/android/cellbroadcastreceiver/ |
D | LegacyCellBroadcastContentProvider.java | 47 private SQLiteOpenHelper mOpenHelper; field in LegacyCellBroadcastContentProvider 52 mOpenHelper = new CellBroadcastDatabaseHelper(getContext(), true); in onCreate() 67 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | FakeContactsProvider.java | 132 private SQLiteOpenHelper mOpenHelper = null; field in FakeContactsProvider 423 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 470 mOpenHelper = new DatabaseHelper(ApplicationProvider.getApplicationContext()); in onCreate() 476 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in shutdown() 480 mOpenHelper.close(); in shutdown() 485 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 506 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 97 private SQLiteOpenHelper mOpenHelper = null; field in BluetoothOppProvider 303 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 366 mOpenHelper = new DatabaseHelper(getContext()); in onCreate() 377 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 458 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 499 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
|
/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/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | MmsProviderTestable.java | 37 mOpenHelper = new InMemoryMmsProviderDbHelper(); in onCreate() 43 mOpenHelper.close(); in closeDatabase()
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 1196 private DatabaseHelper mOpenHelper; field in TvProvider 1210 if (mOpenHelper == null) { in onCreate() 1211 mOpenHelper = DatabaseHelper.getInstance(getContext()); in onCreate() 1287 mOpenHelper = helper; in setOpenHelper() 1399 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in call() 1518 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 1576 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertChannel() 1598 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertProgram() 1619 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertWatchedProgram() 1648 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertRecordedProgram() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/ |
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/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadProvider.java | 254 private SQLiteOpenHelper mOpenHelper = null; field in DownloadProvider 586 mOpenHelper = new DatabaseHelper(getContext()); in onCreate() 594 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in onCreate() 631 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getType() 714 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() 1253 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() 1381 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() 1623 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 1798 final SQLiteDatabase db = mOpenHelper.getReadableDatabase();
|