Searched refs:mSwipeDetector (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | AbstractSlideInView.java | 91 protected final SingleAxisSwipeDetector mSwipeDetector; field in AbstractSlideInView 162 mSwipeDetector = new SingleAxisSwipeDetector(context, this, in AbstractSlideInView() 213 mSwipeDetector.finishedScrolling(); in setUpOpenCloseAnimation() 269 int directionsToDetectScroll = mSwipeDetector.isIdleState() in onControllerInterceptTouchEvent() 271 mSwipeDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent() 273 mSwipeDetector.onTouchEvent(ev); in onControllerInterceptTouchEvent() 274 return mSwipeDetector.isDraggingOrSettling() || !isEventOverContent(ev); in onControllerInterceptTouchEvent() 279 mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent() 280 if (ev.getAction() == MotionEvent.ACTION_UP && mSwipeDetector.isIdleState() in onControllerTouchEvent() 441 if ((mSwipeDetector.isFling(velocity) && velocity > 0) in onDragEnd() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | NavBarToHomeTouchController.java | 71 private final SingleAxisSwipeDetector mSwipeDetector; field in NavBarToHomeTouchController 87 mSwipeDetector = new SingleAxisSwipeDetector(mLauncher, this, in NavBarToHomeTouchController() 100 mSwipeDetector.setDetectableScrollConditions(SingleAxisSwipeDetector.DIRECTION_POSITIVE, in onControllerInterceptTouchEvent() 109 return mSwipeDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent() 133 return mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent() 173 mSwipeDetector.finishedScrolling(); in clearState() 174 mSwipeDetector.setDetectableScrollConditions(0, false); in clearState() 188 boolean fling = mSwipeDetector.isFling(velocity); in onDragEnd()
|
D | NoButtonQuickSwitchTouchController.java | 104 private final BothAxesSwipeDetector mSwipeDetector; field in NoButtonQuickSwitchTouchController 127 mSwipeDetector = new BothAxesSwipeDetector(mLauncher, this); in NoButtonQuickSwitchTouchController() 147 mSwipeDetector.setDetectableScrollConditions(DIRECTION_RIGHT, in onControllerInterceptTouchEvent() 156 return mSwipeDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent() 161 return mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent() 198 mSwipeDetector.setDetectableScrollConditions(DIRECTION_RIGHT | DIRECTION_UP, in onDragStart() 222 if (!isEmpty && mSwipeDetector.isDraggingState()) { in setupAnimators() 321 boolean horizontalFling = mSwipeDetector.isFling(velocity.x); in onDragEnd() 322 boolean verticalFling = mSwipeDetector.isFling(velocity.y); in onDragEnd() 496 mSwipeDetector.finishedScrolling(); in clearState()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | ProgressDelegateInputConsumer.java | 82 private final SingleAxisSwipeDetector mSwipeDetector; field in ProgressDelegateInputConsumer 110 mSwipeDetector = new SingleAxisSwipeDetector(mContext, this, VERTICAL); in ProgressDelegateInputConsumer() 111 mSwipeDetector.setDetectableScrollConditions(DIRECTION_POSITIVE, false); in ProgressDelegateInputConsumer() 122 mSwipeDetector.onTouchEvent(ev); in onMotionEvent() 147 if (mSwipeDetector.isFling(velocity)) { in onDragEnd()
|