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

12

/frameworks/base/core/java/android/view/
H A DViewConfiguration.java228 private final int mTouchSlop; field in class:ViewConfiguration
255 mTouchSlop = TOUCH_SLOP;
337 mTouchSlop = res.getDimensionPixelSize(
339 mPagingTouchSlop = mTouchSlop * 2;
341 mDoubleTapTouchSlop = mTouchSlop;
543 return mTouchSlop;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyButtonView.java67 private int mTouchSlop; field in class:KeyButtonView
109 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
197 setPressed(x >= -mTouchSlop
198 && x < getWidth() + mTouchSlop
199 && y >= -mTouchSlop
200 && y < getHeight() + mTouchSlop);
H A DHeadsUpNotificationView.java378 private final float mTouchSlop; field in class:HeadsUpNotificationView.EdgeSwipeHelper
384 mTouchSlop = touchSlop;
402 if (!mConsuming && (4f * daX) < daY && daY > mTouchSlop) {
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DEnableAccessibilityController.java91 private final float mTouchSlop; field in class:EnableAccessibilityController
115 mTouchSlop = context.getResources().getDimensionPixelSize(
188 if (Math.abs(firstPointerMove) > mTouchSlop) {
193 if (Math.abs(secondPointerMove) > mTouchSlop) {
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTabStrip.java75 private int mTouchSlop; field in class:PagerTabStrip
96 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
239 if (Math.abs(x - mInitialMotionX) > mTouchSlop ||
240 Math.abs(y - mInitialMotionY) > mTouchSlop) {
H A DViewPager.java173 private int mTouchSlop; field in class:ViewPager
367 mTouchSlop = ViewConfigurationCompat.getScaledPagingTouchSlop(configuration);
1854 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
1859 mLastMotionX = dx > 0 ? mInitialMotionX + mTouchSlop :
1860 mInitialMotionX - mTouchSlop;
1863 } else if (yDiff > mTouchSlop) {
1976 if (xDiff > mTouchSlop && xDiff > yDiff) {
1980 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop :
1981 mInitialMotionX - mTouchSlop;
/frameworks/support/v4/java/android/support/v4/widget/
H A DViewDragHelper.java112 private int mTouchSlop; field in class:ViewDragHelper
361 helper.mTouchSlop = (int) (helper.mTouchSlop * (1 / sensitivity));
388 mTouchSlop = vc.getScaledTouchSlop();
490 return mTouchSlop;
1254 (absDelta <= mTouchSlop && absODelta <= mTouchSlop)) {
1261 return (mEdgeDragsInProgress[pointerId] & edge) == 0 && absDelta > mTouchSlop;
1282 return dx * dx + dy * dy > mTouchSlop * mTouchSlop;
[all...]
H A DSwipeRefreshLayout.java96 private int mTouchSlop; field in class:SwipeRefreshLayout
270 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
635 if (yDiff > mTouchSlop && !mIsBeingDragged) {
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java72 private final int mTouchSlop; field in class:ResolverDrawerLayout
121 mTouchSlop = vc.getScaledTouchSlop();
174 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null &&
178 mLastTouchY = Math.max(mLastTouchY - mTouchSlop,
179 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop));
238 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) {
240 mLastTouchY = Math.max(mLastTouchY - mTouchSlop,
241 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop));
276 if (mOpenOnClick && Math.abs(ev.getX() - mInitialTouchX) < mTouchSlop &&
277 Math.abs(ev.getY() - mInitialTouchY) < mTouchSlop) {
[all...]
/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.java49 private float mTouchSlop; field in class:DragDownHelper
64 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
86 if (h > mTouchSlop && h > Math.abs(x - mInitialTouchX)) {
H A DActivatableNotificationView.java110 private final float mTouchSlop; field in class:ActivatableNotificationView
141 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
327 return Math.abs(event.getX() - mDownX) < mTouchSlop
328 && Math.abs(event.getY() - mDownY) < mTouchSlop;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPanelView.java68 protected int mTouchSlop; field in class:PanelView
187 mTouchSlop = configuration.getScaledTouchSlop();
285 if (Math.abs(h) > mTouchSlop
326 || Math.abs(x - mInitialTouchX) > mTouchSlop
327 || Math.abs(y - mInitialTouchY) > mTouchSlop
443 if (h < -mTouchSlop && h < -Math.abs(x - mInitialTouchX)) {
H A DKeyguardAffordanceHelper.java56 private int mTouchSlop; field in class:KeyguardAffordanceHelper
94 mTouchSlop = configuration.getScaledPagingTouchSlop();
159 if (((leftSwipePossible() && w > mTouchSlop)
160 || (rightSwipePossible() && w < -mTouchSlop))
/frameworks/base/core/java/android/widget/
H A DSwitch.java96 private int mTouchSlop; field in class:Switch
237 mTouchSlop = config.getScaledTouchSlop();
695 final int thumbTop = mSwitchTop - mTouchSlop;
696 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop;
698 mTempRect.left + mTempRect.right + mTouchSlop;
699 final int thumbBottom = mSwitchBottom + mTouchSlop;
728 if (Math.abs(x - mTouchX) > mTouchSlop ||
729 Math.abs(y - mTouchY) > mTouchSlop) {
H A DHorizontalScrollView.java120 private int mTouchSlop; field in class:HorizontalScrollView
211 mTouchSlop = configuration.getScaledTouchSlop();
479 if (xDiff > mTouchSlop) {
585 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) {
592 deltaX -= mTouchSlop;
594 deltaX += mTouchSlop;
H A DScrollView.java127 private int mTouchSlop; field in class:ScrollView
238 mTouchSlop = configuration.getScaledTouchSlop();
515 if (yDiff > mTouchSlop && (getNestedScrollAxes() & SCROLL_AXIS_VERTICAL) == 0) {
642 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) {
649 deltaY -= mTouchSlop;
651 deltaY += mTouchSlop;
H A DStackView.java134 private int mTouchSlop; field in class:StackView
195 mTouchSlop = configuration.getScaledTouchSlop();
659 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) {
736 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
742 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
H A DNumberPicker.java387 private int mTouchSlop; field in class:NumberPicker
729 mTouchSlop = configuration.getScaledTouchSlop();
904 if (deltaDownY > mTouchSlop) {
929 if (deltaMoveY <= mTouchSlop && deltaTime < ViewConfiguration.getTapTimeout()) {
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java100 private int mTouchSlop; field in class:SwitchCompat
218 mTouchSlop = config.getScaledTouchSlop();
583 final int thumbTop = mSwitchTop - mTouchSlop;
584 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop;
586 mTempRect.left + mTempRect.right + mTouchSlop;
587 final int thumbBottom = mSwitchBottom + mTouchSlop;
616 if (Math.abs(x - mTouchX) > mTouchSlop ||
617 Math.abs(y - mTouchY) > mTouchSlop) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java96 private int mTouchSlop; field in class:ExpandHelper
182 mTouchSlop = configuration.getScaledTouchSlop();
306 if (yDiff > mTouchSlop) {
421 if (yDiff > mTouchSlop) {
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DSlidingChallengeLayout.java120 private int mTouchSlop; field in class:SlidingChallengeLayout
248 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
249 mTouchSlopSquare = mTouchSlop * mTouchSlop;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java78 private int mTouchSlop; field in class:NotificationStackScrollLayout
260 mTouchSlop = configuration.getScaledTouchSlop();
766 if (!mIsBeingDragged && yDiff > mTouchSlop && yDiff > xDiff) {
769 deltaY -= mTouchSlop;
771 deltaY += mTouchSlop;
1824 if (yDiff > mTouchSlop && yDiff > xDiff) {
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DTouchExplorer.java115 private final int mTouchSlop; field in class:TouchExplorer
228 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
527 if (moveDelta > mTouchSlop) {
1104 if (GestureUtils.isTap(mDownEvent, event, mTapTimeout, 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 637 milliseconds

12