java.lang.Object | |
↳ | android.app.usage.UsageStats |
Contains usage statistics for an app package for a specific time range.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add the statistics from the right
UsageStats to the left.
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Get the beginning of the time range this
UsageStats represents,
measured in milliseconds since the epoch.
| |||||||||||
Get the end of the time range this
UsageStats represents,
measured in milliseconds since the epoch.
| |||||||||||
Get the last time this package was used, measured in milliseconds since the epoch.
| |||||||||||
Get the total time this package spent in the foreground, measured in milliseconds.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Add the statistics from the right UsageStats
to the left. The package name for
both UsageStats
objects must be the same.
right | The UsageStats object to merge into this one. |
---|
IllegalArgumentException | if the package names of the two
UsageStats objects are different.
|
---|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Get the beginning of the time range this UsageStats
represents,
measured in milliseconds since the epoch.
currentTimeMillis()
.
Get the end of the time range this UsageStats
represents,
measured in milliseconds since the epoch.
currentTimeMillis()
.
Get the last time this package was used, measured in milliseconds since the epoch.
SeecurrentTimeMillis()
.
Get the total time this package spent in the foreground, measured in milliseconds.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|