Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelDbController.java99 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/
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/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/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/
DMmsProvider.java94 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 …]
DMmsSmsProvider.java316 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 …]
DTelephonyProvider.java3216 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/
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/ContactsProvider/src/com/android/providers/contacts/
DCallComposerLocationProvider.java82 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()
DCallLogDatabaseHelper.java71 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/
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/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java89 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/
DLegacyCellBroadcastContentProvider.java47 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/
DFakeContactsProvider.java132 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/
DBluetoothOppProvider.java97 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/
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/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DMmsProviderTestable.java37 mOpenHelper = new InMemoryMmsProviderDbHelper(); in onCreate()
43 mOpenHelper.close(); in closeDatabase()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1196 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/
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/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java254 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();