Home
last modified time | relevance | path

Searched refs:runWithTransaction (Results 1 – 13 of 13) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DExternalDbFacadeTest.java601 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 …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DExternalDbFacade.java243 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 -> {
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaGrants.java116 mExternalDatabase.runWithTransaction( in addMediaGrantsForPackage()
195 return mExternalDatabase.runWithTransaction( in removeMediaGrantsForPackage()
300 return mExternalDatabase.runWithTransaction(
322 return mExternalDatabase.runWithTransaction(
DMediaUpgradeReceiver.java77 helper.get().runWithTransaction((db) -> { in tryMigratingDatabases()
DDatabaseBackupAndRecovery.java381 internalDbHelper.runWithTransaction((db) -> { in backupInternalDatabase()
447 externalDbHelper.runWithTransaction((db) -> { in backupExternalDatabase()
1126 helper.runWithTransaction((db) -> { in updateBackup()
DMediaProvider.java846 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 …]
DDatabaseHelper.java884 public @NonNull <T> T runWithTransaction(@NonNull Function<SQLiteDatabase, T> op) { in runWithTransaction() method in DatabaseHelper
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaGrantsTest.java380 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()
DMediaGrantsAppOpStateTest.java205 try (Cursor c = sExternalDatabase.runWithTransaction( in getRowCountForTestPackage()
DDatabaseHelperTest.java235 helper.runWithTransaction((db) -> { in testTransactions()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSQLiteQueryBuilder.java603 return helper.runWithTransaction((db) -> { in insert()
647 return helper.runWithTransaction((db) -> {
733 return helper.runWithTransaction((db) -> {
/packages/providers/MediaProvider/legacy/src/com/android/providers/media/
DLegacyMediaProvider.java153 final long id = helper.runWithTransaction((db) -> { in insert()
DLegacyDatabaseHelper.java306 <T> T runWithTransaction(@NonNull Function<SQLiteDatabase, T> op) { in runWithTransaction() method in LegacyDatabaseHelper