/frameworks/base/core/java/android/view/ |
D | ViewConfiguration.java | 228 private final int mTouchSlop; field in ViewConfiguration 254 mTouchSlop = TOUCH_SLOP; in ViewConfiguration() 337 mTouchSlop = res.getDimensionPixelSize( in ViewConfiguration() 339 mPagingTouchSlop = mTouchSlop * 2; in ViewConfiguration() 341 mDoubleTapTouchSlop = mTouchSlop; in ViewConfiguration() 536 return mTouchSlop; in getScaledTouchSlop()
|
D | View.java | 3277 private int mTouchSlop; field in View 3448 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in View() 8733 if (!pointInView(x, y, mTouchSlop)) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonView.java | 54 int mTouchSlop; field in KeyButtonView 106 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in KeyButtonView() 261 setPressed(x >= -mTouchSlop in onTouchEvent() 262 && x < getWidth() + mTouchSlop in onTouchEvent() 263 && y >= -mTouchSlop in onTouchEvent() 264 && y < getHeight() + mTouchSlop); in onTouchEvent()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 112 private int mTouchSlop; field in ViewDragHelper 361 helper.mTouchSlop = (int) (helper.mTouchSlop * (1 / sensitivity)); in create() 388 mTouchSlop = vc.getScaledTouchSlop(); in ViewDragHelper() 490 return mTouchSlop; in getTouchSlop() 1224 (absDelta <= mTouchSlop && absODelta <= mTouchSlop)) { in checkNewEdgeDrag() 1231 return (mEdgeDragsInProgress[pointerId] & edge) == 0 && absDelta > mTouchSlop; in checkNewEdgeDrag() 1252 return dx * dx + dy * dy > mTouchSlop * mTouchSlop; in checkTouchSlop() 1254 return Math.abs(dx) > mTouchSlop; in checkTouchSlop() 1256 return Math.abs(dy) > mTouchSlop; in checkTouchSlop() 1312 return dx * dx + dy * dy > mTouchSlop * mTouchSlop; in checkTouchSlop() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | PagerTabStrip.java | 73 private int mTouchSlop; field in PagerTabStrip 94 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in PagerTabStrip() 237 if (Math.abs(x - mInitialMotionX) > mTouchSlop || in onTouchEvent() 238 Math.abs(y - mInitialMotionY) > mTouchSlop) { in onTouchEvent()
|
D | ViewPager.java | 168 private int mTouchSlop; field in ViewPager 362 mTouchSlop = ViewConfigurationCompat.getScaledPagingTouchSlop(configuration); in initViewPager() 1849 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) { 1854 mLastMotionX = dx > 0 ? mInitialMotionX + mTouchSlop : 1855 mInitialMotionX - mTouchSlop; 1858 } else if (yDiff > mTouchSlop) { 1971 if (xDiff > mTouchSlop && xDiff > yDiff) { 1975 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop : 1976 mInitialMotionX - mTouchSlop;
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 87 private int mTouchSlop; field in Switch 175 mTouchSlop = config.getScaledTouchSlop(); in Switch() 532 final int thumbTop = mSwitchTop - mTouchSlop; in hitThumb() 533 final int thumbLeft = mSwitchLeft + (int) (mThumbPosition + 0.5f) - mTouchSlop; in hitThumb() 535 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb() 536 final int thumbBottom = mSwitchBottom + mTouchSlop; in hitThumb() 565 if (Math.abs(x - mTouchX) > mTouchSlop || in onTouchEvent() 566 Math.abs(y - mTouchY) > mTouchSlop) { in onTouchEvent()
|
D | HorizontalScrollView.java | 120 private int mTouchSlop; field in HorizontalScrollView 206 mTouchSlop = configuration.getScaledTouchSlop(); in initScrollView() 474 if (xDiff > mTouchSlop) { in onInterceptTouchEvent() 580 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) { in onTouchEvent() 587 deltaX -= mTouchSlop; in onTouchEvent() 589 deltaX += mTouchSlop; in onTouchEvent()
|
D | ScrollView.java | 127 private int mTouchSlop; field in ScrollView 227 mTouchSlop = configuration.getScaledTouchSlop(); in initScrollView() 504 if (yDiff > mTouchSlop) { in onInterceptTouchEvent() 616 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent() 623 deltaY -= mTouchSlop; in onTouchEvent() 625 deltaY += mTouchSlop; in onTouchEvent()
|
D | StackView.java | 134 private int mTouchSlop; field in StackView 188 mTouchSlop = configuration.getScaledTouchSlop(); in initStackView() 652 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) { in beginGestureIfNeeded() 729 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f; 735 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
|
D | NumberPicker.java | 384 private int mTouchSlop; field in NumberPicker 695 mTouchSlop = configuration.getScaledTouchSlop(); in NumberPicker() 870 if (deltaDownY > mTouchSlop) { in onTouchEvent() 895 if (deltaMoveY <= mTouchSlop && deltaTime < ViewConfiguration.getTapTimeout()) { in onTouchEvent()
|
D | AbsListView.java | 588 private int mTouchSlop; field in AbsListView 831 mTouchSlop = configuration.getScaledTouchSlop(); in initAbsListView() 3166 if (overscroll || distance > mTouchSlop) { in startScrollIfNeeded() 3173 mMotionCorrection = deltaY > 0 ? mTouchSlop : -mTouchSlop; in startScrollIfNeeded() 3218 Math.abs(rawDeltaY) > mTouchSlop) { in scrollIfNeeded() 3573 if (!pointInView(x, y, mTouchSlop)) { in onTouchMove()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | EnableAccessibilityController.java | 90 private final float mTouchSlop; field in EnableAccessibilityController 113 mTouchSlop = context.getResources().getDimensionPixelSize( in EnableAccessibilityController() 186 if (Math.abs(firstPointerMove) > mTouchSlop) { in onTouchEvent() 191 if (Math.abs(secondPointerMove) > mTouchSlop) { in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ExpandHelper.java | 90 private int mTouchSlop; field in ExpandHelper 226 mTouchSlop = configuration.getScaledTouchSlop(); in ExpandHelper() 394 if (yDiff > mTouchSlop) { in onInterceptTouchEvent()
|
/frameworks/base/docs/html/training/gestures/ |
D | viewgroup.jd | 91 private int mTouchSlop; 96 mTouchSlop = vc.getScaledTouchSlop(); 134 if (xDiff > mTouchSlop) { 169 a variable called {@code mTouchSlop}. You can use the {@link
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | SlidingChallengeLayout.java | 120 private int mTouchSlop; field in SlidingChallengeLayout 248 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in SlidingChallengeLayout() 249 mTouchSlopSquare = mTouchSlop * mTouchSlop; in SlidingChallengeLayout()
|
D | PagedView.java | 148 protected int mTouchSlop; field in PagedView 316 mTouchSlop = configuration.getScaledTouchSlop(); in init() 1163 final boolean finishedScrolling = (mScroller.isFinished() || xDist < mTouchSlop); in onInterceptTouchEvent() 1276 final int touchSlop = Math.round(TOUCH_SLOP_SCALE * mTouchSlop); in determineScrollingStart()
|
/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/services/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 114 private final int mTouchSlop; field in TouchExplorer 224 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in TouchExplorer() 523 if (moveDelta > mTouchSlop) { in handleMotionEventStateTouchExploring() 1100 if (GestureUtils.isTap(mDownEvent, event, mTapTimeout, mTouchSlop, in onMotionEvent()
|