Package org.robolectric.shadows
Class ShadowUsageStatsManager.UsageSessionObserver
- java.lang.Object
-
- org.robolectric.shadows.ShadowUsageStatsManager.UsageSessionObserver
-
- Enclosing class:
- ShadowUsageStatsManager
public static final class ShadowUsageStatsManager.UsageSessionObserver extends Object
Usage session observer registered viaUsageStatsManager#registerUsageSessionObserver(int, String[], long, TimeUnit, long, TimeUnit, PendingIntent, PendingIntent).
-
-
Constructor Summary
Constructors Constructor Description UsageSessionObserver(int observerId, List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, PendingIntent sessionStepTriggeredIntent, PendingIntent sessionEndedIntent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetObserverId()List<String>getPackageNames()PendingIntentgetSessionEndedIntent()DurationgetSessionStepDuration()PendingIntentgetSessionStepTriggeredIntent()DurationgetThresholdDuration()inthashCode()
-
-
-
Constructor Detail
-
UsageSessionObserver
public UsageSessionObserver(int observerId, List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, PendingIntent sessionStepTriggeredIntent, PendingIntent sessionEndedIntent)
-
-
Method Detail
-
getObserverId
public int getObserverId()
-
getSessionStepDuration
public Duration getSessionStepDuration()
-
getThresholdDuration
public Duration getThresholdDuration()
-
getSessionStepTriggeredIntent
public PendingIntent getSessionStepTriggeredIntent()
-
getSessionEndedIntent
public PendingIntent getSessionEndedIntent()
-
-