/frameworks/base/services/java/com/android/server/wm/ |
D | StackTapPointerEventListener.java | 48 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 …]
|
D | PointerEventDispatcher.java | 43 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local 53 listeners[i].onPointerEvent(motionEvent); in onInputEvent()
|
D | WindowManagerService.java | 626 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/ |
D | InputPublisherAndConsumer_test.cpp | 184 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/ |
D | InputEventConsistencyVerifier.java | 173 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()
|
D | WindowManagerPolicy.java | 439 public void onPointerEvent(MotionEvent motionEvent); in onPointerEvent() argument
|
D | ViewRootImpl.java | 5557 final MotionEvent motionEvent = (MotionEvent)event; in isTerminalInputEvent() local 5558 final int action = motionEvent.getAction(); in isTerminalInputEvent()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | IInputMethodSessionWrapper.java | 215 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/ |
D | InputTransport.cpp | 486 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/ |
D | android_view_InputEventReceiver.cpp | 296 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/ |
D | InputDispatcher.cpp | 2589 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/ |
D | AccessibilityInputFilter.java | 150 MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local 151 onMotionEvent(motionEvent, policyFlags); in onInputEvent()
|
/frameworks/base/services/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1158 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/ |
D | viewgroup.jd | 194 float deltaX = motionEvent.getRawX() - mDownX;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | PhoneWindowManager.java | 311 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()
|