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

12

/frameworks/support/design/src/android/support/design/widget/
H A DHeaderBehavior.java45 private int mTouchSlop = -1; field in class:HeaderBehavior
56 if (mTouchSlop < 0) {
57 mTouchSlop = ViewConfiguration.get(parent.getContext()).getScaledTouchSlop();
93 if (yDiff > mTouchSlop) {
121 if (mTouchSlop < 0) {
122 mTouchSlop = ViewConfiguration.get(parent.getContext()).getScaledTouchSlop();
149 if (!mIsBeingDragged && Math.abs(dy) > mTouchSlop) {
152 dy -= mTouchSlop;
154 dy += mTouchSlop;
/frameworks/base/core/java/android/view/
H A DViewConfiguration.java233 private final int mTouchSlop; field in class:ViewConfiguration
260 mTouchSlop = TOUCH_SLOP;
342 mTouchSlop = res.getDimensionPixelSize(
344 mPagingTouchSlop = mTouchSlop * 2;
346 mDoubleTapTouchSlop = mTouchSlop;
548 return mTouchSlop;
H A DNotificationHeaderView.java317 private int mTouchSlop; field in class:NotificationHeaderView.HeaderTouchListener
330 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop();
376 if (Math.abs(mDownX - x) > mTouchSlop
377 || Math.abs(mDownY - y) > mTouchSlop) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyButtonView.java57 private int mTouchSlop; field in class:KeyButtonView
104 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
207 setPressed(x >= -mTouchSlop
208 && x < getWidth() + mTouchSlop
209 && y >= -mTouchSlop
210 && y < getHeight() + mTouchSlop);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DHeadsUpTouchHelper.java37 private float mTouchSlop; field in class:HeadsUpTouchHelper
54 mTouchSlop = configuration.getScaledTouchSlop();
99 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.java75 protected int mTouchSlop; field in class:PanelView
196 mTouchSlop = configuration.getScaledTouchSlop();
307 if (Math.abs(h) > mTouchSlop
377 || Math.abs(x - mInitialTouchX) > mTouchSlop
378 || Math.abs(y - mInitialTouchY) > mTouchSlop
518 if ((h < -mTouchSlop || (mAnimatingOnDown && hAbs > mTouchSlop))
/frameworks/support/core-ui/java/android/support/v4/view/
H A DPagerTabStrip.java77 private int mTouchSlop; field in class:PagerTabStrip
98 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
242 if (Math.abs(x - mInitialMotionX) > mTouchSlop
243 || Math.abs(y - mInitialMotionY) > mTouchSlop) {
H A DViewPager.java198 private int mTouchSlop; field in class:ViewPager
413 mTouchSlop = configuration.getScaledPagingTouchSlop();
2111 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
2117 ? mInitialMotionX + mTouchSlop : mInitialMotionX - mTouchSlop;
2120 } else if (yDiff > mTouchSlop) {
2244 if (xDiff > mTouchSlop && xDiff > yDiff) {
2248 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop :
2249 mInitialMotionX - mTouchSlop;
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DViewDragHelper.java113 private int mTouchSlop; field in class:ViewDragHelper
364 helper.mTouchSlop = (int) (helper.mTouchSlop * (1 / sensitivity));
391 mTouchSlop = vc.getScaledTouchSlop();
493 return mTouchSlop;
1275 || (absDelta <= mTouchSlop && absODelta <= mTouchSlop)) {
1282 return (mEdgeDragsInProgress[pointerId] & edge) == 0 && absDelta > mTouchSlop;
1303 return dx * dx + dy * dy > mTouchSlop * mTouchSlop;
[all...]
H A DNestedScrollView.java145 private int mTouchSlop; field in class:NestedScrollView
364 mTouchSlop = configuration.getScaledTouchSlop();
653 if (yDiff > mTouchSlop
773 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) {
780 deltaY -= mTouchSlop;
782 deltaY += mTouchSlop;
H A DSwipeRefreshLayout.java108 private int mTouchSlop; field in class:SwipeRefreshLayout
334 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
1091 if (yDiff > mTouchSlop && !mIsBeingDragged) {
1092 mInitialMotionY = mInitialDownY + mTouchSlop;
/frameworks/base/services/core/java/com/android/server/policy/
H A DEnableAccessibilityController.java96 private final float mTouchSlop; field in class:EnableAccessibilityController
120 mTouchSlop = context.getResources().getDimensionPixelSize(
193 if (Math.abs(firstPointerMove) > mTouchSlop) {
198 if (Math.abs(secondPointerMove) > 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.java50 private float mTouchSlop; field in class:DragDownHelper
63 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
86 if (h > mTouchSlop && h > Math.abs(x - mInitialTouchX)) {
H A DActivatableNotificationView.java111 private final float mTouchSlop; field in class:ActivatableNotificationView
173 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
392 return Math.abs(event.getX() - mDownX) < mTouchSlop
393 && Math.abs(event.getY() - mDownY) < mTouchSlop;
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java89 private final int mTouchSlop; field in class:ResolverDrawerLayout
144 mTouchSlop = vc.getScaledTouchSlop();
256 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null &&
260 mLastTouchY = Math.max(mLastTouchY - mTouchSlop,
261 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop));
318 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) {
320 mLastTouchY = Math.max(mLastTouchY - mTouchSlop,
321 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop));
357 if (mOpenOnClick && Math.abs(ev.getX() - mInitialTouchX) < mTouchSlop &&
358 Math.abs(ev.getY() - mInitialTouchY) < mTouchSlop) {
[all...]
H A DViewPager.java154 private final int mTouchSlop; field in class:ViewPager
347 mTouchSlop = configuration.getScaledPagingTouchSlop();
1867 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
1872 mLastMotionX = dx > 0 ? mInitialMotionX + mTouchSlop :
1873 mInitialMotionX - mTouchSlop;
1876 } else if (yDiff > mTouchSlop) {
1982 if (xDiff > mTouchSlop && xDiff > yDiff) {
1986 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop :
1987 mInitialMotionX - mTouchSlop;
/frameworks/base/core/java/android/widget/
H A DSwitch.java116 private int mTouchSlop; field in class:Switch
289 mTouchSlop = config.getScaledTouchSlop();
912 final int thumbTop = mSwitchTop - mTouchSlop;
913 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop;
915 mTempRect.left + mTempRect.right + mTouchSlop;
916 final int thumbBottom = mSwitchBottom + mTouchSlop;
945 if (Math.abs(x - mTouchX) > mTouchSlop ||
946 Math.abs(y - mTouchY) > mTouchSlop) {
H A DHorizontalScrollView.java124 private int mTouchSlop; field in class:HorizontalScrollView
215 mTouchSlop = configuration.getScaledTouchSlop();
495 if (xDiff > mTouchSlop) {
601 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) {
608 deltaX -= mTouchSlop;
610 deltaX += mTouchSlop;
H A DScrollView.java130 private int mTouchSlop; field in class:ScrollView
241 mTouchSlop = configuration.getScaledTouchSlop();
529 if (yDiff > mTouchSlop && (getNestedScrollAxes() & SCROLL_AXIS_VERTICAL) == 0) {
658 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) {
665 deltaY -= mTouchSlop;
667 deltaY += mTouchSlop;
H A DStackView.java133 private int mTouchSlop; field in class:StackView
194 mTouchSlop = configuration.getScaledTouchSlop();
658 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) {
735 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
741 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java120 private int mTouchSlop; field in class:SwitchCompat
270 mTouchSlop = config.getScaledTouchSlop();
880 final int thumbTop = mSwitchTop - mTouchSlop;
881 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop;
883 mTempRect.left + mTempRect.right + mTouchSlop;
884 final int thumbBottom = mSwitchBottom + mTouchSlop;
913 if (Math.abs(x - mTouchX) > mTouchSlop ||
914 Math.abs(y - mTouchY) > mTouchSlop) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java88 private int mTouchSlop; field in class:ExpandHelper
173 mTouchSlop = configuration.getScaledTouchSlop();
298 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) {
424 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
H A DDividerView.java124 private int mTouchSlop; field in class:DividerView
287 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop();
490 isHorizontalDivision() && Math.abs(y - mStartY) > mTouchSlop
491 || (!isHorizontalDivision() && Math.abs(x - mStartX) > mTouchSlop);

Completed in 422 milliseconds

12