Home
last modified time | relevance | path

Searched refs:mockHandler (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyServiceTest.java155 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testregisterListener() local
157 when(mockHandler.asBinder()).thenReturn(mockBinder); in testregisterListener()
164 mService.registerListener(List.of(options), mockHandler); in testregisterListener() local
184 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testregisterListener_exceptionAndRetry() local
186 when(mockHandler.asBinder()).thenReturn(mockBinder); in testregisterListener_exceptionAndRetry()
196 mService.registerListener(List.of(options), mockHandler)); in testregisterListener_exceptionAndRetry()
204 mService.registerListener(List.of(options), mockHandler); in testregisterListener_exceptionAndRetry() local
223 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testUnregisterListener() local
225 when(mockHandler.asBinder()).thenReturn(mockBinder); in testUnregisterListener()
232 mService.registerListener(List.of(options), mockHandler); in testUnregisterListener() local
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPropertyServiceUnitTest.java768 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testRegisterListenerWithSubscription() local
770 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription()
782 mService.registerListener(subscribeOptions, mockHandler); in testRegisterListenerWithSubscription()
785 verify(mockHandler, timeout(5000)).onEvent(mPropertyEventCaptor.capture()); in testRegisterListenerWithSubscription()
800 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testRegisterListenerWithSubscription_enableVurAndResolution() local
802 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_enableVurAndResolution()
823 mService.registerListener(subscribeOptions, mockHandler); in testRegisterListenerWithSubscription_enableVurAndResolution()
826 verify(mockHandler, timeout(5000)).onEvent(mPropertyEventCaptor.capture()); in testRegisterListenerWithSubscription_enableVurAndResolution()
834 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testRegisterListenerWithSubscription_VurFeatureOff() local
836 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_VurFeatureOff()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java504 Handler mockHandler = spy(new Handler(Looper.getMainLooper())); in testPlayAlertDuration() local
505 audio.mHandler = mockHandler; in testPlayAlertDuration()
515 InOrder inOrder = inOrder(mockMediaPlayer, mockHandler); in testPlayAlertDuration()
520 inOrder.verify(mockHandler).sendMessageAtTime(any(), capTime.capture()); in testPlayAlertDuration()
568 Handler mockHandler = spy(new Handler(Looper.getMainLooper())); in testOnError() local
569 audio.mHandler = mockHandler; in testOnError()
576 verify(mockHandler, never()).sendMessageAtTime(any(), anyLong()); in testOnError()
585 verify(mockHandler, times(1)).sendMessageAtTime(any(), anyLong()); in testOnError()
601 Handler mockHandler = spy(new Handler(Looper.getMainLooper())); in testOnCompletion() local
602 audio.mHandler = mockHandler; in testOnCompletion()
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/
DTaskbarNavButtonControllerTest.java55 Handler mockHandler; field in TaskbarNavButtonControllerTest
100 mockHandler, in setup()