/frameworks/support/design/src/android/support/design/widget/ |
D | HeaderBehavior.java | 44 private int mTouchSlop = -1; field in HeaderBehavior 55 if (mTouchSlop < 0) { in onInterceptTouchEvent() 56 mTouchSlop = ViewConfiguration.get(parent.getContext()).getScaledTouchSlop(); in onInterceptTouchEvent() 92 if (yDiff > mTouchSlop) { in onInterceptTouchEvent() 120 if (mTouchSlop < 0) { in onTouchEvent() 121 mTouchSlop = ViewConfiguration.get(parent.getContext()).getScaledTouchSlop(); in onTouchEvent() 148 if (!mIsBeingDragged && Math.abs(dy) > mTouchSlop) { in onTouchEvent() 151 dy -= mTouchSlop; in onTouchEvent() 153 dy += mTouchSlop; in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DoubleTapHelper.java | 38 private float mTouchSlop; field in DoubleTapHelper 54 mTouchSlop = ViewConfiguration.get(view.getContext()).getScaledTouchSlop(); in DoubleTapHelper() 141 return Math.abs(event.getX() - mDownX) < mTouchSlop in isWithinTouchSlop() 142 && Math.abs(event.getY() - mDownY) < mTouchSlop; in isWithinTouchSlop()
|
D | HeadsUpTouchHelper.java | 37 private float mTouchSlop; field in HeadsUpTouchHelper 54 mTouchSlop = configuration.getScaledTouchSlop(); in HeadsUpTouchHelper() 99 if (mTouchingHeadsUpView && Math.abs(h) > mTouchSlop in onInterceptTouchEvent()
|
D | KeyguardAffordanceHelper.java | 55 private int mTouchSlop; field in KeyguardAffordanceHelper 96 mTouchSlop = configuration.getScaledPagingTouchSlop(); in initDimens() 160 if (!mTouchSlopExeeded && distance > mTouchSlop) { in onTouchEvent() 427 return translation > 0.0f ? translation + mTouchSlop : 0.0f; in getTranslationFromRadius() 431 if (translation <= mTouchSlop) { in getRadiusFromTranslation() 434 return (translation - mTouchSlop) * BACKGROUND_RADIUS_SCALE_FACTOR + mMinBackgroundRadius; in getRadiusFromTranslation()
|
D | PanelView.java | 93 protected int mTouchSlop; field in PanelView 220 mTouchSlop = configuration.getScaledTouchSlop(); in loadDimens() 355 if (Math.abs(h) > mTouchSlop in onTouchEvent() 446 || Math.abs(x - mInitialTouchX) > mTouchSlop in endMotionEvent() 447 || Math.abs(y - mInitialTouchY) > mTouchSlop in endMotionEvent() 606 if ((h < -mTouchSlop || (mAnimatingOnDown && hAbs > mTouchSlop)) in onInterceptTouchEvent()
|
/frameworks/base/core/java/android/view/ |
D | ViewConfiguration.java | 287 private final int mTouchSlop; field in ViewConfiguration 317 mTouchSlop = TOUCH_SLOP; in ViewConfiguration() 403 mTouchSlop = res.getDimensionPixelSize( in ViewConfiguration() 407 mPagingTouchSlop = mTouchSlop * 2; in ViewConfiguration() 409 mDoubleTapTouchSlop = mTouchSlop; in ViewConfiguration() 634 return mTouchSlop; in getScaledTouchSlop()
|
D | NotificationHeaderView.java | 320 private int mTouchSlop; field in NotificationHeaderView.HeaderTouchListener 333 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); in bindTouchRects() 382 if (Math.abs(mDownX - x) > mTouchSlop in onTouch() 383 || Math.abs(mDownY - y) > mTouchSlop) { in onTouch()
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 112 private int mTouchSlop; field in ViewDragHelper 363 helper.mTouchSlop = (int) (helper.mTouchSlop * (1 / sensitivity)); in create() 390 mTouchSlop = vc.getScaledTouchSlop(); in ViewDragHelper() 492 return mTouchSlop; in getTouchSlop() 1271 || (absDelta <= mTouchSlop && absODelta <= mTouchSlop)) { in checkNewEdgeDrag() 1278 return (mEdgeDragsInProgress[pointerId] & edge) == 0 && absDelta > mTouchSlop; in checkNewEdgeDrag() 1299 return dx * dx + dy * dy > mTouchSlop * mTouchSlop; in checkTouchSlop() 1301 return Math.abs(dx) > mTouchSlop; in checkTouchSlop() 1303 return Math.abs(dy) > mTouchSlop; in checkTouchSlop() 1359 return dx * dx + dy * dy > mTouchSlop * mTouchSlop; in checkTouchSlop() [all …]
|
D | SwipeRefreshLayout.java | 107 private int mTouchSlop; field in SwipeRefreshLayout 332 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in SwipeRefreshLayout() 1063 if (yDiff > mTouchSlop && !mIsBeingDragged) { in startDragging() 1064 mInitialMotionY = mInitialDownY + mTouchSlop; in startDragging()
|
D | NestedScrollView.java | 144 private int mTouchSlop; field in NestedScrollView 394 mTouchSlop = configuration.getScaledTouchSlop(); in initScrollView() 682 if (yDiff > mTouchSlop in onInterceptTouchEvent() 803 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent() 810 deltaY -= mTouchSlop; in onTouchEvent() 812 deltaY += mTouchSlop; in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonView.java | 60 private int mTouchSlop; field in KeyButtonView 109 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in KeyButtonView() 219 setPressed(x >= -mTouchSlop in onTouchEvent() 220 && x < getWidth() + mTouchSlop in onTouchEvent() 221 && y >= -mTouchSlop in onTouchEvent() 222 && y < getHeight() + mTouchSlop); in onTouchEvent()
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
D | PagerTabStrip.java | 77 private int mTouchSlop; field in PagerTabStrip 98 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in PagerTabStrip() 242 if (Math.abs(x - mInitialMotionX) > mTouchSlop in onTouchEvent() 243 || Math.abs(y - mInitialMotionY) > mTouchSlop) { in onTouchEvent()
|
D | ViewPager.java | 189 private int mTouchSlop; field in ViewPager 403 mTouchSlop = configuration.getScaledPagingTouchSlop(); in initViewPager() 2079 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) { 2085 ? mInitialMotionX + mTouchSlop : mInitialMotionX - mTouchSlop; 2088 } else if (yDiff > mTouchSlop) { 2212 if (xDiff > mTouchSlop && xDiff > yDiff) { 2216 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop : 2217 mInitialMotionX - mTouchSlop;
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ResolverDrawerLayout.java | 89 private final int mTouchSlop; field in ResolverDrawerLayout 146 mTouchSlop = vc.getScaledTouchSlop(); in ResolverDrawerLayout() 266 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null && in onInterceptTouchEvent() 270 mLastTouchY = Math.max(mLastTouchY - mTouchSlop, in onInterceptTouchEvent() 271 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onInterceptTouchEvent() 328 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) { in onTouchEvent() 330 mLastTouchY = Math.max(mLastTouchY - mTouchSlop, in onTouchEvent() 331 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onTouchEvent() 367 if (mOpenOnClick && Math.abs(ev.getX() - mInitialTouchX) < mTouchSlop && in onTouchEvent() 368 Math.abs(ev.getY() - mInitialTouchY) < mTouchSlop) { in onTouchEvent()
|
D | ViewPager.java | 155 private final int mTouchSlop; field in ViewPager 348 mTouchSlop = configuration.getScaledPagingTouchSlop(); in ViewPager() 1869 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) { 1874 mLastMotionX = dx > 0 ? mInitialMotionX + mTouchSlop : 1875 mInitialMotionX - mTouchSlop; 1878 } else if (yDiff > mTouchSlop) { 1984 if (xDiff > mTouchSlop && xDiff > yDiff) { 1988 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop : 1989 mInitialMotionX - mTouchSlop;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | DragDownHelper.java | 51 private float mTouchSlop; field in DragDownHelper 64 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in DragDownHelper() 87 if (h > mTouchSlop && h > Math.abs(x - mInitialTouchX)) { in onInterceptTouchEvent()
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
D | DemoModeController.java | 46 private int mTouchSlop; field in DemoModeController 65 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in onCreate() 115 if (Math.abs(mLastDown.x - x) > mTouchSlop || Math.abs(mLastDown.y - y) > mTouchSlop) { in onTouch()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | SwitchCompat.java | 131 private int mTouchSlop; field in SwitchCompat 281 mTouchSlop = config.getScaledTouchSlop(); in SwitchCompat() 892 final int thumbTop = mSwitchTop - mTouchSlop; in hitThumb() 893 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop; in hitThumb() 895 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb() 896 final int thumbBottom = mSwitchBottom + mTouchSlop; in hitThumb() 925 if (Math.abs(x - mTouchX) > mTouchSlop || in onTouchEvent() 926 Math.abs(y - mTouchY) > mTouchSlop) { in onTouchEvent()
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 116 private int mTouchSlop; field in Switch 289 mTouchSlop = config.getScaledTouchSlop(); in Switch() 913 final int thumbTop = mSwitchTop - mTouchSlop; in hitThumb() 914 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop; in hitThumb() 916 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb() 917 final int thumbBottom = mSwitchBottom + mTouchSlop; in hitThumb() 946 if (Math.abs(x - mTouchX) > mTouchSlop || in onTouchEvent() 947 Math.abs(y - mTouchY) > mTouchSlop) { in onTouchEvent()
|
D | HorizontalScrollView.java | 125 private int mTouchSlop; field in HorizontalScrollView 222 mTouchSlop = configuration.getScaledTouchSlop(); in initScrollView() 503 if (xDiff > mTouchSlop) { in onInterceptTouchEvent() 609 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) { in onTouchEvent() 616 deltaX -= mTouchSlop; in onTouchEvent() 618 deltaX += mTouchSlop; in onTouchEvent()
|
D | ScrollView.java | 133 private int mTouchSlop; field in ScrollView 250 mTouchSlop = configuration.getScaledTouchSlop(); in initScrollView() 539 if (yDiff > mTouchSlop && (getNestedScrollAxes() & SCROLL_AXIS_VERTICAL) == 0) { in onInterceptTouchEvent() 668 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent() 675 deltaY -= mTouchSlop; in onTouchEvent() 677 deltaY += mTouchSlop; in onTouchEvent()
|
D | StackView.java | 133 private int mTouchSlop; field in StackView 194 mTouchSlop = configuration.getScaledTouchSlop(); in initStackView() 658 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) { in beginGestureIfNeeded() 735 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f; 741 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ExpandHelper.java | 89 private int mTouchSlop; field in ExpandHelper 179 mTouchSlop = configuration.getScaledTouchSlop(); in ExpandHelper() 305 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onInterceptTouchEvent() 433 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onTouchEvent()
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 117 private int mTouchSlop; field in StaggeredGridView 209 mTouchSlop = vc.getScaledTouchSlop(); in StaggeredGridView() 309 if (Math.abs(dy) > mTouchSlop) { in onInterceptTouchEvent() 345 if (Math.abs(dy) > mTouchSlop) { in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | DividerView.java | 123 private int mTouchSlop; field in DividerView 290 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in onFinishInflate() 504 isHorizontalDivision() && Math.abs(y - mStartY) > mTouchSlop in onTouch() 505 || (!isHorizontalDivision() && Math.abs(x - mStartX) > mTouchSlop); in onTouch()
|