/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StackTapPointerEventListener.java | 47 public void onPointerEvent(MotionEvent motionEvent) { argument 48 final int action = motionEvent.getAction(); 51 mPointerId = motionEvent.getPointerId(0); 52 mDownX = motionEvent.getX(); 53 mDownY = motionEvent.getY(); 57 int index = motionEvent.findPointerIndex(mPointerId); 58 if ((motionEvent.getEventTime() - motionEvent.getDownTime()) > TAP_TIMEOUT_MSEC 60 || Math.abs(motionEvent.getX(index) - mDownX) > mMotionSlop 61 || Math.abs(motionEvent [all...] |
H A D | PointerEventDispatcher.java | 43 final MotionEvent motionEvent = (MotionEvent)event; 53 listeners[i].onPointerEvent(motionEvent);
|
H A D | WindowManagerService.java | 735 final MotionEvent motionEvent = (MotionEvent)event; 737 final float newX = motionEvent.getRawX(); 738 final float newY = motionEvent.getRawY(); 740 (motionEvent.getButtonState() & MotionEvent.BUTTON_STYLUS_PRIMARY) != 0; 751 switch (motionEvent.getAction()) {
|
/frameworks/native/libs/input/tests/ |
H A D | InputPublisherAndConsumer_test.cpp | 185 MotionEvent* motionEvent = static_cast<MotionEvent*>(event); local 187 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); 188 EXPECT_EQ(source, motionEvent->getSource()); 189 EXPECT_EQ(action, motionEvent->getAction()); 190 EXPECT_EQ(flags, motionEvent->getFlags()); 191 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags()); 192 EXPECT_EQ(metaState, motionEvent->getMetaState()); 193 EXPECT_EQ(buttonState, motionEvent->getButtonState()); 194 EXPECT_EQ(xPrecision, motionEvent->getXPrecision()); 195 EXPECT_EQ(yPrecision, motionEvent [all...] |
/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/java/android/view/ |
H A D | InputEventConsistencyVerifier.java | 177 final MotionEvent motionEvent = (MotionEvent)event; 178 if (motionEvent.isTouchEvent()) { 179 onTouchEvent(motionEvent, nestingLevel); 180 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { 181 onTrackballEvent(motionEvent, nestingLevel); 183 onGenericMotionEvent(motionEvent, nestingLevel); 601 final MotionEvent motionEvent = (MotionEvent)event; 602 if (motionEvent.isTouchEvent()) { 604 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
|
H A D | WindowManagerPolicy.java | 461 * 2. motionEvent will be recycled after onPointerEvent returns so if it is needed later a 464 public void onPointerEvent(MotionEvent motionEvent); argument
|
H A D | ViewRootImpl.java | 5960 final MotionEvent motionEvent = (MotionEvent)event; 5961 final int action = motionEvent.getAction();
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
H A D | SystemBarHelperTest.java | 325 public boolean superDispatchTouchEvent(MotionEvent motionEvent) { argument 330 public boolean superDispatchTrackballEvent(MotionEvent motionEvent) { argument 335 public boolean superDispatchGenericMotionEvent(MotionEvent motionEvent) { argument
|
/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 | 489 MotionEvent* motionEvent = factory->createMotionEvent(); local 490 if (! motionEvent) return NO_MEMORY; 493 initializeMotionEvent(motionEvent, &mMsg); 495 *outEvent = motionEvent; 552 MotionEvent* motionEvent = factory->createMotionEvent(); local 553 if (! motionEvent) return NO_MEMORY; 564 addSample(motionEvent, &msg); 566 initializeMotionEvent(motionEvent, &msg); 573 *outEvent = motionEvent;
|
/frameworks/native/services/inputflinger/ |
H A D | InputDispatcher.cpp | 2612 const MotionEvent* motionEvent = static_cast<const MotionEvent*>(event); local 2613 int32_t action = motionEvent->getAction(); 2614 size_t pointerCount = motionEvent->getPointerCount(); 2615 const PointerProperties* pointerProperties = motionEvent->getPointerProperties(); 2616 int32_t actionButton = motionEvent->getActionButton(); 2622 nsecs_t eventTime = motionEvent->getEventTime(); 2627 const nsecs_t* sampleEventTimes = motionEvent->getSampleEventTimes(); 2628 const PointerCoords* samplePointerCoords = motionEvent->getSamplePointerCoords(); 2630 motionEvent->getDeviceId(), 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 | 1341 MotionEvent motionEvent = (MotionEvent) event; 1342 final int source = motionEvent.getSource(); 1343 if (motionEvent.isTouchEvent()) { 1344 if (onTouchEvent(motionEvent)) { 1348 if (onTrackballEvent(motionEvent)) { 1352 if (onGenericMotionEvent(motionEvent)) {
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
H A D | ItemTouchHelper.java | 903 private ViewHolder findSwipedView(MotionEvent motionEvent) { argument 908 final int pointerIndex = MotionEventCompat.findPointerIndex(motionEvent, mActivePointerId); 909 final float dx = MotionEventCompat.getX(motionEvent, pointerIndex) - mInitialTouchX; 910 final float dy = MotionEventCompat.getY(motionEvent, pointerIndex) - mInitialTouchY; 922 View child = findChildView(motionEvent); 932 private boolean checkSelectForSwipe(int action, MotionEvent motionEvent, int pointerIndex) { argument 940 final ViewHolder vh = findSwipedView(motionEvent); 955 final float x = MotionEventCompat.getX(motionEvent, pointerIndex); 956 final float y = MotionEventCompat.getY(motionEvent, pointerIndex); 985 mActivePointerId = MotionEventCompat.getPointerId(motionEvent, [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 1217 const MotionEvent* motionEvent = android_view_MotionEvent_getNativePtr(env, inputEventObj); local 1218 if (!motionEvent) { 1224 motionEvent, displayId, injectorPid, injectorUid, syncMode, timeoutMillis,
|
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | PhoneWindowManager.java | 3326 final MotionEvent motionEvent = (MotionEvent)event; 3327 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
|