public final class ConfigurationStats
extends Object implements Parcelable
| java.lang.Object | |
| android.app.usage.ConfigurationStats | |
代表特定时间范围内设备 Configuration的使用情况统计信息。
Inherited constants |
|---|
android.os.Parcelable
|
Fields |
|
|---|---|
public static final Creator<ConfigurationStats> |
CREATOR |
Public constructors |
|
|---|---|
ConfigurationStats(ConfigurationStats stats) |
|
公共方法(Public methods) |
|
|---|---|
int |
describeContents() 描述此Parcelable实例的封送表示中包含的特殊对象的种类。 |
int |
getActivationCount() 获取此配置处于活动状态的次数。 |
Configuration |
getConfiguration() |
long |
getFirstTimeStamp() 获取这个 |
long |
getLastTimeActive() 获取该配置最后一次激活时间,自纪元开始以毫秒为单位进行测量。 |
long |
getLastTimeStamp() 获得这个 |
long |
getTotalTimeActive() 获取此配置处于活动状态的总时间,以毫秒为单位。 |
void |
writeToParcel(Parcel dest, int flags) 将此对象平铺到一个包裹中。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
android.os.Parcelable
|
|
ConfigurationStats (ConfigurationStats stats)
| 参数(Parameters) | |
|---|---|
stats |
ConfigurationStats
|
int describeContents ()
描述此Parcelable实例的封送表示中包含的特殊对象的种类。 例如,如果对象将在writeToParcel(Parcel, int)的输出中包含writeToParcel(Parcel, int) ,则此方法的返回值必须包含CONTENTS_FILE_DESCRIPTOR位。
| 返回(Returns) | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. |
long getFirstTimeStamp ()
获取这个 ConfigurationStats表示的时间范围的开始,以时间为单位以毫秒为单位。
currentTimeMillis().
| 返回(Returns) | |
|---|---|
long |
|
long getLastTimeActive ()
获取该配置最后一次激活时间,自纪元开始以毫秒为单位进行测量。
SeecurrentTimeMillis().
| 返回(Returns) | |
|---|---|
long |
|
long getLastTimeStamp ()
获得这个 ConfigurationStats表示的时间范围的结束,以时间自毫秒计算。
currentTimeMillis().
| 返回(Returns) | |
|---|---|
long |
|
long getTotalTimeActive ()
获取此配置处于活动状态的总时间,以毫秒为单位。
| 返回(Returns) | |
|---|---|
long |
|
void writeToParcel (Parcel dest, int flags)
将此对象平铺到一个包裹中。
| 参数(Parameters) | |
|---|---|
dest |
Parcel: The Parcel in which the object should be written. |
flags |
int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. |