Class ShadowUsageStatsManager.UsageSessionObserver

java.lang.Object
org.robolectric.shadows.ShadowUsageStatsManager.UsageSessionObserver
Enclosing class:
ShadowUsageStatsManager

public abstract static class ShadowUsageStatsManager.UsageSessionObserver extends Object
  • Constructor Details

    • UsageSessionObserver

      public UsageSessionObserver()
  • Method Details

    • build

      public static ShadowUsageStatsManager.UsageSessionObserver build(int observerId, @Nonnull List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, @Nonnull PendingIntent sessionStepTriggeredIntent, @Nonnull PendingIntent sessionEndedIntent)
    • getObserverId

      public abstract int getObserverId()
    • getPackageNames

      @Nonnull public abstract com.google.common.collect.ImmutableList<String> getPackageNames()
    • getSessionStepDuration

      @Nullable public abstract Duration getSessionStepDuration()
    • getThresholdDuration

      @Nullable public abstract Duration getThresholdDuration()
    • getSessionStepTriggeredIntent

      @Nonnull public abstract PendingIntent getSessionStepTriggeredIntent()
    • getSessionEndedIntent

      @Nonnull public abstract PendingIntent getSessionEndedIntent()