Searched refs:backoffPolicy (Results 1 – 10 of 10) sorted by relevance
84 int backoffPolicy = workSpec.backoffPolicy == BackoffPolicy.LINEAR in convert() local86 builder.setBackoffCriteria(workSpec.backoffDelayDuration, backoffPolicy); in convert()
307 private final int backoffPolicy; field in JobInfo575 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() argument1450 mBackoffPolicy = backoffPolicy; in setBackoffCriteria()
140 @NonNull BackoffPolicy backoffPolicy, in setBackoffCriteria()144 mWorkSpec.backoffPolicy = backoffPolicy; in setBackoffCriteria()
102 public BackoffPolicy backoffPolicy = BackoffPolicy.EXPONENTIAL; field in WorkSpec219 boolean isLinearBackoff = (backoffPolicy == BackoffPolicy.LINEAR); in calculateNextRunTime()263 return backoffPolicy == workSpec.backoffPolicy; in equals()279 result = 31 * result + backoffPolicy.hashCode(); in hashCode()
154 public static int backoffPolicyToInt(BackoffPolicy backoffPolicy) { in backoffPolicyToInt() argument155 switch (backoffPolicy) { in backoffPolicyToInt()164 "Could not convert " + backoffPolicy + " to int"); in backoffPolicyToInt()
105 int policy = workSpec.backoffPolicy == BackoffPolicy.LINEAR in createRetryStrategy()
108 workSpec.backoffPolicy = BackoffPolicy.LINEAR; in testConvert_retryPolicy()
94 workSpec.backoffPolicy = BackoffPolicy.LINEAR; in testConvert_backoffPolicy()
949 … int backoffPolicy = Integer.parseInt(val); // Will throw NFE which we catch higher up. in maybeBuildBackoffPolicyFromXml() local950 jobBuilder.setBackoffCriteria(initialBackoff, backoffPolicy); in maybeBuildBackoffPolicyFromXml()
385 assertThat(workSpec0.backoffPolicy, is(BackoffPolicy.LINEAR)); in testEnqueue_insertWorkBackoffPolicy()388 assertThat(workSpec1.backoffPolicy, is(BackoffPolicy.EXPONENTIAL)); in testEnqueue_insertWorkBackoffPolicy()