Searched refs:INITIAL_ID (Results 1 – 3 of 3) sorted by relevance
19 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()
32 public static final int INITIAL_ID = 0; field in IdGenerator90 int id = mSharedPrefs.getInt(key, INITIAL_ID); in nextId()91 int nextId = (id == Integer.MAX_VALUE) ? INITIAL_ID : id + 1; in nextId()
117 int mMinJobSchedulerId = IdGenerator.INITIAL_ID;