Searched refs:mSwipeDetector (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | AbstractSlideInView.java | 63 protected final SingleAxisSwipeDetector mSwipeDetector; field in AbstractSlideInView 80 mSwipeDetector = new SingleAxisSwipeDetector(context, this, in AbstractSlideInView() 87 mSwipeDetector.finishedScrolling(); in AbstractSlideInView() 123 int directionsToDetectScroll = mSwipeDetector.isIdleState() ? in onControllerInterceptTouchEvent() 125 mSwipeDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent() 127 mSwipeDetector.onTouchEvent(ev); in onControllerInterceptTouchEvent() 128 return mSwipeDetector.isDraggingOrSettling() in onControllerInterceptTouchEvent() 134 mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent() 135 if (ev.getAction() == MotionEvent.ACTION_UP && mSwipeDetector.isIdleState() in onControllerTouchEvent() 164 if ((mSwipeDetector.isFling(velocity) && velocity > 0) || mTranslationShift > 0.5f) { in onDragEnd() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | NavBarToHomeTouchController.java | 68 private final SingleAxisSwipeDetector mSwipeDetector; field in NavBarToHomeTouchController 78 mSwipeDetector = new SingleAxisSwipeDetector(mLauncher, this, in NavBarToHomeTouchController() 91 mSwipeDetector.setDetectableScrollConditions(SingleAxisSwipeDetector.DIRECTION_POSITIVE, in onControllerInterceptTouchEvent() 100 return mSwipeDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent() 142 return mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent() 188 mSwipeDetector.finishedScrolling(); in clearState() 189 mSwipeDetector.setDetectableScrollConditions(0, false); in clearState() 203 boolean fling = mSwipeDetector.isFling(velocity); in onDragEnd() 246 mSwipeDetector.getDownX(), mSwipeDetector.getDownY(), in logStateChange()
|
D | NoButtonQuickSwitchTouchController.java | 99 private final BothAxesSwipeDetector mSwipeDetector; field in NoButtonQuickSwitchTouchController 120 mSwipeDetector = new BothAxesSwipeDetector(mLauncher, this); in NoButtonQuickSwitchTouchController() 140 mSwipeDetector.setDetectableScrollConditions(DIRECTION_RIGHT, in onControllerInterceptTouchEvent() 149 return mSwipeDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent() 154 return mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent() 180 mSwipeDetector.setDetectableScrollConditions(DIRECTION_RIGHT | DIRECTION_UP, in onDragStart() 223 if (!isEmpty && mSwipeDetector.isDraggingState()) { in setupAnimators() 316 boolean horizontalFling = mSwipeDetector.isFling(velocity.x); in onDragEnd() 317 boolean verticalFling = mSwipeDetector.isFling(velocity.y); in onDragEnd() 432 getDirectionForLog(), mSwipeDetector.getDownX(), mSwipeDetector.getDownY(), in onAnimationToStateCompleted() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationItemView.java | 52 private final SingleAxisSwipeDetector mSwipeDetector; field in NotificationItemView 77 mSwipeDetector = new SingleAxisSwipeDetector(mContext, mMainView, HORIZONTAL); in NotificationItemView() 78 mSwipeDetector.setDetectableScrollConditions(SingleAxisSwipeDetector.DIRECTION_BOTH, false); in NotificationItemView() 79 mMainView.setSwipeDetector(mSwipeDetector); in NotificationItemView() 154 mSwipeDetector.onTouchEvent(ev); in onInterceptTouchEvent() 155 return mSwipeDetector.isDraggingOrSettling(); in onInterceptTouchEvent() 166 return mSwipeDetector.onTouchEvent(ev); in onTouchEvent()
|
D | NotificationMainView.java | 79 private SingleAxisSwipeDetector mSwipeDetector; field in NotificationMainView 112 mSwipeDetector = swipeDetector; in setSwipeDetector() 199 } else if (mSwipeDetector.isFling(velocity)) { in onDragEnd() 220 mSwipeDetector.finishedScrolling(); in onDragEnd()
|