Home
last modified time | relevance | path

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

/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmCellBroadcastHandlerTest.java166 private CellBroadcastHandler.HandlerHelper mHandlerHelper; field in GsmCellBroadcastHandlerTest
175 mHandlerHelper = mock(CellBroadcastHandler.HandlerHelper.class); in setUp()
194 mTestableLooper.getLooper(), mSendMessageFactory, mHandlerHelper, mMockedResources, in setUp()
206 }).when(mHandlerHelper).post(any()); in setUp()
207 doReturn(mGsmCellBroadcastHandler.getHandler()).when(mHandlerHelper).getHandler(); in setUp()
545 verify(mHandlerHelper).postDelayed(onLocationUnavailableCaptor.capture(), anyLong()); in runLocationUnavailableWhenMaxTimeReached()
549 verify(mHandlerHelper, times(0)) in runLocationUnavailableWhenMaxTimeReached()
558 verify(mHandlerHelper).postDelayed(onLocationUnavailableCaptor.capture(), anyLong()); in assertLocationRequestCancelled()
559 verify(mHandlerHelper, times(1)) in assertLocationRequestCancelled()
DCellBroadcastHandlerTest.java78 private CellBroadcastHandler.HandlerHelper mHandlerHelper; field in CellBroadcastHandlerTest
137 mHandlerHelper = mock(CellBroadcastHandler.HandlerHelper.class); in setUp()
140 mMockedContext, mTestbleLooper.getLooper(), mSendMessageFactory, mHandlerHelper); in setUp()
146 }).when(mHandlerHelper).post(any()); in setUp()
147 doReturn(mCellBroadcastHandler.getHandler()).when(mHandlerHelper).getHandler(); in setUp()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastHandler.java924 private final HandlerHelper mHandlerHelper; field in CellBroadcastHandler.LocationRequester
937 mHandlerHelper = handlerHelper; in LocationRequester()
955 mHandlerHelper.post(() -> requestLocationUpdateInternal(callback, maximumWaitTimeSec)); in requestLocationUpdate()
986 mHandlerHelper.removeCallbacks(mLocationUnavailable); in cancel()
1038 new HandlerExecutor(mHandlerHelper.getHandler()), in requestLocationUpdateInternal()
1045 mHandlerHelper.postDelayed(mLocationUnavailable, in requestLocationUpdateInternal()