Searched defs:motionEvent (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
H A DStackTapPointerEventListener.java48 public void onPointerEvent(MotionEvent motionEvent) { argument
49 final int action = motionEvent.getAction();
52 mPointerId = motionEvent.getPointerId(0);
53 mDownX = motionEvent.getX();
54 mDownY = motionEvent.getY();
58 int index = motionEvent.findPointerIndex(mPointerId);
59 if ((motionEvent.getEventTime() - motionEvent.getDownTime()) > TAP_TIMEOUT_MSEC
61 || (motionEvent.getX(index) - mDownX) > mMotionSlop
62 || (motionEvent
[all...]
/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp184 MotionEvent* motionEvent = static_cast<MotionEvent*>(event); local
186 EXPECT_EQ(deviceId, motionEvent->getDeviceId());
187 EXPECT_EQ(source, motionEvent->getSource());
188 EXPECT_EQ(action, motionEvent->getAction());
189 EXPECT_EQ(flags, motionEvent->getFlags());
190 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags());
191 EXPECT_EQ(metaState, motionEvent->getMetaState());
192 EXPECT_EQ(buttonState, motionEvent->getButtonState());
193 EXPECT_EQ(xPrecision, motionEvent->getXPrecision());
194 EXPECT_EQ(yPrecision, motionEvent
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_InputEventReceiver.cpp296 MotionEvent* motionEvent = static_cast<MotionEvent*>(inputEvent); local
297 if ((motionEvent->getAction() & AMOTION_EVENT_ACTION_MOVE) && outConsumedBatch) {
300 inputEventObj = android_view_MotionEvent_obtainAsCopy(env, motionEvent);
/frameworks/native/libs/input/
H A DInputTransport.cpp487 MotionEvent* motionEvent = factory->createMotionEvent(); local
488 if (! motionEvent) return NO_MEMORY;
491 initializeMotionEvent(motionEvent, &mMsg);
493 *outEvent = motionEvent;
550 MotionEvent* motionEvent = factory->createMotionEvent(); local
551 if (! motionEvent) return NO_MEMORY;
562 addSample(motionEvent, &msg);
564 initializeMotionEvent(motionEvent, &msg);
571 *outEvent = motionEvent;
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp1191 const MotionEvent* motionEvent = android_view_MotionEvent_getNativePtr(env, inputEventObj); local
1192 if (!motionEvent) {
1198 motionEvent, displayId, injectorPid, injectorUid, syncMode, timeoutMillis,
/frameworks/base/core/java/android/view/
H A DWindowManagerPolicy.java434 * 2. motionEvent will be recycled after onPointerEvent returns so if it is needed later a
437 public void onPointerEvent(MotionEvent motionEvent); argument
/frameworks/native/services/inputflinger/
H A DInputDispatcher.cpp2588 const MotionEvent* motionEvent = static_cast<const MotionEvent*>(event); local
2589 int32_t action = motionEvent->getAction();
2590 size_t pointerCount = motionEvent->getPointerCount();
2591 const PointerProperties* pointerProperties = motionEvent->getPointerProperties();
2597 nsecs_t eventTime = motionEvent->getEventTime();
2602 const nsecs_t* sampleEventTimes = motionEvent->getSampleEventTimes();
2603 const PointerCoords* samplePointerCoords = motionEvent->getSamplePointerCoords();
2605 motionEvent->getDeviceId(), motionEvent->getSource(), policyFlags,
2606 action, motionEvent
[all...]

Completed in 5394 milliseconds