Package org.robolectric.shadows
Class ShadowUsageStatsManager.AppUsageObserver
- java.lang.Object
-
- org.robolectric.shadows.ShadowUsageStatsManager.AppUsageObserver
-
- Enclosing class:
- ShadowUsageStatsManager
public static final class ShadowUsageStatsManager.AppUsageObserver extends Object
App usage observer registered viaUsageStatsManager.registerAppUsageObserver(int, String[], long, TimeUnit, PendingIntent).
-
-
Constructor Summary
Constructors Constructor Description AppUsageObserver(int observerId, Collection<String> packageNames, long timeLimit, TimeUnit timeUnit, PendingIntent callbackIntent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)PendingIntentgetCallbackIntent()intgetObserverId()Collection<String>getPackageNames()longgetTimeLimit()TimeUnitgetTimeUnit()inthashCode()
-
-
-
Constructor Detail
-
AppUsageObserver
public AppUsageObserver(int observerId, Collection<String> packageNames, long timeLimit, TimeUnit timeUnit, PendingIntent callbackIntent)
-
-
Method Detail
-
getObserverId
public int getObserverId()
-
getPackageNames
public Collection<String> getPackageNames()
-
getTimeLimit
public long getTimeLimit()
-
getTimeUnit
public TimeUnit getTimeUnit()
-
getCallbackIntent
public PendingIntent getCallbackIntent()
-
-