Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/views/
DAbstractSlideInView.java61 protected final SingleAxisSwipeDetector mSwipeDetector; field in AbstractSlideInView
77 mSwipeDetector = new SingleAxisSwipeDetector(context, this, in AbstractSlideInView()
84 mSwipeDetector.finishedScrolling(); in AbstractSlideInView()
101 int directionsToDetectScroll = mSwipeDetector.isIdleState() ? in onControllerInterceptTouchEvent()
103 mSwipeDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent()
105 mSwipeDetector.onTouchEvent(ev); in onControllerInterceptTouchEvent()
106 return mSwipeDetector.isDraggingOrSettling() in onControllerInterceptTouchEvent()
112 mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent()
113 if (ev.getAction() == MotionEvent.ACTION_UP && mSwipeDetector.isIdleState() in onControllerTouchEvent()
142 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/
DNavBarToHomeTouchController.java65 private final SingleAxisSwipeDetector mSwipeDetector; field in NavBarToHomeTouchController
75 mSwipeDetector = new SingleAxisSwipeDetector(mLauncher, this, in NavBarToHomeTouchController()
88 mSwipeDetector.setDetectableScrollConditions(SingleAxisSwipeDetector.DIRECTION_POSITIVE, in onControllerInterceptTouchEvent()
97 return mSwipeDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
120 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()
230 mSwipeDetector.getDownX(), mSwipeDetector.getDownY(), in logStateChange()
DNoButtonQuickSwitchTouchController.java96 private final BothAxesSwipeDetector mSwipeDetector; field in NoButtonQuickSwitchTouchController
116 mSwipeDetector = new BothAxesSwipeDetector(mLauncher, this); in NoButtonQuickSwitchTouchController()
133 mSwipeDetector.setDetectableScrollConditions(DIRECTION_RIGHT, in onControllerInterceptTouchEvent()
142 return mSwipeDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
147 return mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent()
176 mSwipeDetector.setDetectableScrollConditions(DIRECTION_RIGHT | DIRECTION_UP, in onDragStart()
324 boolean horizontalFling = mSwipeDetector.isFling(velocity.x); in onDragEnd()
325 boolean verticalFling = mSwipeDetector.isFling(velocity.y); in onDragEnd()
439 getDirectionForLog(), mSwipeDetector.getDownX(), mSwipeDetector.getDownY(), in onAnimationToStateCompleted()
471 mSwipeDetector.finishedScrolling(); in clearState()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationItemView.java52 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()
147 mSwipeDetector.onTouchEvent(ev); in onInterceptTouchEvent()
148 return mSwipeDetector.isDraggingOrSettling(); in onInterceptTouchEvent()
159 return mSwipeDetector.onTouchEvent(ev); in onTouchEvent()
DNotificationMainView.java79 private SingleAxisSwipeDetector mSwipeDetector; field in NotificationMainView
112 mSwipeDetector = swipeDetector; in setSwipeDetector()
199 } else if (mSwipeDetector.isFling(velocity)) { in onDragEnd()
220 mSwipeDetector.finishedScrolling(); in onDragEnd()