Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/tests/
DInputPublisherAndConsumer_test.cpp183 MotionEvent* motionEvent = static_cast<MotionEvent*>(event); in PublishAndConsumeMotionEvent() local
185 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); in PublishAndConsumeMotionEvent()
186 EXPECT_EQ(source, motionEvent->getSource()); in PublishAndConsumeMotionEvent()
187 EXPECT_EQ(action, motionEvent->getAction()); in PublishAndConsumeMotionEvent()
188 EXPECT_EQ(flags, motionEvent->getFlags()); in PublishAndConsumeMotionEvent()
189 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags()); in PublishAndConsumeMotionEvent()
190 EXPECT_EQ(metaState, motionEvent->getMetaState()); in PublishAndConsumeMotionEvent()
191 EXPECT_EQ(buttonState, motionEvent->getButtonState()); in PublishAndConsumeMotionEvent()
192 EXPECT_EQ(xPrecision, motionEvent->getXPrecision()); in PublishAndConsumeMotionEvent()
193 EXPECT_EQ(yPrecision, motionEvent->getYPrecision()); in PublishAndConsumeMotionEvent()
[all …]
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityInputFilter.java108 MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local
112 mTouchExplorer.clear(motionEvent, policyFlags); in onInputEvent()
116 mTouchExplorer.onMotionEvent(motionEvent, policyFlags); in onInputEvent()
118 mTouchExplorer.clear(motionEvent, policyFlags); in onInputEvent()
/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()
/frameworks/base/libs/androidfw/
DInputTransport.cpp480 MotionEvent* motionEvent = factory->createMotionEvent(); in consume() local
481 if (! motionEvent) return NO_MEMORY; in consume()
484 initializeMotionEvent(motionEvent, &mMsg); in consume()
486 *outEvent = motionEvent; in consume()
540 MotionEvent* motionEvent = factory->createMotionEvent(); in consumeSamples() local
541 if (! motionEvent) return NO_MEMORY; in consumeSamples()
552 addSample(motionEvent, &msg); in consumeSamples()
554 initializeMotionEvent(motionEvent, &msg); in consumeSamples()
561 *outEvent = motionEvent; in consumeSamples()
/frameworks/base/services/input/
DInputDispatcher.cpp2534 const MotionEvent* motionEvent = static_cast<const MotionEvent*>(event); in injectInputEvent() local
2535 int32_t action = motionEvent->getAction(); in injectInputEvent()
2536 size_t pointerCount = motionEvent->getPointerCount(); in injectInputEvent()
2537 const PointerProperties* pointerProperties = motionEvent->getPointerProperties(); in injectInputEvent()
2543 nsecs_t eventTime = motionEvent->getEventTime(); in injectInputEvent()
2548 const nsecs_t* sampleEventTimes = motionEvent->getSampleEventTimes(); in injectInputEvent()
2549 const PointerCoords* samplePointerCoords = motionEvent->getSamplePointerCoords(); in injectInputEvent()
2551 motionEvent->getDeviceId(), motionEvent->getSource(), policyFlags, in injectInputEvent()
2552 action, motionEvent->getFlags(), in injectInputEvent()
2553 motionEvent->getMetaState(), motionEvent->getButtonState(), in injectInputEvent()
[all …]
/frameworks/base/services/jni/
Dcom_android_server_input_InputManagerService.cpp1190 const MotionEvent* motionEvent = android_view_MotionEvent_getNativePtr(env, inputEventObj); in nativeInjectInputEvent() local
1191 if (!motionEvent) { in nativeInjectInputEvent()
1197 motionEvent, injectorPid, injectorUid, syncMode, timeoutMillis, in nativeInjectInputEvent()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneWindowManager.java388 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
389 mView.addPointerEvent(motionEvent); in onInputEvent()
2204 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
2205 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { in onInputEvent()
/frameworks/base/services/java/com/android/server/wm/
DWindowManagerService.java694 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
696 final float newX = motionEvent.getRawX(); in onInputEvent()
697 final float newY = motionEvent.getRawY(); in onInputEvent()
699 switch (motionEvent.getAction()) { in onInputEvent()