Home
last modified time | relevance | path

Searched refs:mTouchSlop (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/view/
DViewConfiguration.java228 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()
DView.java3277 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/
DKeyButtonView.java54 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/
DViewDragHelper.java112 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/
DPagerTabStrip.java73 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()
DViewPager.java168 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/
DSwitch.java87 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()
DHorizontalScrollView.java120 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()
DScrollView.java127 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()
DStackView.java134 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;
DNumberPicker.java384 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()
DAbsListView.java588 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/
DEnableAccessibilityController.java90 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/
DExpandHelper.java90 private int mTouchSlop; field in ExpandHelper
226 mTouchSlop = configuration.getScaledTouchSlop(); in ExpandHelper()
394 if (yDiff > mTouchSlop) { in onInterceptTouchEvent()
/frameworks/base/docs/html/training/gestures/
Dviewgroup.jd91 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/
DSlidingChallengeLayout.java120 private int mTouchSlop; field in SlidingChallengeLayout
248 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in SlidingChallengeLayout()
249 mTouchSlopSquare = mTouchSlop * mTouchSlop; in SlidingChallengeLayout()
DPagedView.java148 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/
DStaggeredGridView.java117 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/
DTouchExplorer.java114 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()