Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DSwipeToSceneTest.kt128 var touchSlop = 0f in <lambda>() variable
132 touchSlop = LocalViewConfiguration.current.touchSlop in <lambda>()
146 moveBy(Offset(-55.dp.toPx() - touchSlop, 0f), delayMillis = 1_000) in <lambda>()
177 moveBy(Offset(0f, 56.dp.toPx() + touchSlop), delayMillis = 1_000) in <lambda>()
208 var touchSlop = 0f in <lambda>() variable
211 touchSlop = LocalViewConfiguration.current.touchSlop in <lambda>()
225 end = middle - Offset(55.dp.toPx() + touchSlop, 0f), in <lambda>()
250 end = middle + Offset(0f, 55.dp.toPx() + touchSlop), in <lambda>()
275 var touchSlop = 0f in <lambda>() variable
277 touchSlop = LocalViewConfiguration.current.touchSlop in <lambda>()
[all …]
DMultiPointerDraggableTest.kt62 var touchSlop = 0f in <lambda>() variable
64 touchSlop = LocalViewConfiguration.current.touchSlop in <lambda>()
90 moveBy(Offset(0f, touchSlop)) in <lambda>()
134 var touchSlop = 0f in <lambda>() variable
136 touchSlop = LocalViewConfiguration.current.touchSlop in <lambda>()
178 moveBy(Offset(0f, touchSlop)) in <lambda>()
183 rule.onRoot().performTouchInput { moveBy(Offset(0f, touchSlop)) } in <lambda>()
257 var touchSlop = 0f in <lambda>() variable
259 touchSlop = LocalViewConfiguration.current.touchSlop in <lambda>()
298 moveBy(Offset(0f, touchSlop)) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
DBackPanelControllerTest.kt64 private val touchSlop = ViewConfiguration.get(context).scaledEdgeSlop constant
108 continueTouch(START_X + touchSlop - 1) in staysHiddenBeforeSlopCrossed()
119 continueTouch(START_X + touchSlop.toFloat() + 1) in handlesBackCommitted()
126 continueTouch(START_X + touchSlop + triggerThreshold + 1) in handlesBackCommitted()
129 continueTouch(START_X + touchSlop + triggerThreshold + 1) in handlesBackCommitted()
137 finishTouchActionUp(START_X + touchSlop + triggerThreshold + 1) in handlesBackCommitted()
157 continueTouch(START_X + touchSlop.toFloat() + 1) in handlesBackCancelled()
162 START_X + touchSlop + triggerThreshold - in handlesBackCancelled()
168 START_X + touchSlop + triggerThreshold - in handlesBackCancelled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DSingleTapClassifier.java31 @Named(SINGLE_TAP_TOUCH_SLOP) float touchSlop) { in SingleTapClassifier() argument
32 super(dataProvider, touchSlop); in SingleTapClassifier()
DLongTapClassifier.java30 @Named(LONG_TAP_TOUCH_SLOP) float touchSlop) { in LongTapClassifier() argument
31 super(dataProvider, touchSlop); in LongTapClassifier()
DTapClassifier.java29 float touchSlop) { in TapClassifier() argument
31 mTouchSlop = touchSlop; in TapClassifier()
/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.java85 int touchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in onTouchEvent() local
86 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
DKeyguardSecurityContainer.java488 float touchSlop = mViewConfiguration.getScaledTouchSlop() * SLOP_SCALE; in onInterceptTouchEvent() local
489 if (index != -1 && mStartTouchY - event.getY(index) > touchSlop) { in onInterceptTouchEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DRelativeTouchListener.kt96 private var touchSlop: Int = -1 variable in com.android.wm.shell.common.bubbles.RelativeTouchListener
115 touchSlop = ViewConfiguration.get(v.context).scaledTouchSlop in onTouch()
130 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) { in onTouch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMagnificationGestureDetector.java99 final int touchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in MagnificationGestureDetector() local
100 mTouchSlopSquare = touchSlop * touchSlop; in MagnificationGestureDetector()
/frameworks/base/core/java/android/widget/
DEditorTouchState.java189 int touchSlop = config.getScaledTouchSlop(); in update() local
190 mMovedEnoughForDrag = distanceSquared > touchSlop * touchSlop; in update()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragDetector.java118 void setTouchSlop(int touchSlop) { in setTouchSlop() argument
119 mTouchSlop = touchSlop; in setTouchSlop()
DCaptionWindowDecoration.java235 final int touchSlop = ViewConfiguration.get(mResult.mRootView.getContext()) in relayout() local
237 mDragDetector.setTouchSlop(touchSlop); in relayout()
242 getFineResizeCornerSize(res), getLargeResizeCornerSize(res)), touchSlop); in relayout()
DDragResizeInputListener.java171 boolean setGeometry(@NonNull DragResizeWindowGeometry incomingGeometry, int touchSlop) { in setGeometry() argument
179 mInputEventReceiver.setTouchSlop(touchSlop); in setGeometry()
340 void setTouchSlop(int touchSlop) { in setTouchSlop() argument
341 mDragDetector.setTouchSlop(touchSlop); in setTouchSlop()
DDesktopModeWindowDecoration.java351 final int touchSlop = ViewConfiguration.get(mResult.mRootView.getContext()) in updateDragResizeListener() local
353 mDragDetector.setTouchSlop(touchSlop); in updateDragResizeListener()
361 getFineResizeCornerSize(res), getLargeResizeCornerSize(res)), touchSlop) in updateDragResizeListener()
/frameworks/base/core/java/android/view/
DGestureDetector.java495 int touchSlop, doubleTapSlop, doubleTapTouchSlop; in init() local
498 touchSlop = ViewConfiguration.getTouchSlop(); in init()
499 doubleTapTouchSlop = touchSlop; // Hack rather than adding a hidden method for this in init()
508 touchSlop = configuration.getScaledTouchSlop(); in init()
515 mTouchSlopSquare = touchSlop * touchSlop; in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLockscreenShadeTransitionController.kt770 private var touchSlop = 0f variable
799 touchSlop = configuration.scaledTouchSlop.toFloat() in updateResources()
820 val touchSlop = in onInterceptTouchEvent() constant
822 touchSlop * slopMultiplier in onInterceptTouchEvent()
824 touchSlop in onInterceptTouchEvent()
826 if (h > touchSlop && h > Math.abs(x - initialTouchX)) { in onInterceptTouchEvent()
DPulseExpansionHandler.kt102 private var touchSlop = 0f in <lambda>() variable
132 touchSlop = ViewConfiguration.get(context).scaledTouchSlop.toFloat() in <lambda>()
164 if (h > touchSlop && h > Math.abs(x - mInitialTouchX)) { in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt155 private var touchSlop = 0 in <lambda>() variable
348 if (dragDistance > touchSlop) { in <lambda>()
590 touchSlop = in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DShadeLogger.kt54 touchSlop: Float, in logQsTrackingNotStarted()
67 double1 = touchSlop.toDouble() in logQsTrackingNotStarted()
DQuickSettingsControllerImpl.java1834 float touchSlop = event.getClassification() in onIntercept() local
1838 if ((h > touchSlop || (h < -touchSlop && getExpanded())) in onIntercept()
1856 mShadeLog.logQsTrackingNotStarted(mInitialTouchY, y, h, touchSlop, in onIntercept()
/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/notification/stack/
DNotificationStackScrollLayout.java3615 final float touchSlop = getTouchSlop(ev); in onScrollTouch() local
3616 if (!mIsBeingDragged && yDiff > touchSlop && yDiff > xDiff) { in onScrollTouch()
3619 deltaY -= touchSlop; in onScrollTouch()
3621 deltaY += touchSlop; in onScrollTouch()
3795 final float touchSlop = getTouchSlop(ev); in handleEmptySpaceClick() local
3796 if (mTouchIsClick && (Math.abs(ev.getY() - mInitialTouchY) > touchSlop in handleEmptySpaceClick()
3797 || Math.abs(ev.getX() - mInitialTouchX) > touchSlop)) { in handleEmptySpaceClick()

12