Searched defs:mTouchSlop (Results 1 - 25 of 31) sorted by relevance

12

/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
195 mTouchSlop = configuration.getScaledTouchSlop();
303 if (Math.abs(h) > mTouchSlop
373 || Math.abs(x - mInitialTouchX) > mTouchSlop
374 || Math.abs(y - mInitialTouchY) > mTouchSlop
514 if ((h < -mTouchSlop || (mAnimatingOnDown && hAbs > mTouchSlop))
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyButtonView.java54 private int mTouchSlop; field in class:KeyButtonView
100 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
196 setPressed(x >= -mTouchSlop
197 && x < getWidth() + mTouchSlop
198 && y >= -mTouchSlop
199 && y < getHeight() + 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/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
170 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
389 return Math.abs(event.getX() - mDownX) < mTouchSlop
390 && Math.abs(event.getY() - mDownY) < 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/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();
150 if (!mIsBeingDragged && Math.abs(dy) > mTouchSlop) {
153 dy -= mTouchSlop;
155 dy += mTouchSlop;
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTabStrip.java76 private int mTouchSlop; field in class:PagerTabStrip
97 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
241 if (Math.abs(x - mInitialMotionX) > mTouchSlop ||
242 Math.abs(y - mInitialMotionY) > mTouchSlop) {
/frameworks/base/core/java/android/view/
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) {
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;
/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/core/java/android/widget/
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 DSwitch.java113 private int mTouchSlop; field in class:Switch
286 mTouchSlop = config.getScaledTouchSlop();
909 final int thumbTop = mSwitchTop - mTouchSlop;
910 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop;
912 mTempRect.left + mTempRect.right + mTouchSlop;
913 final int thumbBottom = mSwitchBottom + mTouchSlop;
942 if (Math.abs(x - mTouchX) > mTouchSlop ||
943 Math.abs(y - mTouchY) > 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;
H A DNumberPicker.java393 private int mTouchSlop; field in class:NumberPicker
744 mTouchSlop = configuration.getScaledTouchSlop();
919 if (deltaDownY > mTouchSlop) {
944 if (deltaMoveY <= mTouchSlop && deltaTime < ViewConfiguration.getTapTimeout()) {
/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...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
H A DDividerView.java118 private int mTouchSlop; field in class:DividerView
263 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop();
446 isHorizontalDivision() && Math.abs(y - mStartY) > mTouchSlop
447 || (!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) {
/frameworks/support/v4/java/android/support/v4/widget/
H A DViewDragHelper.java113 private int mTouchSlop; field in class:ViewDragHelper
362 helper.mTouchSlop = (int) (helper.mTouchSlop * (1 / sensitivity));
389 mTouchSlop = vc.getScaledTouchSlop();
491 return mTouchSlop;
1273 (absDelta <= mTouchSlop && absODelta <= mTouchSlop)) {
1280 return (mEdgeDragsInProgress[pointerId] & edge) == 0 && absDelta > mTouchSlop;
1301 return dx * dx + dy * dy > mTouchSlop * mTouchSlop;
[all...]
H A DNestedScrollView.java142 private int mTouchSlop; field in class:NestedScrollView
361 mTouchSlop = configuration.getScaledTouchSlop();
651 if (yDiff > mTouchSlop
772 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) {
779 deltaY -= mTouchSlop;
781 deltaY += mTouchSlop;
H A DSwipeRefreshLayout.java106 private int mTouchSlop; field in class:SwipeRefreshLayout
304 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
703 if (yDiff > mTouchSlop && !mIsBeingDragged) {
704 mInitialMotionY = mInitialDownY + mTouchSlop;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java120 private int mTouchSlop; field in class:SwitchCompat
274 mTouchSlop = config.getScaledTouchSlop();
884 final int thumbTop = mSwitchTop - mTouchSlop;
885 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop;
887 mTempRect.left + mTempRect.right + mTouchSlop;
888 final int thumbBottom = mSwitchBottom + mTouchSlop;
917 if (Math.abs(x - mTouchX) > mTouchSlop ||
918 Math.abs(y - mTouchY) > mTouchSlop) {

Completed in 466 milliseconds

12