Home
last modified time | relevance | path

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

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
DIdGeneratorTest.java49 private IdGenerator mIdGenerator; field in IdGeneratorTest
59 mIdGenerator = new IdGenerator(mMockContext); in setUp()
64 int nextId = mIdGenerator.nextJobSchedulerIdWithRange(INITIAL_ID, MAX_VALUE); 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()
89 assertThat(mIdGenerator.nextJobSchedulerIdWithRange(10, 100), is(10)); in testNextId_belowMinRange()
95 assertThat(mIdGenerator.nextJobSchedulerIdWithRange(10, 100), is(100)); in testNextId_aboveMaxRange()
101 assertThat(mIdGenerator.nextJobSchedulerIdWithRange(10, 100), is(10)); in testNextId_aboveMaxRange2()
107 assertThat(mIdGenerator.nextJobSchedulerIdWithRange(10, 100), is(20)); in testNextId_withinRange()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobScheduler.java52 private IdGenerator mIdGenerator; field in FirebaseJobScheduler
95 if (mIdGenerator == null) { in scheduleLater()
96 mIdGenerator = new IdGenerator(mAppContext); in scheduleLater()
114 int requestCode = mIdGenerator.nextFirebaseAlarmId(); in createScheduleLaterPendingIntent()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobScheduler.java51 private final IdGenerator mIdGenerator; field in SystemJobScheduler
69 mIdGenerator = new IdGenerator(context); in SystemJobScheduler()
84 int jobId = info != null ? info.systemId : mIdGenerator.nextJobSchedulerIdWithRange( in schedule()
103 int nextJobId = mIdGenerator.nextJobSchedulerIdWithRange( in schedule()