Home
last modified time | relevance | path

Searched refs:getInputDevice (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DInputDeviceDelegateTest.java116 verify(mIInputManagerMock, never()).getInputDevice(anyInt()); in beforeSystemReady_ignoresAnyUpdate()
126 when(mIInputManagerMock.getInputDevice(eq(1))).thenReturn(createInputDeviceWithVibrator(1)); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
130 verify(mIInputManagerMock, never()).getInputDevice(anyInt()); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
140 when(mIInputManagerMock.getInputDevice(eq(1))) in onInputDeviceAdded_withDeviceWithoutVibrator_ignoresNewDevice()
145 verify(mIInputManagerMock).getInputDevice(eq(1)); in onInputDeviceAdded_withDeviceWithoutVibrator_ignoresNewDevice()
155 when(mIInputManagerMock.getInputDevice(eq(1))).thenReturn(createInputDeviceWithVibrator(1)); in onInputDeviceAdded_withDeviceWithVibrator_addsNewDevice()
159 verify(mIInputManagerMock).getInputDevice(eq(1)); in onInputDeviceAdded_withDeviceWithVibrator_addsNewDevice()
166 when(mIInputManagerMock.getInputDevice(eq(1))).thenReturn(createInputDeviceWithVibrator(1)); in onInputDeviceChanged_withSettingsDisabled_ignoresDevice()
171 verify(mIInputManagerMock, never()).getInputDevice(anyInt()); in onInputDeviceChanged_withSettingsDisabled_ignoresDevice()
178 when(mIInputManagerMock.getInputDevice(eq(1))) in onInputDeviceChanged_deviceLosesVibrator_removesDevice()
[all …]
/frameworks/base/tests/Input/src/com/android/server/input/
DKeyboardBacklightControllerTests.kt171 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
189 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithoutBacklight) in createKeyboard()
208 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
233 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
266 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
303 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
355 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
391 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
485 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
514 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight) in createKeyboard()
[all …]
DKeyRemapperTests.kt125 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboard) in createKeyboard()
163 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboard) in createKeyboard()
DKeyboardLayoutManagerTests.kt201 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardDevice) in createKeyboard()
202 Mockito.`when`(iInputManager.getInputDevice(VENDOR_SPECIFIC_DEVICE_ID)) in createKeyboard()
204 Mockito.`when`(iInputManager.getInputDevice(ENGLISH_DVORAK_DEVICE_ID)) in createKeyboard()
206 Mockito.`when`(iInputManager.getInputDevice(ENGLISH_QWERTY_DEVICE_ID)) in createKeyboard()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/
DStylusUsiPowerStartable.kt47 val device = inputManager.getInputDevice(deviceId) ?: return in onStylusAdded()
75 .mapNotNull { inputManager.getInputDevice(it) } in hostDeviceSupportsStylusInput()
DStylusManager.kt110 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return in <lambda>()
135 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return in <lambda>()
346 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: continue in <lambda>()
/frameworks/base/services/core/java/com/android/server/vibrator/
DInputDeviceDelegate.java148 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDeviceVibrators()
175 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDevice()
/frameworks/base/core/java/android/view/
DSearchEvent.java35 public InputDevice getInputDevice() { in getInputDevice() method in SearchEvent
DKeyCharacterMap.java364 InputDevice inputDevice = im.getInputDevice(deviceId); in load()
366 inputDevice = im.getInputDevice(VIRTUAL_KEYBOARD); in load()
/frameworks/base/tests/Input/src/android/hardware/input/
DInputDeviceLightsManagerTest.java89 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp()
139 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testGetInputDeviceLights()
160 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlMultipleLights()
212 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlPlayerIdLight()
DInputDeviceSensorManagerTest.java92 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp()
163 InputDevice device = mInputManager.getInputDevice(deviceId); in getSensorDevice()
DInputManagerTest.kt95 `when`(iInputManager.getInputDevice(deviceId)) in notifyDeviceChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/
DStylusUsiPowerStartableTest.kt65 whenever(inputManager.getInputDevice(EXTERNAL_DEVICE_ID)).thenReturn(externalDevice) in setUp()
66 whenever(inputManager.getInputDevice(STYLUS_DEVICE_ID)).thenReturn(stylusDevice) in setUp()
DStylusManagerTest.kt113 whenever(inputManager.getInputDevice(OTHER_DEVICE_ID)).thenReturn(otherDevice) in <lambda>()
114 whenever(inputManager.getInputDevice(STYLUS_DEVICE_ID)).thenReturn(stylusDevice) in <lambda>()
115 whenever(inputManager.getInputDevice(BT_STYLUS_DEVICE_ID)).thenReturn(btStylusDevice) in <lambda>()
DStylusUsiPowerUiTest.kt93 whenever(inputManager.getInputDevice(0)).thenReturn(btStylusDevice) in setUp()
/frameworks/base/services/core/java/com/android/server/input/
DKeyRemapper.java98 InputDevice inputDevice = inputManager.getInputDevice(deviceId); in addKeyRemapping()
143 InputDevice inputDevice = inputManager.getInputDevice(deviceId); in onInputDeviceAdded()
DKeyboardLayoutManager.java194 final InputDevice inputDevice = getInputDevice(deviceId); in onInputDeviceChangedInternal()
505 InputDevice inputDevice = getInputDevice(identifier); in getKeyboardLayoutForInputDevice()
526 InputDevice inputDevice = getInputDevice(identifier); in setKeyboardLayoutForInputDevice()
554 InputDevice inputDevice = getInputDevice(identifier); in getKeyboardLayoutListForInputDevice()
868 final InputDevice device = getInputDevice(mConfiguredKeyboards.keyAt(0)); in showMissingKeyboardLayoutNotification()
951 final InputDevice inputDevice = getInputDevice(config.getDeviceId()); in showConfiguredKeyboardLayoutNotification()
1038 private InputDevice getInputDevice(int deviceId) { in getInputDevice() method in KeyboardLayoutManager
1040 return inputManager != null ? inputManager.getInputDevice(deviceId) : null; in getInputDevice()
1044 private InputDevice getInputDevice(InputDeviceIdentifier identifier) { in getInputDevice() method in KeyboardLayoutManager
DKeyboardBacklightController.java196 InputDevice inputDevice = getInputDevice(deviceId); in updateKeyboardBacklight()
379 InputDevice inputDevice = getInputDevice(deviceId); in onInputDeviceChanged()
397 private InputDevice getInputDevice(int deviceId) { in getInputDevice() method in KeyboardBacklightController
399 return inputManager != null ? inputManager.getInputDevice(deviceId) : null; in getInputDevice()
DKeyboardLedController.java148 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/hardware/
DInputManager.kt41 inputDeviceIds.asSequence().mapNotNull { getInputDevice(it) } in InputManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/data/repository/
DKeyboardRepository.kt149 val device = inputManager.getInputDevice(deviceId) ?: return null in deviceIdToKeyboard()
163 val device = inputManager.getInputDevice(deviceId) ?: return false in isPhysicalFullKeyboard()
/frameworks/base/core/java/android/hardware/input/
DInputManager.java296 public InputDevice getInputDevice(int id) { in getInputDevice() method in InputManager
297 return mGlobal.getInputDevice(id); in getInputDevice()
313 InputDevice device = getInputDevice(deviceId); in getInputDeviceViewBehavior()
DInputManagerGlobal.java194 public InputDevice getInputDevice(int id) { in getInputDevice() method in InputManagerGlobal
206 inputDevice = mIm.getInputDevice(id); in getInputDevice()
452 inputDevice = mIm.getInputDevice(id); in getInputDeviceByDescriptor()
482 final InputDevice device = getInputDevice(mInputDevices.keyAt(i)); in getHostUsiVersion()
DIInputManager.aidl54 InputDevice getInputDevice(int deviceId); in getInputDevice() method
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DInputManagerMockHelper.java81 .when(mIInputManagerMock).getInputDevice(anyInt()); in InputManagerMockHelper()

123