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

12

/frameworks/base/core/java/android/view/
H A DInputDevice.aidl1 /* //device/java/android/android.view.InputDevice.aidl
20 parcelable InputDevice;
H A DInputEvent.java56 * @see InputDevice#getDevice
65 public final InputDevice getDevice() {
66 return InputDevice.getDevice(getDeviceId());
72 * @return The event source or {@link InputDevice#SOURCE_UNKNOWN} if unknown.
73 * @see InputDevice#getSources
89 * {@link InputDevice#SOURCE_TOUCH_NAVIGATION}, or a more generic device class, such as
90 * {@link InputDevice#SOURCE_CLASS_POINTER}.
H A DInputDevice.java45 public final class InputDevice implements Parcelable { class in inherits:Parcelable
347 public static final Parcelable.Creator<InputDevice> CREATOR =
348 new Parcelable.Creator<InputDevice>() {
349 public InputDevice createFromParcel(Parcel in) {
350 return new InputDevice(in);
352 public InputDevice[] newArray(int size) {
353 return new InputDevice[size];
358 private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, method in class:InputDevice
377 private InputDevice(Parcel in) { method in class:InputDevice
408 public static InputDevice getDevic
[all...]
H A DInputEventConsistencyVerifier.java176 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
265 if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
354 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) {
469 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) {
493 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
542 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
/frameworks/base/core/jni/
H A Dandroid_view_InputDevice.h22 #include <input/InputDevice.h>
26 /* Creates an InputDevice object from the given information. */
/frameworks/base/cmds/input/src/com/android/commands/input/
H A 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
[all...]
/frameworks/base/core/java/android/hardware/input/
H A DIInputManager.aidl24 import android.view.InputDevice;
30 InputDevice getInputDevice(int deviceId);
H A DInputManager.java39 import android.view.InputDevice;
67 private SparseArray<InputDevice> mInputDevices;
202 public InputDevice getInputDevice(int id) {
211 InputDevice inputDevice = mInputDevices.valueAt(index);
232 public InputDevice getInputDeviceByDescriptor(String descriptor) {
242 InputDevice inputDevice = mInputDevices.valueAt(i);
641 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret);
707 mInputDevices = new SparseArray<InputDevice>();
735 final InputDevice device = mInputDevices.valueAt(index);
805 * a fresh {@link InputDevice} objec
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DPointerEventDispatcher.java20 import android.view.InputDevice;
42 && (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) {
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DInteractionController.java26 import android.view.InputDevice;
194 InputDevice.SOURCE_KEYBOARD);
198 InputDevice.SOURCE_KEYBOARD);
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
[all...]
/frameworks/native/services/inputflinger/
H A DInputReader.h48 class InputDevice;
388 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0;
444 virtual InputDevice* createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
457 InputDevice* device, int32_t keyCode, int32_t scanCode);
483 KeyedVector<int32_t, InputDevice*> mDevices;
509 InputDevice* device, int32_t keyCode, int32_t scanCode);
518 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
540 class InputDevice { class in namespace:android
542 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, int32_t
544 ~InputDevice();
[all...]
H A DInputReader.cpp370 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes);
387 InputDevice* device = NULL;
410 InputDevice* InputReader::createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
412 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(),
478 InputDevice* device = mDevices.valueAt(deviceIndex);
489 InputDevice* device = mDevices.valueAt(i);
517 InputDevice* device = mDevices.valueAt(i);
528 InputDevice* device = mDevices.valueAt(i);
542 InputDevice* devic
857 InputDevice::InputDevice(InputReaderContext* context, int32_t id, int32_t generation, function in class:android::InputDevice
[all...]
/frameworks/native/include/input/
H A DKeyboard.h21 #include <input/InputDevice.h>
/frameworks/base/cmds/media/src/com/android/commands/media/
H A DMedia.java37 import android.view.InputDevice;
170 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD));
172 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD));
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java77 import android.view.InputDevice;
133 private InputDevice[] mInputDevices = new InputDevice[0];
139 private final ArrayList<InputDevice>
140 mTempFullKeyboards = new ArrayList<InputDevice>(); // handler thread only
381 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
394 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
407 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
420 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
576 public InputDevice getInputDevic
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityInputFilter.java25 import android.view.InputDevice;
149 && event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)) {
153 && event.isFromSource(InputDevice.SOURCE_KEYBOARD)) {
/frameworks/base/services/core/java/com/android/server/
H A DWiredAccessoryManager.java32 import android.view.InputDevice;
108 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_HEADPHONE_INSERT) == 1) {
111 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_MICROPHONE_INSERT) == 1) {
114 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_LINEOUT_INSERT) == 1) {
/frameworks/base/core/java/android/inputmethodservice/
H A DIInputMethodSessionWrapper.java31 import android.view.InputDevice;
235 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) {
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java28 import android.view.InputDevice;
568 InputDevice device = InputDevice.getDevice(event.getDeviceId());
665 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) {
667 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
669 } else if ((source & InputDevice.SOURCE_CLASS_POSITION) != 0) {
751 int[] deviceIds = InputDevice.getDeviceIds();
758 InputDevice device = mIm.getInputDevice(deviceId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyButtonView.java31 import android.view.InputDevice;
247 InputDevice.SOURCE_KEYBOARD);
/frameworks/native/libs/input/
H A DAndroid.mk22 InputDevice.cpp \
H A DInputDevice.cpp17 #define LOG_TAG "InputDevice"
23 #include <input/InputDevice.h>
/frameworks/base/core/java/android/app/
H A DInstrumentation.java42 import android.view.InputDevice;
888 if (source == InputDevice.SOURCE_UNKNOWN) {
889 source = InputDevice.SOURCE_KEYBOARD;
939 if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) == 0) {
940 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
959 if ((event.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) == 0) {
960 event.setSource(InputDevice.SOURCE_TRACKBALL);
H A DActivityView.java30 import android.view.InputDevice;
142 if (event.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewTouchHandler.java20 import android.view.InputDevice;
335 if ((ev.getSource() & InputDevice.SOURCE_CLASS_POINTER) ==
336 InputDevice.SOURCE_CLASS_POINTER) {

Completed in 505 milliseconds

12