Home
last modified time | relevance | path

Searched refs:IdGenerator (Results 1 – 7 of 7) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DIdGenerator.java29 public class IdGenerator { class
46 public IdGenerator(Context context) { in IdGenerator() method in IdGenerator
54 synchronized (IdGenerator.class) { in nextJobSchedulerIdWithRange()
69 synchronized (IdGenerator.class) { in nextFirebaseAlarmId()
78 synchronized (IdGenerator.class) { in nextAlarmManagerId()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
DIdGeneratorTest.java19 import static androidx.work.impl.utils.IdGenerator.INITIAL_ID;
49 private IdGenerator mIdGenerator;
57 eq(IdGenerator.PREFERENCE_FILE_KEY), anyInt())) in setUp()
59 mIdGenerator = new IdGenerator(mMockContext); in setUp()
122 when(mockSharedPreferences.getInt(eq(IdGenerator.NEXT_JOB_SCHEDULER_ID_KEY), anyInt())) in createMockSharedPreferences()
135 when(mockEditor.putInt(eq(IdGenerator.NEXT_JOB_SCHEDULER_ID_KEY), anyInt())).thenAnswer( in createMockSharedPreferencesEditor()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobScheduler.java30 import androidx.work.impl.utils.IdGenerator;
52 private IdGenerator mIdGenerator;
96 mIdGenerator = new IdGenerator(mAppContext); in scheduleLater()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DAlarms.java34 import androidx.work.impl.utils.IdGenerator;
67 IdGenerator idGenerator = new IdGenerator(context); in setAlarm()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobScheduler.java34 import androidx.work.impl.utils.IdGenerator;
51 private final IdGenerator mIdGenerator;
69 mIdGenerator = new IdGenerator(context); in SystemJobScheduler()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DConfiguration.java25 import androidx.work.impl.utils.IdGenerator;
117 int mMinJobSchedulerId = IdGenerator.INITIAL_ID;
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
DLargeSliceAdapter.java62 private final IdGenerator mIdGen = new IdGenerator();
203 public SliceWrapper(SliceItem item, IdGenerator idGen, int mode) { in SliceWrapper()
284 private static class IdGenerator { class in LargeSliceAdapter