Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/
DSingleAxisSwipeDetectorTest.java56 private SingleAxisSwipeDetector mDetector; field in SingleAxisSwipeDetectorTest
68 mGenerator = new TouchEventGenerator((ev) -> mDetector.onTouchEvent(ev)); in setup()
74 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in setup()
75 mDetector.setDetectableScrollConditions(DIRECTION_BOTH, false); in setup()
84 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in testDragStart_verticalPositive()
85 mDetector.setDetectableScrollConditions(DIRECTION_POSITIVE, false); in testDragStart_verticalPositive()
94 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in testDragStart_verticalNegative()
95 mDetector.setDetectableScrollConditions(DIRECTION_NEGATIVE, false); in testDragStart_verticalNegative()
112 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, HORIZONTAL, false); in testDragStart_horizontalPositive()
113 mDetector.setDetectableScrollConditions(DIRECTION_POSITIVE, false); in testDragStart_horizontalPositive()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DTaskViewTouchController.java60 private final SingleAxisSwipeDetector mDetector; field in TaskViewTouchController
80 mDetector = new SingleAxisSwipeDetector(activity, this, SingleAxisSwipeDetector.VERTICAL); in TaskViewTouchController()
148 mDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent()
157 return mDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
162 return mDetector.onTouchEvent(ev); in onControllerTouchEvent()
170 int scrollDirections = mDetector.getScrollDirections(); in reInitAnimationController()
217 reInitAnimationController(mDetector.wasInitialTouchPositive()); in onDragStart()
250 boolean fling = mDetector.isFling(velocity);
304 mDetector.finishedScrolling(); in clearState()
305 mDetector.setDetectableScrollConditions(0, false); in clearState()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java68 protected final SingleAxisSwipeDetector mDetector; field in AbstractStateChangeTouchController
106 mDetector = new SingleAxisSwipeDetector(l, this, dir); in AbstractStateChangeTouchController()
139 mDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent()
148 return mDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
165 return mDetector.onTouchEvent(ev); in onControllerTouchEvent()
240 reinitCurrentAnimation(false, mDetector.wasInitialTouchPositive()); in onDragStart()
373 boolean fling = mDetector.isFling(velocity); in onDragEnd()
535 getDirectionForLog(), mDetector.getDownX(), mDetector.getDownY(), in logReachedState()
554 mDetector.finishedScrolling(); in cancelAnimationControllers()
555 mDetector.setDetectableScrollConditions(0, false); in cancelAnimationControllers()
/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.java882 private final GestureDetectorCompat mDetector; field in MediaActivity.ClosePlaybackDetector
887 mDetector = new GestureDetectorCompat(context, this); in ClosePlaybackDetector()
893 return mDetector.onTouchEvent(event); in onTouch()