Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceEnabledTest.java54 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in testIsEnabled() local
56 inputDevice.isEnabled(); // output is not checked in testIsEnabled()
67 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in testEnableDisableException() local
70 inputDevice.enable(); in testEnableDisableException()
77 inputDevice.disable(); in testEnableDisableException()
DInputDeviceVibratorTest.java91 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getVibrator() local
92 Vibrator vibrator = inputDevice.getVibrator(); in getVibrator()
93 if (vibrator.hasVibrator() && inputDevice.getVendorId() == vid in getVibrator()
94 && inputDevice.getProductId() == pid) { in getVibrator()
96 + inputDevice.getVendorId() + " ProductId: " + inputDevice.getProductId()); in getVibrator()
DInputDeviceVibratorManagerTest.java75 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getVibratorManager() local
76 if (inputDevice.getVendorId() == vid && inputDevice.getProductId() == pid) { in getVibratorManager()
77 VibratorManager vibratorManager = inputDevice.getVibratorManager(); in getVibratorManager()
79 + inputDevice.getVendorId() + " ProductId: " + inputDevice.getProductId()); in getVibratorManager()
DInputDeviceSensorManagerTest.java217 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getSensorManager() local
218 if (inputDevice.getVendorId() == vid && inputDevice.getProductId() == pid) { in getSensorManager()
219 SensorManager sensorManager = inputDevice.getSensorManager(); in getSensorManager()
222 + inputDevice.getVendorId() + " ProductId: " + inputDevice.getProductId()); in getSensorManager()
DInputDeviceMultiDeviceKeyEventTest.java106 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in setup() local
107 final int index = inputDevice.getProductId() - GOOGLE_VIRTUAL_KEYBOARD_ID - 1; in setup()
108 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.java111 boolean check(InputDevice inputDevice); in check() argument
152 final InputDevice inputDevice = inputManager.getInputDevice(inputDeviceId); in getInputDevice() local
153 if (inputDevice.getVendorId() == mVid && inputDevice.getProductId() == mPid in getInputDevice()
154 && capability.check(inputDevice)) { in getInputDevice()
155 return inputDevice; in getInputDevice()
167 InputDevice inputDevice = getInputDevice((d) -> d.getVibrator().hasVibrator()); in getVibrator() local
168 if (inputDevice == null) { in getVibrator()
171 return inputDevice.getVibrator(); in getVibrator()
180 InputDevice inputDevice = getInputDevice((d) -> d.getBatteryState().isPresent()); in getBatteryState() local
181 if (inputDevice == null) { in getBatteryState()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DSearchEventTest.java70 final InputDevice inputDevice = inputManager.getInputDevice(inputDeviceId); in testConstructor() local
71 new SearchEvent(inputDevice); in testConstructor()