Home
last modified time | relevance | path

Searched refs:mockBinder (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyServiceTest.java156 IBinder mockBinder = mock(IBinder.class); in testregisterListener() local
157 when(mockHandler.asBinder()).thenReturn(mockBinder); in testregisterListener()
185 IBinder mockBinder = mock(IBinder.class); in testregisterListener_exceptionAndRetry() local
186 when(mockHandler.asBinder()).thenReturn(mockBinder); in testregisterListener_exceptionAndRetry()
224 IBinder mockBinder = mock(IBinder.class); in testUnregisterListener() local
225 when(mockHandler.asBinder()).thenReturn(mockBinder); in testUnregisterListener()
251 IBinder mockBinder = mock(IBinder.class); in testUnregisterListener_exceptionAndRetry() local
252 when(mockHandler.asBinder()).thenReturn(mockBinder); in testUnregisterListener_exceptionAndRetry()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPropertyServiceUnitTest.java769 IBinder mockBinder = mock(IBinder.class); in testRegisterListenerWithSubscription() local
770 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription()
801 IBinder mockBinder = mock(IBinder.class); in testRegisterListenerWithSubscription_enableVurAndResolution() local
802 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_enableVurAndResolution()
835 IBinder mockBinder = mock(IBinder.class); in testRegisterListenerWithSubscription_VurFeatureOff() local
836 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_VurFeatureOff()
861 IBinder mockBinder = mock(IBinder.class); in testRegisterListenerWithSubscription_ResolutionFeatureOff() local
862 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_ResolutionFeatureOff()
888 IBinder mockBinder = mock(IBinder.class); in testRegisterListenerWithSubscription_exceptionFromPropertyHalService() local
889 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_exceptionFromPropertyHalService()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallDiagnosticServiceControllerTest.java159 IBinder mockBinder = mock(IBinder.class); in testAddSimCallCausesBind() local
160 when(mockBinder.queryLocalInterface(anyString())).thenReturn(mICallDiagnosticService); in testAddSimCallCausesBind()
161 serviceConnectionCaptor.getValue().onServiceConnected(TEST_COMPONENT, mockBinder); in testAddSimCallCausesBind()
DInCallControllerTests.java874 IBinder mockBinder = mock(IBinder.class); in testBindToService_DefaultDialer_FallBackToSystem() local
876 when(mockBinder.queryLocalInterface(anyString())).thenReturn(mockInCallService); in testBindToService_DefaultDialer_FallBackToSystem()
880 serviceConnection.onServiceConnected(defDialerComponentName, mockBinder); in testBindToService_DefaultDialer_FallBackToSystem()
931 IBinder mockBinder = mock(IBinder.class); in testBindToService_NullBinding_FallBackToSystem() local
933 when(mockBinder.queryLocalInterface(anyString())).thenReturn(mockInCallService); in testBindToService_NullBinding_FallBackToSystem()
935 serviceConnection.onServiceConnected(defDialerComponentName, mockBinder); in testBindToService_NullBinding_FallBackToSystem()
1286 IBinder mockBinder = mock(IBinder.class); in testUnbindDueToCallDisconnect() local
1288 when(mockBinder.queryLocalInterface(anyString())).thenReturn(mockInCallService); in testUnbindDueToCallDisconnect()
1290 serviceConnection.onServiceConnected(defDialerComponentName, mockBinder); in testUnbindDueToCallDisconnect()
1622 IBinder mockBinder = mock(IBinder.class); in testBindingFuture() local
[all …]
DCallRedirectionProcessorTest.java327 IBinder mockBinder = mock(IBinder.class); in testStripPostDialDigits() local
329 when(mockBinder.queryLocalInterface(anyString())).thenReturn(mockCallRedirectionService); in testStripPostDialDigits()
331 USER_DEFINED_SERVICE_TEST_COMPONENT_NAME, mockBinder); in testStripPostDialDigits()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackServiceTest.kt175 val mockBinder = mock(IBinder::class.java) in prepareDumpVersionTest() constant
176 val mockNetworkMonitorCb = spy(INetworkMonitorCallbacks.Stub.asInterface(mockBinder)) in prepareDumpVersionTest()
182 doReturn(true).`when`(mockBinder).transact(anyInt(), any(), any(), eq(Binder.FLAG_ONEWAY)) in prepareDumpVersionTest()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbSessionManagerTest.java1043 IBinder mockBinder = mock(IBinder.class); in initSession_UwbSession_RemoteException() local
1048 doReturn(mockBinder).when(uwbSession).getBinder(); in initSession_UwbSession_RemoteException()
1051 doThrow(new RemoteException()).when(mockBinder).linkToDeath(any(), anyInt()); in initSession_UwbSession_RemoteException()
1059 verify(mockBinder, atLeast(1)).unlinkToDeath(any(), anyInt()); in initSession_UwbSession_RemoteException()
1073 IBinder mockBinder = mock(IBinder.class); in initSession_success() local
1079 doReturn(mockBinder).when(uwbSession).getBinder(); in initSession_success()
1089 verify(mockBinder, never()).unlinkToDeath(any(), anyInt()); in initSession_success()
1101 IBinder mockBinder = mock(IBinder.class); in initSessionMaxSessions_lowestPrioritySessionReplaced() local
1121 doReturn(mockBinder).when(lowPrioUwbSession).getBinder(); in initSessionMaxSessions_lowestPrioritySessionReplaced()
1135 doReturn(mockBinder).when(highPrioUwbSession).getBinder(); in initSessionMaxSessions_lowestPrioritySessionReplaced()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogPerfHandlerUnitTest.java713 IBinder mockBinder = mockListener.asBinder(); in testResourceOveruseListener() local
718 verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListener()
730 verify(mockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListener()
745 IBinder mockBinder = mockListener.asBinder(); in testDuplicateAddResourceOveruseListener() local
754 verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testDuplicateAddResourceOveruseListener()
759 verify(mockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testDuplicateAddResourceOveruseListener()
833 IBinder mockBinder = mockListener.asBinder(); in testResourceOveruseListenerForSystem() local
834 verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListenerForSystem()
854 verify(mockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListenerForSystem()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java1131 IBinder mockBinder = mock(IBinder.class); in testCallbackOnRemoteTaskRequestedException_activieTasksCleared() local
1132 when(clientCallback.asBinder()).thenReturn(mockBinder); in testCallbackOnRemoteTaskRequestedException_activieTasksCleared()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DPropertyHalServiceTest.java471 IBinder mockBinder = mock(IBinder.class); in testGetCarPropertyValuesAsync_binderDiedBeforeLinkToDeath() local
472 when(mGetAsyncPropertyResultCallback.asBinder()).thenReturn(mockBinder); in testGetCarPropertyValuesAsync_binderDiedBeforeLinkToDeath()
473 doThrow(new RemoteException()).when(mockBinder).linkToDeath(any(), anyInt()); in testGetCarPropertyValuesAsync_binderDiedBeforeLinkToDeath()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioServiceUnitTest.java769 IBinder mockBinder = mock(IBinder.class); in setUpAudioManager() local
770 when(mockBinder.queryLocalInterface(any())).thenReturn(mMockAudioService); in setUpAudioManager()
771 doReturn(mockBinder).when(() -> ServiceManager.getService(Context.AUDIO_SERVICE)); in setUpAudioManager()