Home
last modified time | relevance | path

Searched refs:volumeName (Results 1 – 25 of 35) sorted by relevance

12

/packages/providers/MediaProvider/src/com/android/providers/media/
DDatabaseBackupAndRecovery.java198 protected boolean isStableUrisEnabled(String volumeName) { in isStableUrisEnabled() argument
200 if (MediaStore.VOLUME_INTERNAL.equalsIgnoreCase(volumeName) in isStableUrisEnabled()
205 if (MediaStore.VOLUME_EXTERNAL_PRIMARY.equalsIgnoreCase(volumeName) in isStableUrisEnabled()
211 if (!MediaStore.VOLUME_INTERNAL.equalsIgnoreCase(volumeName) in isStableUrisEnabled()
212 && !MediaStore.VOLUME_EXTERNAL_PRIMARY.equalsIgnoreCase(volumeName) in isStableUrisEnabled()
222 switch (volumeName) { in isStableUrisEnabled()
249 protected synchronized void setupVolumeDbBackupAndRecovery(String volumeName) { in setupVolumeDbBackupAndRecovery() argument
252 if (MediaStore.VOLUME_INTERNAL.equalsIgnoreCase(volumeName)) { in setupVolumeDbBackupAndRecovery()
262 if (mSetupCompleteVolumes.contains(volumeName)) { in setupVolumeDbBackupAndRecovery()
268 int vol = MediaStore.VOLUME_EXTERNAL_PRIMARY.equalsIgnoreCase(volumeName) in setupVolumeDbBackupAndRecovery()
[all …]
DVolumeCache.java90 public @NonNull MediaVolume findVolume(@NonNull String volumeName, @NonNull UserHandle user) in findVolume() argument
94 if (vol.getName().equals(volumeName) && vol.isVisibleToUser(user)) { in findVolume()
100 throw new FileNotFoundException("Couldn't find volume with name " + volumeName); in findVolume()
103 public @NonNull File getVolumePath(@NonNull String volumeName, @NonNull UserHandle user) in getVolumePath() argument
107 MediaVolume volume = findVolume(volumeName, user); in getVolumePath()
110 if (!MediaStore.isKnownVolume(volumeName)) { in getVolumePath()
111 Log.w(TAG, "getVolumePath for unknown volume: " + volumeName); in getVolumePath()
117 return FileUtils.getVolumePath(userContext, volumeName); in getVolumePath()
121 public @NonNull Collection<File> getVolumeScanPaths(@NonNull String volumeName, in getVolumeScanPaths() argument
124 if (MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in getVolumeScanPaths()
[all …]
DMediaService.java152 final String volumeName = volume.getName(); in onScanVolume() local
153 if (!MediaStore.VOLUME_INTERNAL.equals(volumeName) && volume.getPath() == null) { in onScanVolume()
160 volumeName)); in onScanVolume()
171 if (!MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in onScanVolume()
180 if (!MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in onScanVolume()
194 values.put(MediaStore.MEDIA_SCANNER_VOLUME, volumeName); in onScanVolume()
202 if (MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in onScanVolume()
203 for (File dir : FileUtils.getVolumeScanPaths(context, volumeName)) { in onScanVolume()
DMediaProvider.java534 public MediaVolume getVolume(@NonNull String volumeName) throws FileNotFoundException { in getVolume() argument
535 return mVolumeCache.findVolume(volumeName, mCallingIdentity.get().getUser()); in getVolume()
539 public File getVolumePath(@NonNull String volumeName) throws FileNotFoundException { in getVolumePath() argument
546 return mVolumeCache.getVolumePath(volumeName, mCallingIdentity.get().getUser()); in getVolumePath()
550 private Collection<File> getAllowedVolumePaths(String volumeName) in getAllowedVolumePaths() argument
561 Collection<File> volumeScanPaths = mVolumeCache.getVolumeScanPaths(volumeName, in getAllowedVolumePaths()
565 Log.e(TAG, volumeName + " has no associated path for user: " + user); in getAllowedVolumePaths()
913 final String volumeName = row.getVolumeName(); in updateQuotaTypeForUri() local
917 if (!MediaStore.VOLUME_EXTERNAL_PRIMARY.equalsIgnoreCase(volumeName)) { in updateQuotaTypeForUri()
1138 public void onStarted(ContentProviderClient client, String volumeName) {
[all …]
DDatabaseHelper.java241 void onSchemaChange(@NonNull String volumeName, int versionFrom, int versionTo, in onSchemaChange() argument
256 void onStarted(ContentProviderClient client, String volumeName); in onStarted() argument
258 void onProgress(ContentProviderClient client, String volumeName, in onProgress() argument
261 void onFinished(ContentProviderClient client, String volumeName); in onFinished() argument
383 final String volumeName = split[0]; in onConfigure()
396 .setVolumeName(volumeName) in onConfigure()
420 final String volumeName = split[0]; in onConfigure()
444 .setVolumeName(volumeName) in onConfigure()
457 .setVolumeName(volumeName) in onConfigure()
482 final String volumeName = split[0]; in onConfigure()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DMetrics.java51 public static void logScan(@NonNull String volumeName, int reason, long itemCount, in logScan() argument
55 volumeName, translateReason(reason), itemCount, durationMillis, insertCount, in logScan()
64 translateVolumeName(volumeName), reason, itemCount, normalizedDurationMillis, in logScan()
71 public static void logDeletionPersistent(@NonNull String volumeName, String reason, in logDeletionPersistent() argument
78 .append(volumeName) in logDeletionPersistent()
89 public static void logDeletion(@NonNull String volumeName, int uid, String packageName, in logDeletion() argument
91 logDeletionPersistent(volumeName, packageName, countPerMediaType); in logDeletion()
93 translateVolumeName(volumeName), uid, itemCount); in logDeletion()
96 public static void logPermissionGranted(@NonNull String volumeName, int uid, String packageName, in logPermissionGranted() argument
100 volumeName, packageName, itemCount); in logPermissionGranted()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DMetricsTest.java36 final String volumeName = MediaStore.VOLUME_EXTERNAL_PRIMARY; in testSimple() local
39 Metrics.logScan(volumeName, MediaScanner.REASON_UNKNOWN, 42, 42, 42, 42, 42); in testSimple()
40 Metrics.logDeletionPersistent(volumeName, "scanReason", new int[] { 42 }); in testSimple()
41 Metrics.logDeletion(volumeName, 42, packageName, 42, new int[] { 42 }); in testSimple()
42 Metrics.logPermissionGranted(volumeName, 42, packageName, 42); in testSimple()
43 Metrics.logPermissionDenied(volumeName, 42, packageName, 42); in testSimple()
44 Metrics.logSchemaChange(volumeName, 42, 42, 42, 42, "UUID"); in testSimple()
45 Metrics.logIdleMaintenance(volumeName, 42, 42, 42, 42); in testSimple()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DMediaStore.java1336 @NonNull String volumeName) { in startLegacyMigration() argument
1338 resolver.call(AUTHORITY_LEGACY, START_LEGACY_MIGRATION_CALL, volumeName, null); in startLegacyMigration()
1352 @NonNull String volumeName) { in finishLegacyMigration() argument
1354 resolver.call(AUTHORITY_LEGACY, FINISH_LEGACY_MIGRATION_CALL, volumeName, null); in finishLegacyMigration()
2188 public static Uri getContentUri(String volumeName) { in getContentUri() argument
2189 return AUTHORITY_URI.buildUpon().appendPath(volumeName).appendPath("file").build(); in getContentUri()
2200 public static final Uri getContentUri(String volumeName, in getContentUri() argument
2202 return ContentUris.withAppendedId(getContentUri(volumeName), rowId); in getContentUri()
2207 public static Uri getMtpObjectsUri(@NonNull String volumeName) { in getMtpObjectsUri() argument
2208 return MediaStore.Files.getContentUri(volumeName); in getMtpObjectsUri()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DTestDatabaseBackupAndRecovery.java53 protected boolean isStableUrisEnabled(String volumeName) { in isStableUrisEnabled() argument
54 if (MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in isStableUrisEnabled()
61 protected String[] readBackedUpFilePaths(String volumeName, String lastReadValue, in readBackedUpFilePaths() argument
68 protected Optional<BackupIdRow> readDataFromBackup(String volumeName, in readDataFromBackup() argument
74 protected boolean isBackupPresent(String volumeName) { in isBackupPresent() argument
85 protected void setupVolumeDbBackupAndRecovery(String volumeName) {} in setupVolumeDbBackupAndRecovery() argument
DMediaProviderTest.java1649 private static void assertVolume(ContentValues values, String volumeName) { in assertVolume() argument
1650 assertEquals(volumeName, values.getAsString(ImageColumns.VOLUME_NAME)); in assertVolume()
1733 final String volumeName = MediaStore.VOLUME_EXTERNAL; in testRedactionForInvalidUris() local
1734 assertNull(mp.getRedactedUri(MediaStore.Images.Media.getContentUri(volumeName))); in testRedactionForInvalidUris()
1735 assertNull(mp.getRedactedUri(MediaStore.Video.Media.getContentUri(volumeName))); in testRedactionForInvalidUris()
1736 assertNull(mp.getRedactedUri(MediaStore.Audio.Media.getContentUri(volumeName))); in testRedactionForInvalidUris()
1737 assertNull(mp.getRedactedUri(MediaStore.Audio.Albums.getContentUri(volumeName))); in testRedactionForInvalidUris()
1738 assertNull(mp.getRedactedUri(MediaStore.Audio.Artists.getContentUri(volumeName))); in testRedactionForInvalidUris()
1739 assertNull(mp.getRedactedUri(MediaStore.Audio.Genres.getContentUri(volumeName))); in testRedactionForInvalidUris()
1740 assertNull(mp.getRedactedUri(MediaStore.Audio.Playlists.getContentUri(volumeName))); in testRedactionForInvalidUris()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAppsActivity.java38 String volumeName = null; in createSettingsFragment() local
41 volumeName = args.getString(EXTRA_VOLUME_NAME); in createSettingsFragment()
46 getArguments(volumeUuid, volumeName)); in createSettingsFragment()
49 private Bundle getArguments(String volumeUuid, String volumeName) { in getArguments() argument
52 b.putString(EXTRA_VOLUME_NAME, volumeName); in getArguments()
DAllAppsActivity.java38 String volumeName = null; in createSettingsFragment() local
41 volumeName = args.getString(EXTRA_VOLUME_NAME); in createSettingsFragment()
46 getArguments(volumeUuid, volumeName)); in createSettingsFragment()
49 private Bundle getArguments(String volumeUuid, String volumeName) { in getArguments() argument
52 b.putString(EXTRA_VOLUME_NAME, volumeName); in getArguments()
DAppsFragment.kt145 fun prepareArgs(b: Bundle, volumeUuid: String?, volumeName: String?) { in prepareArgs()
147 b.putString(AppsActivity.EXTRA_VOLUME_NAME, volumeName) in prepareArgs()
150 fun newInstance(volumeUuid: String?, volumeName: String?): AppsFragment { in newInstance()
152 prepareArgs(b, volumeUuid, volumeName) in newInstance()
DAllAppsFragment.java93 public static void prepareArgs(Bundle b, String volumeUuid, String volumeName) { in prepareArgs() argument
95 b.putString(AppsActivity.EXTRA_VOLUME_NAME, volumeName); in prepareArgs()
99 public static AllAppsFragment newInstance(String volumeUuid, String volumeName) { in newInstance() argument
101 prepareArgs(b, volumeUuid, volumeName); in newInstance()
115 final String volumeName = getArguments().getString(AppsActivity.EXTRA_VOLUME_NAME); in onActivityCreated() local
119 if (!TextUtils.isEmpty(volumeUuid) || !TextUtils.isEmpty(volumeName)) { in onActivityCreated()
/packages/providers/MediaProvider/src/com/android/providers/media/fuse/
DFuseDaemon.java224 public void setupPublicVolumeDbBackup(String volumeName) throws IOException { in setupPublicVolumeDbBackup() argument
229 native_setup_public_volume_db_backup(mPtr, volumeName); in setupPublicVolumeDbBackup()
248 public void backupVolumeDbData(String volumeName, String key, String value) throws IOException { in backupVolumeDbData() argument
253 native_backup_volume_db_data(mPtr, volumeName, key, value); in backupVolumeDbData()
260 public String[] readBackedUpFilePaths(String volumeName, String lastReadValue, int limit) in readBackedUpFilePaths() argument
266 return native_read_backed_up_file_paths(mPtr, volumeName, lastReadValue, limit); in readBackedUpFilePaths()
348 private native void native_setup_public_volume_db_backup(long daemon, String volumeName); in native_setup_public_volume_db_backup() argument
350 private native void native_backup_volume_db_data(long daemon, String volumeName, String key, in native_backup_volume_db_data() argument
352 private native String[] native_read_backed_up_file_paths(long daemon, String volumeName, in native_read_backed_up_file_paths() argument
/packages/providers/MediaProvider/src/com/android/providers/media/metrics/
DStorageAccessMetrics.java96 final String volumeName = MediaStore.getVolumeName( in logAccessViaFuse() local
98 logGeneralExternalStorageAccess(uid, volumeName); in logAccessViaFuse()
106 void logAccessViaMediaProvider(int uid, @NonNull String volumeName) { in logAccessViaMediaProvider() argument
112 logGeneralExternalStorageAccess(uid, volumeName); in logAccessViaMediaProvider()
120 private void logGeneralExternalStorageAccess(int uid, @NonNull String volumeName) { in logGeneralExternalStorageAccess() argument
121 switch (volumeName) { in logGeneralExternalStorageAccess()
DPulledMetrics.java111 public static void logVolumeAccessViaMediaProvider(int uid, @NonNull String volumeName) { in logVolumeAccessViaMediaProvider() argument
121 storageAccessMetrics.logAccessViaMediaProvider(uid, volumeName); in logVolumeAccessViaMediaProvider()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java1038 BasicFileAttributes attrs, String mimeType, int mediaType, String volumeName) { in scanItem() argument
1045 return scanItemDirectory(existingId, file, attrs, mimeType, volumeName); in scanItem()
1050 return scanItemAudio(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1052 return scanItemVideo(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1054 return scanItemImage(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1056 return scanItemPlaylist(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1058 return scanItemSubtitle(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1060 return scanItemDocument(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1062 return scanItemFile(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1256 File file, BasicFileAttributes attrs, String mimeType, String volumeName) { in scanItemDirectory() argument
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DFreeUpStorageFragment.java54 final String volumeName = getArguments().getString(AppsActivity.EXTRA_VOLUME_NAME); in onCreatePreferences() local
56 volumeName, applicationsState, getLifecycle(), in onCreatePreferences()
60 volumeName, applicationsState, getLifecycle(), in onCreatePreferences()
/packages/providers/MediaProvider/legacy/src/com/android/providers/media/
DLegacyMediaProvider.java89 final String volumeName = MediaStore.getVolumeName(uri); in getDatabaseForUri() local
90 switch (volumeName) { in getDatabaseForUri()
222 final String volumeName = arg; in call() local
223 switch (volumeName) { in call()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/
DAppsState.java42 public static void prepareArgs(Bundle b, String volumeUuid, String volumeName) { in prepareArgs() argument
44 b.putString(EXTRA_VOLUME_NAME, volumeName); in prepareArgs()
/packages/providers/MediaProvider/src/com/android/providers/media/dao/
DFileRow.java64 public Builder setVolumeName(String volumeName) { in setVolumeName() argument
65 this.mVolumeName = volumeName; in setVolumeName()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardMoveProgress.java50 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate() local
54 setBodyText(R.string.storage_wizard_move_progress_body, volumeName, appName); in onCreate()
DStorageWizardMoveConfirm.java70 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate() local
74 setBodyText(R.string.storage_wizard_move_confirm_body, appName, volumeName); in onCreate()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java520 final String volumeName = MediaStore.getVolumeName(mediaStoreUri); in convertToMediaStoreDownloadsUri() local
522 return MediaStore.Downloads.getContentUri(volumeName, id); in convertToMediaStoreDownloadsUri()
532 final String volumeName = sm.getStorageVolume(new File(path)).getMediaStoreVolumeName(); in getContentUriForPath() local
533 return MediaStore.Downloads.getContentUri(volumeName); in getContentUriForPath()
731 final String volumeName = matcher.group(1); in extractVolumeName() local
732 if (volumeName.equals("emulated")) { in extractVolumeName()
735 return normalizeUuid(volumeName); in extractVolumeName()

12