Home
last modified time | relevance | path

Searched refs:INITIAL_ID (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
DIdGeneratorTest.java19 import static androidx.work.impl.utils.IdGenerator.INITIAL_ID;
64 int nextId = mIdGenerator.nextJobSchedulerIdWithRange(INITIAL_ID, MAX_VALUE); in testNextId_returnsInitialIdWhenNoStoredNextId()
65 assertThat(nextId, is(INITIAL_ID)); in testNextId_returnsInitialIdWhenNoStoredNextId()
72 int nextId = mIdGenerator.nextJobSchedulerIdWithRange(INITIAL_ID, MAX_VALUE); in testNextId_returnsStoredNextId()
80 int nextId = mIdGenerator.nextJobSchedulerIdWithRange(INITIAL_ID, MAX_VALUE); in testNextId_returnsInitialIdAfterReturningMaxInteger()
82 nextId = mIdGenerator.nextJobSchedulerIdWithRange(INITIAL_ID, MAX_VALUE); in testNextId_returnsInitialIdAfterReturningMaxInteger()
83 assertThat(nextId, is(INITIAL_ID)); in testNextId_returnsInitialIdAfterReturningMaxInteger()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DIdGenerator.java32 public static final int INITIAL_ID = 0; field in IdGenerator
90 int id = mSharedPrefs.getInt(key, INITIAL_ID); in nextId()
91 int nextId = (id == Integer.MAX_VALUE) ? INITIAL_ID : id + 1; in nextId()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DConfiguration.java117 int mMinJobSchedulerId = IdGenerator.INITIAL_ID;