/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/ |
D | SingleAxisSwipeDetectorTest.java | 59 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/ |
D | TaskViewTouchController.java | 60 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()
|
D | NoButtonNavbarToOverviewTouchController.java | 191 if (mReachedOverview && !mDetector.isDraggingState()) { in maybeSwipeInteractionToOverviewComplete() 267 mDetector.setTouchSlopMultiplier(ONE_HANDED_ACTIVATED_SLOP_MULTIPLIER); in onOneHandedModeStateChanged() 270 mDetector.setTouchSlopMultiplier(1f /* default */); in onOneHandedModeStateChanged()
|
D | TwoButtonNavbarTouchController.java | 153 mDetector.onTouchEvent(event); in updateProgress()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | AbstractStateChangeTouchController.java | 54 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/ |
D | SwapButton.java | 36 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/ |
D | MediaActivity.java | 642 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/ |
D | AllAppsEduView.java | 307 return mDetector.isDraggingOrSettling(); in isDraggingOrSettling()
|