Home
last modified time | relevance | path

Searched refs:MediaVolume (Results 1 – 9 of 9) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaVolume.java45 public final class MediaVolume implements Parcelable { class
100 private MediaVolume (@NonNull String name, UserHandle user, File path, String id, in MediaVolume() method in MediaVolume
110 private MediaVolume (Parcel in) { in MediaVolume() method in MediaVolume
123 MediaVolume that = (MediaVolume) obj; in equals()
163 public static MediaVolume fromStorageVolume(StorageVolume storageVolume) { in fromStorageVolume()
171 return new MediaVolume(name, user, path, id, externallyManaged, publicVolume); in fromStorageVolume()
174 public static MediaVolume fromInternal() { in fromInternal()
176 return new MediaVolume(name, null, null, null, false, false); in fromInternal()
201 public static final @android.annotation.NonNull Creator<MediaVolume> CREATOR
202 = new Creator<MediaVolume>() {
[all …]
DVolumeCache.java60 private final ArrayList<MediaVolume> mExternalVolumes = new ArrayList<>();
63 private final Map<MediaVolume, Collection<File>> mCachedVolumeScanPaths = new ArrayMap<>();
74 public @NonNull List<MediaVolume> getExternalVolumes() { in getExternalVolumes()
83 for (MediaVolume vol : mExternalVolumes) { in getExternalVolumeNames()
90 public @NonNull MediaVolume findVolume(@NonNull String volumeName, @NonNull UserHandle user) in findVolume()
93 for (MediaVolume vol : mExternalVolumes) { in findVolume()
107 MediaVolume volume = findVolume(volumeName, user); in getVolumePath()
129 MediaVolume volume = findVolume(volumeName, user); in getVolumeScanPaths()
145 public @NonNull MediaVolume findVolumeForFile(@NonNull File file) throws FileNotFoundException { in findVolumeForFile()
147 for (MediaVolume volume : mExternalVolumes) { in findVolumeForFile()
[all …]
DMediaService.java54 public static void queueVolumeScan(Context context, MediaVolume volume, int reason) { in queueVolumeScan()
93 final MediaVolume volume = intent.getParcelableExtra(EXTRA_MEDIAVOLUME); in onHandleWork()
131 MediaVolume mediaVolume = MediaVolume.fromStorageVolume(volume); in onMediaMountedBroadcast()
150 public static void onScanVolume(Context context, MediaVolume volume, int reason) in onScanVolume()
172 onScanVolume(context, MediaVolume.fromInternal(), reason); in onScanVolume()
DMediaProvider.java534 public MediaVolume getVolume(@NonNull String volumeName) throws FileNotFoundException { in getVolume()
816 for (MediaVolume vol : mVolumeCache.getExternalVolumes()) { in invalidateDentryForExternalStorage()
853 for (MediaVolume volume : mAttachedVolumes) {
1213 private void ensureDefaultFolders(@NonNull MediaVolume volume, @NonNull SQLiteDatabase db) { in ensureDefaultFolders()
1272 private void ensureThumbnailsValid(@NonNull MediaVolume volume, @NonNull SQLiteDatabase db) { in ensureThumbnailsValid()
1416 attachVolume(MediaVolume.fromInternal(), /* validate */ false, /* volumeState */ null); in onCreate()
1417 for (MediaVolume volume : mVolumeCache.getExternalVolumes()) { in onCreate()
1626 for (MediaVolume volume : mVolumeCache.getExternalVolumes()) { in onIdleMaintenance()
5376 MediaVolume volume = null;
7013 final MediaVolume volume = mVolumeCache.findVolume(volumeName,
[all …]
DDatabaseBackupAndRecovery.java329 for (MediaVolume mediaVolume : mVolumeCache.getExternalVolumes()) { in backupDatabases()
/packages/providers/MediaProvider/src/com/android/providers/media/fuse/
DExternalStorageServiceImpl.java38 import com.android.providers.media.MediaVolume;
109 MediaVolume volume = MediaVolume.fromStorageVolume(vol); in onVolumeStateChanged()
117 mediaProvider.detachVolume(MediaVolume.fromStorageVolume(vol)); in onVolumeStateChanged()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DLegacyMediaScanner.java22 import com.android.providers.media.MediaVolume;
50 public void onDetachVolume(MediaVolume volume) { in onDetachVolume()
DMediaScanner.java31 import com.android.providers.media.MediaVolume;
60 void onDetachVolume(@NonNull MediaVolume volume); in onDetachVolume()
DModernMediaScanner.java100 import com.android.providers.media.MediaVolume;
297 public void onDetachVolume(@NonNull MediaVolume volume) { in onDetachVolume()
357 private final MediaVolume mVolume;
400 mVolume = MediaVolume.fromStorageVolume(FileUtils.getStorageVolume(mContext, root)); in Scan()
402 mVolume = MediaVolume.fromInternal(); in Scan()