Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DInputDeviceDelegateTest.java145 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()
191 verify(mIInputManagerMock, times(2)).getInputDevice(eq(1)); in onInputDeviceChanged_deviceLosesVibrator_removesDevice()
198 when(mIInputManagerMock.getInputDevice(eq(1))) in onInputDeviceChanged_deviceLost_removesDevice()
206 verify(mIInputManagerMock, times(2)).getInputDevice(eq(1)); in onInputDeviceChanged_deviceLost_removesDevice()
213 when(mIInputManagerMock.getInputDevice(eq(1))) in onInputDeviceChanged_deviceAddsVibrator_addsDevice()
221 verify(mIInputManagerMock, times(2)).getInputDevice(eq(1)); in onInputDeviceChanged_deviceAddsVibrator_addsDevice()
228 when(mIInputManagerMock.getInputDevice(eq(1))).thenReturn( in onInputDeviceRemoved_removesDevice()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/
H A DKeyboardBacklightControllerTests.kt168 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
205 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
230 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
263 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
300 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
352 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
388 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
482 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
511 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
531 `when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardWithBacklight)
[all …]
H A DKeyRemapperTests.kt122 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboard)
160 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboard)
H A DKeyboardLayoutManagerTests.kt170 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardDevice)
171 Mockito.`when`(iInputManager.getInputDevice(VENDOR_SPECIFIC_DEVICE_ID))
173 Mockito.`when`(iInputManager.getInputDevice(ENGLISH_DVORAK_DEVICE_ID))
175 Mockito.`when`(iInputManager.getInputDevice(ENGLISH_QWERTY_DEVICE_ID))
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/
H A DStylusUsiPowerStartable.kt47 val device = inputManager.getInputDevice(deviceId) ?: return
75 .mapNotNull { inputManager.getInputDevice(it) }
H A DStylusManager.kt110 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return
135 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return
346 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: continue
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DInputDeviceDelegate.java148 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDeviceVibrators()
175 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDevice()
/aosp14/frameworks/base/core/java/android/view/
H A DSearchEvent.java35 public InputDevice getInputDevice() { in getInputDevice() method in SearchEvent
H A DKeyCharacterMap.java359 InputDevice inputDevice = im.getInputDevice(deviceId); in load()
361 inputDevice = im.getInputDevice(VIRTUAL_KEYBOARD); in load()
/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/input/
H A DInputDeviceLightsManagerTest.java87 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp()
135 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testGetInputDeviceLights()
156 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlMultipleLights()
208 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlPlayerIdLight()
H A DInputDeviceSensorManagerTest.java90 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp()
159 InputDevice device = mInputManager.getInputDevice(deviceId); in getSensorDevice()
H A DInputManagerTest.kt92 `when`(iInputManager.getInputDevice(deviceId))
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/
H A DStylusUsiPowerStartableTest.kt65 whenever(inputManager.getInputDevice(EXTERNAL_DEVICE_ID)).thenReturn(externalDevice)
66 whenever(inputManager.getInputDevice(STYLUS_DEVICE_ID)).thenReturn(stylusDevice)
H A DStylusManagerTest.kt113 whenever(inputManager.getInputDevice(OTHER_DEVICE_ID)).thenReturn(otherDevice)
114 whenever(inputManager.getInputDevice(STYLUS_DEVICE_ID)).thenReturn(stylusDevice)
115 whenever(inputManager.getInputDevice(BT_STYLUS_DEVICE_ID)).thenReturn(btStylusDevice)
H A DStylusUsiPowerUiTest.kt93 whenever(inputManager.getInputDevice(0)).thenReturn(btStylusDevice)
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DKeyRemapper.java98 InputDevice inputDevice = inputManager.getInputDevice(deviceId); in addKeyRemapping()
143 InputDevice inputDevice = inputManager.getInputDevice(deviceId); in onInputDeviceAdded()
H A DKeyboardLayoutManager.java185 final InputDevice inputDevice = getInputDevice(deviceId); in onInputDeviceChanged()
581 InputDevice inputDevice = getInputDevice(identifier); in getLayoutDescriptor()
735 final InputDevice device = getInputDevice(deviceId); in handleSwitchKeyboardLayout()
951 getInputDevice(mConfiguredKeyboards.keyAt(i))); in onCurrentImeInfoChanged()
967 InputDevice inputDevice = getInputDevice(identifier); in getKeyboardLayoutForInputDeviceInternal()
1142 final InputDevice device = getInputDevice(mConfiguredKeyboards.keyAt(0)); in showMissingKeyboardLayoutNotification()
1223 final InputDevice inputDevice = getInputDevice(mConfiguredKeyboards.keyAt(0)); in showConfiguredKeyboardLayoutNotification()
1313 private InputDevice getInputDevice(int deviceId) { in getInputDevice() method in KeyboardLayoutManager
1315 return inputManager != null ? inputManager.getInputDevice(deviceId) : null; in getInputDevice()
1319 private InputDevice getInputDevice(InputDeviceIdentifier identifier) { in getInputDevice() method in KeyboardLayoutManager
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/data/repository/
H A DKeyboardRepository.kt145 val device = inputManager.getInputDevice(deviceId) ?: return null
159 val device = inputManager.getInputDevice(deviceId) ?: return false
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/hardware/
H A DInputManager.kt41 inputDeviceIds.asSequence().mapNotNull { getInputDevice(it) }
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
H A DInputManagerMockHelper.java74 .when(mIInputManagerMock).getInputDevice(anyInt()); in InputManagerMockHelper()
/aosp14/frameworks/base/core/java/android/hardware/input/
H A DInputManagerGlobal.java175 public InputDevice getInputDevice(int id) { in getInputDevice() method in InputManagerGlobal
187 inputDevice = mIm.getInputDevice(id); in getInputDevice()
436 inputDevice = mIm.getInputDevice(id); in getInputDeviceByDescriptor()
466 final InputDevice device = getInputDevice(mInputDevices.keyAt(i)); in getHostUsiVersion()
H A DInputManager.java289 public InputDevice getInputDevice(int id) { in getInputDevice() method in InputManager
290 return mGlobal.getInputDevice(id); in getInputDevice()
H A DIInputManager.aidl51 InputDevice getInputDevice(int deviceId); in getInputDevice() method
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyboardShortcuts.java368 mBackupKeyCharacterMap = inputManager.getInputDevice(-1).getKeyCharacterMap(); in retrieveKeyCharacterMap()
370 final InputDevice inputDevice = inputManager.getInputDevice(deviceId); in retrieveKeyCharacterMap()
378 final InputDevice inputDevice = inputManager.getInputDevice(deviceIds[i]); in retrieveKeyCharacterMap()

12