Home
last modified time | relevance | path

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

123

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java806 return writable ? getWritableDatabase() : getReadableDatabase(); in getDatabase()
3077 rebuildSearchIndex(getWritableDatabase(), true); in rebuildSearchIndex()
3146 SQLiteDatabase db = getWritableDatabase(); in setLocale()
4217 SQLiteDatabase db = getWritableDatabase(); in wipeData()
4306 final SQLiteStatement packageQuery = getWritableDatabase().compileStatement( in getPackageId()
4311 final SQLiteStatement packageInsert = getWritableDatabase().compileStatement( in getPackageId()
4331 return lookupMimeTypeId(mimetype, getWritableDatabase()); in getMimeTypeId()
4402 mDataMimetypeQuery = getWritableDatabase().compileStatement( in getDataMimeType()
4451 final SQLiteStatement select = getWritableDatabase().compileStatement( in getAccountIdOrNull()
4489 final SQLiteStatement insert = getWritableDatabase().compileStatement( in getOrCreateAccountIdInTransaction()
[all …]
DContactsProvider2.java1649 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in performBackgroundTask()
1744 SQLiteDatabase db = mContactsHelper.getWritableDatabase(); in changeLocaleInBackground()
1745 SQLiteDatabase profileDb = mProfileHelper.getWritableDatabase(); in changeLocaleInBackground()
1795 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in cleanupPhotoStore()
2234 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in onCommitTransactionInternal()
2285 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in flushTransactionalChanges()
2384 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in insertInTransaction()
2622 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in insertRawContact()
2689 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in insertDataGroupMembership()
2698 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in deleteDataGroupMembership()
[all …]
DVoicemailStatusTable.java64 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
78 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
104 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
DVoicemailContentTable.java120 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
161 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
216 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
DCallLogProvider.java225 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
253 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
276 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
DContactsUpgradeReceiver.java84 helper.getWritableDatabase(); in onReceive()
85 profileHelper.getWritableDatabase(); in onReceive()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java93 mDb = mOpenHelper.getWritableDatabase(); in insert()
119 mDb = mOpenHelper.getWritableDatabase(); in bulkInsert()
144 mDb = mOpenHelper.getWritableDatabase(); in update()
175 mDb = mOpenHelper.getWritableDatabase(); in delete()
213 mDb = mOpenHelper.getWritableDatabase(); in applyBatch()
/packages/apps/Browser/src/com/android/browser/provider/
DSQLiteContentProvider.java112 mDb = mOpenHelper.getWritableDatabase(); in insert()
132 mDb = mOpenHelper.getWritableDatabase(); in bulkInsert()
154 mDb = mOpenHelper.getWritableDatabase(); in update()
178 mDb = mOpenHelper.getWritableDatabase(); in delete()
200 mDb = mOpenHelper.getWritableDatabase(); in applyBatch()
DSnapshotProvider.java142 SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in SnapshotProvider
143 return mOpenHelper.getWritableDatabase(); in getWritableDatabase()
187 SQLiteDatabase db = getWritableDatabase(); in insert()
236 SQLiteDatabase db = getWritableDatabase(); in delete()
DBrowserProvider.java427 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in fixPicasaBookmark()
856 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
906 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
954 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
DBrowserProvider2.java514 SQLiteDatabase oldDb = helper.getWritableDatabase(); in importFromBrowserProvider()
1211 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteBookmarks()
1226 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteInTransaction()
1369 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertInTransaction()
1619 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in updateInTransaction()
1828 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in updateBookmarksInTransaction()
1965 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in updateHistoryInTransaction()
2067 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in pruneImages()
/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()
DMediaCacheDatabase.java116 SQLiteDatabase db = getWritableDatabase(); in getCached()
163 SQLiteDatabase db = getWritableDatabase(); in insert()
188 SQLiteDatabase db = getWritableDatabase(); in updateLength()
215 SQLiteDatabase db = getWritableDatabase(); in deleteRows()
237 SQLiteDatabase db = getWritableDatabase(); in deleteOldCached()
DPhotoProvider.java296 SQLiteDatabase db = getDatabaseHelper().getWritableDatabase(); in insertInTransaction()
333 SQLiteDatabase db = getDatabaseHelper().getWritableDatabase(); in updateInTransaction()
497 SQLiteDatabase db = getDatabaseHelper().getWritableDatabase(); in deleteCascade()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java190 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insertNewBroadcast()
216 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteBroadcast()
234 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteAllBroadcasts()
255 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in markBroadcastRead()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java517 db = mOpenHelper.getWritableDatabase(); in getSingleAddressId()
608 long result = mOpenHelper.getWritableDatabase().insert(TABLE_THREADS, null, values); in insertThread()
1172 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
1218 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteConversation()
1228 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
1238 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
1282 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in updateConversation()
DTelephonyProvider.java552 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
676 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
732 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
791 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in restoreDefaultAPN()
/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/Launcher2/src/com/android/launcher2/
DLauncherProvider.java118 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query()
143 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
157 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert()
179 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
190 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
228 mOpenHelper.loadFavorites(mOpenHelper.getWritableDatabase(), workspaceResId); in loadDefaultFavoritesIfNecessary()
255 mMaxId = initializeMaxId(getWritableDatabase()); in DatabaseHelper()
/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/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java258 SQLiteDatabase db = database.getWritableDatabase();
377 public synchronized SQLiteDatabase getWritableDatabase() { in getWritableDatabase() method in MediaProvider.DatabaseHelper
381 result = super.getWritableDatabase(); in getWritableDatabase()
394 result = super.getWritableDatabase(); in getWritableDatabase()
2696 SQLiteDatabase db = helper.getWritableDatabase(); in bulkInsert()
2868 SQLiteDatabase db = helper.getWritableDatabase(); in insertFile()
3276 : helper.getWritableDatabase()); in insertInternal()
3537 SQLiteDatabase db = helper.getWritableDatabase(); in processRemovedNoMediaPath()
3585 SQLiteDatabase idb = ihelper.getWritableDatabase(); in applyBatch()
3589 edb = ehelper.getWritableDatabase(); in applyBatch()
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java208 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
222 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
246 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java148 removeAllGrants(mDatabaseHelper.getWritableDatabase());
216 setGrantInternal(mDatabaseHelper.getWritableDatabase(), uid, alias, value);
286 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants()
/packages/providers/DrmProvider/src/com/android/providers/drm/
DDrmProvider.java234 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
349 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
375 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java233 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
391 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
435 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()

123