public final class BundleActiveInfos extends Object
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
merge(BundleActiveInfos src) |
Merges a specified
BundleActiveInfos object with this BundleActiveInfos object. |
long |
queryAbilityInFgWholeMs() |
Queries the total duration that the application is in the foreground.
|
long |
queryAbilityPrevAccessMs() |
Queries the last time when the application was accessed.
|
long |
queryAbilityPrevSeenMs() |
Queries the last time when the application was visible in the foreground.
|
long |
queryAbilitySeenWholeMs() |
Queries the total duration that the application is visible in the foreground.
|
String |
queryBundleName() |
Queries the bundle name of the application.
|
long |
queryFgAbilityAccessWholeMs() |
Queries the total duration that the application is used in the foreground.
|
long |
queryFgAbilityPrevAccessMs() |
Queries the last time when the foreground application was accessed.
|
long |
queryInfosBeginMs() |
Queries the time of the first bundle usage record in this
BundleActiveInfos object. |
long |
queryInfosEndMs() |
Queries the time of the last bundle usage record in this
BundleActiveInfos object. |
public long queryAbilityPrevAccessMs()
System.currentTimeMillis()public long queryAbilityInFgWholeMs()
System.currentTimeMillis()public void merge(BundleActiveInfos src)
BundleActiveInfos object with this BundleActiveInfos object.
The bundle name of both objects must be the same.src - Indicates the BundleActiveInfos object to merge.IllegalArgumentException - Throws this exception
if the bundle names of the two BundleActiveInfos objects are different.public long queryInfosBeginMs()
BundleActiveInfos object.
The time is the number of milliseconds calculated since 00:00:00 UTC on January 1, 1970 (epoch time).BundleActiveInfos object,
in milliseconds.System.currentTimeMillis()public long queryFgAbilityPrevAccessMs()
System.currentTimeMillis()public long queryInfosEndMs()
BundleActiveInfos object.
The time is the number of milliseconds calculated since 00:00:00 UTC on January 1, 1970 (epoch time).BundleActiveInfos object,
in milliseconds.System.currentTimeMillis()public long queryAbilityPrevSeenMs()
System.currentTimeMillis()public long queryFgAbilityAccessWholeMs()
System.currentTimeMillis()public long queryAbilitySeenWholeMs()
System.currentTimeMillis()public String queryBundleName()