Searched refs:motionEvent (Results 1 - 21 of 21) sorted by relevance

/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp185 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/services/core/java/com/android/server/wm/
H A DTaskTapPointerEventListener.java63 public void onPointerEvent(MotionEvent motionEvent) { argument
64 doGestureDetection(motionEvent);
66 final int action = motionEvent.getAction();
69 final int x = (int) motionEvent.getX();
70 final int y = (int) motionEvent.getY();
82 if (motionEvent.getPointerCount() != 2) {
89 final int x = (int) motionEvent.getX();
90 final int y = (int) motionEvent.getY();
92 InputDevice inputDevice = motionEvent.getDevice();
124 InputDevice inputDevice = motionEvent
138 doGestureDetection(MotionEvent motionEvent) argument
[all...]
H A DPointerEventDispatcher.java43 final MotionEvent motionEvent = (MotionEvent)event;
53 listeners[i].onPointerEvent(motionEvent);
H A DTaskPositioner.java131 final MotionEvent motionEvent = (MotionEvent) event;
143 final float newX = motionEvent.getRawX();
144 final float newY = motionEvent.getRawY();
146 switch (motionEvent.getAction()) {
H A DWindowManagerService.java786 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()) {
11442 public void onPointerEvent(MotionEvent motionEvent) { argument
11443 if (motionEvent.isFromSource(InputDevice.SOURCE_MOUSE)) {
11444 updatePosition(motionEvent.getRawX(), motionEvent.getRawY());
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/util/
H A DMockWindow.java169 public boolean superDispatchTouchEvent(MotionEvent motionEvent) { argument
174 public boolean superDispatchTrackballEvent(MotionEvent motionEvent) { argument
179 public boolean superDispatchGenericMotionEvent(MotionEvent motionEvent) { argument
/frameworks/base/core/java/android/inputmethodservice/
H A DIInputMethodSessionWrapper.java234 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 DInputEventConsistencyVerifier.java177 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 DWindowManagerPolicy.java520 * 2. motionEvent will be recycled after onPointerEvent returns so if it is needed later a
523 public void onPointerEvent(MotionEvent motionEvent); argument
H A DViewRootImpl.java6284 final MotionEvent motionEvent = (MotionEvent)event;
6285 final int action = motionEvent.getAction();
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMotionEventInjector.java239 MotionEvent motionEvent = (MotionEvent) message.obj;
240 sendMotionEventToNext(motionEvent, motionEvent,
H A DAccessibilityInputFilter.java210 MotionEvent motionEvent = (MotionEvent) event;
211 processMotionEvent(state, motionEvent, policyFlags);
/frameworks/base/core/jni/
H A Dandroid_view_InputEventReceiver.cpp296 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 DInputTransport.cpp493 MotionEvent* motionEvent = factory->createMotionEvent(); local
494 if (! motionEvent) return NO_MEMORY;
497 initializeMotionEvent(motionEvent, &mMsg);
499 *outEvent = motionEvent;
557 MotionEvent* motionEvent = factory->createMotionEvent(); local
558 if (! motionEvent) return NO_MEMORY;
569 addSample(motionEvent, &msg);
571 initializeMotionEvent(motionEvent, &msg);
578 *outEvent = motionEvent;
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/
H A DSensorLoggerSession.java70 public void addMotionEvent(MotionEvent motionEvent) { argument
71 TouchEvent event = motionEventToProto(motionEvent);
/frameworks/native/services/inputflinger/
H A DInputDispatcher.cpp2643 const MotionEvent* motionEvent = static_cast<const MotionEvent*>(event); local
2644 int32_t action = motionEvent->getAction();
2645 size_t pointerCount = motionEvent->getPointerCount();
2646 const PointerProperties* pointerProperties = motionEvent->getPointerProperties();
2647 int32_t actionButton = motionEvent->getActionButton();
2653 nsecs_t eventTime = motionEvent->getEventTime();
2658 const nsecs_t* sampleEventTimes = motionEvent->getSampleEventTimes();
2659 const PointerCoords* samplePointerCoords = motionEvent->getSamplePointerCoords();
2661 motionEvent->getDeviceId(), motionEvent
[all...]
/frameworks/base/core/java/android/widget/
H A DTimePickerClockDelegate.java836 public boolean onTouch(View view, MotionEvent motionEvent) { argument
837 final int actionMasked = motionEvent.getActionMasked();
841 (int) motionEvent.getX(), (int) motionEvent.getY());
854 motionEvent.offsetLocation(offsetX, offsetY);
855 final boolean handled = child.dispatchTouchEvent(motionEvent);
856 motionEvent.offsetLocation(-offsetX, -offsetY);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
H A DItemTouchHelper.java919 private ViewHolder findSwipedView(MotionEvent motionEvent) { argument
924 final int pointerIndex = motionEvent.findPointerIndex(mActivePointerId);
925 final float dx = motionEvent.getX(pointerIndex) - mInitialTouchX;
926 final float dy = motionEvent.getY(pointerIndex) - mInitialTouchY;
938 View child = findChildView(motionEvent);
948 boolean checkSelectForSwipe(int action, MotionEvent motionEvent, int pointerIndex) { argument
956 final ViewHolder vh = findSwipedView(motionEvent);
971 final float x = motionEvent.getX(pointerIndex);
972 final float y = motionEvent.getY(pointerIndex);
1001 mActivePointerId = motionEvent
[all...]
/frameworks/base/media/java/android/media/tv/
H A 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/
H A Dcom_android_server_input_InputManagerService.cpp1291 const MotionEvent* motionEvent = android_view_MotionEvent_getNativePtr(env, inputEventObj); local
1292 if (!motionEvent) {
1298 motionEvent, displayId, injectorPid, injectorUid, syncMode, timeoutMillis,
/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java3800 final MotionEvent motionEvent = (MotionEvent)event;
3801 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {

Completed in 1016 milliseconds