Home
last modified time | relevance | path

Searched refs:touchSlop (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/test-runner/src/android/test/
DTouchUtils.java285 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in tapView() local
287 x + (touchSlop / 2.0f), y + (touchSlop / 2.0f), 0); in tapView()
325 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in touchAndCancelView() local
327 x + (touchSlop / 2.0f), y + (touchSlop / 2.0f), 0); in touchAndCancelView()
361 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in clickView() local
363 x + (touchSlop / 2.0f), y + (touchSlop / 2.0f), 0); in clickView()
421 final int touchSlop = ViewConfiguration.get(v.getContext()).getScaledTouchSlop(); in longClickView() local
423 x + touchSlop / 2, y + touchSlop / 2, 0); in longClickView()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButton.java86 int touchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in onTouchEvent() local
87 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
DKeyguardSecurityContainer.java417 float touchSlop = mViewConfiguration.getScaledTouchSlop() * SLOP_SCALE; in onInterceptTouchEvent() local
418 if (index != -1 && mStartTouchY - event.getY(index) > touchSlop) { in onInterceptTouchEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DRelativeTouchListener.kt91 private var touchSlop: Int = -1 in onDown() variable in com.android.wm.shell.bubbles.RelativeTouchListener
111 touchSlop = ViewConfiguration.get(v.context).scaledTouchSlop in onDown()
125 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) { in onDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMagnificationGestureDetector.java98 final int touchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in MagnificationGestureDetector() local
99 mTouchSlopSquare = touchSlop * touchSlop; in MagnificationGestureDetector()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DSingleTapClassifier.java36 @Named(SINGLE_TAP_TOUCH_SLOP) float touchSlop) { in SingleTapClassifier() argument
38 mTouchSlop = touchSlop; in SingleTapClassifier()
/frameworks/base/core/java/android/widget/
DEditorTouchState.java189 int touchSlop = config.getScaledTouchSlop(); in update() local
190 mMovedEnoughForDrag = distanceSquared > touchSlop * touchSlop; in update()
DEditor.java6760 final int touchSlop = viewConfig.getScaledTouchSlop(); in updateWordBasedSelection() local
6763 : touchSlop; in updateWordBasedSelection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLockscreenShadeTransitionController.kt570 private var touchSlop = 0f variable
599 touchSlop = configuration.scaledTouchSlop.toFloat() in updateResources()
617 val touchSlop = if (event.classification in onInterceptTouchEvent() constant
619 touchSlop * slopMultiplier in onInterceptTouchEvent()
621 touchSlop in onInterceptTouchEvent()
622 if (h > touchSlop && h > Math.abs(x - initialTouchX)) { in onInterceptTouchEvent()
DPulseExpansionHandler.kt97 private var touchSlop = 0f variable
128 touchSlop = ViewConfiguration.get(context).scaledTouchSlop.toFloat() in initResources()
159 if (h > touchSlop && h > Math.abs(x - mInitialTouchX)) { in startExpansion()
/frameworks/base/core/java/android/view/
DGestureDetector.java457 int touchSlop, doubleTapSlop, doubleTapTouchSlop; in init() local
460 touchSlop = ViewConfiguration.getTouchSlop(); in init()
461 doubleTapTouchSlop = touchSlop; // Hack rather than adding a hidden method for this in init()
470 touchSlop = configuration.getScaledTouchSlop(); in init()
477 mTouchSlopSquare = touchSlop * touchSlop; in init()
DView.java16060 int touchSlop = mTouchSlop; in onTouchEvent() local
16062 if (!pointInView(x, y, touchSlop)) { in onTouchEvent()
16077 touchSlop *= mAmbiguousGestureMultiplier; in onTouchEvent()
16081 if (!pointInView(x, y, touchSlop)) { in onTouchEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt152 private var touchSlop = 0 in <lambda>() variable in com.android.wm.shell.common.magnetictarget.MagnetizedObject
342 if (dragDistance > touchSlop) { in <lambda>()
583 touchSlop = in <lambda>()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java277 int touchSlop = mConfig.getScaledTouchSlop(); in testUpdate_drag() local
278 float newX = event1.getX() + touchSlop + 1; in testUpdate_drag()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java1144 final int touchSlop = configuration.getScaledTouchSlop(); in initialize() local
1145 sTouchSlopSquare = touchSlop * touchSlop; in initialize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelViewController.java1219 float touchSlop = getTouchSlop(event); in onInterceptTouchEvent() local
1220 if ((h < -touchSlop in onInterceptTouchEvent()
1221 || ((openShadeWithoutHun || mAnimatingOnDown) && hAbs > touchSlop)) in onInterceptTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java3454 final float touchSlop = getTouchSlop(ev); in onScrollTouch() local
3455 if (!mIsBeingDragged && yDiff > touchSlop && yDiff > xDiff) { in onScrollTouch()
3458 deltaY -= touchSlop; in onScrollTouch()
3460 deltaY += touchSlop; in onScrollTouch()
3617 final float touchSlop = getTouchSlop(ev); in handleEmptySpaceClick() local
3618 if (mTouchIsClick && (Math.abs(ev.getY() - mInitialTouchY) > touchSlop in handleEmptySpaceClick()
3619 || Math.abs(ev.getX() - mInitialTouchX) > touchSlop)) { in handleEmptySpaceClick()