/frameworks/base/core/java/android/os/storage/ |
D | VolumeInfo.java | 65 public class VolumeInfo implements Parcelable { class 101 private static final Comparator<VolumeInfo> 102 sDescriptionComparator = new Comparator<VolumeInfo>() { 104 public int compare(VolumeInfo lhs, VolumeInfo rhs) { 105 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(lhs.getId())) { 118 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTED, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put() 119 sStateToEnvironment.put(VolumeInfo.STATE_CHECKING, Environment.MEDIA_CHECKING); in sStateToEnvironment.put() 120 sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED, Environment.MEDIA_MOUNTED); in sStateToEnvironment.put() 121 … sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED_READ_ONLY, Environment.MEDIA_MOUNTED_READ_ONLY); in sStateToEnvironment.put() 122 sStateToEnvironment.put(VolumeInfo.STATE_FORMATTING, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put() [all …]
|
D | StorageManager.java | 155 mCallback.onVolumeStateChanged((VolumeInfo) args.arg1, args.argi2, args.argi3); in handleMessage() 194 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged() 546 public @Nullable VolumeInfo findVolumeById(String id) { in findVolumeById() 549 for (VolumeInfo vol : getVolumes()) { in findVolumeById() 558 public @Nullable VolumeInfo findVolumeByUuid(String fsUuid) { in findVolumeByUuid() 561 for (VolumeInfo vol : getVolumes()) { in findVolumeByUuid() 582 public @Nullable VolumeInfo findPrivateForEmulated(VolumeInfo emulatedVol) { in findPrivateForEmulated() 591 public @Nullable VolumeInfo findEmulatedForPrivate(VolumeInfo privateVol) { in findEmulatedForPrivate() 600 public @Nullable VolumeInfo findVolumeByQualifiedUuid(String volumeUuid) { in findVolumeByQualifiedUuid() 602 return findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL); in findVolumeByQualifiedUuid() [all …]
|
D | IMountServiceListener.java | 87 final VolumeInfo vol = (VolumeInfo) data.readParcelable(null); in onTransact() 190 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) in onVolumeStateChanged() 301 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) in onVolumeStateChanged()
|
D | VolumeInfo.aidl | 19 parcelable VolumeInfo;
|
D | StorageEventListener.java | 41 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged()
|
D | VolumeRecord.java | 89 pw.printPair("type", DebugUtils.valueToString(VolumeInfo.class, "TYPE_", type)); in dump()
|
D | IMountService.java | 948 public VolumeInfo[] getVolumes(int _flags) throws RemoteException { in getVolumes() 951 VolumeInfo[] _result; in getVolumes() 957 _result = _reply.createTypedArray(VolumeInfo.CREATOR); in getVolumes() 1954 VolumeInfo[] volumes = getVolumes(_flags); in onTransact() 2452 public VolumeInfo[] getVolumes(int flags) throws RemoteException; in getVolumes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 36 import android.os.storage.VolumeInfo; 76 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { 85 final VolumeInfo vol = mStorageManager.findVolumeByUuid(rec.getFsUuid()); 174 final List<VolumeInfo> vols = mStorageManager.getVolumes(); in start() 175 for (VolumeInfo vol : vols) { in start() 187 if (rec.getType() != VolumeInfo.TYPE_PRIVATE) continue; in updateMissingPrivateVolumes() 190 final VolumeInfo info = mStorageManager.findVolumeByUuid(fsUuid); in updateMissingPrivateVolumes() 229 .setSmallIcon(getSmallIcon(disk, VolumeInfo.STATE_UNMOUNTABLE)) in onDiskScannedInternal() 258 private void onVolumeStateChangedInternal(VolumeInfo vol) { in onVolumeStateChangedInternal() 260 case VolumeInfo.TYPE_PRIVATE: in onVolumeStateChangedInternal() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | MountService.java | 80 import android.os.storage.VolumeInfo; 309 private final ArrayMap<String, VolumeInfo> mVolumes = new ArrayMap<>(); 330 private VolumeInfo findVolumeByIdOrThrow(String id) { in findVolumeByIdOrThrow() 332 final VolumeInfo vol = mVolumes.get(id); in findVolumeByIdOrThrow() 343 final VolumeInfo vol = mVolumes.valueAt(i); in findVolumeIdForPathOrThrow() 355 final VolumeInfo vol = mVolumes.valueAt(i); in findRecordForPath() 377 private @Nullable VolumeInfo findStorageForUuid(String volumeUuid) { in findStorageForUuid() 380 return storage.findVolumeById(VolumeInfo.ID_EMULATED_INTERNAL); in findStorageForUuid() 399 final VolumeInfo vol = mVolumes.valueAt(i); in shouldBenchmark() 669 final VolumeInfo vol = (VolumeInfo) msg.obj; in handleMessage() [all …]
|
/frameworks/base/cmds/sm/src/com/android/commands/sm/ |
D | Sm.java | 25 import android.os.storage.VolumeInfo; 114 filterType = VolumeInfo.TYPE_PUBLIC; in runListVolumes() 116 filterType = VolumeInfo.TYPE_PRIVATE; in runListVolumes() 118 filterType = VolumeInfo.TYPE_EMULATED; in runListVolumes() 123 final VolumeInfo[] vols = mSm.getVolumes(0); in runListVolumes() 124 for (VolumeInfo vol : vols) { in runListVolumes() 126 final String envState = VolumeInfo.getEnvironmentForState(vol.getState()); in runListVolumes()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageMeasurement.java | 38 import android.os.storage.VolumeInfo; 139 private final VolumeInfo mVolume; 140 private final VolumeInfo mSharedVolume; 145 public StorageMeasurement(Context context, VolumeInfo volume, VolumeInfo sharedVolume) { in StorageMeasurement() 385 if (mSharedVolume.getType() == VolumeInfo.TYPE_EMULATED) { in measureExactStorage() 403 if (mVolume.getType() == VolumeInfo.TYPE_PRIVATE) { in measureExactStorage()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 75 import android.os.storage.VolumeInfo; 1757 public int movePackage(String packageName, VolumeInfo vol) { in movePackage() 1760 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(vol.id)) { in movePackage() 1775 public @Nullable VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { in getPackageCurrentVolume() 1778 return storage.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL); in getPackageCurrentVolume() 1787 public @NonNull List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { in getPackageCandidateVolumes() 1789 final VolumeInfo currentVol = getPackageCurrentVolume(app); in getPackageCandidateVolumes() 1790 final List<VolumeInfo> vols = storage.getVolumes(); in getPackageCandidateVolumes() 1791 final List<VolumeInfo> candidates = new ArrayList<>(); in getPackageCandidateVolumes() 1792 for (VolumeInfo vol : vols) { in getPackageCandidateVolumes() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 54 import android.os.storage.VolumeInfo; 801 public int movePackage(String packageName, VolumeInfo vol) { in movePackage() 806 public VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { in getPackageCurrentVolume() 811 public List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { in getPackageCandidateVolumes() 816 public int movePrimaryStorage(VolumeInfo vol) { in movePrimaryStorage() 821 public VolumeInfo getPrimaryStorageCurrentVolume() { in getPrimaryStorageCurrentVolume() 826 public List<VolumeInfo> getPrimaryStorageCandidateVolumes() { in getPrimaryStorageCandidateVolumes()
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | ExternalStorageProvider.java | 39 import android.os.storage.VolumeInfo; 131 VolumeInfo primaryVolume = null; in updateVolumesLocked() 133 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in updateVolumesLocked() 134 for (VolumeInfo volume : volumes) { in updateVolumesLocked() 139 if (volume.getType() == VolumeInfo.TYPE_EMULATED) { in updateVolumesLocked() 145 if (VolumeInfo.ID_EMULATED_INTERNAL.equals(volume.getId())) { in updateVolumesLocked() 161 final VolumeInfo privateVol = mStorageManager.findPrivateForEmulated(volume); in updateVolumesLocked() 164 } else if (volume.getType() == VolumeInfo.TYPE_PUBLIC) { in updateVolumesLocked() 206 if (volume.getType() == VolumeInfo.TYPE_PUBLIC) { in updateVolumesLocked()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 54 import android.os.storage.VolumeInfo; 642 public int movePackage(String packageName, VolumeInfo vol) { in movePackage() 648 public VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { in getPackageCurrentVolume() 654 public List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { in getPackageCandidateVolumes() 660 public int movePrimaryStorage(VolumeInfo vol) { in movePrimaryStorage() 666 public VolumeInfo getPrimaryStorageCurrentVolume() { in getPrimaryStorageCurrentVolume() 672 public List<VolumeInfo> getPrimaryStorageCandidateVolumes() { in getPrimaryStorageCandidateVolumes()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 36 import android.os.storage.VolumeInfo; 366 VolumeInfo bestCandidate = null; in resolveInstallVolume() 368 for (VolumeInfo vol : storageManager.getVolumes()) { in resolveInstallVolume() 369 if (vol.type == VolumeInfo.TYPE_PRIVATE && vol.isMountedWritable()) { in resolveInstallVolume()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | OpenExternalDirectoryActivity.java | 64 import android.os.storage.VolumeInfo; 202 final List<VolumeInfo> volumes = sm.getVolumes(); in showFragment() 206 for (VolumeInfo volume : volumes) { in showFragment() 287 private static boolean isRightVolume(VolumeInfo volume, String root, int userId) { in isRightVolume()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManager.java | 52 import android.os.storage.VolumeInfo; 5564 public abstract int movePackage(String packageName, VolumeInfo vol); in movePackage() 5566 public abstract @Nullable VolumeInfo getPackageCurrentVolume(ApplicationInfo app); in getPackageCurrentVolume() 5568 public abstract @NonNull List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app); in getPackageCandidateVolumes() 5571 public abstract int movePrimaryStorage(VolumeInfo vol); in movePrimaryStorage() 5573 public abstract @Nullable VolumeInfo getPrimaryStorageCurrentVolume(); in getPrimaryStorageCurrentVolume() 5575 public abstract @NonNull List<VolumeInfo> getPrimaryStorageCandidateVolumes(); in getPrimaryStorageCandidateVolumes()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSettingBase.java | 26 import android.os.storage.VolumeInfo;
|
D | PackageManagerService.java | 198 import android.os.storage.VolumeInfo; 2010 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { 2011 if (vol.type == VolumeInfo.TYPE_PRIVATE) { 2012 if (vol.state == VolumeInfo.STATE_MOUNTED) { 2026 } else if (vol.state == VolumeInfo.STATE_EJECTING) { 2031 if (vol.type == VolumeInfo.TYPE_PUBLIC && vol.isPrimary()) { 2032 if (vol.state == VolumeInfo.STATE_MOUNTED) { 2034 } else if (vol.state == VolumeInfo.STATE_EJECTING) { 19188 private void loadPrivatePackages(final VolumeInfo vol) { 19197 private void loadPrivatePackagesInner(VolumeInfo vol) { [all …]
|
D | Settings.java | 64 import android.os.storage.VolumeInfo;
|
/frameworks/base/ |
D | compiled-classes-phone | 3251 android.os.storage.VolumeInfo 3252 android.os.storage.VolumeInfo$1 3253 android.os.storage.VolumeInfo$2
|