shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsageStatsManager.java
@Implementation(minSdk = Build.VERSION_CODES.P)
  @HiddenApi
  public @StandbyBuckets int getAppStandbyBucket(String packageName) {
    Integer bucket = appStandbyBuckets.get(packageName);
    return (bucket == null) ? UsageStatsManager.STANDBY_BUCKET_ACTIVE : bucket;
  }
@Implementation(minSdk = Build.VERSION_CODES.P)
  @HiddenApi
  public @StandbyBuckets int getAppStandbyBucket(String packageName) {
    Integer bucket = appStandbyBuckets.get(packageName);
    return (bucket == null) ? UsageStatsManager.STANDBY_BUCKET_ACTIVE : bucket;
  }
@ Implementation ( minSdk = Build . VERSION_CODES . P ) @ HiddenApi public @ StandbyBuckets int getAppStandbyBucket ( String packageName ) { Integer bucket = appStandbyBuckets . get ( packageName ) ; return ( bucket == null ) ? UsageStatsManager . STANDBY_BUCKET_ACTIVE : bucket ; }
Returns the current standby bucket of the specified app that is set by {@code
setAppStandbyBucket}. If the standby bucket value has never been set, return {@link
UsageStatsManager.STANDBY_BUCKET_ACTIVE}.
Returns the current standby bucket of the specified app that is set by {