/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 185 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/ |
D | TaskTapPointerEventListener.java | 63 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 …]
|
D | PointerEventDispatcher.java | 43 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local 53 listeners[i].onPointerEvent(motionEvent); in onInputEvent()
|
D | TaskPositioner.java | 131 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()
|
D | WindowManagerService.java | 786 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/ |
D | InputEventConsistencyVerifier.java | 177 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()
|
D | WindowManagerPolicy.java | 523 public void onPointerEvent(MotionEvent motionEvent); in onPointerEvent() argument
|
D | ViewRootImpl.java | 6285 final MotionEvent motionEvent = (MotionEvent)event; in isTerminalInputEvent() local 6286 final int action = motionEvent.getAction(); in isTerminalInputEvent()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | IInputMethodSessionWrapper.java | 234 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/ |
D | MockWindow.java | 169 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/ |
D | MotionEventInjector.java | 239 MotionEvent motionEvent = (MotionEvent) message.obj; in handleMessage() local 240 sendMotionEventToNext(motionEvent, motionEvent, in handleMessage()
|
D | AccessibilityInputFilter.java | 210 MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local 211 processMotionEvent(state, motionEvent, policyFlags); in onInputEvent()
|
/frameworks/base/core/java/android/widget/ |
D | TimePickerClockDelegate.java | 836 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/ |
D | InputTransport.cpp | 493 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/ |
D | InputDispatcher.cpp | 2643 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/ |
D | android_view_InputEventReceiver.cpp | 296 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/ |
D | SensorLoggerSession.java | 70 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/ |
D | ItemTouchHelper.java | 919 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/ |
D | TvInputService.java | 1401 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/ |
D | com_android_server_input_InputManagerService.cpp | 1291 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/ |
D | controller-input.jd | 392 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/ |
D | viewgroup.jd | 194 float deltaX = motionEvent.getRawX() - mDownX;
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 3919 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() local 3920 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { in onInputEvent()
|