Package org.robolectric.shadows
Class ShadowUsageStatsManager.AppUsageLimitObserver
- java.lang.Object
-
- org.robolectric.shadows.ShadowUsageStatsManager.AppUsageLimitObserver
-
- Enclosing class:
- ShadowUsageStatsManager
public static final class ShadowUsageStatsManager.AppUsageLimitObserver extends Object
App usage limit observer registered viaUsageStatsManager.registerAppUsageLimitObserver(int, String[], Duration, Duration, PendingIntent)
.
-
-
Constructor Summary
Constructors Constructor Description AppUsageLimitObserver(int observerId, List<String> packageNames, Duration timeLimit, Duration timeUsed, PendingIntent callbackIntent)
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
-
-
-
Constructor Detail
-
AppUsageLimitObserver
public AppUsageLimitObserver(int observerId, List<String> packageNames, Duration timeLimit, Duration timeUsed, PendingIntent callbackIntent)
-
-
Method Detail
-
getObserverId
public int getObserverId()
-
getPackageNames
public com.google.common.collect.ImmutableList<String> getPackageNames()
-
getTimeLimit
public Duration getTimeLimit()
-
getTimeUsed
public Duration getTimeUsed()
-
getCallbackIntent
public PendingIntent getCallbackIntent()
-
-