Home
last modified time | relevance | path

Searched refs:slop (Results 1 – 21 of 21) 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.java1660 final int slop = ViewConfiguration.get(context).getScaledWindowTouchSlop(); in isOutOfBounds() local
1662 return (x < -slop) || (y < -slop) in isOutOfBounds()
1663 || (x > (decorView.getWidth()+slop)) in isOutOfBounds()
1664 || (y > (decorView.getHeight()+slop)); in isOutOfBounds()
DView.java20276 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
20277 return localX >= -slop && localY >= -slop && localX < ((mRight - mLeft) + slop) && in pointInView()
20278 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/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationController.java271 boolean isAtLeftEdge(float slop) { in isAtLeftEdge() argument
272 return abs(getOffsetX() - getMaxOffsetXLocked()) <= slop; in isAtLeftEdge()
276 boolean isAtRightEdge(float slop) { in isAtRightEdge() argument
277 return abs(getOffsetX() - getMinOffsetXLocked()) <= slop; in isAtRightEdge()
281 boolean isAtTopEdge(float slop) { in isAtTopEdge() argument
282 return abs(getOffsetY() - getMaxOffsetYLocked()) <= slop; in isAtTopEdge()
286 boolean isAtBottomEdge(float slop) { in isAtBottomEdge() argument
287 return abs(getOffsetY() - getMinOffsetYLocked()) <= slop; in isAtBottomEdge()
1323 public boolean isAtLeftEdge(int displayId, float slop) { in isAtLeftEdge() argument
1329 return display.isAtLeftEdge(slop); in isAtLeftEdge()
[all …]
/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.java134 private boolean isInsideSlop(MotionEvent rawEvent, int slop) { in isInsideSlop() argument
141 return moveDelta <= slop; in isInsideSlop()
DSecondFingerMultiTap.java146 private boolean isSecondFingerInsideSlop(MotionEvent rawEvent, int slop) { in isSecondFingerInsideSlop() argument
157 return moveDelta <= slop; in isSecondFingerInsideSlop()
DMultiFingerMultiTap.java245 private PointF findNearestPoint(MotionEvent event, float slop, boolean filterMatched) { in findNearestPoint() argument
271 if (moveDelta < slop) { in findNearestPoint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationShelf.java332 public boolean isXInView(float localX, float slop, float left, float right) { in isXInView() argument
333 return (left - slop) <= localX && localX < (right + slop); in isXInView()
344 public boolean isYInView(float localY, float slop, float top, float bottom) { in isYInView() argument
345 return (top - slop) <= localY && localY < (bottom + slop); in isYInView()
355 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
365 return isXInView(localX, slop, left, right) in pointInView()
366 && isYInView(localY, slop, top, bottom); in pointInView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableView.java186 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
189 return localX >= -slop && localY >= top - slop && localX < ((mRight - mLeft) + slop) && in pointInView()
190 localY < (bottom + slop); in pointInView()
DNotificationContentView.java2099 public boolean pointInView(float localX, float localY, float slop) {
2102 return localX >= -slop && localY >= top - slop && localX < ((mRight - mLeft) + slop) &&
2103 localY < (bottom + slop);
/frameworks/base/core/java/android/app/
DSearchDialog.java513 final int slop = ViewConfiguration.get(mContext).getScaledWindowTouchSlop(); in isOutOfBounds() local
514 return (x < -slop) || (y < -slop) in isOutOfBounds()
515 || (x > (v.getWidth()+slop)) in isOutOfBounds()
516 || (y > (v.getHeight()+slop)); in isOutOfBounds()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonView.java181 float slop = getQuickStepTouchSlopPx(getContext()); in onTouchEvent() local
182 if (Math.abs(x - mTouchDownX) > slop || Math.abs(y - mTouchDownY) > slop) { in onTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationExpandButton.java105 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
111 return super.pointInView(localX, localY, slop); in pointInView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonView.java303 float slop = QuickStepContract.getQuickStepTouchSlopPx(getContext()); in onTouchEvent() local
304 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.java292 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
293 return localX >= -slop && localY >= -slop && localX < ((mRight - mLeft) + slop) && in pointInView()
294 localY < (mRealHeight + slop); in pointInView()
/frameworks/base/packages/SystemUI/docs/
Dfalsing.md75 all within some small x & y region ("touch slop"). Useful for only the most simple of scenarios,
/frameworks/base/core/java/android/widget/
DEditor.java6508 int slop = (int)(mLineSlopRatio * lineHeight);
6509 slop = Math.max(mLineChangeSlopMin,
6510 Math.min(mLineChangeSlopMax, lineHeight + slop)) - lineHeight;
6511 slop = Math.max(0, slop);
6514 if (trueLine > prevLine && y >= layout.getLineBottom(prevLine) + slop + verticalOffset) {
6517 if (trueLine < prevLine && y <= layout.getLineTop(prevLine) - slop + verticalOffset) {