/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/ |
D | ConsecutiveTapsGestureDetectorTest.java | 42 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/ |
D | TouchDelegate.java | 148 int slop = mSlop; in onTouchEvent() local 149 event.setLocation(-(slop * 2), -(slop * 2)); in onTouchEvent()
|
D | Window.java | 1660 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()
|
D | View.java | 20276 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/ |
D | permute.c | 93 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/ |
D | FullScreenMagnificationController.java | 271 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/ |
D | Touch.java | 123 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/ |
D | MultiTap.java | 134 private boolean isInsideSlop(MotionEvent rawEvent, int slop) { in isInsideSlop() argument 141 return moveDelta <= slop; in isInsideSlop()
|
D | SecondFingerMultiTap.java | 146 private boolean isSecondFingerInsideSlop(MotionEvent rawEvent, int slop) { in isSecondFingerInsideSlop() argument 157 return moveDelta <= slop; in isSecondFingerInsideSlop()
|
D | MultiFingerMultiTap.java | 245 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/ |
D | NotificationShelf.java | 332 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/ |
D | ExpandableView.java | 186 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()
|
D | NotificationContentView.java | 2099 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/ |
D | SearchDialog.java | 513 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/ |
D | KeyButtonView.java | 181 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/ |
D | NotificationExpandButton.java | 105 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/ |
D | KeyButtonView.java | 303 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/ |
D | CropView.java | 252 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/ |
D | NotificationChildrenContainer.java | 292 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/ |
D | falsing.md | 75 all within some small x & y region ("touch slop"). Useful for only the most simple of scenarios,
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 6508 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) {
|