Searched refs:mTouchSlop (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDoubleTapHelper.java38 private float mTouchSlop; field in class:DoubleTapHelper
54 mTouchSlop = ViewConfiguration.get(view.getContext()).getScaledTouchSlop();
141 return Math.abs(event.getX() - mDownX) < mTouchSlop
142 && Math.abs(event.getY() - mDownY) < mTouchSlop;
H A DHeadsUpTouchHelper.java37 private float mTouchSlop; field in class:HeadsUpTouchHelper
54 mTouchSlop = configuration.getScaledTouchSlop();
107 if (mTouchingHeadsUpView && Math.abs(h) > mTouchSlop
H A DKeyguardAffordanceHelper.java55 private int mTouchSlop; field in class:KeyguardAffordanceHelper
96 mTouchSlop = configuration.getScaledPagingTouchSlop();
160 if (!mTouchSlopExeeded && distance > mTouchSlop) {
427 return translation > 0.0f ? translation + mTouchSlop : 0.0f;
431 if (translation <= mTouchSlop) {
434 return (translation - mTouchSlop) * BACKGROUND_RADIUS_SCALE_FACTOR + mMinBackgroundRadius;
H A DPanelView.java92 protected int mTouchSlop; field in class:PanelView
219 mTouchSlop = configuration.getScaledTouchSlop();
356 if (Math.abs(h) > mTouchSlop
458 || Math.abs(x - mInitialTouchX) > mTouchSlop
459 || Math.abs(y - mInitialTouchY) > mTouchSlop
619 if ((h < -mTouchSlop || (mAnimatingOnDown && hAbs > mTouchSlop))
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSScrollLayout.java40 private final int mTouchSlop; field in class:QSScrollLayout
49 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop();
101 if (mLastMotionY >= 0 && Math.abs(ev.getY() - mLastMotionY) > mTouchSlop
/frameworks/base/core/java/android/view/
H A DViewConfiguration.java292 private final int mTouchSlop; field in class:ViewConfiguration
324 mTouchSlop = TOUCH_SLOP;
412 mTouchSlop = res.getDimensionPixelSize(
418 mPagingTouchSlop = mTouchSlop * 2;
420 mDoubleTapTouchSlop = mTouchSlop;
649 return mTouchSlop;
H A DNotificationHeaderView.java385 private int mTouchSlop; field in class:NotificationHeaderView.HeaderTouchListener
399 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop();
450 if (Math.abs(mDownX - x) > mTouchSlop
451 || Math.abs(mDownY - y) > mTouchSlop) {
/frameworks/support/customview/src/main/java/androidx/customview/widget/
H A DViewDragHelper.java116 private int mTouchSlop; field in class:ViewDragHelper
370 helper.mTouchSlop = (int) (helper.mTouchSlop * (1 / sensitivity));
398 mTouchSlop = vc.getScaledTouchSlop();
503 return mTouchSlop;
1282 || (absDelta <= mTouchSlop && absODelta <= mTouchSlop)) {
1289 return (mEdgeDragsInProgress[pointerId] & edge) == 0 && absDelta > mTouchSlop;
1310 return dx * dx + dy * dy > mTouchSlop * mTouchSlop;
[all...]
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
H A DPagerTabStrip.java80 private int mTouchSlop; field in class:PagerTabStrip
101 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
245 if (Math.abs(x - mInitialMotionX) > mTouchSlop
246 || Math.abs(y - mInitialMotionY) > mTouchSlop) {
H A DViewPager.java195 private int mTouchSlop; field in class:ViewPager
409 mTouchSlop = configuration.getScaledPagingTouchSlop();
2087 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
2093 ? mInitialMotionX + mTouchSlop : mInitialMotionX - mTouchSlop;
2096 } else if (yDiff > mTouchSlop) {
2220 if (xDiff > mTouchSlop && xDiff > yDiff) {
2224 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop :
2225 mInitialMotionX - mTouchSlop;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
H A DSwipeDetector.java109 // IDLE -> (mDisplacement > mTouchSlop) -> DRAGGING
157 private final float mTouchSlop; field in class:SwipeDetector
185 mTouchSlop = touchSlope;
197 if (Math.max(mDir.getActiveTouchSlop(ev, pointerIndex, mDownPos), mTouchSlop)
285 mSubtractDisplacement = mTouchSlop;
287 mSubtractDisplacement = -mTouchSlop;
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
H A DDemoModeController.java46 private int mTouchSlop; field in class:DemoModeController
65 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop();
115 if (Math.abs(mLastDown.x - x) > mTouchSlop || Math.abs(mLastDown.y - y) > mTouchSlop) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDragDownHelper.java51 private float mTouchSlop; field in class:DragDownHelper
64 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
87 if (h > mTouchSlop && h > Math.abs(x - mInitialTouchX)) {
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java90 private final int mTouchSlop; field in class:ResolverDrawerLayout
148 mTouchSlop = vc.getScaledTouchSlop();
284 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null &&
288 mLastTouchY = Math.max(mLastTouchY - mTouchSlop,
289 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop));
346 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) {
348 mLastTouchY = Math.max(mLastTouchY - mTouchSlop,
349 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop));
385 if (mOpenOnClick && Math.abs(ev.getX() - mInitialTouchX) < mTouchSlop &&
386 Math.abs(ev.getY() - mInitialTouchY) < mTouchSlop) {
[all...]
H A DViewPager.java155 private final int mTouchSlop; field in class:ViewPager
348 mTouchSlop = configuration.getScaledPagingTouchSlop();
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/core/java/android/widget/
H A DSwitch.java118 private int mTouchSlop; field in class:Switch
293 mTouchSlop = config.getScaledTouchSlop();
918 final int thumbTop = mSwitchTop - mTouchSlop;
919 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop;
921 mTempRect.left + mTempRect.right + mTouchSlop;
922 final int thumbBottom = mSwitchBottom + mTouchSlop;
951 if (Math.abs(x - mTouchX) > mTouchSlop ||
952 Math.abs(y - mTouchY) > mTouchSlop) {
H A DHorizontalScrollView.java125 private int mTouchSlop; field in class:HorizontalScrollView
222 mTouchSlop = configuration.getScaledTouchSlop();
503 if (xDiff > mTouchSlop) {
609 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) {
616 deltaX -= mTouchSlop;
618 deltaX += mTouchSlop;
H A DScrollView.java133 private int mTouchSlop; field in class:ScrollView
250 mTouchSlop = configuration.getScaledTouchSlop();
539 if (yDiff > mTouchSlop && (getNestedScrollAxes() & SCROLL_AXIS_VERTICAL) == 0) {
668 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) {
675 deltaY -= mTouchSlop;
677 deltaY += mTouchSlop;
H A DStackView.java132 private int mTouchSlop; field in class:StackView
193 mTouchSlop = configuration.getScaledTouchSlop();
657 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) {
734 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
740 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DSwitchCompat.java132 private int mTouchSlop; field in class:SwitchCompat
282 mTouchSlop = config.getScaledTouchSlop();
893 final int thumbTop = mSwitchTop - mTouchSlop;
894 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop;
896 mTempRect.left + mTempRect.right + mTouchSlop;
897 final int thumbBottom = mSwitchBottom + mTouchSlop;
926 if (Math.abs(x - mTouchX) > mTouchSlop ||
927 Math.abs(y - mTouchY) > mTouchSlop) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java89 private int mTouchSlop; field in class:ExpandHelper
179 mTouchSlop = configuration.getScaledTouchSlop();
305 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) {
433 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) {
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/
H A DSwipeRefreshLayout.java113 private int mTouchSlop; field in class:SwipeRefreshLayout
352 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
1081 if (yDiff > mTouchSlop && !mIsBeingDragged) {
1082 mInitialMotionY = mInitialDownY + mTouchSlop;
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DNestedScrollView.java148 private int mTouchSlop; field in class:NestedScrollView
436 mTouchSlop = configuration.getScaledTouchSlop();
730 if (yDiff > mTouchSlop
851 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) {
858 deltaY -= mTouchSlop;
860 deltaY += mTouchSlop;
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
H A DDividerView.java123 private int mTouchSlop; field in class:DividerView
301 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop();
520 isHorizontalDivision() && Math.abs(y - mStartY) > mTouchSlop
521 || (!isHorizontalDivision() && Math.abs(x - mStartX) > mTouchSlop);
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java117 private int mTouchSlop; field in class:StaggeredGridView
209 mTouchSlop = vc.getScaledTouchSlop();
309 if (Math.abs(dy) > mTouchSlop) {
345 if (Math.abs(dy) > mTouchSlop) {

Completed in 404 milliseconds

12