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 via
UsageStatsManager.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
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 Details
-
AppUsageLimitObserver
public AppUsageLimitObserver(int observerId, List<String> packageNames, Duration timeLimit, Duration timeUsed, PendingIntent callbackIntent)
-
-
Method Details
-
getObserverId
public int getObserverId() -
getPackageNames
-
getTimeLimit
-
getTimeUsed
-
getCallbackIntent
-
equals
-
hashCode
public int hashCode()
-