/frameworks/support/v4/java/android/support/v4/view/ |
D | MotionEventCompat.java | 20 import android.view.MotionEvent; 31 public int findPointerIndex(MotionEvent event, int pointerId); in findPointerIndex() 32 public int getPointerId(MotionEvent event, int pointerIndex); in getPointerId() 33 public float getX(MotionEvent event, int pointerIndex); in getX() 34 public float getY(MotionEvent event, int pointerIndex); in getY() 35 public int getPointerCount(MotionEvent event); in getPointerCount() 36 public int getSource(MotionEvent event); in getSource() 37 float getAxisValue(MotionEvent event, int axis); in getAxisValue() 38 float getAxisValue(MotionEvent event, int axis, int pointerIndex); in getAxisValue() 39 int getButtonState(MotionEvent event); in getButtonState() [all …]
|
/frameworks/base/native/android/ |
D | input.cpp | 37 using android::MotionEvent; 86 return static_cast<const MotionEvent*>(motion_event)->getAction(); in AMotionEvent_getAction() 90 return static_cast<const MotionEvent*>(motion_event)->getFlags(); in AMotionEvent_getFlags() 94 return static_cast<const MotionEvent*>(motion_event)->getMetaState(); in AMotionEvent_getMetaState() 98 return static_cast<const MotionEvent*>(motion_event)->getButtonState(); in AMotionEvent_getButtonState() 102 return reinterpret_cast<const MotionEvent*>(motion_event)->getEdgeFlags(); in AMotionEvent_getEdgeFlags() 106 return static_cast<const MotionEvent*>(motion_event)->getDownTime(); in AMotionEvent_getDownTime() 110 return static_cast<const MotionEvent*>(motion_event)->getEventTime(); in AMotionEvent_getEventTime() 114 return static_cast<const MotionEvent*>(motion_event)->getXOffset(); in AMotionEvent_getXOffset() 118 return static_cast<const MotionEvent*>(motion_event)->getYOffset(); in AMotionEvent_getYOffset() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 25 import android.view.MotionEvent; 26 import android.view.MotionEvent.PointerCoords; 27 import android.view.MotionEvent.PointerProperties; 213 MotionEvent event = mReceivedPointerTracker.getLastReceivedEvent(); in clear() 219 private void clear(MotionEvent event, int policyFlags) { in clear() 265 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() 289 if (event.getActionMasked() == MotionEvent.ACTION_CANCEL) { in onMotionEvent() 361 public void onDoubleTapAndHold(MotionEvent event, int policyFlags) { in onDoubleTapAndHold() 393 public boolean onDoubleTap(MotionEvent event, int policyFlags) { in onDoubleTap() 429 MotionEvent click_event = MotionEvent.obtain(event.getDownTime(), in onDoubleTap() [all …]
|
D | AccessibilityGestureDetector.java | 30 import android.view.MotionEvent; 63 void onDoubleTapAndHold(MotionEvent event, int policyFlags); in onDoubleTapAndHold() 74 boolean onDoubleTap(MotionEvent event, int policyFlags); in onDoubleTap() 101 public boolean onGestureCancelled(MotionEvent event, int policyFlags); in onGestureCancelled() 207 public boolean onMotionEvent(MotionEvent event, int policyFlags) { in onMotionEvent() 214 case MotionEvent.ACTION_DOWN: in onMotionEvent() 229 case MotionEvent.ACTION_MOVE: in onMotionEvent() 278 case MotionEvent.ACTION_UP: in onMotionEvent() 289 case MotionEvent.ACTION_POINTER_DOWN: in onMotionEvent() 306 case MotionEvent.ACTION_POINTER_UP: in onMotionEvent() [all …]
|
D | MotionEventInjector.java | 29 import android.view.MotionEvent; 53 private MotionEvent.PointerProperties[] mPointerProperties = 54 new MotionEvent.PointerProperties[MAX_POINTERS]; 55 private MotionEvent.PointerCoords[] mPointerCoords = 56 new MotionEvent.PointerCoords[MAX_POINTERS]; 79 public void injectEvents(List<MotionEvent> events, in injectEvents() 89 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() 130 private void injectEventsMainThread(List<MotionEvent> events, in injectEventsMainThread() 153 MotionEvent event = events.get(i); in injectEventsMainThread() 156 mPointerCoords = new MotionEvent.PointerCoords[numPointers]; in injectEventsMainThread() [all …]
|
D | MagnificationGestureHandler.java | 29 import android.view.MotionEvent; 30 import android.view.MotionEvent.PointerCoords; 31 import android.view.MotionEvent.PointerProperties; 125 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() 206 private void handleMotionEventStateDelegating(MotionEvent event, in handleMotionEventStateDelegating() 207 MotionEvent rawEvent, int policyFlags) { in handleMotionEventStateDelegating() 209 case MotionEvent.ACTION_DOWN: { in handleMotionEventStateDelegating() 213 case MotionEvent.ACTION_UP: { in handleMotionEventStateDelegating() 232 private void dispatchTransformedEvent(MotionEvent event, MotionEvent rawEvent, in dispatchTransformedEvent() 254 event = MotionEvent.obtain(event.getDownTime(), in dispatchTransformedEvent() [all …]
|
D | GestureUtils.java | 4 import android.view.MotionEvent; 15 public static boolean isTap(MotionEvent down, MotionEvent up, int tapTimeSlop, in isTap() 20 public static boolean isMultiTap(MotionEvent firstUp, MotionEvent secondUp, in isMultiTap() 26 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, in eventsWithinTimeAndDistanceSlop() 38 public static double computeDistance(MotionEvent first, MotionEvent second, int pointerIndex) { in computeDistance() 43 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout) { in isTimedOut() 48 public static boolean isSamePointerContext(MotionEvent first, MotionEvent second) { in isSamePointerContext()
|
D | AutoclickController.java | 31 import android.view.MotionEvent; 32 import android.view.MotionEvent.PointerCoords; 33 import android.view.MotionEvent.PointerProperties; 76 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() 146 private void handleMouseMotion(MotionEvent event, int policyFlags) { in handleMouseMotion() 148 case MotionEvent.ACTION_HOVER_MOVE: { in handleMouseMotion() 156 case MotionEvent.ACTION_HOVER_ENTER: in handleMouseMotion() 157 case MotionEvent.ACTION_HOVER_EXIT: in handleMouseMotion() 258 private MotionEvent mLastMotionEvent; 311 public void update(MotionEvent event, int policyFlags) { in update() [all …]
|
D | AccessibilityInputFilter.java | 29 import android.view.MotionEvent; 205 if (event instanceof MotionEvent) { in onInputEvent() 206 MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() 220 if (event instanceof MotionEvent) { in getEventStreamState() 244 private void processMotionEvent(EventStreamState state, MotionEvent event, int policyFlags) { in processMotionEvent() 245 if (!state.shouldProcessScroll() && event.getActionMasked() == MotionEvent.ACTION_SCROLL) { in processMotionEvent() 269 private void batchMotionEvent(MotionEvent event, int policyFlags) { in batchMotionEvent() 312 private void handleMotionEvent(MotionEvent event, int policyFlags) { in handleMotionEvent() 320 MotionEvent transformedEvent = MotionEvent.obtain(event); in handleMotionEvent() 327 public void onMotionEvent(MotionEvent transformedEvent, MotionEvent rawEvent, in onMotionEvent() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 68 MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj) { in android_view_MotionEvent_getNativePtr() 72 return reinterpret_cast<MotionEvent*>( in android_view_MotionEvent_getNativePtr() 77 MotionEvent* event) { in android_view_MotionEvent_setNativePtr() 82 jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event) { in android_view_MotionEvent_obtainAsCopy() 92 MotionEvent* destEvent = android_view_MotionEvent_getNativePtr(env, eventObj); in android_view_MotionEvent_obtainAsCopy() 94 destEvent = new MotionEvent(); in android_view_MotionEvent_obtainAsCopy() 348 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); in android_view_MotionEvent_nativeInitialize() 350 event = new MotionEvent(); in android_view_MotionEvent_nativeInitialize() 388 MotionEvent* destEvent = reinterpret_cast<MotionEvent*>(destNativePtr); in android_view_MotionEvent_nativeCopy() 390 destEvent = new MotionEvent(); in android_view_MotionEvent_nativeCopy() [all …]
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 56 boolean onDown(MotionEvent e); in onDown() 66 void onShowPress(MotionEvent e); in onShowPress() 75 boolean onSingleTapUp(MotionEvent e); in onSingleTapUp() 92 boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY); in onScroll() 100 void onLongPress(MotionEvent e); in onLongPress() 115 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() 134 boolean onSingleTapConfirmed(MotionEvent e); in onSingleTapConfirmed() 142 boolean onDoubleTap(MotionEvent e); in onDoubleTap() 151 boolean onDoubleTapEvent(MotionEvent e); in onDoubleTapEvent() 166 boolean onContextClick(MotionEvent e); in onContextClick() [all …]
|
D | InputEventConsistencyVerifier.java | 177 final MotionEvent motionEvent = (MotionEvent)event; in onInputEvent() 259 public void onTrackballEvent(MotionEvent event, int nestingLevel) { in onTrackballEvent() 271 case MotionEvent.ACTION_DOWN: in onTrackballEvent() 281 case MotionEvent.ACTION_UP: in onTrackballEvent() 291 case MotionEvent.ACTION_MOVE: in onTrackballEvent() 295 problem("Invalid action " + MotionEvent.actionToString(action) in onTrackballEvent() 322 public void onTouchEvent(MotionEvent event, int nestingLevel) { in onTouchEvent() 328 final boolean newStream = action == MotionEvent.ACTION_DOWN in onTouchEvent() 329 || action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_OUTSIDE; in onTouchEvent() 360 case MotionEvent.ACTION_DOWN: in onTouchEvent() [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | TouchUtils.java | 24 import android.view.MotionEvent; 46 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView() 47 MotionEvent.ACTION_DOWN, x, y, 0); in tapView() 53 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView() 59 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView() 77 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView() 78 MotionEvent.ACTION_DOWN, x, y, 0); in touchAndCancelView() 84 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView() 104 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in clickView() 105 MotionEvent.ACTION_DOWN, x, y, 0); in clickView() [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | Events.java | 22 import android.view.MotionEvent; 33 public static boolean isMouseEvent(MotionEvent e) { in isMouseEvent() 40 public static boolean isTouchEvent(MotionEvent e) { in isTouchEvent() 48 return toolType == MotionEvent.TOOL_TYPE_MOUSE; in isMouseType() 55 return toolType == MotionEvent.TOOL_TYPE_FINGER in isTouchType() 56 || toolType == MotionEvent.TOOL_TYPE_STYLUS; in isTouchType() 62 public static boolean isActionDown(MotionEvent e) { in isActionDown() 63 return e.getActionMasked() == MotionEvent.ACTION_DOWN; in isActionDown() 69 public static boolean isActionUp(MotionEvent e) { in isActionUp() 70 return e.getActionMasked() == MotionEvent.ACTION_UP; in isActionUp() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ForwardingListener.java | 20 import android.view.MotionEvent; 83 public boolean onTouch(View v, MotionEvent event) { in onTouch() 94 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, in onTouch() 112 mActivePointerId = MotionEvent.INVALID_POINTER_ID; in onViewDetachedFromWindow() 159 private boolean onTouchObserved(MotionEvent srcEvent) { in onTouchObserved() 167 case MotionEvent.ACTION_DOWN: in onTouchObserved() 180 case MotionEvent.ACTION_MOVE: in onTouchObserved() 196 case MotionEvent.ACTION_CANCEL: in onTouchObserved() 197 case MotionEvent.ACTION_UP: in onTouchObserved() 234 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0); in onLongPress() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskTapPointerEventListener.java | 24 import android.view.MotionEvent; 63 public void onPointerEvent(MotionEvent motionEvent) { in onPointerEvent() 67 switch (action & MotionEvent.ACTION_MASK) { in onPointerEvent() 68 case MotionEvent.ACTION_DOWN: { in onPointerEvent() 81 case MotionEvent.ACTION_MOVE: { in onPointerEvent() 88 case MotionEvent.ACTION_HOVER_MOVE: { in onPointerEvent() 122 case MotionEvent.ACTION_HOVER_EXIT: in onPointerEvent() 130 case MotionEvent.ACTION_UP: in onPointerEvent() 131 case MotionEvent.ACTION_POINTER_UP: { in onPointerEvent() 138 private void doGestureDetection(MotionEvent motionEvent) { in doGestureDetection() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ForwardingListener.java | 22 import android.view.MotionEvent; 84 public boolean onTouch(View v, MotionEvent event) { in onTouch() 95 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, in onTouch() 146 private boolean onTouchObserved(MotionEvent srcEvent) { in onTouchObserved() 154 case MotionEvent.ACTION_DOWN: in onTouchObserved() 167 case MotionEvent.ACTION_MOVE: in onTouchObserved() 183 case MotionEvent.ACTION_CANCEL: in onTouchObserved() 184 case MotionEvent.ACTION_UP: in onTouchObserved() 221 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0); in onLongPress() 235 private boolean onTouchForwarded(MotionEvent srcEvent) { in onTouchForwarded() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarGestureHelper.java | 24 import android.view.MotionEvent; 104 public boolean onInterceptTouchEvent(MotionEvent event) { in onInterceptTouchEvent() 109 switch (action & MotionEvent.ACTION_MASK) { in onInterceptTouchEvent() 110 case MotionEvent.ACTION_DOWN: { in onInterceptTouchEvent() 115 case MotionEvent.ACTION_MOVE: { in onInterceptTouchEvent() 128 case MotionEvent.ACTION_CANCEL: in onInterceptTouchEvent() 129 case MotionEvent.ACTION_UP: in onInterceptTouchEvent() 135 private boolean interceptDockWindowEvent(MotionEvent event) { in interceptDockWindowEvent() 137 case MotionEvent.ACTION_DOWN: in interceptDockWindowEvent() 140 case MotionEvent.ACTION_MOVE: in interceptDockWindowEvent() [all …]
|
D | HeadsUpTouchHelper.java | 20 import android.view.MotionEvent; 62 public boolean onInterceptTouchEvent(MotionEvent event) { in onInterceptTouchEvent() 63 if (!mTouchingHeadsUpView && event.getActionMasked() != MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent() 74 case MotionEvent.ACTION_DOWN: in onInterceptTouchEvent() 86 case MotionEvent.ACTION_POINTER_UP: in onInterceptTouchEvent() 97 case MotionEvent.ACTION_MOVE: in onInterceptTouchEvent() 117 case MotionEvent.ACTION_CANCEL: in onInterceptTouchEvent() 118 case MotionEvent.ACTION_UP: in onInterceptTouchEvent() 147 public boolean onTouchEvent(MotionEvent event) { 152 case MotionEvent.ACTION_UP: [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DecorCaptionView.java | 26 import android.view.MotionEvent; 154 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() 157 if (ev.getAction() == MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent() 171 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() 175 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) { in onTouchEvent() 184 public boolean onTouch(View v, MotionEvent e) { in onTouch() 191 case MotionEvent.ACTION_DOWN: in onTouch() 198 if (((e.getToolType(e.getActionIndex()) != MotionEvent.TOOL_TYPE_MOUSE || in onTouch() 199 (e.getButtonState() & MotionEvent.BUTTON_PRIMARY) != 0))) { in onTouch() 206 case MotionEvent.ACTION_MOVE: in onTouch() [all …]
|
D | PointerLocationView.java | 30 import android.view.MotionEvent; 35 import android.view.MotionEvent.PointerCoords; 389 if (ps.mToolType == MotionEvent.TOOL_TYPE_STYLUS in onDraw() 390 || ps.mToolType == MotionEvent.TOOL_TYPE_ERASER) { in onDraw() 408 ps.mCoords.getAxisValue(MotionEvent.AXIS_TILT)); in onDraw() 423 private void logMotionEvent(String type, MotionEvent event) { in logMotionEvent() 442 MotionEvent.PointerCoords coords, int id, MotionEvent event) { in logCoords() 446 switch (action & MotionEvent.ACTION_MASK) { in logCoords() 447 case MotionEvent.ACTION_DOWN: in logCoords() 450 case MotionEvent.ACTION_UP: in logCoords() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | ClassifierData.java | 20 import android.view.MotionEvent; 37 public void update(MotionEvent event) { in update() 40 if (action == MotionEvent.ACTION_DOWN) { in update() 52 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL in update() 53 || (action == MotionEvent.ACTION_POINTER_UP && i == event.getActionIndex())) { in update() 59 public void cleanUp(MotionEvent event) { in cleanUp() 64 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL in cleanUp() 65 || (action == MotionEvent.ACTION_POINTER_UP && i == event.getActionIndex())) { in cleanUp()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 25 import android.view.MotionEvent; 261 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView() 262 MotionEvent.ACTION_DOWN, x, y, 0); in tapView() 268 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView() 274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView() 301 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView() 302 MotionEvent.ACTION_DOWN, x, y, 0); in touchAndCancelView() 308 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView() 336 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in clickView() 337 MotionEvent.ACTION_DOWN, x, y, 0); in clickView() [all …]
|
/frameworks/support/v4/eclair/android/support/v4/view/ |
D | MotionEventCompatEclair.java | 19 import android.view.MotionEvent; 25 public static int findPointerIndex(MotionEvent event, int pointerId) { in findPointerIndex() 28 public static int getPointerId(MotionEvent event, int pointerIndex) { in getPointerId() 31 public static float getX(MotionEvent event, int pointerIndex) { in getX() 34 public static float getY(MotionEvent event, int pointerIndex) { in getY() 37 public static int getPointerCount(MotionEvent event) { in getPointerCount()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | MouseUiController.java | 29 import android.view.MotionEvent; 37 @IntDef({MotionEvent.BUTTON_PRIMARY, MotionEvent.BUTTON_SECONDARY, MotionEvent.BUTTON_TERTIARY}) 45 this(uiController, MotionEvent.BUTTON_PRIMARY); in MouseUiController() 65 public boolean injectMotionEvent(MotionEvent event) throws InjectEventSecurityException { in injectMotionEvent() 68 if (event.getActionMasked() != MotionEvent.ACTION_UP) { in injectMotionEvent()
|