/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 36 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 …]
|
D | InputReader.cpp | 194 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/ |
D | Input.java | 24 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/ |
D | SearchEvent.java | 24 private InputDevice mInputDevice; 27 public SearchEvent(InputDevice inputDevice) { in SearchEvent() 35 public InputDevice getInputDevice() { in getInputDevice()
|
D | InputDevice.java | 52 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()
|
D | InputEvent.java | 66 public final InputDevice getDevice() { in getDevice() 67 return InputDevice.getDevice(getDeviceId()); in getDevice()
|
D | InputEventConsistencyVerifier.java | 183 } 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()
|
D | InputDevice.aidl | 20 parcelable InputDevice;
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 65 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/ |
D | InteractionController.java | 26 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/ |
D | AccessibilityInputFilterTest.java | 42 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/ |
D | InputReader.h | 35 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);
|
D | InputDevice.h | 39 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/ |
D | MediaShellCommand.java | 35 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/ |
D | PointerEventDispatcher.java | 20 import android.view.InputDevice; 42 && (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onInputEvent()
|
D | DragInputEventReceiver.java | 19 import static android.view.InputDevice.SOURCE_CLASS_POINTER; 31 import android.view.InputDevice;
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputManager.java | 45 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()
|
D | IInputManager.aidl | 26 import android.view.InputDevice; 35 InputDevice getInputDevice(int deviceId); in getInputDevice()
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | BasicGLSurfaceView.java | 7 import android.view.InputDevice; 64 if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK)) { in onGenericMotionEvent()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | MouseUiController.java | 23 import android.view.InputDevice; 70 event.setSource(InputDevice.SOURCE_MOUSE); in injectMotionEvent()
|
D | MouseClickAction.java | 19 import android.view.InputDevice; 80 return sendTap(uiController, coordinates, precision, InputDevice.SOURCE_UNKNOWN, in sendTap()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | MediaScrollView.kt | 6 import android.view.InputDevice 127 event.source = InputDevice.SOURCE_TOUCHSCREEN in cancelCurrentScroll()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorTouchStateTest.java | 26 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/ |
D | InputManagerService.java | 76 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/ |
D | TouchExplorerTest.java | 32 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()
|