/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarPropertyServiceTest.java | 156 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/ |
D | CarPropertyServiceUnitTest.java | 769 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/ |
D | CallDiagnosticServiceControllerTest.java | 159 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()
|
D | InCallControllerTests.java | 874 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 …]
|
D | CallRedirectionProcessorTest.java | 327 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/ |
D | NetworkStackServiceTest.kt | 175 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/ |
D | UwbSessionManagerTest.java | 1043 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/ |
D | WatchdogPerfHandlerUnitTest.java | 713 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/ |
D | CarRemoteAccessServiceUnitTest.java | 1131 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/ |
D | PropertyHalServiceTest.java | 471 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/ |
D | CarAudioServiceUnitTest.java | 769 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()
|