/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StackTapPointerEventListener.java | 48 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...] |
H A D | PointerEventDispatcher.java | 43 final MotionEvent motionEvent = (MotionEvent)event; 53 listeners[i].onPointerEvent(motionEvent);
|
H A D | WindowManagerService.java | 712 final MotionEvent motionEvent = (MotionEvent)event; 714 final float newX = motionEvent.getRawX(); 715 final float newY = motionEvent.getRawY(); 717 switch (motionEvent.getAction()) {
|
/frameworks/native/libs/input/tests/ |
H A D | InputPublisherAndConsumer_test.cpp | 184 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/java/android/view/ |
H A D | InputEventConsistencyVerifier.java | 173 final MotionEvent motionEvent = (MotionEvent)event; 174 if (motionEvent.isTouchEvent()) { 175 onTouchEvent(motionEvent, nestingLevel); 176 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { 177 onTrackballEvent(motionEvent, nestingLevel); 179 onGenericMotionEvent(motionEvent, nestingLevel); 539 final MotionEvent motionEvent = (MotionEvent)event; 540 if (motionEvent.isTouchEvent()) { 542 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
|
H A D | WindowManagerPolicy.java | 434 * 2. motionEvent will be recycled after onPointerEvent returns so if it is needed later a 437 public void onPointerEvent(MotionEvent motionEvent); argument
|
H A D | ViewRootImpl.java | 5832 final MotionEvent motionEvent = (MotionEvent)event; 5833 final int action = motionEvent.getAction();
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | IInputMethodSessionWrapper.java | 234 MotionEvent motionEvent = (MotionEvent)event; 235 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { 236 mInputMethodSession.dispatchTrackballEvent(seq, motionEvent, this); 238 mInputMethodSession.dispatchGenericMotionEvent(seq, motionEvent, this);
|
/frameworks/base/core/jni/ |
H A D | android_view_InputEventReceiver.cpp | 296 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 D | InputTransport.cpp | 487 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/native/services/inputflinger/ |
H A D | InputDispatcher.cpp | 2588 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...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityInputFilter.java | 150 MotionEvent motionEvent = (MotionEvent) event; 151 onMotionEvent(motionEvent, policyFlags);
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputService.java | 1083 MotionEvent motionEvent = (MotionEvent) event; 1084 final int source = motionEvent.getSource(); 1085 if (motionEvent.isTouchEvent()) { 1086 if (onTouchEvent(motionEvent)) { 1090 if (onTrackballEvent(motionEvent)) { 1094 if (onGenericMotionEvent(motionEvent)) {
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 1191 const MotionEvent* motionEvent = android_view_MotionEvent_getNativePtr(env, inputEventObj); local 1192 if (!motionEvent) { 1198 motionEvent, displayId, injectorPid, injectorUid, syncMode, timeoutMillis,
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | PhoneWindowManager.java | 3053 final MotionEvent motionEvent = (MotionEvent)event; 3054 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
|