Package org.robolectric.shadows
Class ShadowUsageStatsManager.UsageSessionObserver
java.lang.Object
org.robolectric.shadows.ShadowUsageStatsManager.UsageSessionObserver
- Enclosing class:
- ShadowUsageStatsManager
public abstract static class ShadowUsageStatsManager.UsageSessionObserver extends Object
Usage session observer registered via
UsageStatsManager#registerUsageSessionObserver(int, String[], long, TimeUnit, long, TimeUnit,
PendingIntent, PendingIntent)
.-
Constructor Summary
Constructors Constructor Description UsageSessionObserver()
-
Method Summary
Modifier and Type Method Description static ShadowUsageStatsManager.UsageSessionObserver
build(int observerId, List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, PendingIntent sessionStepTriggeredIntent, PendingIntent sessionEndedIntent)
abstract int
getObserverId()
abstract com.google.common.collect.ImmutableList<String>
getPackageNames()
abstract PendingIntent
getSessionEndedIntent()
abstract Duration
getSessionStepDuration()
abstract PendingIntent
getSessionStepTriggeredIntent()
abstract Duration
getThresholdDuration()
-
Constructor Details
-
UsageSessionObserver
public UsageSessionObserver()
-
-
Method Details
-
build
public static ShadowUsageStatsManager.UsageSessionObserver build(int observerId, List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, PendingIntent sessionStepTriggeredIntent, PendingIntent sessionEndedIntent) -
getObserverId
public abstract int getObserverId() -
getPackageNames
-
getSessionStepDuration
-
getThresholdDuration
-
getSessionStepTriggeredIntent
-
getSessionEndedIntent
-