Home
last modified time | relevance | path

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

1234

/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java133 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query()
172 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
202 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert()
225 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in applyBatch()
241 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
254 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
304 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteEmptyFolders()
361 mOpenHelper.createEmptyDB(mOpenHelper.getWritableDatabase()); in createEmptyDB()
408 if ((mOpenHelper.loadFavorites(mOpenHelper.getWritableDatabase(), loader) <= 0) in loadDefaultFavoritesIfNecessary()
412 mOpenHelper.loadFavorites(mOpenHelper.getWritableDatabase(), in loadDefaultFavoritesIfNecessary()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DSmartDialPrefixTest.java85 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in tearDown()
97 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForFullName()
135 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForPartialName()
170 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForNameTokens()
191 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForInitialMatches()
235 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForInitialMatchesForLongTokenNames()
264 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testCheckLongToken()
287 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testAccentedCharacters()
307 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testNumbersInName()
328 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForNumbers()
[all …]
DDialerDatabaseHelperTest.java52 mDb = mTestHelper.getWritableDatabase(); in setUp()
57 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in tearDown()
/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/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()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogDatabaseHelper.java211 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in CallLogDatabaseHelper
212 return mOpenHelper.getWritableDatabase(); in getWritableDatabase()
220 PropertyUtils.setProperty(getWritableDatabase(), key, value); in setProperty()
322 return ContactsDatabaseHelper.getInstance(mContext).getWritableDatabase(); in getContactsWritableDatabaseForMigration()
331 getWritableDatabase().execSQL("DELETE FROM " + Tables.CALLS); in wipeForTest()
DContactsUpgradeReceiver.java89 helper.getWritableDatabase(); in onReceive()
92 profileHelper.getWritableDatabase(); in onReceive()
93 calllogHelper.getWritableDatabase(); in onReceive()
DVoicemailStatusTable.java72 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
98 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
129 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
DContactMetadataProvider.java183 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
214 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
262 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
298 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in applyBatch()
317 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in bulkInsert()
DCallLogProvider.java339 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
374 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
404 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
589 mDbHelper.getWritableDatabase().execSQL( in adjustForNewPhoneAccountInternal()
599 mDbHelper.getWritableDatabase().execSQL(UNHIDE_BY_ADDRESS_QUERY, in adjustForNewPhoneAccountInternal()
619 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in copyEntriesFromCursor()
DVoicemailContentTable.java151 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
192 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
249 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberDatabaseHelper.java100 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in BlockedNumberDatabaseHelper
101 return mOpenHelper.getWritableDatabase(); in getWritableDatabase()
105 getWritableDatabase().execSQL("DELETE FROM " + Tables.BLOCKED_NUMBERS); in wipeForTest()
/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/apps/Launcher3/src/com/android/launcher3/util/
DSQLiteCacheHelper.java39 mOpenHelper.getWritableDatabase().update(mTableName, values, whereClause, whereArgs); in update()
55 mOpenHelper.getWritableDatabase().delete(mTableName, whereClause, whereArgs); in delete()
71 mOpenHelper.getWritableDatabase().insertWithOnConflict( in insertOrReplace()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetDatabaseHelper.java209 SQLiteDatabase db = getWritableDatabase(); in setPhoto()
225 getWritableDatabase().replaceOrThrow(TABLE_WIDGETS, null, values); in setWidget()
291 getWritableDatabase().insert(TABLE_WIDGETS, null, values); in updateEntry()
302 SQLiteDatabase db = getWritableDatabase(); in deleteEntry()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java124 mDbHelper.getWritableDatabase(), entry); in store()
150 mDbHelper.getWritableDatabase().delete( in lookup()
185 mDbHelper.getWritableDatabase().update(TABLE_NAME, in updateLastAccess()
238 mDbHelper.getWritableDatabase().delete(TABLE_NAME, in freeSomeSpaceIfNeed()
/packages/apps/Dialer/src/com/android/dialer/database/
DFilteredNumberProvider.java113 SQLiteDatabase db = mDialerDatabaseHelper.getWritableDatabase(); in insert()
143 SQLiteDatabase db = mDialerDatabaseHelper.getWritableDatabase(); in delete()
165 SQLiteDatabase db = mDialerDatabaseHelper.getWritableDatabase(); in update()
DVoicemailArchiveProvider.java109 SQLiteDatabase db = mDialerDatabaseHelper.getWritableDatabase(); in insert()
137 SQLiteDatabase db = mDialerDatabaseHelper.getWritableDatabase(); in delete()
161 SQLiteDatabase db = mDialerDatabaseHelper.getWritableDatabase(); in update()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java763 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertChannel()
781 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertProgram()
802 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertWatchedProgram()
831 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertRecordedProgram()
845 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
889 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
1092 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in applyBatch()
1112 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert()
1277 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in doInBackground()
1300 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteUnconsolidatedWatchedProgramsRows()
[all …]
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java226 removeAllGrants(mDatabaseHelper.getWritableDatabase());
301 setGrantInternal(mDatabaseHelper.getWritableDatabase(), uid, alias, value);
404 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeGrantsForAlias()
452 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants()
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java116 SQLiteDatabase db = getWritableDatabase(); in updateRecordings()
139 SQLiteDatabase db = getWritableDatabase(); in deleteRecordings()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java242 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
256 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
285 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java205 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
231 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
252 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSynchronousContactsProvider2.java195 SQLiteDatabase db = getDatabaseHelper(getContext()).getWritableDatabase();
217 SQLiteDatabase db = getDatabaseHelper(getContext()).getWritableDatabase();
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetProvider.java139 SQLiteDatabase db = getWritableDatabase(); in setPhoto()
200 SQLiteDatabase db = getWritableDatabase(); in deletePhoto()

1234