Home
last modified time | relevance | path

Searched refs:inputDevice (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceEnabledTest.java56 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in testIsEnabled() local
58 inputDevice.isEnabled(); // output is not checked in testIsEnabled()
69 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in testEnableDisableException() local
72 inputDevice.enable(); in testEnableDisableException()
79 inputDevice.disable(); in testEnableDisableException()
DInputDeviceVibratorTest.java95 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getVibrator() local
96 Vibrator vibrator = inputDevice.getVibrator(); in getVibrator()
97 if (vibrator.hasVibrator() && inputDevice.getVendorId() == vid in getVibrator()
98 && inputDevice.getProductId() == pid) { in getVibrator()
100 + inputDevice.getVendorId() + " ProductId: " + inputDevice.getProductId()); in getVibrator()
DInputDeviceVibratorManagerTest.java84 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getVibratorManager() local
85 if (inputDevice.getVendorId() == vid && inputDevice.getProductId() == pid) { in getVibratorManager()
86 VibratorManager vibratorManager = inputDevice.getVibratorManager(); in getVibratorManager()
88 + inputDevice.getVendorId() + " ProductId: " + inputDevice.getProductId()); in getVibratorManager()
DInputDeviceSensorManagerTest.java220 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getSensorManager() local
221 if (inputDevice.getVendorId() == vid && inputDevice.getProductId() == pid) { in getSensorManager()
222 SensorManager sensorManager = inputDevice.getSensorManager(); in getSensorManager()
225 + inputDevice.getVendorId() + " ProductId: " + inputDevice.getProductId()); in getSensorManager()
DInputDeviceMultiDeviceKeyEventTest.java108 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in setup() local
109 final int index = inputDevice.getProductId() - GOOGLE_VIRTUAL_KEYBOARD_ID - 1; in setup()
110 if (inputDevice.getVendorId() == GOOGLE_VENDOR_ID in setup()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMicrophoneDeviceTestActivity.java111 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in createInputDeviceItems() local
112 final boolean hasMicrophone = inputDevice.hasMicrophone(); in createInputDeviceItems()
113 Log.w(TAG, "name: " + inputDevice.getName() + ", mic: " + hasMicrophone + ", virtual: " in createInputDeviceItems()
114 + inputDevice.isVirtual() + ", descriptor: " + inputDevice.getDescriptor()); in createInputDeviceItems()
118 if (inputDevice.isVirtual()) { in createInputDeviceItems()
123 getString(R.string.tv_microphone_device_test_mic_question, inputDevice.getName()); in createInputDeviceItems()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java143 boolean check(InputDevice inputDevice); in check() argument
172 final InputDevice inputDevice = inputManager.getInputDevice(inputDeviceId); in getInputDevice() local
173 Objects.requireNonNull(inputDevice, "Failed to get InputDevice"); in getInputDevice()
174 if (inputDevice.getVendorId() == mVid && inputDevice.getProductId() == mPid in getInputDevice()
175 && capability.check(inputDevice)) { in getInputDevice()
176 return inputDevice; in getInputDevice()
188 InputDevice inputDevice = getInputDevice((d) -> d.getVibrator().hasVibrator()); in getVibrator() local
189 if (inputDevice == null) { in getVibrator()
192 return inputDevice.getVibrator(); in getVibrator()
201 InputDevice inputDevice = getInputDevice( in getLightsManager() local
[all …]
DVirtualKeyboardLayoutTest.java179 InputDevice inputDevice = mInputManager.getInputDevice(virtualKeyboard.getInputDeviceId()); in createVirtualKeyboard() local
180 assertThat(inputDevice).isNotNull(); in createVirtualKeyboard()
181 return inputDevice; in createVirtualKeyboard()
DVirtualInputDeviceGenericTest.java105 Closeable inputDevice = in close_multipleCallsSucceed() local
107 inputDevice.close(); in close_multipleCallsSucceed()
108 inputDevice.close(); in close_multipleCallsSucceed()
109 inputDevice.close(); in close_multipleCallsSucceed()
/cts/tests/tests/view/src/android/view/cts/
DSearchEventTest.java80 final InputDevice inputDevice = inputManager.getInputDevice(inputDeviceId); in testConstructor() local
81 new SearchEvent(inputDevice); in testConstructor()
/cts/tests/input/src/android/input/cts/
DModifierKeyRemappingTest.kt105 val inputDevice = inputManager.getInputDevice(keyboardDevice.deviceId) in testModifierKeyRemapping() constant
135 inputDevice?.getKeyCodeForKeyLocation(fromKeyCode) in testModifierKeyRemapping()
150 inputDevice?.getKeyCodeForKeyLocation(keyCode) in testModifierKeyRemapping()
/cts/libs/input/src/com/android/cts/input/
DUinputTouchDevice.kt134 val inputDevice = inputManager.getInputDevice(uinputDevice.deviceId) in associateWith() constant
135 display.displayId == inputDevice!!.associatedDisplayId in associateWith()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DStylusHandwritingTest.java3255 InputDevice inputDevice = im.getInputDevice(id);
3256 if (inputDevice != null && isStylusDevice(inputDevice)) {
3263 private static boolean isStylusDevice(InputDevice inputDevice) {
3264 return inputDevice.supportsSource(InputDevice.SOURCE_STYLUS)
3265 || inputDevice.supportsSource(InputDevice.SOURCE_BLUETOOTH_STYLUS);