Searched refs:mIInputManagerMock (Results 1 – 7 of 7) sorted by relevance
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
H A D | InputDeviceDelegateTest.java | 76 @Mock private IInputManager mIInputManagerMock; field in InputDeviceDelegateTest 87 InputManagerGlobal.resetInstance(mIInputManagerMock); in setUp() 145 when(mIInputManagerMock.getInputDevice(eq(1))) in onInputDeviceAdded_withDeviceWithoutVibrator_ignoresNewDevice() 150 verify(mIInputManagerMock).getInputDevice(eq(1)); in onInputDeviceAdded_withDeviceWithoutVibrator_ignoresNewDevice() 164 verify(mIInputManagerMock).getInputDevice(eq(1)); in onInputDeviceAdded_withDeviceWithVibrator_addsNewDevice() 183 when(mIInputManagerMock.getInputDevice(eq(1))) in onInputDeviceChanged_deviceLosesVibrator_removesDevice() 198 when(mIInputManagerMock.getInputDevice(eq(1))) in onInputDeviceChanged_deviceLost_removesDevice() 213 when(mIInputManagerMock.getInputDevice(eq(1))) in onInputDeviceChanged_deviceAddsVibrator_addsDevice() 260 when(mIInputManagerMock.getInputDevice(eq(1))) in updateInputDeviceVibrators_withDeviceWithoutVibrator_deviceIsIgnored() 310 verify(mIInputManagerMock).cancelVibrate(eq(1), any()); in cancelVibrateIfAvailable_withInputDevices_returnsTrueAndStopsAllDevices() [all …]
|
H A D | VibratorManagerServiceTest.java | 168 private IInputManager mIInputManagerMock; field in VibratorManagerServiceTest 195 InputManagerGlobal.resetInstance(mIInputManagerMock); in setUp() 208 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[0]); in setUp() 1109 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[]{1}); in vibrate_withInputDevices_vibratesInputDevices() 1110 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}); in vibrate_withInputDevices_vibratesInputDevices() 1111 when(mIInputManagerMock.getInputDevice(eq(1))).thenReturn(createInputDeviceWithVibrator(1)); in vibrate_withInputDevices_vibratesInputDevices() 1122 verify(mIInputManagerMock).vibrateCombined(eq(1), eq(effect), any()); in vibrate_withInputDevices_vibratesInputDevices()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/input/ |
H A D | InputDeviceSensorManagerTest.java | 79 @Mock private IInputManager mIInputManagerMock; field in InputDeviceSensorManagerTest 84 InputManagerGlobal.resetInstance(mIInputManagerMock); in setUp() 88 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[]{DEVICE_ID}); in setUp() 90 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp() 100 when(mIInputManagerMock.registerSensorListener(any())).thenReturn(true); in setUp() 174 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withExpectedType() 180 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withExpectedType() 196 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withUnexpectedType() 200 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withUnexpectedType() 217 }).when(mIInputManagerMock).registerSensorListener(any()); in testInputDeviceSensorListener() [all …]
|
H A D | InputDeviceLightsManagerTest.java | 80 @Mock private IInputManager mIInputManagerMock; field in InputDeviceLightsManagerTest 87 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp() 90 InputManagerGlobal.resetInstance(mIInputManagerMock); in setUp() 103 }).when(mIInputManagerMock).setLightStates(eq(DEVICE_ID), in setUp() 112 }).when(mIInputManagerMock).getLightState(eq(DEVICE_ID), anyInt()); in setUp() 129 when(mIInputManagerMock.getLights(eq(DEVICE_ID))).thenReturn( in mockLights() 150 verify(mIInputManagerMock).getLights(eq(DEVICE_ID)); in testGetInputDeviceLights() 184 verify(mIInputManagerMock).openLightSession(eq(DEVICE_ID), in testControlMultipleLights() 203 verify(mIInputManagerMock).closeLightSession(eq(DEVICE_ID), eq(token)); in testControlMultipleLights() 231 verify(mIInputManagerMock).openLightSession(eq(DEVICE_ID), in testControlPlayerIdLight() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
H A D | InputManagerMockHelper.java | 48 private final IInputManager mIInputManagerMock; field in InputManagerMockHelper 57 mIInputManagerMock = iInputManagerMock; in InputManagerMockHelper() 71 }).when(mIInputManagerMock).registerInputDevicesChangedListener(notNull()); in InputManagerMockHelper() 72 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[0]); in InputManagerMockHelper() 74 .when(mIInputManagerMock).getInputDevice(anyInt()); in InputManagerMockHelper() 75 doNothing().when(mIInputManagerMock).addUniqueIdAssociation(anyString(), anyString()); in InputManagerMockHelper() 76 doNothing().when(mIInputManagerMock).removeUniqueIdAssociation(anyString()); in InputManagerMockHelper() 80 InputManagerGlobal.resetInstance(mIInputManagerMock); in InputManagerMockHelper()
|
H A D | InputControllerTest.java | 67 private IInputManager mIInputManagerMock; field in InputControllerTest 76 TestableLooper.get(this), mNativeWrapperMock, mIInputManagerMock); in setUp()
|
H A D | VirtualDeviceManagerServiceTest.java | 272 IInputManager mIInputManagerMock; field in VirtualDeviceManagerServiceTest 356 TestableLooper.get(this), mNativeWrapperMock, mIInputManagerMock); in setUp()
|