Home
last modified time | relevance | path

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

1234

/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp36 InputDevice::InputDevice(InputReaderContext* context, int32_t id, int32_t generation, in InputDevice() function in android::InputDevice
49 InputDevice::~InputDevice() {} in ~InputDevice()
51 bool InputDevice::isEnabled() { in isEnabled()
61 void InputDevice::setEnabled(bool enabled, nsecs_t when) { in setEnabled()
87 void InputDevice::dump(std::string& dump) { in dump()
129 void InputDevice::addEventHubDevice(int32_t eventHubId, bool populateMappers) { in addEventHubDevice()
205 void InputDevice::removeEventHubDevice(int32_t eventHubId) { in removeEventHubDevice()
209 void InputDevice::configure(nsecs_t when, const InputReaderConfiguration* config, in configure()
323 void InputDevice::reset(nsecs_t when) { in reset()
331 void InputDevice::process(const RawEvent* rawEvents, size_t count) { in process()
[all …]
DInputReader.cpp194 std::shared_ptr<InputDevice> device = createDeviceLocked(eventHubId, identifier); in addDeviceLocked()
223 std::shared_ptr<InputDevice> device = std::move(deviceIt->second); in removeDeviceLocked()
250 std::shared_ptr<InputDevice> InputReader::createDeviceLocked( in createDeviceLocked()
257 std::shared_ptr<InputDevice> device; in createDeviceLocked()
262 device = std::make_shared<InputDevice>(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked()
277 std::shared_ptr<InputDevice>& device = deviceIt->second; in processEventsForDeviceLocked()
286 InputDevice* InputReader::findInputDevice(int32_t deviceId) { in findInputDevice()
299 std::shared_ptr<InputDevice>& device = devicePair.second; in timeoutExpiredLocked()
336 std::shared_ptr<InputDevice>& device = devicePair.second; in refreshConfigurationLocked()
347 std::shared_ptr<InputDevice>& device = devicePair.second; in updateGlobalMetaStateLocked()
[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.java52 public final class InputDevice implements Parcelable { class
416 public static final @android.annotation.NonNull Parcelable.Creator<InputDevice> CREATOR =
417 new Parcelable.Creator<InputDevice>() {
418 public InputDevice createFromParcel(Parcel in) {
419 return new InputDevice(in);
421 public InputDevice[] newArray(int size) {
422 return new InputDevice[size];
428 private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, in InputDevice() method in InputDevice
449 private InputDevice(Parcel in) { in InputDevice() method in InputDevice
482 public static InputDevice getDevice(int id) { in getDevice()
DInputEvent.java66 public final InputDevice getDevice() { in getDevice()
67 return InputDevice.getDevice(getDeviceId()); in getDevice()
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()
DInputDevice.aidl20 parcelable InputDevice;
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java65 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId()
70 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, displayId); in testObtainWithDisplayId()
85 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId()
93 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testCalculatesCursorPositionForTouchscreenEvents()
103 event.setSource(InputDevice.SOURCE_MOUSE); in testCalculatesCursorPositionForSimpleMouseEvents()
114 event.setSource(InputDevice.SOURCE_MOUSE); in testCalculatesCursorPositionForSimpleMouseEventsWithOffset()
140 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_MOUSE, in testCalculatesCursorPositionForMultiTouchMouseEvents()
/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;
217 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
218 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
234 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForAllEventHandlers()
235 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForAllEventHandlers()
240 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForAllEventHandlers()
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h35 class InputDevice; variable
88 virtual std::shared_ptr<InputDevice> createDeviceLocked(
142 std::unordered_map<int32_t /*eventHubId*/, std::shared_ptr<InputDevice>> mDevices;
187 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
194 InputDevice* findInputDevice(int32_t deviceId);
DInputDevice.h39 class InputDevice {
41 InputDevice(InputReaderContext* context, int32_t id, int32_t generation,
43 ~InputDevice();
202 InputDeviceContext(InputDevice& device, int32_t eventHubId);
299 InputDevice& mDevice;
/frameworks/base/services/core/java/com/android/server/media/
DMediaShellCommand.java35 import android.view.InputDevice;
187 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
189 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
320 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD); in dispatchKeyCode()
322 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;
42 && (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/base/core/java/android/hardware/input/
DInputManager.java45 import android.view.InputDevice;
79 private SparseArray<InputDevice> mInputDevices;
255 public InputDevice getInputDevice(int id) { in getInputDevice()
264 InputDevice inputDevice = mInputDevices.valueAt(index); in getInputDevice()
285 public InputDevice getInputDeviceByDescriptor(String descriptor) { in getInputDeviceByDescriptor()
295 InputDevice inputDevice = mInputDevices.valueAt(i); in getInputDeviceByDescriptor()
866 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
1046 mInputDevices = new SparseArray<InputDevice>(); in populateInputDevicesLocked()
1074 final InputDevice device = mInputDevices.valueAt(index); in onInputDevicesChanged()
DIInputManager.aidl26 import android.view.InputDevice;
35 InputDevice getInputDevice(int deviceId); in getInputDevice()
/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/packages/SystemUI/src/com/android/systemui/media/
DMediaScrollView.kt6 import android.view.InputDevice
127 event.source = InputDevice.SOURCE_TOUCHSCREEN in cancelCurrentScroll()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java26 import android.view.InputDevice;
191 event1.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse()
198 event2.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse()
205 event3.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse()
213 event4.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse()
221 event5.setSource(InputDevice.SOURCE_MOUSE); in testUpdate_tripleClick_mouse()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java76 import android.view.InputDevice;
168 private InputDevice[] mInputDevices = new InputDevice[0];
174 private final ArrayList<InputDevice>
175 mTempFullKeyboards = new ArrayList<InputDevice>(); // handler thread only
694 public InputDevice getInputDevice(int deviceId) { in getInputDevice()
698 final InputDevice inputDevice = mInputDevices[i]; in getInputDevice()
753 public InputDevice[] getInputDevices() { in getInputDevices()
793 private void deliverInputDevicesChanged(InputDevice[] oldInputDevices) { in deliverInputDevicesChanged()
815 final InputDevice inputDevice = mInputDevices[i]; in deliverInputDevicesChanged()
838 List<InputDevice> keyboardsMissingLayout = new ArrayList<>(); in deliverInputDevicesChanged()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java32 import android.view.InputDevice;
146 mTouchExplorer.clearEvents(InputDevice.SOURCE_TOUCHSCREEN); in clearEventsWhenInTwoFingerMove_clearsStateAndSendsUp()
192 ev.setSource(InputDevice.SOURCE_TOUCHSCREEN); in fromTouchscreen()
370 /* source */ InputDevice.SOURCE_TOUCHSCREEN, in manyPointerEvent()

1234