/frameworks/base/core/tests/coretests/src/android/app/ |
D | ApplicationPackageManagerTest.java | 19 import static android.os.storage.VolumeInfo.STATE_MOUNTED; 20 import static android.os.storage.VolumeInfo.STATE_UNMOUNTED; 27 import android.os.storage.VolumeInfo; 51 private static final VolumeInfo sInternalVol = new VolumeInfo("private", 52 VolumeInfo.TYPE_PRIVATE, null /*DiskInfo*/, null /*partGuid*/); 54 private static final VolumeInfo sAdoptedVol = new VolumeInfo("adopted", 55 VolumeInfo.TYPE_PRIVATE, null /*DiskInfo*/, null /*partGuid*/); 57 private static final VolumeInfo sPublicVol = new VolumeInfo("public", 58 VolumeInfo.TYPE_PUBLIC, null /*DiskInfo*/, null /*partGuid*/); 60 private static final VolumeInfo sPrivateUnmountedVol = new VolumeInfo("private2", [all …]
|
/frameworks/base/core/java/android/os/storage/ |
D | VolumeInfo.java | 70 public class VolumeInfo implements Parcelable { class 109 private static final Comparator<VolumeInfo> 110 sDescriptionComparator = new Comparator<VolumeInfo>() { 112 public int compare(VolumeInfo lhs, VolumeInfo rhs) { 113 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(lhs.getId())) { 126 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTED, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put() 127 sStateToEnvironment.put(VolumeInfo.STATE_CHECKING, Environment.MEDIA_CHECKING); in sStateToEnvironment.put() 128 sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED, Environment.MEDIA_MOUNTED); in sStateToEnvironment.put() 129 … sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED_READ_ONLY, Environment.MEDIA_MOUNTED_READ_ONLY); in sStateToEnvironment.put() 130 sStateToEnvironment.put(VolumeInfo.STATE_FORMATTING, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put() [all …]
|
D | IStorageEventListener.aidl | 20 import android.os.storage.VolumeInfo; 50 void onVolumeStateChanged(in VolumeInfo vol, int oldState, int newState) = 2; in onVolumeStateChanged()
|
D | StorageManager.java | 361 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged() 834 public @Nullable VolumeInfo findVolumeById(String id) { in findVolumeById() 837 for (VolumeInfo vol : getVolumes()) { in findVolumeById() 847 public @Nullable VolumeInfo findVolumeByUuid(String fsUuid) { in findVolumeByUuid() 850 for (VolumeInfo vol : getVolumes()) { in findVolumeByUuid() 871 public @Nullable VolumeInfo findPrivateForEmulated(VolumeInfo emulatedVol) { in findPrivateForEmulated() 886 public @Nullable VolumeInfo findEmulatedForPrivate(VolumeInfo privateVol) { in findEmulatedForPrivate() 896 public @Nullable VolumeInfo findVolumeByQualifiedUuid(String volumeUuid) { in findVolumeByQualifiedUuid() 898 return findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL); in findVolumeByQualifiedUuid() 924 for (VolumeInfo vol : mStorageManager.getVolumes(0)) { in getUuidForPath() [all …]
|
D | VolumeInfo.aidl | 19 parcelable VolumeInfo;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageVolumeProvider.java | 20 import android.os.storage.VolumeInfo; 38 List<VolumeInfo> getVolumes(); in getVolumes() 43 VolumeInfo findEmulatedForPrivate(VolumeInfo privateVolume); in findEmulatedForPrivate() 50 long getTotalBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException; in getTotalBytes() 57 long getFreeBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException; in getFreeBytes()
|
D | StorageManagerVolumeProvider.java | 21 import android.os.storage.VolumeInfo; 43 public List<VolumeInfo> getVolumes() { in getVolumes() 48 public VolumeInfo findEmulatedForPrivate(VolumeInfo privateVolume) { in findEmulatedForPrivate() 53 public long getTotalBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException { in getTotalBytes() 58 public long getFreeBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException { in getFreeBytes()
|
D | PrivateStorageInfo.java | 22 import android.os.storage.VolumeInfo; 47 for (VolumeInfo info : sm.getVolumes()) { in getPrivateStorageInfo() 48 if (info.getType() == VolumeInfo.TYPE_PRIVATE && info.isMountedReadable()) { in getPrivateStorageInfo() 60 public static long getTotalSize(VolumeInfo info, long totalInternalStorage) { in getTotalSize()
|
D | StorageMeasurement.java | 30 import android.os.storage.VolumeInfo; 102 private final VolumeInfo mVolume; 103 private final VolumeInfo mSharedVolume; 105 public StorageMeasurement(Context context, VolumeInfo volume, VolumeInfo sharedVolume) { in StorageMeasurement() 155 if (mVolume.getType() == VolumeInfo.TYPE_PUBLIC in measureExactStorage() 156 || mVolume.getType() == VolumeInfo.TYPE_STUB) { in measureExactStorage() 204 if ((mVolume.getType() == VolumeInfo.TYPE_PRIVATE) && mVolume.isMountedReadable()) { in measureExactStorage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 37 import android.os.storage.VolumeInfo; 79 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { 88 final VolumeInfo vol = mStorageManager.findVolumeByUuid(rec.getFsUuid()); 179 final List<VolumeInfo> vols = mStorageManager.getVolumes(); in start() 180 for (VolumeInfo vol : vols) { in start() 198 if (rec.getType() != VolumeInfo.TYPE_PRIVATE) continue; in updateMissingPrivateVolumes() 201 final VolumeInfo info = mStorageManager.findVolumeByUuid(fsUuid); in updateMissingPrivateVolumes() 245 .setSmallIcon(getSmallIcon(disk, VolumeInfo.STATE_UNMOUNTABLE)) in onDiskScannedInternal() 277 private void onVolumeStateChangedInternal(VolumeInfo vol) { in onVolumeStateChangedInternal() 279 case VolumeInfo.TYPE_PRIVATE: in onVolumeStateChangedInternal() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 29 import android.os.storage.VolumeInfo; 93 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testNoApps() 103 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testAppOnExternalVolume() 113 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testOneValidApp() 130 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testMultipleUsersOneApp() 151 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testAppNotFoundDoesntCauseCrash()
|
D | DiskStatsLoggingServiceTest.java | 42 import android.os.storage.VolumeInfo; 196 VolumeInfo volumeInfo = in testDontCrashOnRun() 197 new VolumeInfo(VolumeInfo.ID_PRIVATE_INTERNAL, VolumeInfo.TYPE_PRIVATE, null, null); in testDontCrashOnRun()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | StorageSessionController.java | 39 import android.os.storage.VolumeInfo; 80 public int getConnectionUserIdForVolume(VolumeInfo vol) { in getConnectionUserIdForVolume() 109 public void onVolumeMount(ParcelFileDescriptor deviceFd, VolumeInfo vol) in onVolumeMount() 145 public void notifyVolumeStateChanged(VolumeInfo vol) throws ExternalStorageServiceException { in notifyVolumeStateChanged() 215 public StorageUserConnection onVolumeRemove(VolumeInfo vol) { in onVolumeRemove() 247 public void onVolumeUnmount(VolumeInfo vol) { in onVolumeUnmount() 466 public static boolean isEmulatedOrPublic(VolumeInfo vol) { in isEmulatedOrPublic() 467 return vol.type == VolumeInfo.TYPE_EMULATED in isEmulatedOrPublic() 468 || (vol.type == VolumeInfo.TYPE_PUBLIC && vol.isVisible()); in isEmulatedOrPublic() 486 private static boolean isSupportedVolume(VolumeInfo vol) { in isSupportedVolume() [all …]
|
D | AppCollector.java | 32 import android.os.storage.VolumeInfo; 61 public AppCollector(Context context, @NonNull VolumeInfo volume) { in AppCollector() 99 private final VolumeInfo mVolume; 104 BackgroundHandler(Looper looper, @NonNull VolumeInfo volume, in BackgroundHandler()
|
D | FileCollector.java | 26 import android.os.storage.VolumeInfo; 198 VolumeInfo primaryVolume = pm.getPrimaryStorageCurrentVolume(); in getSystemSize() 201 VolumeInfo shared = sm.findEmulatedForPrivate(primaryVolume); in getSystemSize()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 117 import android.os.storage.VolumeInfo; 412 private final ArrayMap<String, VolumeInfo> mVolumes = new ArrayMap<>(); 464 private VolumeInfo findVolumeByIdOrThrow(String id) { in findVolumeByIdOrThrow() 466 final VolumeInfo vol = mVolumes.get(id); in findVolumeByIdOrThrow() 477 final VolumeInfo vol = mVolumes.valueAt(i); in findVolumeIdForPathOrThrow() 489 final VolumeInfo vol = mVolumes.valueAt(i); in findRecordForPath() 511 private @Nullable VolumeInfo findStorageForUuidAsUser(String volumeUuid, in findStorageForUuidAsUser() 515 return storage.findVolumeById(VolumeInfo.ID_EMULATED_INTERNAL + ";" + userId); in findStorageForUuidAsUser() 519 VolumeInfo info = storage.findVolumeByUuid(volumeUuid); in findStorageForUuidAsUser() 540 final VolumeInfo vol = mVolumes.valueAt(i); in shouldBenchmark() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageHelperTests.java | 19 import static android.os.storage.VolumeInfo.STATE_MOUNTED; 23 import android.os.storage.VolumeInfo; 57 VolumeInfo internalVol = new VolumeInfo("private", in createStorageManagerMock() 58 VolumeInfo.TYPE_PRIVATE, null /*DiskInfo*/, null /*partGuid*/); in createStorageManagerMock() 63 VolumeInfo adoptedVol = new VolumeInfo("adopted", in createStorageManagerMock() 64 VolumeInfo.TYPE_PRIVATE, null /*DiskInfo*/, null /*partGuid*/); in createStorageManagerMock() 69 VolumeInfo publicVol = new VolumeInfo("public", in createStorageManagerMock() 70 VolumeInfo.TYPE_PUBLIC, null /*DiskInfo*/, null /*partGuid*/); in createStorageManagerMock() 75 List<VolumeInfo> volumes = new ArrayList<>(); in createStorageManagerMock()
|
/frameworks/base/cmds/sm/src/com/android/commands/sm/ |
D | Sm.java | 27 import android.os.storage.VolumeInfo; 132 filterType = VolumeInfo.TYPE_PUBLIC; in runListVolumes() 134 filterType = VolumeInfo.TYPE_PRIVATE; in runListVolumes() 136 filterType = VolumeInfo.TYPE_EMULATED; in runListVolumes() 138 filterType = VolumeInfo.TYPE_STUB; in runListVolumes() 143 final VolumeInfo[] vols = mSm.getVolumes(0); in runListVolumes() 144 for (VolumeInfo vol : vols) { in runListVolumes() 146 final String envState = VolumeInfo.getEnvironmentForState(vol.getState()); in runListVolumes()
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | ExternalStorageProvider.java | 37 import android.os.storage.VolumeInfo; 127 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onCreate() 168 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in updateVolumesLocked() 169 for (VolumeInfo volume : volumes) { in updateVolumesLocked() 175 if (volume.getType() == VolumeInfo.TYPE_EMULATED) { in updateVolumesLocked() 198 final VolumeInfo privateVol = mStorageManager.findPrivateForEmulated(volume); in updateVolumesLocked() 202 } else if (volume.getType() == VolumeInfo.TYPE_PUBLIC in updateVolumesLocked() 203 || volume.getType() == VolumeInfo.TYPE_STUB) { in updateVolumesLocked() 239 if (volume.getType() != VolumeInfo.TYPE_EMULATED) { in updateVolumesLocked() 251 if (volume.getType() == VolumeInfo.TYPE_PUBLIC) { in updateVolumesLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserDataPreparerTest.java | 29 import android.os.storage.VolumeInfo; 91 VolumeInfo testVolume = new VolumeInfo("testuuid", VolumeInfo.TYPE_PRIVATE, null, null); in setup()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 56 import android.os.storage.VolumeInfo; 870 public int movePackage(String packageName, VolumeInfo vol) { in movePackage() 875 public VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { in getPackageCurrentVolume() 880 public List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { in getPackageCandidateVolumes() 885 public int movePrimaryStorage(VolumeInfo vol) { in movePrimaryStorage() 890 public VolumeInfo getPrimaryStorageCurrentVolume() { in getPrimaryStorageCurrentVolume() 895 public List<VolumeInfo> getPrimaryStorageCandidateVolumes() { in getPrimaryStorageCandidateVolumes()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/ |
D | PackageManagerStub.java | 37 import android.os.storage.VolumeInfo; 914 public int movePackage(String packageName, VolumeInfo vol) { in movePackage() 919 public VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { in getPackageCurrentVolume() 924 public List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { in getPackageCandidateVolumes() 929 public int movePrimaryStorage(VolumeInfo vol) { in movePrimaryStorage() 934 public VolumeInfo getPrimaryStorageCurrentVolume() { in getPrimaryStorageCurrentVolume() 939 public List<VolumeInfo> getPrimaryStorageCandidateVolumes() { in getPrimaryStorageCandidateVolumes()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 106 import android.os.storage.VolumeInfo; 2330 public int movePackage(String packageName, VolumeInfo vol) { in movePackage() 2333 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(vol.id)) { in movePackage() 2349 public @Nullable VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { in getPackageCurrentVolume() 2355 protected @Nullable VolumeInfo getPackageCurrentVolume(ApplicationInfo app, in getPackageCurrentVolume() 2358 return storage.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL); in getPackageCurrentVolume() 2365 public @NonNull List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { in getPackageCandidateVolumes() 2371 protected @NonNull List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app, in getPackageCandidateVolumes() 2373 final VolumeInfo currentVol = getPackageCurrentVolume(app, storageManager); in getPackageCandidateVolumes() 2374 final List<VolumeInfo> vols = storageManager.getVolumes(); in getPackageCandidateVolumes() [all …]
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockPackageManager.java | 56 import android.os.storage.VolumeInfo; 731 public int movePackage(String packageName, VolumeInfo vol) { in movePackage() 737 public VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { in getPackageCurrentVolume() 743 public List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { in getPackageCandidateVolumes() 749 public int movePrimaryStorage(VolumeInfo vol) { in movePrimaryStorage() 755 public VolumeInfo getPrimaryStorageCurrentVolume() { in getPrimaryStorageCurrentVolume() 761 public List<VolumeInfo> getPrimaryStorageCandidateVolumes() { in getPrimaryStorageCandidateVolumes()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/app/ |
D | MockPackageManager.java | 52 import android.os.storage.VolumeInfo; 1019 public int movePackage(@NonNull String packageName, @NonNull VolumeInfo vol) { in movePackage() 1025 public VolumeInfo getPackageCurrentVolume(@NonNull ApplicationInfo app) { in getPackageCurrentVolume() 1031 public List<VolumeInfo> getPackageCandidateVolumes(@NonNull ApplicationInfo app) { in getPackageCandidateVolumes() 1036 public int movePrimaryStorage(@NonNull VolumeInfo vol) { in movePrimaryStorage() 1042 public VolumeInfo getPrimaryStorageCurrentVolume() { in getPrimaryStorageCurrentVolume() 1048 public List<VolumeInfo> getPrimaryStorageCandidateVolumes() { in getPrimaryStorageCandidateVolumes()
|