/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskTapPointerEventListener.java | 49 public void onPointerEvent(MotionEvent motionEvent, int displayId) { argument 51 onPointerEvent(motionEvent); 56 public void onPointerEvent(MotionEvent motionEvent) { argument 57 final int action = motionEvent.getAction(); 60 final int x = (int) motionEvent.getX(); 61 final int y = (int) motionEvent.getY(); 73 final int x = (int) motionEvent.getX(); 74 final int y = (int) motionEvent.getY();
|
H A D | WindowManagerService.java | 786 final MotionEvent motionEvent = (MotionEvent)event; 788 final float newX = motionEvent.getRawX(); 789 final float newY = motionEvent.getRawY(); 791 (motionEvent.getButtonState() & MotionEvent.BUTTON_STYLUS_PRIMARY) != 0; 802 switch (motionEvent.getAction()) { 7224 public void onPointerEvent(MotionEvent motionEvent) { argument 7225 if (motionEvent.isFromSource(InputDevice.SOURCE_MOUSE)) { 7226 updatePosition(motionEvent.getRawX(), motionEvent.getRawY());
|
/frameworks/base/core/jni/ |
H A D | android_view_InputEventReceiver.cpp | 297 MotionEvent* motionEvent = static_cast<MotionEvent*>(inputEvent); local 298 if ((motionEvent->getAction() & AMOTION_EVENT_ACTION_MOVE) && outConsumedBatch) { 301 inputEventObj = android_view_MotionEvent_obtainAsCopy(env, motionEvent);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/ |
H A D | SensorLoggerSession.java | 70 public void addMotionEvent(MotionEvent motionEvent) { argument 71 TouchEvent event = motionEventToProto(motionEvent);
|
/frameworks/native/libs/input/tests/ |
H A D | InputPublisherAndConsumer_test.cpp | 188 MotionEvent* motionEvent = static_cast<MotionEvent*>(event); local 190 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); 191 EXPECT_EQ(source, motionEvent->getSource()); 192 EXPECT_EQ(action, motionEvent->getAction()); 193 EXPECT_EQ(flags, motionEvent->getFlags()); 194 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags()); 195 EXPECT_EQ(metaState, motionEvent->getMetaState()); 196 EXPECT_EQ(buttonState, motionEvent->getButtonState()); 197 EXPECT_EQ(xPrecision, motionEvent->getXPrecision()); 198 EXPECT_EQ(yPrecision, motionEvent [all...] |
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/ |
H A D | MockWindow.java | 187 public boolean superDispatchTouchEvent(MotionEvent motionEvent) { argument 192 public boolean superDispatchTrackballEvent(MotionEvent motionEvent) { argument 197 public boolean superDispatchGenericMotionEvent(MotionEvent motionEvent) { argument
|
/frameworks/base/core/java/android/widget/ |
H A D | TimePickerClockDelegate.java | 1039 public boolean onTouch(View view, MotionEvent motionEvent) { argument 1040 final int actionMasked = motionEvent.getActionMasked(); 1044 (int) motionEvent.getX(), (int) motionEvent.getY()); 1057 motionEvent.offsetLocation(offsetX, offsetY); 1058 final boolean handled = child.dispatchTouchEvent(motionEvent); 1059 motionEvent.offsetLocation(-offsetX, -offsetY);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | MotionEventInjectorTest.java | 800 protected boolean matchesSafely(MotionEvent motionEvent) { argument 801 return motionEvent.getActionMasked() == mAction;
|
/frameworks/native/libs/input/ |
H A D | InputTransport.cpp | 496 MotionEvent* motionEvent = factory->createMotionEvent(); local 497 if (! motionEvent) return NO_MEMORY; 500 initializeMotionEvent(motionEvent, &mMsg); 502 *outEvent = motionEvent; 561 MotionEvent* motionEvent = factory->createMotionEvent(); local 562 if (! motionEvent) return NO_MEMORY; 573 addSample(motionEvent, &msg); 576 initializeMotionEvent(motionEvent, &msg); 583 *outEvent = motionEvent;
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
H A D | ItemTouchHelper.java | 913 private ViewHolder findSwipedView(MotionEvent motionEvent) { argument 918 final int pointerIndex = motionEvent.findPointerIndex(mActivePointerId); 919 final float dx = motionEvent.getX(pointerIndex) - mInitialTouchX; 920 final float dy = motionEvent.getY(pointerIndex) - mInitialTouchY; 932 View child = findChildView(motionEvent); 942 boolean checkSelectForSwipe(int action, MotionEvent motionEvent, int pointerIndex) { argument 950 final ViewHolder vh = findSwipedView(motionEvent); 965 final float x = motionEvent.getX(pointerIndex); 966 final float y = motionEvent.getY(pointerIndex); 995 mActivePointerId = motionEvent [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
H A D | ItemTouchHelper.java | 911 private ViewHolder findSwipedView(MotionEvent motionEvent) { argument 916 final int pointerIndex = motionEvent.findPointerIndex(mActivePointerId); 917 final float dx = motionEvent.getX(pointerIndex) - mInitialTouchX; 918 final float dy = motionEvent.getY(pointerIndex) - mInitialTouchY; 930 View child = findChildView(motionEvent); 940 boolean checkSelectForSwipe(int action, MotionEvent motionEvent, int pointerIndex) { argument 948 final ViewHolder vh = findSwipedView(motionEvent); 963 final float x = motionEvent.getX(pointerIndex); 964 final float y = motionEvent.getY(pointerIndex); 993 mActivePointerId = motionEvent [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 1423 const MotionEvent* motionEvent = android_view_MotionEvent_getNativePtr(env, inputEventObj); local 1424 if (!motionEvent) { 1430 motionEvent, displayId, injectorPid, injectorUid, syncMode, timeoutMillis,
|
/frameworks/base/core/java/android/view/ |
H A D | WindowManagerPolicy.java | 624 * 2. motionEvent will be recycled after onPointerEvent returns so if it is needed later a 627 void onPointerEvent(MotionEvent motionEvent); argument 632 default void onPointerEvent(MotionEvent motionEvent, int displayId) { argument 634 onPointerEvent(motionEvent);
|
/frameworks/native/services/inputflinger/ |
H A D | InputDispatcher.cpp | 2642 const MotionEvent* motionEvent = static_cast<const MotionEvent*>(event); local 2643 int32_t action = motionEvent->getAction(); 2644 size_t pointerCount = motionEvent->getPointerCount(); 2645 const PointerProperties* pointerProperties = motionEvent->getPointerProperties(); 2646 int32_t actionButton = motionEvent->getActionButton(); 2652 nsecs_t eventTime = motionEvent->getEventTime(); 2657 const nsecs_t* sampleEventTimes = motionEvent->getSampleEventTimes(); 2658 const PointerCoords* samplePointerCoords = motionEvent->getSamplePointerCoords(); 2660 motionEvent->getDeviceId(), motionEvent [all...] |