Searched refs:mExternalDatabase (Results 1 – 4 of 4) sorted by relevance
93 private DatabaseHelper mExternalDatabase; field in MediaGrants97 mExternalDatabase = externalDatabaseHelper; in MediaGrants()116 mExternalDatabase.runWithTransaction( in addMediaGrantsForPackage()165 return mExternalDatabase.runWithoutTransaction((db) -> { in getMediaGrantsForPackages()195 return mExternalDatabase.runWithTransaction( in removeMediaGrantsForPackage()300 return mExternalDatabase.runWithTransaction(322 return mExternalDatabase.runWithTransaction(
529 mExternalDatabase.setFilterVolumeNames(mVolumeCache.getExternalVolumeNames()); in updateVolumes()846 mExternalDatabase.runWithTransaction((db) -> {1362 mExternalDatabase = new DatabaseHelper(context, EXTERNAL_DATABASE_NAME, false, false, in onCreate()1365 mExternalDbFacade = new ExternalDbFacade(getContext(), mExternalDatabase, mVolumeCache); in onCreate()1367 mMediaGrants = new MediaGrants(mExternalDatabase); in onCreate()1545 return Optional.of(mExternalDatabase); in getDatabaseHelper()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()[all …]
56 private LegacyDatabaseHelper mExternalDatabase; field in LegacyMediaProvider83 mExternalDatabase = new LegacyDatabaseHelper(context, EXTERNAL_DATABASE_NAME, true); in onCreate()94 return Objects.requireNonNull(mExternalDatabase, "Missing external database"); in getDatabaseForUri()230 mExternalDatabase.close(); in call()
60 private DatabaseHelper mExternalDatabase; field in MediaGrantsTest94 mExternalDatabase = ((IsolatedContext) mIsolatedContext).getExternalDatabase(); in setUp()95 mGrants = new MediaGrants(mExternalDatabase); in setUp()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()