Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DTouchDelegate.java146 int slop = mSlop; in onTouchEvent() local
147 event.setLocation(-(slop * 2), -(slop * 2)); in onTouchEvent()
DWindow.java932 final int slop = ViewConfiguration.get(context).getScaledWindowTouchSlop(); in isOutOfBounds() local
934 return (x < -slop) || (y < -slop) in isOutOfBounds()
935 || (x > (decorView.getWidth()+slop)) in isOutOfBounds()
936 || (y > (decorView.getHeight()+slop)); in isOutOfBounds()
DView.java11282 public boolean pointInView(float localX, float localY, float slop) {
11283 return localX >= -slop && localY >= -slop && localX < ((mRight - mLeft) + slop) &&
11284 localY < ((mBottom - mTop) + 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.java125 int slop = ViewConfiguration.get(widget.getContext()).getScaledTouchSlop(); in onTouchEvent() local
127 if (Math.abs(event.getX() - ds[0].mX) >= slop || in onTouchEvent()
128 Math.abs(event.getY() - ds[0].mY) >= slop) { in onTouchEvent()
/frameworks/base/core/java/android/app/
DSearchDialog.java498 final int slop = ViewConfiguration.get(mContext).getScaledWindowTouchSlop(); in isOutOfBounds() local
499 return (x < -slop) || (y < -slop) in isOutOfBounds()
500 || (x > (v.getWidth()+slop)) in isOutOfBounds()
501 || (y > (v.getHeight()+slop)); in isOutOfBounds()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DListPopupWindow.java1446 private static boolean pointInView(View view, float localX, float localY, float slop) {
1447 return localX >= -slop && localY >= -slop &&
1448 localX < ((view.getRight() - view.getLeft()) + slop) &&
1449 localY < ((view.getBottom() - view.getTop()) + slop);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java253 float slop = config.getScaledTouchSlop() * config.getScaledTouchSlop(); in onTouchEvent() local
257 if (squaredDist < slop && in onTouchEvent()
/frameworks/base/docs/html/training/gestures/
Dviewgroup.jd127 // the touch slop, start the scroll
132 // Touch slop should be calculated using ViewConfiguration
174 <p>"Touch slop" refers to the distance in pixels a user's touch can wander
175 before the gesture is interpreted as scrolling. Touch slop is typically used to
Dmovement.jd57 "touch slop." Touch slop refers to the distance in pixels a user's touch can wander
/frameworks/support/v4/java/android/support/v4/widget/
DSlidingPaneLayout.java803 final int slop = mDragHelper.getTouchSlop(); in onInterceptTouchEvent() local
804 if (adx > slop && ady > adx) { in onInterceptTouchEvent()
843 final int slop = mDragHelper.getTouchSlop(); in onTouchEvent() local
844 if (dx * dx + dy * dy < slop * slop && in onTouchEvent()
DDrawerLayout.java1206 final int slop = mLeftDragger.getTouchSlop(); in onTouchEvent() local
1207 if (dx * dx + dy * dy < slop * slop) { in onTouchEvent()
/frameworks/base/docs/html/tools/support-library/
Dindex.jd132 to support touch slop configurations for paging.</li>