Home
last modified time | relevance | path

Searched refs:inputEvent (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/services/inputflinger/dispatcher/trace/
DInputTracingPerfettoBackend.cpp238 auto* inputEvent = winscopeExtensions->set_android_input_event(); in traceMotionEvent() local
239 auto* dispatchMotion = isRedacted ? inputEvent->set_dispatcher_motion_event_redacted() in traceMotionEvent()
240 : inputEvent->set_dispatcher_motion_event(); in traceMotionEvent()
266 auto* inputEvent = winscopeExtensions->set_android_input_event(); in traceKeyEvent() local
267 auto* dispatchKey = isRedacted ? inputEvent->set_dispatcher_key_event_redacted() in traceKeyEvent()
268 : inputEvent->set_dispatcher_key_event(); in traceKeyEvent()
294 auto* inputEvent = winscopeExtensions->set_android_input_event(); in traceWindowDispatch() local
296 ? inputEvent->set_dispatcher_window_dispatch_event_redacted() in traceWindowDispatch()
297 : inputEvent->set_dispatcher_window_dispatch_event(); in traceWindowDispatch()
/frameworks/base/core/tests/coretests/src/android/view/
DVerifiedKeyEventTest.kt77 val inputEvent: VerifiedInputEvent = keyEvent in testParcelInputEvent() constant
79 inputEvent.writeToParcel(parcel, 0 /*flags*/) in testParcelInputEvent()
112 val inputEvent: VerifiedInputEvent = keyEvent in testParcelInputToKeyEvent() constant
114 inputEvent.writeToParcel(parcel, 0 /*flags*/) in testParcelInputToKeyEvent()
DVerifiedMotionEventTest.kt82 val inputEvent: VerifiedInputEvent = motionEvent in testParcelInputEvent() constant
84 inputEvent.writeToParcel(parcel, 0 /*flags*/) in testParcelInputEvent()
117 val inputEvent: VerifiedInputEvent = motionEvent in testParcelInputToMotionEvent() constant
119 inputEvent.writeToParcel(parcel, 0 /*flags*/) in testParcelInputToMotionEvent()
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp335 InputEvent* inputEvent; in consumeEvents() local
338 consumeBatches, frameTime, &seq, &inputEvent); in consumeEvents()
376 assert(inputEvent); in consumeEvents()
389 switch (inputEvent->getType()) { in consumeEvents()
396 static_cast<KeyEvent&>(*inputEvent)); in consumeEvents()
404 const MotionEvent& motionEvent = static_cast<const MotionEvent&>(*inputEvent); in consumeEvents()
412 FocusEvent* focusEvent = static_cast<FocusEvent*>(inputEvent); in consumeEvents()
424 const CaptureEvent* captureEvent = static_cast<CaptureEvent*>(inputEvent); in consumeEvents()
437 const DragEvent* dragEvent = static_cast<DragEvent*>(inputEvent); in consumeEvents()
449 const TouchModeEvent* touchModeEvent = static_cast<TouchModeEvent*>(inputEvent); in consumeEvents()
/frameworks/native/libs/input/
DMotionPredictorMetricsManager.cpp77 void MotionPredictorMetricsManager::onRecord(const MotionEvent& inputEvent) { in onRecord() argument
79 const PointerCoords* coords = inputEvent.getRawPointerCoords(/*pointerIndex=*/0); in onRecord()
84 inputEvent.getPressure(/*pointerIndex=*/0)}, in onRecord()
85 .timestamp = inputEvent.getEventTime()}; in onRecord()
88 switch (inputEvent.getActionMasked()) { in onRecord()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragResizeInputListener.java376 public void onInputEvent(InputEvent inputEvent) { in onInputEvent() argument
377 finishInputEvent(inputEvent, handleInputEvent(inputEvent)); in onInputEvent()
384 private boolean handleInputEvent(InputEvent inputEvent) { in handleInputEvent() argument
385 if (!(inputEvent instanceof MotionEvent)) { in handleInputEvent()
388 return mDragDetector.onMotionEvent((MotionEvent) inputEvent); in handleInputEvent()
/frameworks/native/services/inputflinger/tests/
DFakeInputDispatcherPolicy.cpp391 bool FakeInputDispatcherPolicy::filterInputEvent(const InputEvent& inputEvent, in filterInputEvent() argument
394 switch (inputEvent.getType()) { in filterInputEvent()
396 const KeyEvent& keyEvent = static_cast<const KeyEvent&>(inputEvent); in filterInputEvent()
402 const MotionEvent& motionEvent = static_cast<const MotionEvent&>(inputEvent); in filterInputEvent()
414 void FakeInputDispatcherPolicy::interceptKeyBeforeQueueing(const KeyEvent& inputEvent, uint32_t&) { in interceptKeyBeforeQueueing() argument
415 if (inputEvent.getAction() == AKEY_EVENT_ACTION_UP) { in interceptKeyBeforeQueueing()
DFakeInputDispatcherPolicy.h191 bool filterInputEvent(const InputEvent& inputEvent, uint32_t policyFlags) override;
192 void interceptKeyBeforeQueueing(const KeyEvent& inputEvent, uint32_t&) override;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DTimeLimitedInputEventBufferTest.java53 for (InputEvent inputEvent : mBuffer) { in tearDown()
54 inputEvent.recycle(); in tearDown()
/frameworks/native/include/input/
DMotionPredictorMetricsManager.h69 void onRecord(const MotionEvent& inputEvent);
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherPolicyInterface.h89 virtual bool filterInputEvent(const InputEvent& inputEvent, uint32_t policyFlags) = 0;
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DTimeLimitedInputEventBuffer.java233 public void set(T inputEvent) { in set() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchHandler.java503 public boolean handleTouchEvent(InputEvent inputEvent) { in handleTouchEvent() argument
505 if (!(inputEvent instanceof MotionEvent)) { in handleTouchEvent()
514 MotionEvent ev = (MotionEvent) inputEvent; in handleTouchEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTouchHandler.java509 public boolean handleTouchEvent(InputEvent inputEvent) { in handleTouchEvent() argument
511 if (!(inputEvent instanceof MotionEvent)) { in handleTouchEvent()
520 MotionEvent ev = (MotionEvent) inputEvent; in handleTouchEvent()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp349 bool filterInputEvent(const InputEvent& inputEvent, uint32_t policyFlags) override;
1408 bool NativeInputManager::filterInputEvent(const InputEvent& inputEvent, uint32_t policyFlags) { in filterInputEvent() argument
1413 switch (inputEvent.getType()) { in filterInputEvent()
1417 static_cast<const KeyEvent&>(inputEvent)); in filterInputEvent()
1422 inputEvent)); in filterInputEvent()