Searched refs:mockHandler (Results 1 – 4 of 4) sorted by relevance
155 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testregisterListener() local157 when(mockHandler.asBinder()).thenReturn(mockBinder); in testregisterListener()164 mService.registerListener(List.of(options), mockHandler); in testregisterListener() local184 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testregisterListener_exceptionAndRetry() local186 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() local223 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testUnregisterListener() local225 when(mockHandler.asBinder()).thenReturn(mockBinder); in testUnregisterListener()232 mService.registerListener(List.of(options), mockHandler); in testUnregisterListener() local[all …]
768 ICarPropertyEventListener mockHandler = mock(ICarPropertyEventListener.class); in testRegisterListenerWithSubscription() local770 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() local802 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() local836 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_VurFeatureOff()[all …]
504 Handler mockHandler = spy(new Handler(Looper.getMainLooper())); in testPlayAlertDuration() local505 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() local569 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() local602 audio.mHandler = mockHandler; in testOnCompletion()[all …]
55 Handler mockHandler; field in TaskbarNavButtonControllerTest100 mockHandler, in setup()