public static class StorageMeasurement.MeasurementDetails extends Object
Modifier and Type | Field and Description |
---|---|
SparseLongArray |
appsSize
Total apps disk usage per profiles of the current user.
|
long |
availSize |
long |
cacheSize
Total cache disk usage by apps (over all users and profiles).
|
SparseArray<HashMap<String,Long>> |
mediaSize
Total media disk usage, categorized by types such as
Environment.DIRECTORY_MUSIC for every user profile of the current user. |
SparseLongArray |
miscSize
Misc external disk usage for the current user's profiles, unaccounted in
mediaSize . |
long |
totalSize |
SparseLongArray |
usersSize
Total disk usage for users, which is only meaningful for emulated
internal storage.
|
Constructor and Description |
---|
MeasurementDetails() |
public long totalSize
public long availSize
public SparseLongArray appsSize
When measuring internal storage, this value includes the code size of all apps (regardless of install status for the given profile), and internal disk used by the profile's apps. When the device emulates external storage, this value also includes emulated storage used by the profile's apps.
When measuring a physical StorageVolume
, this value includes
usage by all apps on that volume and only for the primary profile.
Key is UserHandle
.
public long cacheSize
public SparseArray<HashMap<String,Long>> mediaSize
Environment.DIRECTORY_MUSIC
for every user profile of the current user.
When measuring internal storage, this reflects media on emulated storage for the respective profile.
When measuring a physical StorageVolume
, this reflects media
on that volume.
Key of the SparseArray
is UserHandle
.
public SparseLongArray miscSize
mediaSize
. Key is UserHandle
.public SparseLongArray usersSize
UserHandle
.public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())