StorageManager

Class of android.os.storage · StorageManager.java · Android's reference

public class StorageManager

The storage volumes: one, the primary shared storage.

Fields

public static final UUID UUID_DEFAULT source
public static final String ACTION_MANAGE_STORAGE = "android.os.storage.action.MANAGE_STORAGE" source

Constructors

public StorageManager() empty body source

Methods

public StorageVolume getPrimaryStorageVolume() source
public List<StorageVolume> getStorageVolumes() source
public StorageVolume getStorageVolume(File file) source
public StorageVolume getStorageVolume(Uri uri) source

The volume of a MediaStore item, which is the primary volume.

public UUID getUuidForPath(File path) source
public long getAllocatableBytes(UUID storageUuid) throws java.io.IOException source
public void allocateBytes(UUID storageUuid, long bytes) throws java.io.IOException empty body source
public long getCacheQuotaBytes(UUID storageUuid) source
public boolean isEncrypted(File file) source

Made 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.