Home
last modified time | relevance | path

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

/frameworks/base/services/java/com/android/server/wm/
DStackTapPointerEventListener.java48 public void onPointerEvent(MotionEvent motionEvent) { in onPointerEvent() argument
49 final int action = motionEvent.getAction(); in onPointerEvent()
52 mPointerId = motionEvent.getPointerId(0); in onPointerEvent()
53 mDownX = motionEvent.getX(); in onPointerEvent()
54 mDownY = motionEvent.getY(); in onPointerEvent()
58 int index = motionEvent.findPointerIndex(mPointerId); in onPointerEvent()
59 if ((motionEvent.getEventTime() - motionEvent.getDownTime()) > TAP_TIMEOUT_MSEC in onPointerEvent()
60 || (motionEvent.getX(index) - mDownX) > mMotionSlop in onPointerEvent()
61 || (motionEvent.getY(index) - mDownY) > mMotionSlop) { in onPointerEvent()
71 if (mPointerId == motionEvent.getPointerId(index)) { in onPointerEvent()
[all …]
DPointerEventDispatcher.java43 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
53 listeners[i].onPointerEvent(motionEvent); in onInputEvent()
DWindowManagerService.java626 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
628 final float newX = motionEvent.getRawX(); in onInputEvent()
629 final float newY = motionEvent.getRawY(); in onInputEvent()
631 switch (motionEvent.getAction()) { in onInputEvent()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp184 MotionEvent* motionEvent = static_cast<MotionEvent*>(event); in PublishAndConsumeMotionEvent() local
186 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); in PublishAndConsumeMotionEvent()
187 EXPECT_EQ(source, motionEvent->getSource()); in PublishAndConsumeMotionEvent()
188 EXPECT_EQ(action, motionEvent->getAction()); in PublishAndConsumeMotionEvent()
189 EXPECT_EQ(flags, motionEvent->getFlags()); in PublishAndConsumeMotionEvent()
190 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags()); in PublishAndConsumeMotionEvent()
191 EXPECT_EQ(metaState, motionEvent->getMetaState()); in PublishAndConsumeMotionEvent()
192 EXPECT_EQ(buttonState, motionEvent->getButtonState()); in PublishAndConsumeMotionEvent()
193 EXPECT_EQ(xPrecision, motionEvent->getXPrecision()); in PublishAndConsumeMotionEvent()
194 EXPECT_EQ(yPrecision, motionEvent->getYPrecision()); in PublishAndConsumeMotionEvent()
[all …]
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java173 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
174 if (motionEvent.isTouchEvent()) { in onInputEvent()
175 onTouchEvent(motionEvent, nestingLevel); in onInputEvent()
176 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onInputEvent()
177 onTrackballEvent(motionEvent, nestingLevel); in onInputEvent()
179 onGenericMotionEvent(motionEvent, nestingLevel); in onInputEvent()
539 final MotionEvent motionEvent = (MotionEvent)event; in onUnhandledEvent() local
540 if (motionEvent.isTouchEvent()) { in onUnhandledEvent()
542 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onUnhandledEvent()
DWindowManagerPolicy.java439 public void onPointerEvent(MotionEvent motionEvent); in onPointerEvent() argument
DViewRootImpl.java5557 final MotionEvent motionEvent = (MotionEvent)event; in isTerminalInputEvent() local
5558 final int action = motionEvent.getAction(); in isTerminalInputEvent()
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodSessionWrapper.java215 MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
216 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in onInputEvent()
217 mInputMethodSession.dispatchTrackballEvent(seq, motionEvent, this); in onInputEvent()
219 mInputMethodSession.dispatchGenericMotionEvent(seq, motionEvent, this); in onInputEvent()
/frameworks/native/libs/input/
DInputTransport.cpp486 MotionEvent* motionEvent = factory->createMotionEvent(); in consume() local
487 if (! motionEvent) return NO_MEMORY; in consume()
490 initializeMotionEvent(motionEvent, &mMsg); in consume()
492 *outEvent = motionEvent; in consume()
549 MotionEvent* motionEvent = factory->createMotionEvent(); in consumeSamples() local
550 if (! motionEvent) return NO_MEMORY; in consumeSamples()
561 addSample(motionEvent, &msg); in consumeSamples()
563 initializeMotionEvent(motionEvent, &msg); in consumeSamples()
570 *outEvent = motionEvent; in consumeSamples()
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp296 MotionEvent* motionEvent = static_cast<MotionEvent*>(inputEvent); in consumeEvents() local
297 if ((motionEvent->getAction() & AMOTION_EVENT_ACTION_MOVE) && outConsumedBatch) { in consumeEvents()
300 inputEventObj = android_view_MotionEvent_obtainAsCopy(env, motionEvent); in consumeEvents()
/frameworks/base/services/input/
DInputDispatcher.cpp2589 const MotionEvent* motionEvent = static_cast<const MotionEvent*>(event); in injectInputEvent() local
2591 int32_t action = motionEvent->getAction(); in injectInputEvent()
2592 size_t pointerCount = motionEvent->getPointerCount(); in injectInputEvent()
2593 const PointerProperties* pointerProperties = motionEvent->getPointerProperties(); in injectInputEvent()
2599 nsecs_t eventTime = motionEvent->getEventTime(); in injectInputEvent()
2604 const nsecs_t* sampleEventTimes = motionEvent->getSampleEventTimes(); in injectInputEvent()
2605 const PointerCoords* samplePointerCoords = motionEvent->getSamplePointerCoords(); in injectInputEvent()
2607 motionEvent->getDeviceId(), motionEvent->getSource(), policyFlags, in injectInputEvent()
2608 action, motionEvent->getFlags(), in injectInputEvent()
2609 motionEvent->getMetaState(), motionEvent->getButtonState(), in injectInputEvent()
[all …]
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityInputFilter.java150 MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local
151 onMotionEvent(motionEvent, policyFlags); in onInputEvent()
/frameworks/base/services/jni/
Dcom_android_server_input_InputManagerService.cpp1158 const MotionEvent* motionEvent = android_view_MotionEvent_getNativePtr(env, inputEventObj); in nativeInjectInputEvent() local
1159 if (!motionEvent) { in nativeInjectInputEvent()
1165 motionEvent, injectorPid, injectorUid, syncMode, timeoutMillis, in nativeInjectInputEvent()
/frameworks/base/docs/html/training/gestures/
Dviewgroup.jd194 float deltaX = motionEvent.getRawX() - mDownX;
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneWindowManager.java311 public void onPointerEvent(MotionEvent motionEvent) { in onPointerEvent() argument
313 mPointerLocationView.addPointerEvent(motionEvent); in onPointerEvent()
2522 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
2523 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { in onInputEvent()