Home
last modified time | relevance | path

Searched refs:mockValue (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothPairingControllerTest.java263 private void mockIsProfileReady(boolean mockValue) { in mockIsProfileReady() argument
264 when(mPbapLocalBluetoothProfile.isProfileReady()).thenReturn(mockValue); in mockIsProfileReady()
267 private void mockIsLeAudio(boolean mockValue) { in mockIsLeAudio() argument
269 if (mockValue) { in mockIsLeAudio()
275 private void mockIsLeContactSharingEnabled(boolean mockValue) { in mockIsLeContactSharingEnabled() argument
279 /* value= */ mockValue ? "true" : "false", true); in mockIsLeContactSharingEnabled()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPropertyServiceUnitTest.java907 CarPropertyValue mockValue = mock(CarPropertyValue.class); in testRegisterListenerWithSubscription_exceptionFromPropertyHalService_retry() local
908 when(mHalService.getProperty(anyInt(), anyInt())).thenReturn(mockValue); in testRegisterListenerWithSubscription_exceptionFromPropertyHalService_retry()
938 CarPropertyValue mockValue = mock(CarPropertyValue.class); in testregisterListener_alreadySubscribedOptionFilteredOut() local
939 when(mHalService.getProperty(anyInt(), anyInt())).thenReturn(mockValue); in testregisterListener_alreadySubscribedOptionFilteredOut()
1021 CarPropertyValue mockValue = mock(CarPropertyValue.class); in testRegisterListenerWithSubscription_unregisterListener() local
1022 when(mHalService.getProperty(anyInt(), anyInt())).thenReturn(mockValue); in testRegisterListenerWithSubscription_unregisterListener()
1114 CarPropertyValue mockValue = mock(CarPropertyValue.class); in testUnregisterListener_exceptionFromPropertyHalService() local
1115 when(mHalService.getProperty(anyInt(), anyInt())).thenReturn(mockValue); in testUnregisterListener_exceptionFromPropertyHalService()
1134 CarPropertyValue mockValue = mock(CarPropertyValue.class); in testUnregisterListener_exceptionFromPropertyHalService_retry() local
1135 when(mHalService.getProperty(anyInt(), anyInt())).thenReturn(mockValue); in testUnregisterListener_exceptionFromPropertyHalService_retry()