Searched refs:mHandlerAdapter (Results 1 – 2 of 2) sorted by relevance
38 private HandlerAdapter mHandlerAdapter = new HandlerAdapter() { field in ExponentialBackoff85 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()
51 private ExponentialBackoff.HandlerAdapter mHandlerAdapter; field in ExponentialBackoffTest57 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()