@Test public void testMinPeriod() { long invalidPeriodicity = 0; JobInfo job = new JobInfo.Builder(0, component).setPeriodic(invalidPeriodicity).build(); assertThat(job.getIntervalMillis(), greaterThan(invalidPeriodicity)); }
public long getIntervalMillis() { final long minInterval = getMinPeriodMillis(); return intervalMillis >= minInterval ? intervalMillis : minInterval; }
JobInfo { public long getIntervalMillis() { final long minInterval = getMinPeriodMillis(); return intervalMillis >= minInterval ? intervalMillis : minInterval; } }
JobInfo { public long getIntervalMillis() { final long minInterval = getMinPeriodMillis(); return intervalMillis >= minInterval ? intervalMillis : minInterval; } @RestrictTo(RestrictTo.Scope.LIBRARY)  JobInfo(int jobId, ComponentName service, PersistableBundle extras, Bundle transientExtras,
                   ClipData clipData, int clipGrantFlags, int constraintFlags, TriggerContentUri[] triggerContentUris,
                   long triggerContentUpdateDelay, long triggerContentMaxDelay, boolean hasEarlyConstraint,
                   boolean hasLateConstraint, int networkType, NetworkRequest networkRequest, long networkDownloadBytes,
                   long networkUploadBytes, long minLatencyMillis, long maxExecutionDelayMillis, boolean isPeriodic,
                   boolean isPersisted, long intervalMillis, long flexMillis, long initialBackoffMillis,
                   int backoffPolicy, boolean importantWhileForeground, boolean prefetch); }
JobInfo { public long getIntervalMillis() { final long minInterval = getMinPeriodMillis(); return intervalMillis >= minInterval ? intervalMillis : minInterval; } @RestrictTo(RestrictTo.Scope.LIBRARY)  JobInfo(int jobId, ComponentName service, PersistableBundle extras, Bundle transientExtras,
                   ClipData clipData, int clipGrantFlags, int constraintFlags, TriggerContentUri[] triggerContentUris,
                   long triggerContentUpdateDelay, long triggerContentMaxDelay, boolean hasEarlyConstraint,
                   boolean hasLateConstraint, int networkType, NetworkRequest networkRequest, long networkDownloadBytes,
                   long networkUploadBytes, long minLatencyMillis, long maxExecutionDelayMillis, boolean isPeriodic,
                   boolean isPersisted, long intervalMillis, long flexMillis, long initialBackoffMillis,
                   int backoffPolicy, boolean importantWhileForeground, boolean prefetch); static final long getMinPeriodMillis(); static final long getMinFlexMillis(); @RestrictTo(RestrictTo.Scope.LIBRARY) static final long getMinBackoffMillis(); int getId(); @NonNull ComponentName getService(); @NonNull PersistableBundle getExtras(); @NonNull Bundle getTransientExtras(); @RequiresApi(Build.VERSION_CODES.O) @Nullable ClipData getClipData(); @RequiresApi(Build.VERSION_CODES.O) int getClipGrantFlags(); boolean isRequireCharging(); boolean isRequireBatteryNotLow(); boolean isRequireDeviceIdle(); boolean isRequireStorageNotLow(); @RestrictTo(RestrictTo.Scope.LIBRARY) int getConstraintFlags(); @Nullable TriggerContentUri[] getTriggerContentUris(); long getTriggerContentUpdateDelay(); long getTriggerContentMaxDelay(); @NetworkType int getNetworkType(); @RequiresApi(Build.VERSION_CODES.P) NetworkRequest getRequiredNetwork(); long getEstimatedNetworkDownloadBytes(); long getEstimatedNetworkUploadBytes(); long getMinLatencyMillis(); long getMaxExecutionDelayMillis(); boolean isPeriodic(); boolean isPersisted(); long getIntervalMillis(); long getFlexMillis(); long getInitialBackoffMillis(); @BackoffPolicy int getBackoffPolicy(); boolean isImportantWhileForeground(); boolean isPrefetch(); @RestrictTo(RestrictTo.Scope.LIBRARY) boolean hasEarlyConstraint(); @RestrictTo(RestrictTo.Scope.LIBRARY) boolean hasLateConstraint(); }
JobInfo { public long getIntervalMillis() { final long minInterval = getMinPeriodMillis(); return intervalMillis >= minInterval ? intervalMillis : minInterval; } @RestrictTo(RestrictTo.Scope.LIBRARY)  JobInfo(int jobId, ComponentName service, PersistableBundle extras, Bundle transientExtras,
                   ClipData clipData, int clipGrantFlags, int constraintFlags, TriggerContentUri[] triggerContentUris,
                   long triggerContentUpdateDelay, long triggerContentMaxDelay, boolean hasEarlyConstraint,
                   boolean hasLateConstraint, int networkType, NetworkRequest networkRequest, long networkDownloadBytes,
                   long networkUploadBytes, long minLatencyMillis, long maxExecutionDelayMillis, boolean isPeriodic,
                   boolean isPersisted, long intervalMillis, long flexMillis, long initialBackoffMillis,
                   int backoffPolicy, boolean importantWhileForeground, boolean prefetch); static final long getMinPeriodMillis(); static final long getMinFlexMillis(); @RestrictTo(RestrictTo.Scope.LIBRARY) static final long getMinBackoffMillis(); int getId(); @NonNull ComponentName getService(); @NonNull PersistableBundle getExtras(); @NonNull Bundle getTransientExtras(); @RequiresApi(Build.VERSION_CODES.O) @Nullable ClipData getClipData(); @RequiresApi(Build.VERSION_CODES.O) int getClipGrantFlags(); boolean isRequireCharging(); boolean isRequireBatteryNotLow(); boolean isRequireDeviceIdle(); boolean isRequireStorageNotLow(); @RestrictTo(RestrictTo.Scope.LIBRARY) int getConstraintFlags(); @Nullable TriggerContentUri[] getTriggerContentUris(); long getTriggerContentUpdateDelay(); long getTriggerContentMaxDelay(); @NetworkType int getNetworkType(); @RequiresApi(Build.VERSION_CODES.P) NetworkRequest getRequiredNetwork(); long getEstimatedNetworkDownloadBytes(); long getEstimatedNetworkUploadBytes(); long getMinLatencyMillis(); long getMaxExecutionDelayMillis(); boolean isPeriodic(); boolean isPersisted(); long getIntervalMillis(); long getFlexMillis(); long getInitialBackoffMillis(); @BackoffPolicy int getBackoffPolicy(); boolean isImportantWhileForeground(); boolean isPrefetch(); @RestrictTo(RestrictTo.Scope.LIBRARY) boolean hasEarlyConstraint(); @RestrictTo(RestrictTo.Scope.LIBRARY) boolean hasLateConstraint(); static final int NETWORK_TYPE_NONE; static final int NETWORK_TYPE_ANY; static final int NETWORK_TYPE_UNMETERED; static final int NETWORK_TYPE_NOT_ROAMING; static final int NETWORK_TYPE_CELLULAR; @Deprecated
    static final int NETWORK_TYPE_METERED; static final int NETWORK_BYTES_UNKNOWN; static final long DEFAULT_INITIAL_BACKOFF_MILLIS; static final long MAX_BACKOFF_DELAY_MILLIS; static final int BACKOFF_POLICY_LINEAR; static final int BACKOFF_POLICY_EXPONENTIAL; @RestrictTo(RestrictTo.Scope.LIBRARY)
    static final long MIN_BACKOFF_MILLIS; @RestrictTo(RestrictTo.Scope.LIBRARY)
    static final int DEFAULT_BACKOFF_POLICY; static final int CONSTRAINT_FLAG_CHARGING; static final int CONSTRAINT_FLAG_BATTERY_NOT_LOW; static final int CONSTRAINT_FLAG_DEVICE_IDLE; static final int CONSTRAINT_FLAG_STORAGE_NOT_LOW; }