Home
last modified time | relevance | path

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

12345

/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp39 InputDevice::InputDevice(InputReaderContext* context, int32_t id, int32_t generation, in InputDevice() function in android::InputDevice
52 InputDevice::~InputDevice() {} in ~InputDevice()
54 bool InputDevice::isEnabled() { in isEnabled()
65 void InputDevice::setEnabled(bool enabled, nsecs_t when) { in setEnabled()
91 void InputDevice::dump(std::string& dump, const std::string& eventHubDevStr) { in dump()
143 void InputDevice::addEventHubDevice(int32_t eventHubId, bool populateMappers) { in addEventHubDevice()
232 void InputDevice::removeEventHubDevice(int32_t eventHubId) { in removeEventHubDevice()
236 void InputDevice::configure(nsecs_t when, const InputReaderConfiguration* config, in configure()
367 void InputDevice::reset(nsecs_t when) { in reset()
375 void InputDevice::process(const RawEvent* rawEvents, size_t count) { in process()
[all …]
DInputReader.cpp195 std::shared_ptr<InputDevice> device = createDeviceLocked(eventHubId, identifier); in addDeviceLocked()
239 std::shared_ptr<InputDevice> device = std::move(deviceIt->second); in removeDeviceLocked()
277 std::shared_ptr<InputDevice> InputReader::createDeviceLocked( in createDeviceLocked()
284 std::shared_ptr<InputDevice> device; in createDeviceLocked()
289 device = std::make_shared<InputDevice>(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked()
304 std::shared_ptr<InputDevice>& device = deviceIt->second; in processEventsForDeviceLocked()
313 InputDevice* InputReader::findInputDeviceLocked(int32_t deviceId) { in findInputDeviceLocked()
326 std::shared_ptr<InputDevice>& device = devicePair.second; in timeoutExpiredLocked()
364 std::shared_ptr<InputDevice>& device = devicePair.second; in refreshConfigurationLocked()
380 std::shared_ptr<InputDevice>& device = devicePair.second; in updateGlobalMetaStateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java25 import android.view.InputDevice;
56 put("keyboard", InputDevice.SOURCE_KEYBOARD);
57 put("dpad", InputDevice.SOURCE_DPAD);
58 put("gamepad", InputDevice.SOURCE_GAMEPAD);
59 put("touchscreen", InputDevice.SOURCE_TOUCHSCREEN);
60 put("mouse", InputDevice.SOURCE_MOUSE);
61 put("stylus", InputDevice.SOURCE_STYLUS);
62 put("trackball", InputDevice.SOURCE_TRACKBALL);
63 put("touchpad", InputDevice.SOURCE_TOUCHPAD);
64 put("touchnavigation", InputDevice.SOURCE_TOUCH_NAVIGATION);
[all …]
/frameworks/base/tests/Input/src/com/android/test/input/
DInputDeviceTest.java36 private void assertMotionRangeEquals(InputDevice.MotionRange range, in assertMotionRangeEquals()
37 InputDevice.MotionRange outRange) { in assertMotionRangeEquals()
47 private void assertDeviceEquals(InputDevice device, InputDevice outDevice) { in assertDeviceEquals()
71 final InputDevice device = in assertInputDeviceParcelUnparcel()
72 new InputDevice(DEVICE_ID, 0 /* generation */, 0 /* controllerNumber */, "name", in assertInputDeviceParcelUnparcel()
82 InputDevice outDevice = InputDevice.CREATOR.createFromParcel(parcel); in assertInputDeviceParcelUnparcel()
DAnrTest.kt30 import android.view.InputDevice
88 downEvent.source = InputDevice.SOURCE_TOUCHSCREEN in testGestureMonitorAnr()
/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.java60 public final class InputDevice implements Parcelable { class
447 public static final @android.annotation.NonNull Parcelable.Creator<InputDevice> CREATOR =
448 new Parcelable.Creator<InputDevice>() {
449 public InputDevice createFromParcel(Parcel in) {
450 return new InputDevice(in);
452 public InputDevice[] newArray(int size) {
453 return new InputDevice[size];
462 public InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, in InputDevice() method in InputDevice
485 private InputDevice(Parcel in) { in InputDevice() method in InputDevice
520 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;
/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/core/tests/coretests/src/android/hardware/input/
DInputDeviceSensorManagerTest.java40 import android.view.InputDevice;
147 private InputDevice createInputDeviceWithSensor(int id) { in createInputDeviceWithSensor()
148 InputDevice d = new InputDevice(id, 0 /* generation */, 0 /* controllerNumber */, "name", in createInputDeviceWithSensor()
166 private InputDevice getSensorDevice(int[] deviceIds) { in getSensorDevice()
168 InputDevice device = mInputManager.getInputDevice(deviceIds[i]); in getSensorDevice()
178 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withExpectedType()
198 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withUnexpectedType()
215 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in testInputDeviceSensorListener()
DInputDeviceLightsManagerTest.java42 import android.view.InputDevice;
113 private InputDevice createInputDevice(int id) { in createInputDevice()
114 return new InputDevice(id, 0 /* generation */, 0 /* controllerNumber */, "name", in createInputDevice()
129 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testGetInputDeviceLights()
150 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlMultipleLights()
202 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlPlayerIdLight()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationGestureHandlerTest.java29 import android.view.InputDevice;
66 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_isFromScreen_onMotionEventInternal()
80 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_downEvent_handleInteractionStart()
94 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_upEvent_handleInteractionEnd()
108 cancelEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_cancelEvent_handleInteractionEnd()
/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/core/java/android/hardware/input/
DInputDeviceVibratorManager.java28 import android.view.InputDevice;
62 InputDevice inputDevice = InputDevice.getDevice(mDeviceId); in initializeVibrators()
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h37 class InputDevice; variable
116 virtual std::shared_ptr<InputDevice> createDeviceLocked(int32_t deviceId,
177 std::unordered_map<int32_t /*eventHubId*/, std::shared_ptr<InputDevice>> mDevices
182 std::unordered_map<std::shared_ptr<InputDevice>, std::vector<int32_t> /*eventHubId*/>
234 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
241 InputDevice* findInputDeviceLocked(int32_t deviceId) REQUIRES(mLock);
/frameworks/base/services/core/java/com/android/server/vibrator/
DInputDeviceDelegate.java27 import android.view.InputDevice;
149 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDeviceVibrators()
176 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDevice()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java45 import android.view.InputDevice;
235 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
236 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
252 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForAllEventHandlers()
253 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForAllEventHandlers()
258 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForAllEventHandlers()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DInputDeviceDelegateTest.java44 import android.view.InputDevice;
195 .thenReturn(createInputDeviceWithVibrator(1), (InputDevice) null); in onInputDeviceChanged_deviceLost_removesDevice()
321 private InputDevice createInputDeviceWithVibrator(int id) { in createInputDeviceWithVibrator()
325 private InputDevice createInputDeviceWithoutVibrator(int id) { in createInputDeviceWithoutVibrator()
329 private InputDevice createInputDevice(int id, boolean hasVibrator) { in createInputDevice()
330 return new InputDevice(id, 0, 0, "name", 0, 0, "description", false, 0, 0, in createInputDevice()
/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/services/core/java/com/android/server/media/
DMediaShellCommand.java35 import android.view.InputDevice;
190 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
192 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
330 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD); in dispatchKeyCode()
332 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD); in dispatchKeyCode()
/frameworks/base/services/core/java/com/android/server/wm/
DPointerEventDispatcher.java23 import android.view.InputDevice;
50 && (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/tests/coretests/src/android/widget/espresso/
DMouseUiController.java23 import android.view.InputDevice;
70 event.setSource(InputDevice.SOURCE_MOUSE); in injectMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaScrollView.kt6 import android.view.InputDevice
127 event.source = InputDevice.SOURCE_TOUCHSCREEN in cancelCurrentScroll()

12345