Home
last modified time | relevance | path

Searched refs:getWritableDatabase (Results 1 – 25 of 126) sorted by relevance

123456

/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java163 mOpenHelper.createEmptyDB(mOpenHelper.getWritableDatabase()); in createDbIfNotExists()
181 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query()
221 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
275 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert()
298 try (SQLiteTransaction t = new SQLiteTransaction(mOpenHelper.getWritableDatabase())) { in applyBatch()
325 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
329 mOpenHelper.removeGhostWidgets(mOpenHelper.getWritableDatabase()); in delete()
346 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
389 mOpenHelper.createEmptyDB(mOpenHelper.getWritableDatabase()); in call()
397 mOpenHelper.removeGhostWidgets(mOpenHelper.getWritableDatabase()); in call()
[all …]
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java167 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in hasGrant()
172 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in setGrant()
189 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeAliasInformation()
195 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeAllAliasesInformation()
201 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants()
227 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in setIsUserSelectable()
236 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in isUserSelectable()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java96 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()
337 SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in SQLiteContentProvider
338 return mOpenHelper != null ? mOpenHelper.getWritableDatabase() : null; in getWritableDatabase()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyDatabaseHelperTest.java71 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasApnSetIdField()
86 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasCarrierIdField()
99 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasCountryIsoField()
112 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasProfileClassField()
126 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasSkip464XlatField()
140 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_columnsMatchNewlyCreatedDb()
176 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasSubscriptionTypeField()
DCarrierProviderTestable.java52 SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in CarrierProviderTestable
53 Log.d(TAG, "getWritableDatabase called" + mDbHelper.getWritableDatabase()); in getWritableDatabase()
54 return mDbHelper.getWritableDatabase(); in getWritableDatabase()
DCarrierIdProviderTestable.java51 SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in CarrierIdProviderTestable
52 Log.d(TAG, "getWritableDatabase called" + mDbHelper.getWritableDatabase()); in getWritableDatabase()
53 return mDbHelper.getWritableDatabase(); in getWritableDatabase()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierProvider.java81 long row = getWritableDatabase().insertOrThrow(CarrierDatabaseHelper.CARRIER_KEY_TABLE, in insert()
100 final int count = getWritableDatabase().delete(CarrierDatabaseHelper.CARRIER_KEY_TABLE, in delete()
116 final int count = getWritableDatabase().update(CarrierDatabaseHelper.CARRIER_KEY_TABLE, in update()
132 SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in CarrierProvider
133 return mDbHelper.getWritableDatabase(); in getWritableDatabase()
DRcsProviderParticipantHelper.java136 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in performInitialQuery()
261 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in insertParticipant()
280 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in insertParticipantIntoGroupThread()
299 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in insertParticipantIntoGroupThreadWithId()
317 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in deleteParticipantWithId()
344 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in deleteParticipantFromGroupThread()
357 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in updateParticipant()
DRcsProviderMessageHelper.java456 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in insertMessageOnThread()
542 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in insertMessageDelivery()
550 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in updateDelivery()
561 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in deleteIncomingMessageWithSelection()
570 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in deleteOutgoingMessageWithSelection()
575 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in updateIncomingMessage()
597 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in updateOutgoingMessage()
619 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in insertFileTransferToMessage()
631 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in deleteFileTransfer()
637 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in updateFileTransfer()
DRcsProviderThreadHelper.java339 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in insert1To1Thread()
419 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in insertGroupThread()
447 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in delete1To1Thread()
456 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in deleteGroupThread()
472 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in update1To1Thread()
488 SQLiteDatabase db = mSqLiteOpenHelper.getWritableDatabase(); in updateGroupThread()
DCarrierIdProvider.java199 updateDatabaseFromPb(mDbHelper.getWritableDatabase()); in onCreate()
245 final long row = getWritableDatabase().insertOrThrow(CARRIER_ID_TABLE, null, in insert()
273 final int count = getWritableDatabase().delete(CARRIER_ID_TABLE, selection, in delete()
300 return updateDatabaseFromPb(getWritableDatabase()); in update()
302 final int count = getWritableDatabase().update(CARRIER_ID_TABLE, values, selection, in update()
322 SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in CarrierIdProvider
323 return mDbHelper.getWritableDatabase(); in getWritableDatabase()
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntryDatabaseHelper.java158 SQLiteDatabase db = getWritableDatabase(); in insert()
191 try (SQLiteDatabase db = getWritableDatabase()) { in insert()
207 SQLiteDatabase db = getWritableDatabase(); in update()
264 try (SQLiteDatabase db = getWritableDatabase()) { in delete()
293 SQLiteDatabase db = getWritableDatabase(); in insertUpdateAndDelete()
309 SQLiteDatabase db = getWritableDatabase(); in deleteAll()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java121 assertEquals(22, helper.getWritableDatabase().getVersion()); in testDowngrade_success_v22()
124 try (Cursor c = helper.getWritableDatabase().query(Favorites.TABLE_NAME, in testDowngrade_success_v22()
137 assertEquals(LauncherProvider.SCHEMA_VERSION, helper.getWritableDatabase().getVersion()); in testDowngrade_success_v22()
139 try (Cursor c = helper.getWritableDatabase().query(Favorites.TABLE_NAME, in testDowngrade_success_v22()
173 dbHelper.getWritableDatabase().insert(Favorites.TABLE_NAME, null, values); in setupTestDb()
/packages/apps/Gallery2/src/com/android/photos/data/
DSQLiteContentProvider.java121 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/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryDatabaseManager.java87 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insertAnomaly()
135 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in deleteAllAnomaliesBeforeTimeStamp()
154 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in updateAnomalies()
196 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insertAction()
211 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in deleteAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DBatteryDatabaseManager.java87 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insertAnomaly()
135 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in deleteAllAnomaliesBeforeTimeStamp()
154 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in updateAnomalies()
196 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insertAction()
211 SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in deleteAction()
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java284 SQLiteDatabase db = getWritableDatabase(); in insertSchedules()
302 SQLiteDatabase db = getWritableDatabase(); in updateSchedules()
321 SQLiteDatabase db = getWritableDatabase(); in deleteSchedules()
338 SQLiteDatabase db = getWritableDatabase(); in insertSeriesRecordings()
356 SQLiteDatabase db = getWritableDatabase(); in updateSeriesRecordings()
375 SQLiteDatabase db = getWritableDatabase(); in deleteSeriesRecordings()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/savedqueries/
DSavedQueryRemover.java40 final SQLiteDatabase database = getWritableDatabase(); in loadInBackground()
57 private SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in SavedQueryRemover
59 return IndexDatabaseHelper.getInstance(getContext()).getWritableDatabase(); in getWritableDatabase()
DSavedQueryRecorder.java60 final SQLiteDatabase database = getWritableDatabase(); in loadInBackground()
89 private SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in SavedQueryRecorder
91 return IndexDatabaseHelper.getInstance(getContext()).getWritableDatabase(); in getWritableDatabase()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java192 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/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailContentTable.java146 DatabaseModifier modifier = createDatabaseModifier(mDbHelper.getWritableDatabase()); in insert()
153 DatabaseModifier modifier = createDatabaseModifier(mDbHelper.getWritableDatabase()); in bulkInsert()
191 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insertRow()
232 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
289 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
DContactsDatabaseHelper.java1083 return writable ? getWritableDatabase() : getReadableDatabase(); in getDatabase()
2715 rebuildSearchIndex(getWritableDatabase(), true); in rebuildSearchIndex()
2786 SQLiteDatabase db = getWritableDatabase(); in setLocale()
3765 SQLiteDatabase db = getWritableDatabase(); in wipeData()
3862 SQLiteDatabase db = getWritableDatabase(); in getPackageId()
3880 SQLiteDatabase db = getWritableDatabase(); in getMimeTypeId()
3889 return lookupMimeTypeId(getWritableDatabase(), StructuredName.CONTENT_ITEM_TYPE); in getMimeTypeIdForStructuredName()
3893 return lookupMimeTypeId(getWritableDatabase(), StructuredPostal.CONTENT_ITEM_TYPE); in getMimeTypeIdForStructuredPostal()
3897 return lookupMimeTypeId(getWritableDatabase(), Organization.CONTENT_ITEM_TYPE); in getMimeTypeIdForOrganization()
3901 return lookupMimeTypeId(getWritableDatabase(), Im.CONTENT_ITEM_TYPE); in getMimeTypeIdForIm()
[all …]
DContactsUpgradeReceiver.java87 helper.getWritableDatabase(); in onReceive()
90 profileHelper.getWritableDatabase(); in onReceive()
91 calllogHelper.getWritableDatabase(); in onReceive()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberDatabaseHelper.java104 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in BlockedNumberDatabaseHelper
105 return mOpenHelper.getWritableDatabase(); in getWritableDatabase()
109 getWritableDatabase().execSQL("DELETE FROM " + Tables.BLOCKED_NUMBERS); in wipeForTest()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java44 mOpenHelper.getWritableDatabase().delete(mTableName, whereClause, whereArgs); in delete()
60 mOpenHelper.getWritableDatabase().insertWithOnConflict( in insertOrReplace()
83 mOpenHelper.clearDB(mOpenHelper.getWritableDatabase()); in clear()

123456