Home
last modified time | relevance | path

Searched refs:backoffPolicy (Results 1 – 10 of 10) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverter.java84 int backoffPolicy = workSpec.backoffPolicy == BackoffPolicy.LINEAR in convert() local
86 builder.setBackoffCriteria(workSpec.backoffDelayDuration, backoffPolicy); in convert()
/frameworks/base/core/java/android/app/job/
DJobInfo.java307 private final int backoffPolicy; field in JobInfo
575 return backoffPolicy; in getBackoffPolicy()
690 if (backoffPolicy != j.backoffPolicy) { in equals()
738 hashCode = 31 * hashCode + backoffPolicy; in hashCode()
774 backoffPolicy = in.readInt(); in JobInfo()
804 backoffPolicy = b.mBackoffPolicy; in JobInfo()
848 out.writeInt(backoffPolicy); in writeToParcel()
1440 @BackoffPolicy int backoffPolicy) { in setBackoffCriteria() argument
1450 mBackoffPolicy = backoffPolicy; in setBackoffCriteria()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DWorkRequest.java140 @NonNull BackoffPolicy backoffPolicy, in setBackoffCriteria()
144 mWorkSpec.backoffPolicy = backoffPolicy; in setBackoffCriteria()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkSpec.java102 public BackoffPolicy backoffPolicy = BackoffPolicy.EXPONENTIAL; field in WorkSpec
219 boolean isLinearBackoff = (backoffPolicy == BackoffPolicy.LINEAR); in calculateNextRunTime()
263 return backoffPolicy == workSpec.backoffPolicy; in equals()
279 result = 31 * result + backoffPolicy.hashCode(); in hashCode()
DWorkTypeConverters.java154 public static int backoffPolicyToInt(BackoffPolicy backoffPolicy) { in backoffPolicyToInt() argument
155 switch (backoffPolicy) { in backoffPolicyToInt()
164 "Could not convert " + backoffPolicy + " to int"); in backoffPolicyToInt()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobConverter.java105 int policy = workSpec.backoffPolicy == BackoffPolicy.LINEAR in createRetryStrategy()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverterTest.java108 workSpec.backoffPolicy = BackoffPolicy.LINEAR; in testConvert_retryPolicy()
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
DFirebaseJobConverterTest.java94 workSpec.backoffPolicy = BackoffPolicy.LINEAR; in testConvert_backoffPolicy()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java949 … int backoffPolicy = Integer.parseInt(val); // Will throw NFE which we catch higher up. in maybeBuildBackoffPolicyFromXml() local
950 jobBuilder.setBackoffCriteria(initialBackoff, backoffPolicy); in maybeBuildBackoffPolicyFromXml()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkManagerImplTest.java385 assertThat(workSpec0.backoffPolicy, is(BackoffPolicy.LINEAR)); in testEnqueue_insertWorkBackoffPolicy()
388 assertThat(workSpec1.backoffPolicy, is(BackoffPolicy.EXPONENTIAL)); in testEnqueue_insertWorkBackoffPolicy()