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/
DSwipeDetectorTest.java50 private SwipeDetector mDetector; field in SwipeDetectorTest
62 mGenerator = new TouchEventGenerator((ev) -> mDetector.onTouchEvent(ev)); in setup()
68 mDetector = new SwipeDetector(mMockConfig, mMockListener, SwipeDetector.VERTICAL, false); in setup()
69 mDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_BOTH, false); in setup()
78 mDetector = new SwipeDetector(mMockConfig, mMockListener, SwipeDetector.VERTICAL, false); in testDragStart_verticalPositive()
79 mDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_POSITIVE, false); in testDragStart_verticalPositive()
88 mDetector = new SwipeDetector(mMockConfig, mMockListener, SwipeDetector.VERTICAL, false); in testDragStart_verticalNegative()
89 mDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_NEGATIVE, false); in testDragStart_verticalNegative()
106 mDetector = new SwipeDetector(mMockConfig, mMockListener, SwipeDetector.HORIZONTAL, false); in testDragStart_horizontalPositive()
107 mDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_POSITIVE, false); in testDragStart_horizontalPositive()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DTaskViewTouchController.java57 private final SwipeDetector mDetector; field in TaskViewTouchController
77 mDetector = new SwipeDetector(activity, this, SwipeDetector.VERTICAL); in TaskViewTouchController()
145 mDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent()
154 return mDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
159 return mDetector.onTouchEvent(ev); in onControllerTouchEvent()
167 int scrollDirections = mDetector.getScrollDirections(); in reInitAnimationController()
214 reInitAnimationController(mDetector.wasInitialTouchPositive()); in onDragStart()
300 mDetector.finishedScrolling(); in clearState()
301 mDetector.setDetectableScrollConditions(0, false); in clearState()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java72 protected final SwipeDetector mDetector; field in AbstractStateChangeTouchController
109 mDetector = new SwipeDetector(l, this, dir); in AbstractStateChangeTouchController()
145 mDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent()
157 return mDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
174 return mDetector.onTouchEvent(ev); in onControllerTouchEvent()
261 reinitCurrentAnimation(false, mDetector.wasInitialTouchPositive()); in onDragStart()
549 getDirectionForLog(), mDetector.getDownX(), mDetector.getDownY(), in logReachedState()
571 mDetector.finishedScrolling(); in cancelAnimationControllers()
572 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.java655 private final GestureDetectorCompat mDetector; field in MediaActivity.ClosePlaybackDetector
660 mDetector = new GestureDetectorCompat(context, this); in ClosePlaybackDetector()
666 return mDetector.onTouchEvent(event); in onTouch()