Home
last modified time | relevance | path

Searched refs:mIInputManagerMock (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DInputDeviceDelegateTest.java68 @Mock private IInputManager mIInputManagerMock; field in InputDeviceDelegateTest
80 mInputManagerGlobalSession = InputManagerGlobal.createTestSession(mIInputManagerMock); in setUp()
87 .when(mIInputManagerMock).registerInputDevicesChangedListener(any()); in setUp()
103 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[0]); in beforeSystemReady_ignoresAnyUpdate()
116 verify(mIInputManagerMock, never()).getInputDevice(anyInt()); in beforeSystemReady_ignoresAnyUpdate()
121 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[0]); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
125 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
126 when(mIInputManagerMock.getInputDevice(eq(1))).thenReturn(createInputDeviceWithVibrator(1)); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
130 verify(mIInputManagerMock, never()).getInputDevice(anyInt()); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
135 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[0]); in onInputDeviceAdded_withDeviceWithoutVibrator_ignoresNewDevice()
[all …]
DVibratorManagerServiceTest.java175 private IInputManager mIInputManagerMock; field in VibratorManagerServiceTest
205 mInputManagerGlobalSession = InputManagerGlobal.createTestSession(mIInputManagerMock); in setUp()
220 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[0]); in setUp()
1204 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[]{1}); in vibrate_withInputDevices_vibratesInputDevices()
1205 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}); in vibrate_withInputDevices_vibratesInputDevices()
1206 when(mIInputManagerMock.getInputDevice(eq(1))).thenReturn(createInputDeviceWithVibrator(1)); in vibrate_withInputDevices_vibratesInputDevices()
1217 verify(mIInputManagerMock).vibrateCombined(eq(1), eq(effect), any()); in vibrate_withInputDevices_vibratesInputDevices()
/frameworks/base/tests/Input/src/android/hardware/input/
DInputDeviceSensorManagerTest.java79 @Mock private IInputManager mIInputManagerMock; field in InputDeviceSensorManagerTest
86 mInputManagerGlobalSession = InputManagerGlobal.createTestSession(mIInputManagerMock); in setUp()
90 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[]{DEVICE_ID}); in setUp()
92 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp()
95 when(mIInputManagerMock.getSensorList(eq(DEVICE_ID))).thenReturn(new InputSensorInfo[] { in setUp()
99 when(mIInputManagerMock.enableSensor(eq(DEVICE_ID), anyInt(), anyInt(), anyInt())) in setUp()
102 when(mIInputManagerMock.registerSensorListener(any())).thenReturn(true); in setUp()
178 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withExpectedType()
184 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withExpectedType()
200 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withUnexpectedType()
[all …]
DInputDeviceLightsManagerTest.java80 @Mock private IInputManager mIInputManagerMock; field in InputDeviceLightsManagerTest
87 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[]{DEVICE_ID}); in setUp()
89 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp()
92 mInputManagerGlobalSession = InputManagerGlobal.createTestSession(mIInputManagerMock); in setUp()
105 }).when(mIInputManagerMock).setLightStates(eq(DEVICE_ID), in setUp()
114 }).when(mIInputManagerMock).getLightState(eq(DEVICE_ID), anyInt()); in setUp()
133 when(mIInputManagerMock.getLights(eq(DEVICE_ID))).thenReturn( in mockLights()
154 verify(mIInputManagerMock).getLights(eq(DEVICE_ID)); in testGetInputDeviceLights()
188 verify(mIInputManagerMock).openLightSession(eq(DEVICE_ID), in testControlMultipleLights()
190 verify(mIInputManagerMock).setLightStates(eq(DEVICE_ID), eq(new int[]{1, 2, 3}), in testControlMultipleLights()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DInputManagerMockHelper.java50 private final IInputManager mIInputManagerMock; field in InputManagerMockHelper
64 mIInputManagerMock = iInputManagerMock; in InputManagerMockHelper()
78 }).when(mIInputManagerMock).registerInputDevicesChangedListener(notNull()); in InputManagerMockHelper()
79 when(mIInputManagerMock.getInputDeviceIds()).thenReturn(new int[0]); in InputManagerMockHelper()
81 .when(mIInputManagerMock).getInputDevice(anyInt()); in InputManagerMockHelper()
83 inv.getArgument(1))).when(mIInputManagerMock).addUniqueIdAssociationByPort( in InputManagerMockHelper()
86 mIInputManagerMock).removeUniqueIdAssociationByPort(anyString()); in InputManagerMockHelper()
90 mInputManagerGlobalSession = InputManagerGlobal.createTestSession(mIInputManagerMock); in InputManagerMockHelper()
DInputControllerTest.java67 private IInputManager mIInputManagerMock; field in InputControllerTest
76 TestableLooper.get(this), mNativeWrapperMock, mIInputManagerMock); in setUp()
DVirtualDeviceManagerServiceTest.java284 IInputManager mIInputManagerMock; field in VirtualDeviceManagerServiceTest
384 TestableLooper.get(this), mNativeWrapperMock, mIInputManagerMock); in setUp()