Home
last modified time | relevance | path

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

/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp185 MotionEvent* motionEvent = static_cast<MotionEvent*>(event); in PublishAndConsumeMotionEvent() local
187 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); in PublishAndConsumeMotionEvent()
188 EXPECT_EQ(source, motionEvent->getSource()); in PublishAndConsumeMotionEvent()
189 EXPECT_EQ(action, motionEvent->getAction()); in PublishAndConsumeMotionEvent()
190 EXPECT_EQ(flags, motionEvent->getFlags()); in PublishAndConsumeMotionEvent()
191 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags()); in PublishAndConsumeMotionEvent()
192 EXPECT_EQ(metaState, motionEvent->getMetaState()); in PublishAndConsumeMotionEvent()
193 EXPECT_EQ(buttonState, motionEvent->getButtonState()); in PublishAndConsumeMotionEvent()
194 EXPECT_EQ(xPrecision, motionEvent->getXPrecision()); in PublishAndConsumeMotionEvent()
195 EXPECT_EQ(yPrecision, motionEvent->getYPrecision()); in PublishAndConsumeMotionEvent()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTaskTapPointerEventListener.java63 public void onPointerEvent(MotionEvent motionEvent) { in onPointerEvent() argument
64 doGestureDetection(motionEvent); in onPointerEvent()
66 final int action = motionEvent.getAction(); in onPointerEvent()
69 final int x = (int) motionEvent.getX(); in onPointerEvent()
70 final int y = (int) motionEvent.getY(); in onPointerEvent()
82 if (motionEvent.getPointerCount() != 2) { in onPointerEvent()
89 final int x = (int) motionEvent.getX(); in onPointerEvent()
90 final int y = (int) motionEvent.getY(); in onPointerEvent()
92 InputDevice inputDevice = motionEvent.getDevice(); in onPointerEvent()
124 InputDevice inputDevice = motionEvent.getDevice(); in onPointerEvent()
[all …]
DPointerEventDispatcher.java43 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
53 listeners[i].onPointerEvent(motionEvent); in onInputEvent()
DTaskPositioner.java131 final MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local
143 final float newX = motionEvent.getRawX(); in onInputEvent()
144 final float newY = motionEvent.getRawY(); in onInputEvent()
146 switch (motionEvent.getAction()) { in onInputEvent()
DWindowManagerService.java786 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
788 final float newX = motionEvent.getRawX(); in onInputEvent()
789 final float newY = motionEvent.getRawY(); in onInputEvent()
791 (motionEvent.getButtonState() & MotionEvent.BUTTON_STYLUS_PRIMARY) != 0; in onInputEvent()
802 switch (motionEvent.getAction()) { in onInputEvent()
11442 public void onPointerEvent(MotionEvent motionEvent) { in onPointerEvent() argument
11443 if (motionEvent.isFromSource(InputDevice.SOURCE_MOUSE)) { in onPointerEvent()
11444 updatePosition(motionEvent.getRawX(), motionEvent.getRawY()); in onPointerEvent()
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java177 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
178 if (motionEvent.isTouchEvent()) { in onInputEvent()
179 onTouchEvent(motionEvent, nestingLevel); in onInputEvent()
180 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onInputEvent()
181 onTrackballEvent(motionEvent, nestingLevel); in onInputEvent()
183 onGenericMotionEvent(motionEvent, nestingLevel); in onInputEvent()
601 final MotionEvent motionEvent = (MotionEvent)event; in onUnhandledEvent() local
602 if (motionEvent.isTouchEvent()) { in onUnhandledEvent()
604 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onUnhandledEvent()
DWindowManagerPolicy.java523 public void onPointerEvent(MotionEvent motionEvent); in onPointerEvent() argument
DViewRootImpl.java6285 final MotionEvent motionEvent = (MotionEvent)event; in isTerminalInputEvent() local
6286 final int action = motionEvent.getAction(); in isTerminalInputEvent()
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodSessionWrapper.java234 MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
235 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in onInputEvent()
236 mInputMethodSession.dispatchTrackballEvent(seq, motionEvent, this); in onInputEvent()
238 mInputMethodSession.dispatchGenericMotionEvent(seq, motionEvent, this); in onInputEvent()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/util/
DMockWindow.java169 public boolean superDispatchTouchEvent(MotionEvent motionEvent) { in superDispatchTouchEvent() argument
174 public boolean superDispatchTrackballEvent(MotionEvent motionEvent) { in superDispatchTrackballEvent() argument
179 public boolean superDispatchGenericMotionEvent(MotionEvent motionEvent) { in superDispatchGenericMotionEvent() argument
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java239 MotionEvent motionEvent = (MotionEvent) message.obj; in handleMessage() local
240 sendMotionEventToNext(motionEvent, motionEvent, in handleMessage()
DAccessibilityInputFilter.java210 MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local
211 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent()
/frameworks/base/core/java/android/widget/
DTimePickerClockDelegate.java836 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
837 final int actionMasked = motionEvent.getActionMasked(); in onTouch()
841 (int) motionEvent.getX(), (int) motionEvent.getY()); in onTouch()
854 motionEvent.offsetLocation(offsetX, offsetY); in onTouch()
855 final boolean handled = child.dispatchTouchEvent(motionEvent); in onTouch()
856 motionEvent.offsetLocation(-offsetX, -offsetY); in onTouch()
/frameworks/native/libs/input/
DInputTransport.cpp493 MotionEvent* motionEvent = factory->createMotionEvent(); in consume() local
494 if (! motionEvent) return NO_MEMORY; in consume()
497 initializeMotionEvent(motionEvent, &mMsg); in consume()
499 *outEvent = motionEvent; in consume()
557 MotionEvent* motionEvent = factory->createMotionEvent(); in consumeSamples() local
558 if (! motionEvent) return NO_MEMORY; in consumeSamples()
569 addSample(motionEvent, &msg); in consumeSamples()
571 initializeMotionEvent(motionEvent, &msg); in consumeSamples()
578 *outEvent = motionEvent; in consumeSamples()
/frameworks/native/services/inputflinger/
DInputDispatcher.cpp2643 const MotionEvent* motionEvent = static_cast<const MotionEvent*>(event); in injectInputEvent() local
2644 int32_t action = motionEvent->getAction(); in injectInputEvent()
2645 size_t pointerCount = motionEvent->getPointerCount(); in injectInputEvent()
2646 const PointerProperties* pointerProperties = motionEvent->getPointerProperties(); in injectInputEvent()
2647 int32_t actionButton = motionEvent->getActionButton(); in injectInputEvent()
2653 nsecs_t eventTime = motionEvent->getEventTime(); in injectInputEvent()
2658 const nsecs_t* sampleEventTimes = motionEvent->getSampleEventTimes(); in injectInputEvent()
2659 const PointerCoords* samplePointerCoords = motionEvent->getSamplePointerCoords(); in injectInputEvent()
2661 motionEvent->getDeviceId(), motionEvent->getSource(), policyFlags, in injectInputEvent()
2662 action, actionButton, motionEvent->getFlags(), in injectInputEvent()
[all …]
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp296 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/packages/SystemUI/src/com/android/systemui/analytics/
DSensorLoggerSession.java70 public void addMotionEvent(MotionEvent motionEvent) { in addMotionEvent() argument
71 TouchEvent event = motionEventToProto(motionEvent); in addMotionEvent()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java919 private ViewHolder findSwipedView(MotionEvent motionEvent) { in findSwipedView() argument
924 final int pointerIndex = motionEvent.findPointerIndex(mActivePointerId); in findSwipedView()
925 final float dx = motionEvent.getX(pointerIndex) - mInitialTouchX; in findSwipedView()
926 final float dy = motionEvent.getY(pointerIndex) - mInitialTouchY; in findSwipedView()
938 View child = findChildView(motionEvent); in findSwipedView()
948 boolean checkSelectForSwipe(int action, MotionEvent motionEvent, int pointerIndex) { in checkSelectForSwipe() argument
956 final ViewHolder vh = findSwipedView(motionEvent); in checkSelectForSwipe()
971 final float x = motionEvent.getX(pointerIndex); in checkSelectForSwipe()
972 final float y = motionEvent.getY(pointerIndex); in checkSelectForSwipe()
1001 mActivePointerId = motionEvent.getPointerId(0); in checkSelectForSwipe()
/frameworks/base/media/java/android/media/tv/
DTvInputService.java1401 MotionEvent motionEvent = (MotionEvent) event;
1402 final int source = motionEvent.getSource();
1403 if (motionEvent.isTouchEvent()) {
1404 if (onTouchEvent(motionEvent)) {
1408 if (onTrackballEvent(motionEvent)) {
1412 if (onGenericMotionEvent(motionEvent)) {
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1291 const MotionEvent* motionEvent = android_view_MotionEvent_getNativePtr(env, inputEventObj); in nativeInjectInputEvent() local
1292 if (!motionEvent) { in nativeInjectInputEvent()
1298 motionEvent, displayId, injectorPid, injectorUid, syncMode, timeoutMillis, in nativeInjectInputEvent()
/frameworks/base/docs/html/training/game-controllers/
Dcontroller-input.jd392 MotionEvent motionEvent = (MotionEvent) event;
393 float xaxis = motionEvent.getAxisValue(MotionEvent.AXIS_HAT_X);
394 float yaxis = motionEvent.getAxisValue(MotionEvent.AXIS_HAT_Y);
/frameworks/base/docs/html/training/gestures/
Dviewgroup.jd194 float deltaX = motionEvent.getRawX() - mDownX;
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java3919 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local
3920 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { in onInputEvent()