Home
last modified time | relevance | path

Searched refs:mDetector (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/
DSingleAxisSwipeDetectorTest.java59 private SingleAxisSwipeDetector mDetector; field in SingleAxisSwipeDetectorTest
71 mGenerator = new TouchEventGenerator((ev) -> mDetector.onTouchEvent(ev)); in setup()
77 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in setup()
78 mDetector.setDetectableScrollConditions(DIRECTION_BOTH, false); in setup()
87 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in testDragStart_verticalPositive()
88 mDetector.setDetectableScrollConditions(DIRECTION_POSITIVE, false); in testDragStart_verticalPositive()
97 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in testDragStart_verticalNegative()
98 mDetector.setDetectableScrollConditions(DIRECTION_NEGATIVE, false); in testDragStart_verticalNegative()
115 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, HORIZONTAL, false); in testDragStart_horizontalPositive()
116 mDetector.setDetectableScrollConditions(DIRECTION_POSITIVE, false); in testDragStart_horizontalPositive()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DTaskViewTouchController.java60 private final SingleAxisSwipeDetector mDetector; field in TaskViewTouchController
86 mDetector = new SingleAxisSwipeDetector(activity, this, dir); in TaskViewTouchController()
190 mDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent()
199 return mDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
204 return mDetector.onTouchEvent(ev); in onControllerTouchEvent()
313 mDetector.onTouchEvent(upAction); in onDrag()
335 boolean fling = mDetector.isFling(velocity); in onDragEnd()
368 mDetector.finishedScrolling(); in clearState()
369 mDetector.setDetectableScrollConditions(0, false); in clearState()
DNoButtonNavbarToOverviewTouchController.java191 if (mReachedOverview && !mDetector.isDraggingState()) { in maybeSwipeInteractionToOverviewComplete()
267 mDetector.setTouchSlopMultiplier(ONE_HANDED_ACTIVATED_SLOP_MULTIPLIER); in onOneHandedModeStateChanged()
270 mDetector.setTouchSlopMultiplier(1f /* default */); in onOneHandedModeStateChanged()
DTwoButtonNavbarTouchController.java153 mDetector.onTouchEvent(event); in updateProgress()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java54 protected final SingleAxisSwipeDetector mDetector; field in AbstractStateChangeTouchController
80 mDetector = new SingleAxisSwipeDetector(l, this, dir); in AbstractStateChangeTouchController()
109 mDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent()
118 return mDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
135 return mDetector.onTouchEvent(ev); in onControllerTouchEvent()
189 reinitCurrentAnimation(false, mDetector.wasInitialTouchPositive()); in onDragStart()
272 boolean fling = mDetector.isFling(velocity); in onDragEnd()
391 mDetector.finishedScrolling(); in clearState()
392 mDetector.setDetectableScrollConditions(0, false); in clearState()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DSwapButton.java36 private GestureDetector mDetector; field in SwapButton
43 mDetector = new GestureDetector(context, this); in SwapButton()
55 if (!mDetector.onTouchEvent(me)) { in onTouchEvent()
/packages/apps/Car/Media/src/com/android/car/media/
DMediaActivity.java642 private final GestureDetectorCompat mDetector; field in MediaActivity.ClosePlaybackDetector
647 mDetector = new GestureDetectorCompat(context, this); in ClosePlaybackDetector()
653 return mDetector.onTouchEvent(event); in onTouch()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DAllAppsEduView.java307 return mDetector.isDraggingOrSettling(); in isDraggingOrSettling()