Package org.robolectric.shadows
Class ShadowUsageStatsManager.AppUsageObserver
java.lang.Object
org.robolectric.shadows.ShadowUsageStatsManager.AppUsageObserver
- Enclosing class:
- ShadowUsageStatsManager
App usage observer registered via
UsageStatsManager.registerAppUsageObserver(int, String[], long, TimeUnit, PendingIntent)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(int observerId, Collection<String> packageNames, long timeLimit, TimeUnit timeUnit, PendingIntent callbackIntent) abstract PendingIntent
abstract int
abstract com.google.common.collect.ImmutableList<String>
abstract long
abstract TimeUnit
-
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
-