Class of android.os.storage · StorageManager.java · Android's reference
public class StorageManager
The storage volumes: one, the primary shared storage.
public static final UUID UUID_DEFAULT sourcepublic static final String ACTION_MANAGE_STORAGE = "android.os.storage.action.MANAGE_STORAGE" sourcepublic StorageManager() empty body sourcepublic StorageVolume getPrimaryStorageVolume() sourcepublic List<StorageVolume> getStorageVolumes() sourcepublic StorageVolume getStorageVolume(File file) sourcepublic StorageVolume getStorageVolume(Uri uri) sourceThe volume of a MediaStore item, which is the primary volume.
public UUID getUuidForPath(File path) sourcepublic long getAllocatableBytes(UUID storageUuid) throws java.io.IOException sourcepublic void allocateBytes(UUID storageUuid, long bytes) throws java.io.IOException empty body sourcepublic long getCacheQuotaBytes(UUID storageUuid) sourcepublic boolean isEncrypted(File file) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.