Lines Matching refs:InputDevice
71 import android.view.InputDevice;
126 private InputDevice[] mInputDevices = new InputDevice[0];
132 private final ArrayList<InputDevice>
133 mTempFullKeyboards = new ArrayList<InputDevice>(); // handler thread only
359 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
372 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
385 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
398 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
550 public InputDevice getInputDevice(int deviceId) {
554 final InputDevice inputDevice = mInputDevices[i];
555 if (inputDevice.getId() == deviceId) {
556 return inputDevice;
583 public InputDevice[] getInputDevices() {
623 private void deliverInputDevicesChanged(InputDevice[] oldInputDevices) {
645 final InputDevice inputDevice = mInputDevices[i];
646 deviceIdAndGeneration[i * 2] = inputDevice.getId();
647 deviceIdAndGeneration[i * 2 + 1] = inputDevice.getGeneration();
649 if (!inputDevice.isVirtual() && inputDevice.isFullKeyboard()) {
651 inputDevice.getDescriptor())) {
652 mTempFullKeyboards.add(numFullKeyboardsAdded++, inputDevice);
654 mTempFullKeyboards.add(inputDevice);
674 final InputDevice inputDevice = mTempFullKeyboards.get(i);
675 if (mDataStore.getCurrentKeyboardLayout(inputDevice.getDescriptor()) == null) {
756 private static boolean containsInputDeviceWithDescriptor(InputDevice[] inputDevices,
760 final InputDevice inputDevice = inputDevices[i];
761 if (inputDevice.getDescriptor().equals(descriptor)) {
1008 final InputDevice device = getInputDevice(deviceId);
1259 private void notifyInputDevicesChanged(InputDevice[] inputDevices) {
1516 deliverInputDevicesChanged((InputDevice[])msg.obj);