Home
last modified time | relevance | path

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

1234

/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java24 import android.view.InputDevice;
51 put("keyboard", InputDevice.SOURCE_KEYBOARD);
52 put("dpad", InputDevice.SOURCE_DPAD);
53 put("gamepad", InputDevice.SOURCE_GAMEPAD);
54 put("touchscreen", InputDevice.SOURCE_TOUCHSCREEN);
55 put("mouse", InputDevice.SOURCE_MOUSE);
56 put("stylus", InputDevice.SOURCE_STYLUS);
57 put("trackball", InputDevice.SOURCE_TRACKBALL);
58 put("touchpad", InputDevice.SOURCE_TOUCHPAD);
59 put("touchnavigation", InputDevice.SOURCE_TOUCH_NAVIGATION);
[all …]
/frameworks/base/core/java/android/view/
DSearchEvent.java24 private InputDevice mInputDevice;
27 public SearchEvent(InputDevice inputDevice) { in SearchEvent()
35 public InputDevice getInputDevice() { in getInputDevice()
DInputDevice.java49 public final class InputDevice implements Parcelable { class
400 public static final @android.annotation.NonNull Parcelable.Creator<InputDevice> CREATOR =
401 new Parcelable.Creator<InputDevice>() {
402 public InputDevice createFromParcel(Parcel in) {
403 return new InputDevice(in);
405 public InputDevice[] newArray(int size) {
406 return new InputDevice[size];
412 private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, in InputDevice() method in InputDevice
433 private InputDevice(Parcel in) { in InputDevice() method in InputDevice
466 public static InputDevice getDevice(int id) { in getDevice()
DInputEvent.java66 public final InputDevice getDevice() { in getDevice()
67 return InputDevice.getDevice(getDeviceId()); in getDevice()
DInputDevice.aidl20 parcelable InputDevice;
DInputEventConsistencyVerifier.java183 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onInputEvent()
272 if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onTrackballEvent()
362 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onTouchEvent()
479 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent()
559 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onGenericMotionEvent()
609 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onUnhandledEvent()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java26 import android.view.InputDevice;
192 InputDevice.SOURCE_KEYBOARD); in sendKeyAndWaitForEvent()
196 InputDevice.SOURCE_KEYBOARD); in sendKeyAndWaitForEvent()
309 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
320 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
332 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
549 InputDevice.SOURCE_KEYBOARD);
553 InputDevice.SOURCE_KEYBOARD);
712 properties, pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
718 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
[all …]
/frameworks/native/services/inputflinger/
DInputReader.h43 class InputDevice; variable
86 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0;
152 virtual InputDevice* createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
165 InputDevice* device, int32_t keyCode, int32_t scanCode);
197 KeyedVector<int32_t, InputDevice*> mDevices;
227 InputDevice* device, int32_t keyCode, int32_t scanCode);
236 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
245 class InputDevice {
247 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, int32_t
249 ~InputDevice();
[all …]
DInputReader.cpp399 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes); in addDeviceLocked()
420 InputDevice* device = nullptr; in removeDeviceLocked()
447 InputDevice* InputReader::createDeviceLocked(int32_t deviceId, int32_t controllerNumber, in createDeviceLocked()
449 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked()
530 InputDevice* device = mDevices.valueAt(deviceIndex); in processEventsForDeviceLocked()
541 InputDevice* device = mDevices.valueAt(i); in timeoutExpiredLocked()
569 InputDevice* device = mDevices.valueAt(i); in refreshConfigurationLocked()
580 InputDevice* device = mDevices.valueAt(i); in updateGlobalMetaStateLocked()
595 InputDevice* device = mDevices.valueAt(i); in getExternalStylusDevicesLocked()
606 InputDevice* device = mDevices.valueAt(i); in dispatchExternalStylusState()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java57 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId()
62 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, displayId); in testObtainWithDisplayId()
77 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java42 import android.view.InputDevice;
215 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
216 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
232 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForAllEventHandlers()
233 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForAllEventHandlers()
238 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForAllEventHandlers()
DTouchExplorerTest.java28 import android.view.InputDevice;
157 ev.setSource(InputDevice.SOURCE_TOUCHSCREEN); in fromTouchscreen()
333 /* source */ InputDevice.SOURCE_TOUCHSCREEN, in manyPointerEvent()
/frameworks/base/core/java/android/hardware/input/
DInputManager.java42 import android.view.InputDevice;
74 private SparseArray<InputDevice> mInputDevices;
250 public InputDevice getInputDevice(int id) { in getInputDevice()
259 InputDevice inputDevice = mInputDevices.valueAt(index); in getInputDevice()
280 public InputDevice getInputDeviceByDescriptor(String descriptor) { in getInputDeviceByDescriptor()
290 InputDevice inputDevice = mInputDevices.valueAt(i); in getInputDeviceByDescriptor()
845 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
969 mInputDevices = new SparseArray<InputDevice>(); in populateInputDevicesLocked()
997 final InputDevice device = mInputDevices.valueAt(index); in onInputDevicesChanged()
DIInputManager.aidl26 import android.view.InputDevice;
34 InputDevice getInputDevice(int deviceId); in getInputDevice()
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java36 import android.view.InputDevice;
184 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
186 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
312 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD); in dispatchKeyCode()
314 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD); in dispatchKeyCode()
/frameworks/base/services/core/java/com/android/server/wm/
DPointerEventDispatcher.java20 import android.view.InputDevice;
44 && (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onInputEvent()
DDragInputEventReceiver.java19 import static android.view.InputDevice.SOURCE_CLASS_POINTER;
31 import android.view.InputDevice;
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DBasicGLSurfaceView.java7 import android.view.InputDevice;
64 if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK)) { in onGenericMotionEvent()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DMouseUiController.java23 import android.view.InputDevice;
70 event.setSource(InputDevice.SOURCE_MOUSE); in injectMotionEvent()
DMouseClickAction.java19 import android.view.InputDevice;
80 return sendTap(uiController, coordinates, precision, InputDevice.SOURCE_UNKNOWN, in sendTap()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java76 import android.view.InputDevice;
165 private InputDevice[] mInputDevices = new InputDevice[0];
171 private final ArrayList<InputDevice>
172 mTempFullKeyboards = new ArrayList<InputDevice>(); // handler thread only
661 public InputDevice getInputDevice(int deviceId) { in getInputDevice()
665 final InputDevice inputDevice = mInputDevices[i]; in getInputDevice()
720 public InputDevice[] getInputDevices() { in getInputDevices()
760 private void deliverInputDevicesChanged(InputDevice[] oldInputDevices) { in deliverInputDevicesChanged()
782 final InputDevice inputDevice = mInputDevices[i]; in deliverInputDevicesChanged()
805 List<InputDevice> keyboardsMissingLayout = new ArrayList<>(); in deliverInputDevicesChanged()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGlobalActionPerformer.java31 import android.view.InputDevice;
123 InputDevice.SOURCE_KEYBOARD, null); in sendKeyEventIdentityCleared()
DAutoclickController.java27 import android.view.InputDevice;
73 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onMotionEvent()
105 if (inputSource == InputDevice.SOURCE_MOUSE && mClickScheduler != null) { in clearEvents()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DRecentsViewTouchHandler.java22 import android.view.InputDevice;
162 InputDevice device = InputDevice.getDevice(mDeviceId); in onBusEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java31 import android.view.InputDevice;
138 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testComputeTimeout_withHovering()

1234