Home
last modified time | relevance | path

Searched refs:slop (Results 1 – 15 of 15) sorted by relevance

/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetectorTest.java42 private int slop; field in ConsecutiveTapsGestureDetectorTest
54 slop = ViewConfiguration.get(application).getScaledDoubleTapSlop(); in setUp()
85 tap(200, 25f + slop * 2, 25f); in onTouchEvent_tapOnDifferentLocation_shouldResetCounter()
88 tap(300, 25f + slop * 2, 25f); in onTouchEvent_tapOnDifferentLocation_shouldResetCounter()
/frameworks/base/core/java/android/view/
DTouchDelegate.java148 int slop = mSlop; in onTouchEvent() local
149 event.setLocation(-(slop * 2), -(slop * 2)); in onTouchEvent()
DWindow.java1414 final int slop = ViewConfiguration.get(context).getScaledWindowTouchSlop(); in isOutOfBounds() local
1416 return (x < -slop) || (y < -slop) in isOutOfBounds()
1417 || (x > (decorView.getWidth()+slop)) in isOutOfBounds()
1418 || (y > (decorView.getHeight()+slop)); in isOutOfBounds()
DView.java17987 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
17988 return localX >= -slop && localY >= -slop && localX < ((mRight - mLeft) + slop) && in pointInView()
17989 localY < ((mBottom - mTop) + slop); in pointInView()
/frameworks/wilhelm/tools/permute/
Dpermute.c93 unsigned slop = frameLength - s->mMinSegmentLengthFrames*2; in split() local
94 assert(slop > 0); in split()
97 unsigned cut = r % slop; in split()
101 unsigned rightLength = s->mMinSegmentLengthFrames + (slop - cut); in split()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableView.java157 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
160 return localX >= -slop && localY >= top - slop && localX < ((mRight - mLeft) + slop) && in pointInView()
161 localY < (bottom + slop); in pointInView()
DNotificationContentView.java1860 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
1863 return localX >= -slop && localY >= top - slop && localX < ((mRight - mLeft) + slop) && in pointInView()
1864 localY < (bottom + slop); in pointInView()
/frameworks/base/core/java/android/text/method/
DTouch.java123 int slop = ViewConfiguration.get(widget.getContext()).getScaledTouchSlop(); in onTouchEvent() local
125 if (Math.abs(event.getX() - ds[0].mX) >= slop || in onTouchEvent()
126 Math.abs(event.getY() - ds[0].mY) >= slop) { in onTouchEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DMultiTap.java132 private boolean isInsideSlop(MotionEvent rawEvent, int slop) { in isInsideSlop() argument
139 return moveDelta <= slop; in isInsideSlop()
DSecondFingerMultiTap.java146 private boolean isSecondFingerInsideSlop(MotionEvent rawEvent, int slop) { in isSecondFingerInsideSlop() argument
157 return moveDelta <= slop; in isSecondFingerInsideSlop()
DMultiFingerMultiTap.java244 private PointF findNearestPoint(MotionEvent event, float slop, boolean filterMatched) { in findNearestPoint() argument
270 if (moveDelta < slop) { in findNearestPoint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonView.java292 float slop = QuickStepContract.getQuickStepTouchSlopPx(getContext()); in onTouchEvent() local
293 if (Math.abs(x - mTouchDownX) > slop || Math.abs(y - mTouchDownY) > slop) { in onTouchEvent()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java252 float slop = config.getScaledTouchSlop() * config.getScaledTouchSlop(); in onTouchEvent() local
256 if (squaredDist < slop && in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationChildrenContainer.java244 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
245 return localX >= -slop && localY >= -slop && localX < ((mRight - mLeft) + slop) && in pointInView()
246 localY < (mRealHeight + slop); in pointInView()
/frameworks/base/core/java/android/widget/
DEditor.java6063 int slop = (int)(LINE_SLOP_MULTIPLIER_FOR_HANDLEVIEWS
6065 slop = Math.max(mLineChangeSlopMin,
6066 Math.min(mLineChangeSlopMax, lineHeight + slop)) - lineHeight;
6067 slop = Math.max(0, slop);
6070 if (trueLine > prevLine && y >= layout.getLineBottom(prevLine) + slop + verticalOffset) {
6073 if (trueLine < prevLine && y <= layout.getLineTop(prevLine) - slop + verticalOffset) {