Lines Matching refs:ev

542                 AccessibilityEvent ev =  in sendScrollAccessibilityEvent()  local
544 ev.setScrollable(true); in sendScrollAccessibilityEvent()
545 ev.setScrollX(getScrollX()); in sendScrollAccessibilityEvent()
546 ev.setScrollY(getScrollY()); in sendScrollAccessibilityEvent()
547 mOrientationHandler.setMaxScroll(ev, mMaxScroll); in sendScrollAccessibilityEvent()
548 sendAccessibilityEventUnchecked(ev); in sendScrollAccessibilityEvent()
1050 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
1060 acquireVelocityTrackerAndAddMovement(ev); in onInterceptTouchEvent()
1067 final int action = ev.getAction(); in onInterceptTouchEvent()
1079 determineScrollingStart(ev); in onInterceptTouchEvent()
1090 final float x = ev.getX(); in onInterceptTouchEvent()
1091 final float y = ev.getY(); in onInterceptTouchEvent()
1095 mDownMotionPrimary = mOrientationHandler.getPrimaryDirection(ev, 0); in onInterceptTouchEvent()
1099 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
1100 updateIsBeingDraggedOnTouchDown(ev); in onInterceptTouchEvent()
1110 onSecondaryPointerUp(ev); in onInterceptTouchEvent()
1125 protected void updateIsBeingDraggedOnTouchDown(MotionEvent ev) { in updateIsBeingDraggedOnTouchDown() argument
1142 float displacement = mOrientationHandler.getSecondaryValue(ev.getX(), ev.getY()) in updateIsBeingDraggedOnTouchDown()
1148 mEdgeGlowRight.onPullDistance(0f, displacement, ev); in updateIsBeingDraggedOnTouchDown()
1156 protected void determineScrollingStart(MotionEvent ev) { in determineScrollingStart() argument
1157 determineScrollingStart(ev, 1.0f); in determineScrollingStart()
1164 protected void determineScrollingStart(MotionEvent ev, float touchSlopScale) { in determineScrollingStart() argument
1166 final int pointerIndex = ev.findPointerIndex(mActivePointerId); in determineScrollingStart()
1169 final float primaryDirection = mOrientationHandler.getPrimaryDirection(ev, pointerIndex); in determineScrollingStart()
1172 boolean moved = diff > touchSlop || ev.getAction() == ACTION_MOVE_ALLOW_EASY_FLING; in determineScrollingStart()
1264 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
1268 acquireVelocityTrackerAndAddMovement(ev); in onTouchEvent()
1270 final int action = ev.getAction(); in onTouchEvent()
1274 updateIsBeingDraggedOnTouchDown(ev); in onTouchEvent()
1285 mDownMotionX = ev.getX(); in onTouchEvent()
1286 mDownMotionY = ev.getY(); in onTouchEvent()
1287 mDownMotionPrimary = mOrientationHandler.getPrimaryDirection(ev, 0); in onTouchEvent()
1291 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
1299 determineScrollingStart(ev); in onTouchEvent()
1306 final int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
1310 int dx = (int) ev.getX(pointerIndex); in onTouchEvent()
1311 int dy = (int) ev.getY(pointerIndex); in onTouchEvent()
1328 mEdgeGlowRight.onPullDistance(delta / size, displacement, ev)); in onTouchEvent()
1331 mEdgeGlowLeft.onPullDistance(-delta / size, 1 - displacement, ev)); in onTouchEvent()
1349 mEdgeGlowLeft.onPullDistance(-delta / size, 1.f - displacement, ev); in onTouchEvent()
1351 mEdgeGlowRight.onRelease(ev); in onTouchEvent()
1354 mEdgeGlowRight.onPullDistance(delta / size, displacement, ev); in onTouchEvent()
1356 mEdgeGlowLeft.onRelease(ev); in onTouchEvent()
1368 determineScrollingStart(ev); in onTouchEvent()
1375 final int pointerIndex = ev.findPointerIndex(activePointerId); in onTouchEvent()
1378 final float primaryDirection = mOrientationHandler.getPrimaryDirection(ev, in onTouchEvent()
1466 mEdgeGlowLeft.onRelease(ev); in onTouchEvent()
1467 mEdgeGlowRight.onRelease(ev); in onTouchEvent()
1476 mEdgeGlowLeft.onRelease(ev); in onTouchEvent()
1477 mEdgeGlowRight.onRelease(ev); in onTouchEvent()
1482 onSecondaryPointerUp(ev); in onTouchEvent()
1560 private void acquireVelocityTrackerAndAddMovement(MotionEvent ev) { in acquireVelocityTrackerAndAddMovement() argument
1564 mVelocityTracker.addMovement(ev); in acquireVelocityTrackerAndAddMovement()
1575 private void onSecondaryPointerUp(MotionEvent ev) { in onSecondaryPointerUp() argument
1576 final int pointerIndex = ev.getActionIndex(); in onSecondaryPointerUp()
1577 final int pointerId = ev.getPointerId(pointerIndex); in onSecondaryPointerUp()
1583 mDownMotionPrimary = mOrientationHandler.getPrimaryDirection(ev, newPointerIndex); in onSecondaryPointerUp()
1585 mActivePointerId = ev.getPointerId(newPointerIndex); in onSecondaryPointerUp()