Home
last modified time | relevance | path

Searched refs:mHandlerAdapter (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/telephony/java/com/android/internal/telephony/
DExponentialBackoff.java38 private HandlerAdapter mHandlerAdapter = new HandlerAdapter() { field in ExponentialBackoff
85 mHandlerAdapter.removeCallbacks(mRunnable); in start()
86 mHandlerAdapter.postDelayed(mRunnable, mCurrentDelayMs); in start()
92 mHandlerAdapter.removeCallbacks(mRunnable); in stop()
101 mHandlerAdapter.removeCallbacks(mRunnable); in notifyFailed()
102 mHandlerAdapter.postDelayed(mRunnable, mCurrentDelayMs); in notifyFailed()
112 mHandlerAdapter = a; in setHandlerAdapter()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DExponentialBackoffTest.java51 private ExponentialBackoff.HandlerAdapter mHandlerAdapter; field in ExponentialBackoffTest
57 mHandlerAdapter = mock(ExponentialBackoff.HandlerAdapter.class); in setUp()
60 mBackoffUnderTest.setHandlerAdapter(mHandlerAdapter); in setUp()
63 ).when(mHandlerAdapter).postDelayed(any(Runnable.class), anyLong()); in setUp()
67 }).when(mHandlerAdapter).removeCallbacks(any(Runnable.class)); in setUp()
94 verify(mHandlerAdapter, times(2)).removeCallbacks(mRunnable); in testStopBackoff()