public static final class ShadowUsageStatsManager.AppUsageObserver
extends java.lang.Object
App usage observer registered via UsageStatsManager.registerAppUsageObserver(int,
String[], long, TimeUnit, PendingIntent)
.
Constructor and Description |
---|
AppUsageObserver(int observerId,
java.util.Collection<java.lang.String> packageNames,
long timeLimit,
java.util.concurrent.TimeUnit timeUnit,
android.app.PendingIntent callbackIntent) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
android.app.PendingIntent |
getCallbackIntent() |
int |
getObserverId() |
java.util.Collection<java.lang.String> |
getPackageNames() |
long |
getTimeLimit() |
java.util.concurrent.TimeUnit |
getTimeUnit() |
int |
hashCode() |
public AppUsageObserver(int observerId, java.util.Collection<java.lang.String> packageNames, long timeLimit, java.util.concurrent.TimeUnit timeUnit, android.app.PendingIntent callbackIntent)
public int getObserverId()
public java.util.Collection<java.lang.String> getPackageNames()
public long getTimeLimit()
public java.util.concurrent.TimeUnit getTimeUnit()
public android.app.PendingIntent getCallbackIntent()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object