Home
last modified time | relevance | path

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

12

/frameworks/support/design/src/android/support/design/widget/
DHeaderBehavior.java44 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/
DDoubleTapHelper.java38 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()
DHeadsUpTouchHelper.java37 private float mTouchSlop; field in HeadsUpTouchHelper
54 mTouchSlop = configuration.getScaledTouchSlop(); in HeadsUpTouchHelper()
99 if (mTouchingHeadsUpView && Math.abs(h) > mTouchSlop in onInterceptTouchEvent()
DKeyguardAffordanceHelper.java55 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()
DPanelView.java93 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/
DViewConfiguration.java287 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()
DNotificationHeaderView.java320 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/
DViewDragHelper.java112 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 …]
DSwipeRefreshLayout.java107 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()
DNestedScrollView.java144 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/
DKeyButtonView.java60 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/
DPagerTabStrip.java77 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()
DViewPager.java189 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/
DResolverDrawerLayout.java89 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()
DViewPager.java155 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/
DDragDownHelper.java51 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/
DDemoModeController.java46 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/
DSwitchCompat.java131 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/
DSwitch.java116 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()
DHorizontalScrollView.java125 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()
DScrollView.java133 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()
DStackView.java133 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/
DExpandHelper.java89 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/
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/packages/SystemUI/src/com/android/systemui/stackdivider/
DDividerView.java123 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()

12