Methods Summary |
---|
public final java.lang.String | getDescription()Returns the description string for the storage unit
return mDescription;
|
public long | getMaxFileSize()Returns maximum file size for the storage, or zero if it is unbounded.
return mMaxFileSize;
|
public final java.lang.String | getPath()Returns the file path for the storage unit's storage in the file system
return mPath;
|
public final long | getReserveSpace()Returns the amount of space to reserve on the storage file system.
This can be set to a non-zero value to prevent MTP from filling up the entire storage.
return mReserveSpace;
|
public final int | getStorageId()Returns the storage ID for the storage unit
return mStorageId;
|
public static int | getStorageId(int index)Generates a storage ID for storage of given index.
Index 0 is for primary external storage
// storage ID is 0x00010001 for primary storage,
// then 0x00020001, 0x00030001, etc. for secondary storages
return ((index + 1) << 16) + 1;
|
public final boolean | isRemovable()Returns true if the storage is removable.
return mRemovable;
|