Home
last modified time | relevance | path

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

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/
DWorkTimerTest.java38 private WorkTimer mWorkTimer; field in WorkTimerTest
43 mWorkTimer = new WorkTimer(); in setUp()
51 mWorkTimer.startTimer(WORKSPEC_ID_1, 0, listenerSpy); in testTimer_withListenerAndCleanUp()
54 assertThat(mWorkTimer.getTimerMap().size(), is(0)); in testTimer_withListenerAndCleanUp()
55 assertThat(mWorkTimer.getListeners().size(), is(0)); in testTimer_withListenerAndCleanUp()
62 mWorkTimer.startTimer(WORKSPEC_ID_1, 100, listenerSpy); in testStopTimer_withCleanUp()
63 mWorkTimer.stopTimer(WORKSPEC_ID_1); in testStopTimer_withCleanUp()
66 assertThat(mWorkTimer.getTimerMap().size(), is(0)); in testStopTimer_withCleanUp()
67 assertThat(mWorkTimer.getListeners().size(), is(0)); in testStopTimer_withCleanUp()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DWorkTimer.java98 private final WorkTimer mWorkTimer; field in WorkTimer.WorkTimerRunnable
102 mWorkTimer = workTimer; in WorkTimerRunnable()
108 synchronized (mWorkTimer.mLock) { in run()
109 if (mWorkTimer.mTimerMap.containsKey(mWorkSpecId)) { in run()
110 mWorkTimer.mTimerMap.remove(mWorkSpecId); in run()
112 TimeLimitExceededListener listener = mWorkTimer.mListeners.remove(mWorkSpecId); in run()
DSystemAlarmDispatcher.java57 private final WorkTimer mWorkTimer; field in SystemAlarmDispatcher
80 mWorkTimer = new WorkTimer(); in SystemAlarmDispatcher()
163 return mWorkTimer; in getWorkTimer()