Package org.robolectric.shadows
Class ShadowUsageStatsManager.AppUsageObserver
java.lang.Object
org.robolectric.shadows.ShadowUsageStatsManager.AppUsageObserver
- Enclosing class:
- ShadowUsageStatsManager
public abstract static class ShadowUsageStatsManager.AppUsageObserver extends Object
App usage observer registered via
UsageStatsManager.registerAppUsageObserver(int,
String[], long, TimeUnit, PendingIntent)
.-
Constructor Summary
Constructors Constructor Description AppUsageObserver()
-
Method Summary
Modifier and Type Method Description static ShadowUsageStatsManager.AppUsageObserver
build(int observerId, Collection<String> packageNames, long timeLimit, TimeUnit timeUnit, PendingIntent callbackIntent)
abstract PendingIntent
getCallbackIntent()
abstract int
getObserverId()
abstract com.google.common.collect.ImmutableList<String>
getPackageNames()
abstract long
getTimeLimit()
abstract TimeUnit
getTimeUnit()
-
Constructor Details
-
AppUsageObserver
public AppUsageObserver()
-
-
Method Details
-
build
public static ShadowUsageStatsManager.AppUsageObserver build(int observerId, Collection<String> packageNames, long timeLimit, TimeUnit timeUnit, PendingIntent callbackIntent) -
getObserverId
public abstract int getObserverId() -
getPackageNames
-
getTimeLimit
public abstract long getTimeLimit() -
getTimeUnit
-
getCallbackIntent
-