public static final class ShadowUsageStatsManager.UsageSessionObserver extends Object
Usage session observer registered via UsageStatsManager.registerUsageSessionObserver(int, String[], long, TimeUnit, long, TimeUnit,
PendingIntent, PendingIntent)
.
Constructor and Description |
---|
UsageSessionObserver(int observerId,
List<String> packageNames,
Duration sessionStepDuration,
Duration thresholdDuration,
PendingIntent sessionStepTriggeredIntent,
PendingIntent sessionEndedIntent) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getObserverId() |
List<String> |
getPackageNames() |
PendingIntent |
getSessionEndedIntent() |
Duration |
getSessionStepDuration() |
PendingIntent |
getSessionStepTriggeredIntent() |
Duration |
getThresholdDuration() |
int |
hashCode() |
public UsageSessionObserver(int observerId, List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, PendingIntent sessionStepTriggeredIntent, PendingIntent sessionEndedIntent)
public int getObserverId()
public Duration getSessionStepDuration()
public Duration getThresholdDuration()
public PendingIntent getSessionStepTriggeredIntent()
public PendingIntent getSessionEndedIntent()