Home
last modified time | relevance | path

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

12345

/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp25 InputDevice::InputDevice(InputReaderContext* context, int32_t id, int32_t generation, in InputDevice() function in android::InputDevice
39 InputDevice::~InputDevice() { in ~InputDevice()
47 bool InputDevice::isEnabled() { in isEnabled()
51 void InputDevice::setEnabled(bool enabled, nsecs_t when) { in setEnabled()
67 void InputDevice::dump(std::string& dump) { in dump()
113 void InputDevice::addMapper(InputMapper* mapper) { in addMapper()
117 void InputDevice::configure(nsecs_t when, const InputReaderConfiguration* config, in configure()
173 void InputDevice::reset(nsecs_t when) { in reset()
183 void InputDevice::process(const RawEvent* rawEvents, size_t count) { in process()
219 void InputDevice::timeoutExpired(nsecs_t when) { in timeoutExpired()
[all …]
DInputReader.cpp192 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes); in addDeviceLocked()
213 InputDevice* device = nullptr; in removeDeviceLocked()
240 InputDevice* InputReader::createDeviceLocked(int32_t deviceId, int32_t controllerNumber, in createDeviceLocked()
243 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked()
324 InputDevice* device = mDevices.valueAt(deviceIndex); in processEventsForDeviceLocked()
335 InputDevice* device = mDevices.valueAt(i); in timeoutExpiredLocked()
363 InputDevice* device = mDevices.valueAt(i); in refreshConfigurationLocked()
374 InputDevice* device = mDevices.valueAt(i); in updateGlobalMetaStateLocked()
389 InputDevice* device = mDevices.valueAt(i); in getExternalStylusDevicesLocked()
400 InputDevice* device = mDevices.valueAt(i); in dispatchExternalStylusState()
[all …]
/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()
/frameworks/native/services/inputflinger/reader/mapper/accumulator/
DTouchButtonAccumulator.h24 class InputDevice; variable
31 void configure(InputDevice* device);
32 void reset(InputDevice* device);
DCursorScrollAccumulator.h24 class InputDevice; variable
32 void configure(InputDevice* device);
33 void reset(InputDevice* device);
DCursorButtonAccumulator.h24 class InputDevice; variable
31 void reset(InputDevice* device);
DCursorScrollAccumulator.cpp28 void CursorScrollAccumulator::configure(InputDevice* device) { in configure()
33 void CursorScrollAccumulator::reset(InputDevice* device) { in reset()
DSingleTouchMotionAccumulator.h24 class InputDevice; variable
33 void reset(InputDevice* device);
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h35 class InputDevice; variable
83 virtual InputDevice* createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
96 virtual bool shouldDropVirtualKey(nsecs_t now, InputDevice* device, int32_t keyCode,
129 KeyedVector<int32_t, InputDevice*> mDevices;
158 bool shouldDropVirtualKeyLocked(nsecs_t now, InputDevice* device, int32_t keyCode,
168 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
DInputReaderContext.h27 class InputDevice; variable
45 virtual bool shouldDropVirtualKey(nsecs_t now, InputDevice* device, int32_t keyCode,
DInputDevice.h37 class InputDevice {
39 InputDevice(InputReaderContext* context, int32_t id, int32_t generation,
42 ~InputDevice();
/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/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()
/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/native/services/inputflinger/reader/mapper/
DMultiTouchInputMapper.h73 void configure(InputDevice* device, size_t slotCount, bool usingSlotsProtocol);
74 void reset(InputDevice* device);
96 explicit MultiTouchInputMapper(InputDevice* device);
DInputMapper.h42 explicit InputMapper(InputDevice* device);
45 inline InputDevice* getDevice() { return mDevice; } in getDevice()
79 InputDevice* mDevice;
DExternalStylusInputMapper.cpp26 ExternalStylusInputMapper::ExternalStylusInputMapper(InputDevice* device) : InputMapper(device) {} in ExternalStylusInputMapper()
53 InputDevice* device = getDevice(); in reset()
DCursorInputMapper.h39 void reset(InputDevice* device);
56 explicit CursorInputMapper(InputDevice* device);
/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()
861 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
985 mInputDevices = new SparseArray<InputDevice>(); in populateInputDevicesLocked()
1013 final InputDevice device = mInputDevices.valueAt(index); in onInputDevicesChanged()
/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()
/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()

12345