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 viaUsageStatsManager.registerAppUsageObserver(int, String[], long, TimeUnit, PendingIntent)
.
-
-
Constructor Summary
Constructors Constructor Description AppUsageObserver()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 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()
-
-
-
Method Detail
-
build
public static ShadowUsageStatsManager.AppUsageObserver build(int observerId, Collection<String> packageNames, long timeLimit, TimeUnit timeUnit, PendingIntent callbackIntent)
-
getObserverId
public abstract int getObserverId()
-
getPackageNames
public abstract com.google.common.collect.ImmutableList<String> getPackageNames()
-
getTimeLimit
public abstract long getTimeLimit()
-
getTimeUnit
public abstract TimeUnit getTimeUnit()
-
getCallbackIntent
public abstract PendingIntent getCallbackIntent()
-
-