Searched refs:inputDevice (Results 1 – 8 of 8) sorted by relevance
54 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in testIsEnabled() local56 inputDevice.isEnabled(); // output is not checked in testIsEnabled()67 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in testEnableDisableException() local70 inputDevice.enable(); in testEnableDisableException()77 inputDevice.disable(); in testEnableDisableException()
91 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getVibrator() local92 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()
75 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getVibratorManager() local76 if (inputDevice.getVendorId() == vid && inputDevice.getProductId() == pid) { in getVibratorManager()77 VibratorManager vibratorManager = inputDevice.getVibratorManager(); in getVibratorManager()79 + inputDevice.getVendorId() + " ProductId: " + inputDevice.getProductId()); in getVibratorManager()
217 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getSensorManager() local218 if (inputDevice.getVendorId() == vid && inputDevice.getProductId() == pid) { in getSensorManager()219 SensorManager sensorManager = inputDevice.getSensorManager(); in getSensorManager()222 + inputDevice.getVendorId() + " ProductId: " + inputDevice.getProductId()); in getSensorManager()
106 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in setup() local107 final int index = inputDevice.getProductId() - GOOGLE_VIRTUAL_KEYBOARD_ID - 1; in setup()108 if (inputDevice.getVendorId() == GOOGLE_VENDOR_ID in setup()
111 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in createInputDeviceItems() local112 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()
111 boolean check(InputDevice inputDevice); in check() argument152 final InputDevice inputDevice = inputManager.getInputDevice(inputDeviceId); in getInputDevice() local153 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() local168 if (inputDevice == null) { in getVibrator()171 return inputDevice.getVibrator(); in getVibrator()180 InputDevice inputDevice = getInputDevice((d) -> d.getBatteryState().isPresent()); in getBatteryState() local181 if (inputDevice == null) { in getBatteryState()[all …]
70 final InputDevice inputDevice = inputManager.getInputDevice(inputDeviceId); in testConstructor() local71 new SearchEvent(inputDevice); in testConstructor()