Home
last modified time | relevance | path

Searched refs:InputDevice (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java22 import android.view.InputDevice;
40 put("keyboard", InputDevice.SOURCE_KEYBOARD);
41 put("dpad", InputDevice.SOURCE_DPAD);
42 put("gamepad", InputDevice.SOURCE_GAMEPAD);
43 put("touchscreen", InputDevice.SOURCE_TOUCHSCREEN);
44 put("mouse", InputDevice.SOURCE_MOUSE);
45 put("stylus", InputDevice.SOURCE_STYLUS);
46 put("trackball", InputDevice.SOURCE_TRACKBALL);
47 put("touchpad", InputDevice.SOURCE_TOUCHPAD);
48 put("touchnavigation", InputDevice.SOURCE_TOUCH_NAVIGATION);
[all …]
/frameworks/base/core/java/android/view/
DInputDevice.java44 public final class InputDevice implements Parcelable { class
337 public static final Parcelable.Creator<InputDevice> CREATOR =
338 new Parcelable.Creator<InputDevice>() {
339 public InputDevice createFromParcel(Parcel in) {
340 return new InputDevice(in);
342 public InputDevice[] newArray(int size) {
343 return new InputDevice[size];
348 private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, in InputDevice() method in InputDevice
366 private InputDevice(Parcel in) { in InputDevice() method in InputDevice
396 public static InputDevice getDevice(int id) { in getDevice()
DInputEvent.java65 public final InputDevice getDevice() { in getDevice()
66 return InputDevice.getDevice(getDeviceId()); in getDevice()
DInputEventConsistencyVerifier.java176 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onInputEvent()
265 if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onTrackballEvent()
354 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onTouchEvent()
469 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent()
493 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onGenericMotionEvent()
542 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onUnhandledEvent()
DInputDevice.aidl20 parcelable InputDevice;
DViewRootImpl.java3453 !q.mEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER) && in shouldDropInputEvent()
3729 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onProcess()
3825 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onProcess()
3827 } else if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onProcess()
3992 if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onProcess()
3995 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onProcess()
3998 } else if ((source & InputDevice.SOURCE_TOUCH_NAVIGATION) in onProcess()
3999 == InputDevice.SOURCE_TOUCH_NAVIGATION) { in onProcess()
4014 if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onDeliverToNext()
4016 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onDeliverToNext()
[all …]
DIWindowManager.aidl39 import android.view.InputDevice;
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java26 import android.view.InputDevice;
194 InputDevice.SOURCE_KEYBOARD); in sendKeyAndWaitForEvent()
198 InputDevice.SOURCE_KEYBOARD); in sendKeyAndWaitForEvent()
311 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
322 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
334 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
551 InputDevice.SOURCE_KEYBOARD);
555 InputDevice.SOURCE_KEYBOARD);
714 properties, pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
720 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
[all …]
/frameworks/base/services/input/
DInputReader.h47 class InputDevice; variable
356 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0;
412 virtual InputDevice* createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
425 InputDevice* device, int32_t keyCode, int32_t scanCode);
451 KeyedVector<int32_t, InputDevice*> mDevices;
477 InputDevice* device, int32_t keyCode, int32_t scanCode);
486 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
508 class InputDevice {
510 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, int32_t
512 ~InputDevice();
[all …]
DInputReader.cpp359 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes); in addDeviceLocked()
376 InputDevice* device = NULL; in removeDeviceLocked()
399 InputDevice* InputReader::createDeviceLocked(int32_t deviceId, int32_t controllerNumber, in createDeviceLocked()
401 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked()
467 InputDevice* device = mDevices.valueAt(deviceIndex); in processEventsForDeviceLocked()
478 InputDevice* device = mDevices.valueAt(i); in timeoutExpiredLocked()
506 InputDevice* device = mDevices.valueAt(i); in refreshConfigurationLocked()
517 InputDevice* device = mDevices.valueAt(i); in updateGlobalMetaStateLocked()
531 InputDevice* device, int32_t keyCode, int32_t scanCode) { in shouldDropVirtualKeyLocked()
546 InputDevice* device = mDevices.valueAt(i); in fadePointerLocked()
[all …]
/frameworks/base/core/java/android/hardware/input/
DInputManager.java36 import android.view.InputDevice;
64 private SparseArray<InputDevice> mInputDevices;
199 public InputDevice getInputDevice(int id) { in getInputDevice()
208 InputDevice inputDevice = mInputDevices.valueAt(index); in getInputDevice()
229 public InputDevice getInputDeviceByDescriptor(String descriptor) { in getInputDeviceByDescriptor()
239 InputDevice inputDevice = mInputDevices.valueAt(i); in getInputDeviceByDescriptor()
601 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
667 mInputDevices = new SparseArray<InputDevice>(); in populateInputDevicesLocked()
695 final InputDevice device = mInputDevices.valueAt(index); in onInputDevicesChanged()
DIInputManager.aidl22 import android.view.InputDevice;
28 InputDevice getInputDevice(int deviceId); in getInputDevice()
/frameworks/base/services/java/com/android/server/wm/
DPointerEventDispatcher.java20 import android.view.InputDevice;
42 && (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onInputEvent()
/frameworks/base/services/java/com/android/server/input/
DInputManagerService.java71 import android.view.InputDevice;
126 private InputDevice[] mInputDevices = new InputDevice[0];
132 private final ArrayList<InputDevice>
133 mTempFullKeyboards = new ArrayList<InputDevice>(); // handler thread only
550 public InputDevice getInputDevice(int deviceId) { in getInputDevice()
554 final InputDevice inputDevice = mInputDevices[i]; in getInputDevice()
583 public InputDevice[] getInputDevices() { in getInputDevices()
623 private void deliverInputDevicesChanged(InputDevice[] oldInputDevices) { in deliverInputDevicesChanged()
645 final InputDevice inputDevice = mInputDevices[i]; in deliverInputDevicesChanged()
674 final InputDevice inputDevice = mTempFullKeyboards.get(i); in deliverInputDevicesChanged()
[all …]
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java30 import android.view.InputDevice;
125 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
127 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityInputFilter.java25 import android.view.InputDevice;
149 && event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)) { in onInputEvent()
153 && event.isFromSource(InputDevice.SOURCE_KEYBOARD)) { in onInputEvent()
/frameworks/native/libs/input/
DAndroid.mk22 InputDevice.cpp \
/frameworks/base/docs/html/sdk/api_diff/12/
DmissingSinces.txt29 NO DOC BLOCK: android.view.InputDevice.MotionRange Method getAxis()
44 NO DOC BLOCK: android.view.InputDevice Method getMotionRange(int, int)
45 NO DOC BLOCK: android.view.InputDevice Method getMotionRanges()
46 NO DOC BLOCK: android.view.InputDevice.MotionRange Method getSource()
163 NO DOC BLOCK: android.view.InputDevice Field SOURCE_CLASS_JOYSTICK
164 NO DOC BLOCK: android.view.InputDevice Field SOURCE_GAMEPAD
165 NO DOC BLOCK: android.view.InputDevice Field SOURCE_JOYSTICK
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java28 import android.view.InputDevice;
565 InputDevice device = InputDevice.getDevice(event.getDeviceId()); in addPointerEvent()
662 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent()
664 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onGenericMotionEvent()
666 } else if ((source & InputDevice.SOURCE_CLASS_POSITION) != 0) { in onGenericMotionEvent()
748 int[] deviceIds = InputDevice.getDeviceIds(); in logInputDevices()
755 InputDevice device = mIm.getInputDevice(deviceId); in logInputDeviceState()
/frameworks/base/core/java/android/app/
DInstrumentation.java41 import android.view.InputDevice;
883 if (source == InputDevice.SOURCE_UNKNOWN) { in sendKeySync()
884 source = InputDevice.SOURCE_KEYBOARD; in sendKeySync()
934 if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) == 0) { in sendPointerSync()
935 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in sendPointerSync()
954 if ((event.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) == 0) { in sendTrackballEventSync()
955 event.setSource(InputDevice.SOURCE_TRACKBALL); in sendTrackballEventSync()
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodSessionWrapper.java32 import android.view.InputDevice;
216 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in onInputEvent()
/frameworks/base/services/java/com/android/server/
DWiredAccessoryManager.java32 import android.view.InputDevice;
112 … if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_HEADPHONE_INSERT) == 1) { in bootCompleted()
115 … if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_MICROPHONE_INSERT) == 1) { in bootCompleted()
DConsumerIrService.java40 import android.view.InputDevice;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonView.java32 import android.view.InputDevice;
310 InputDevice.SOURCE_KEYBOARD); in sendEvent()
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java21 import android.view.InputDevice;
94 if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent()

12