Lines Matching refs:InputDevice
36 import android.view.InputDevice;
64 private SparseArray<InputDevice> mInputDevices;
199 public InputDevice getInputDevice(int id) {
208 InputDevice inputDevice = mInputDevices.valueAt(index);
209 if (inputDevice == null) {
211 inputDevice = mIm.getInputDevice(id);
215 if (inputDevice != null) {
216 mInputDevices.setValueAt(index, inputDevice);
219 return inputDevice;
229 public InputDevice getInputDeviceByDescriptor(String descriptor) {
239 InputDevice inputDevice = mInputDevices.valueAt(i);
240 if (inputDevice == null) {
243 inputDevice = mIm.getInputDevice(id);
247 if (inputDevice == null) {
250 mInputDevices.setValueAt(i, inputDevice);
252 if (descriptor.equals(inputDevice.getDescriptor())) {
253 return inputDevice;
601 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret);
667 mInputDevices = new SparseArray<InputDevice>();
695 final InputDevice device = mInputDevices.valueAt(index);
765 * a fresh {@link InputDevice} object with the new properties.