Home
last modified time | relevance | path

Searched refs:slop (Results 1 – 12 of 12) 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.java1324 final int slop = ViewConfiguration.get(context).getScaledWindowTouchSlop(); in isOutOfBounds() local
1326 return (x < -slop) || (y < -slop) in isOutOfBounds()
1327 || (x > (decorView.getWidth()+slop)) in isOutOfBounds()
1328 || (y > (decorView.getHeight()+slop)); in isOutOfBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableView.java124 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
127 return localX >= -slop && localY >= top - slop && localX < ((mRight - mLeft) + slop) && in pointInView()
128 localY < (bottom + slop); in pointInView()
DNotificationContentView.java1828 public boolean pointInView(float localX, float localY, float slop) {
1831 return localX >= -slop && localY >= top - slop && localX < ((mRight - mLeft) + slop) &&
1832 localY < (bottom + slop);
/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/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/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonView.java252 float slop = QuickStepContract.getQuickStepTouchSlopPx(getContext()); in onTouchEvent() local
253 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.java239 public boolean pointInView(float localX, float localY, float slop) { in pointInView() argument
240 return localX >= -slop && localY >= -slop && localX < ((mRight - mLeft) + slop) && in pointInView()
241 localY < (mRealHeight + slop); in pointInView()
/frameworks/base/core/java/android/widget/
DEditor.java5707 final float slop = mTextView.getLineHeight() * LINE_SLOP_MULTIPLIER_FOR_HANDLEVIEWS;
5711 final float yTopBound = Math.max(prevLineTop - slop, firstLineTop + slop);
5715 final float yBottomBound = Math.min(prevLineBottom + slop, lastLineBottom - slop);