public static final class ShadowUsageStatsManager.AppUsageLimitObserver extends Object
UsageStatsManager.registerAppUsageLimitObserver(int, String[], Duration, Duration,
PendingIntent)
.Constructor | Description |
---|---|
AppUsageLimitObserver(int observerId,
List<String> packageNames,
Duration timeLimit,
Duration timeUsed,
PendingIntent callbackIntent) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
PendingIntent |
getCallbackIntent() |
|
int |
getObserverId() |
|
com.google.common.collect.ImmutableList<String> |
getPackageNames() |
|
Duration |
getTimeLimit() |
|
Duration |
getTimeUsed() |
|
int |
hashCode() |
public AppUsageLimitObserver(int observerId, List<String> packageNames, Duration timeLimit, Duration timeUsed, PendingIntent callbackIntent)
public int getObserverId()
public com.google.common.collect.ImmutableList<String> getPackageNames()
public Duration getTimeLimit()
public Duration getTimeUsed()
public PendingIntent getCallbackIntent()