Searched refs:runWithTransaction (Results 1 – 13 of 13) sorted by relevance
601 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cv)); in testQueryMedia_match()605 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cv)); in testQueryMedia_match()651 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cvPending)); in testQueryMedia_noMatch()652 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cvTrashed)); in testQueryMedia_noMatch()677 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cv)); in testQueryMedia_withDateModified()681 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cv)); in testQueryMedia_withDateModified()722 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cv)); in testQueryMedia_withMimeType()824 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cv)); in testQueryMedia_withAlbumAndMimeType()879 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cv)); in testQueryMedia_withPageSize_returnsCorrectSortOrder()882 helper.runWithTransaction(db -> db.insert(TABLE_FILES, null, cv)); in testQueryMedia_withPageSize_returnsCorrectSortOrder()[all …]
243 return mDatabaseHelper.runWithTransaction((db) -> { in addDeletedMedia()267 return mDatabaseHelper.runWithTransaction(db -> { in removeDeletedMedia()278 final Cursor cursor = mDatabaseHelper.runWithTransaction(db -> {304 final Cursor cursor = mDatabaseHelper.runWithTransaction(db -> {413 return mDatabaseHelper.runWithTransaction(db -> {472 Cursor cursor = mDatabaseHelper.runWithTransaction(db -> {
116 mExternalDatabase.runWithTransaction( in addMediaGrantsForPackage()195 return mExternalDatabase.runWithTransaction( in removeMediaGrantsForPackage()300 return mExternalDatabase.runWithTransaction(322 return mExternalDatabase.runWithTransaction(
77 helper.get().runWithTransaction((db) -> { in tryMigratingDatabases()
381 internalDbHelper.runWithTransaction((db) -> { in backupInternalDatabase()447 externalDbHelper.runWithTransaction((db) -> { in backupExternalDatabase()1126 helper.runWithTransaction((db) -> { in updateBackup()
846 mExternalDatabase.runWithTransaction((db) -> {1637 mExternalDatabase.runWithTransaction((db) -> { in onIdleMaintenance()1644 final int staleThumbnails = mExternalDatabase.runWithTransaction((db) -> { in onIdleMaintenance()1661 final long itemCount = mExternalDatabase.runWithTransaction(DatabaseHelper::getItemCount); in onIdleMaintenance()1680 final List<String> userIds = mExternalDatabase.runWithTransaction((db) -> { in cleanMediaFilesForRemovedUser()1704 mExternalDatabase.runWithTransaction((db) -> { in cleanMediaFilesForRemovedUser()1734 final int stalePackages = mExternalDatabase.runWithTransaction((db) -> { in pruneStalePackages()1759 mExternalDatabase.runWithTransaction((db) -> { in deleteStaleVolumes()1797 mExternalDatabase.runWithTransaction((db) -> { in detectSpecialFormat()1919 return mExternalDatabase.runWithTransaction((db) -> { in deleteOrExtendExpiredItems()[all …]
884 public @NonNull <T> T runWithTransaction(@NonNull Function<SQLiteDatabase, T> op) { in runWithTransaction() method in DatabaseHelper
380 mExternalDatabase.runWithTransaction( in removeAllMediaGrantsForPackage()422 mExternalDatabase.runWithTransaction( in removeAllMediaGrantsForMultiplePackages()442 mExternalDatabase.runWithTransaction( in removeAllMediaGrantsForMultiplePackages()490 mExternalDatabase.runWithTransaction( in removeAllMediaGrants()613 return mExternalDatabase.runWithTransaction( in getMediaGrantRow()655 int numberOfUpdatedRows = mExternalDatabase.runWithTransaction( in updateFileValues()
205 try (Cursor c = sExternalDatabase.runWithTransaction( in getRowCountForTestPackage()
235 helper.runWithTransaction((db) -> { in testTransactions()
603 return helper.runWithTransaction((db) -> { in insert()647 return helper.runWithTransaction((db) -> {733 return helper.runWithTransaction((db) -> {
153 final long id = helper.runWithTransaction((db) -> { in insert()
306 <T> T runWithTransaction(@NonNull Function<SQLiteDatabase, T> op) { in runWithTransaction() method in LegacyDatabaseHelper