Searched refs:InputDevice (Results 1 - 25 of 43) 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#getSourceInfo
H A DInputDevice.java44 public final class InputDevice implements Parcelable { class in inherits:Parcelable
315 public static final Parcelable.Creator<InputDevice> CREATOR =
316 new Parcelable.Creator<InputDevice>() {
317 public InputDevice createFromParcel(Parcel in) {
318 return new InputDevice(in);
320 public InputDevice[] newArray(int size) {
321 return new InputDevice[size];
326 private InputDevice(int id, int generation, String name, String descriptor, method in class:InputDevice
340 private InputDevice(Parcel in) { method in class:InputDevice
366 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) {
H A DIWindowManager.aidl38 import android.view.InputDevice;
/frameworks/base/core/jni/
H A Dandroid_view_InputDevice.h22 #include <androidfw/InputDevice.h>
26 /* Creates an InputDevice object from the given information. */
/frameworks/base/core/java/android/hardware/input/
H A DIInputManager.aidl22 import android.view.InputDevice;
28 InputDevice getInputDevice(int deviceId);
H A DInputManager.java36 import android.view.InputDevice;
64 private SparseArray<InputDevice> mInputDevices;
199 public InputDevice getInputDevice(int id) {
208 InputDevice inputDevice = mInputDevices.valueAt(index);
227 public InputDevice getInputDeviceByDescriptor(String descriptor) {
237 InputDevice inputDevice = mInputDevices.valueAt(i);
580 mIm.hasKeys(-1, InputDevice.SOURCE_ANY, keyCodes, ret);
645 mInputDevices = new SparseArray<InputDevice>();
673 final InputDevice device = mInputDevices.valueAt(index);
743 * a fresh {@link InputDevice} objec
[all...]
/frameworks/base/cmds/input/src/com/android/commands/input/
H A DInput.java22 import android.view.InputDevice;
69 sendTap(InputDevice.SOURCE_TOUCHSCREEN, Float.parseFloat(args[1]), Float.parseFloat(args[2]));
74 sendSwipe(InputDevice.SOURCE_TOUCHSCREEN, Float.parseFloat(args[1]), Float.parseFloat(args[2]),
80 int inputSource = InputDevice.SOURCE_TOUCHSCREEN;
82 inputSource = InputDevice.SOURCE_TOUCHPAD;
107 sendTap(InputDevice.SOURCE_TRACKBALL, 0.0f, 0.0f);
111 sendMove(InputDevice.SOURCE_TRACKBALL, Float.parseFloat(args[2]),
164 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD));
166 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD));
190 * @param inputSource the InputDevice
[all...]
/frameworks/base/services/input/
H A DInputReader.h47 class InputDevice;
356 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0;
412 virtual InputDevice* createDeviceLocked(int32_t deviceId,
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 { class in namespace:android
510 InputDevice(InputReaderContext* context, int32_t id, int32_t generation,
512 ~InputDevice();
[all...]
H A DInputReader.cpp358 InputDevice* device = createDeviceLocked(deviceId, identifier, classes);
375 InputDevice* device = NULL;
398 InputDevice* InputReader::createDeviceLocked(int32_t deviceId,
400 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(),
466 InputDevice* device = mDevices.valueAt(deviceIndex);
477 InputDevice* device = mDevices.valueAt(i);
505 InputDevice* device = mDevices.valueAt(i);
516 InputDevice* device = mDevices.valueAt(i);
530 InputDevice* devic
845 InputDevice::InputDevice(InputReaderContext* context, int32_t id, int32_t generation, function in class:android::InputDevice
[all...]
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DInteractionController.java37 import android.view.InputDevice;
276 InputDevice.SOURCE_KEYBOARD, null);
280 InputDevice.SOURCE_KEYBOARD, null);
345 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
356 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
368 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
515 InputDevice.SOURCE_KEYBOARD, null);
519 InputDevice.SOURCE_KEYBOARD, null);
/frameworks/base/include/androidfw/
H A DKeyboard.h21 #include <androidfw/InputDevice.h>
/frameworks/base/services/java/com/android/server/accessibility/
H A DAccessibilityInputFilter.java22 import android.view.InputDevice;
105 if (event.getSource() != InputDevice.SOURCE_TOUCHSCREEN) {
/frameworks/base/services/java/com/android/server/input/
H A 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
358 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
371 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
384 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
397 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to
549 public InputDevice getInputDevic
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DEventHole.java31 import android.view.InputDevice;
H A DKeyButtonView.java34 import android.view.InputDevice;
282 InputDevice.SOURCE_KEYBOARD);
/frameworks/base/core/java/android/app/
H A DInstrumentation.java40 import android.view.InputDevice;
876 if (source == InputDevice.SOURCE_UNKNOWN) {
877 source = InputDevice.SOURCE_KEYBOARD;
927 if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) == 0) {
928 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
947 if ((event.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) == 0) {
948 event.setSource(InputDevice.SOURCE_TRACKBALL);
/frameworks/base/services/java/com/android/server/
H A DWiredAccessoryManager.java32 import android.view.InputDevice;
111 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_HEADPHONE_INSERT) == 1) {
114 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_MICROPHONE_INSERT) == 1) {
H A DVibratorService.java40 import android.view.InputDevice;
376 InputDevice device = mIm.getInputDevice(ids[i]);
/frameworks/base/libs/androidfw/
H A DInputDevice.cpp17 #define LOG_TAG "InputDevice"
23 #include <androidfw/InputDevice.h>
H A DAndroid.mk32 InputDevice.cpp \
H A DKeyboard.cpp27 #include <androidfw/InputDevice.h>
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java28 import android.view.InputDevice;
622 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) {
624 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
626 } else if ((source & InputDevice.SOURCE_CLASS_POSITION) != 0) {
708 int[] deviceIds = InputDevice.getDeviceIds();
715 InputDevice device = mIm.getInputDevice(deviceId);
/frameworks/base/core/java/android/text/method/
H A DBaseMovementMethod.java21 import android.view.InputDevice;
94 if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) {

Completed in 1341 milliseconds

12