Class ShadowUsageStatsManager.AppUsageObserver

  • Enclosing class:
    ShadowUsageStatsManager

    public static final class ShadowUsageStatsManager.AppUsageObserver
    extends java.lang.Object
    App usage observer registered via UsageStatsManager.registerAppUsageObserver(int, String[], long, TimeUnit, PendingIntent).
    • Constructor Summary

      Constructors 
      Constructor Description
      AppUsageObserver​(int observerId, java.util.Collection<java.lang.String> packageNames, long timeLimit, java.util.concurrent.TimeUnit timeUnit, android.app.PendingIntent callbackIntent)  
    • Constructor Detail

      • AppUsageObserver

        public AppUsageObserver​(int observerId,
                                java.util.Collection<java.lang.String> packageNames,
                                long timeLimit,
                                java.util.concurrent.TimeUnit timeUnit,
                                android.app.PendingIntent callbackIntent)
    • Method Detail

      • getObserverId

        public int getObserverId()
      • getPackageNames

        public java.util.Collection<java.lang.String> getPackageNames()
      • getTimeLimit

        public long getTimeLimit()
      • getTimeUnit

        public java.util.concurrent.TimeUnit getTimeUnit()
      • getCallbackIntent

        public android.app.PendingIntent getCallbackIntent()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object