Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/views/
DAbstractSlideInView.java68 protected final SingleAxisSwipeDetector mSwipeDetector; field in AbstractSlideInView
86 mSwipeDetector = new SingleAxisSwipeDetector(context, this, in AbstractSlideInView()
93 mSwipeDetector.finishedScrolling(); in AbstractSlideInView()
129 int directionsToDetectScroll = mSwipeDetector.isIdleState() in onControllerInterceptTouchEvent()
131 mSwipeDetector.setDetectableScrollConditions( in onControllerInterceptTouchEvent()
133 mSwipeDetector.onTouchEvent(ev); in onControllerInterceptTouchEvent()
134 return mSwipeDetector.isDraggingOrSettling() in onControllerInterceptTouchEvent()
140 mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent()
141 if (ev.getAction() == MotionEvent.ACTION_UP && mSwipeDetector.isIdleState() in onControllerTouchEvent()
170 if ((mSwipeDetector.isFling(velocity) && velocity > 0) || mTranslationShift > 0.5f) { in onDragEnd()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DNavBarToHomeTouchController.java67 private final SingleAxisSwipeDetector mSwipeDetector; field in NavBarToHomeTouchController
77 mSwipeDetector = new SingleAxisSwipeDetector(mLauncher, this, in NavBarToHomeTouchController()
90 mSwipeDetector.setDetectableScrollConditions(SingleAxisSwipeDetector.DIRECTION_POSITIVE, in onControllerInterceptTouchEvent()
99 return mSwipeDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
123 return mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent()
171 mSwipeDetector.finishedScrolling(); in clearState()
172 mSwipeDetector.setDetectableScrollConditions(0, false); in clearState()
186 boolean fling = mSwipeDetector.isFling(velocity); in onDragEnd()
DNoButtonQuickSwitchTouchController.java93 private final BothAxesSwipeDetector mSwipeDetector; field in NoButtonQuickSwitchTouchController
116 mSwipeDetector = new BothAxesSwipeDetector(mLauncher, this); in NoButtonQuickSwitchTouchController()
136 mSwipeDetector.setDetectableScrollConditions(DIRECTION_RIGHT, in onControllerInterceptTouchEvent()
145 return mSwipeDetector.isDraggingOrSettling(); in onControllerInterceptTouchEvent()
150 return mSwipeDetector.onTouchEvent(ev); in onControllerTouchEvent()
176 mSwipeDetector.setDetectableScrollConditions(DIRECTION_RIGHT | DIRECTION_UP, in onDragStart()
200 if (!isEmpty && mSwipeDetector.isDraggingState()) { in setupAnimators()
295 boolean horizontalFling = mSwipeDetector.isFling(velocity.x); in onDragEnd()
296 boolean verticalFling = mSwipeDetector.isFling(velocity.y); in onDragEnd()
441 mSwipeDetector.finishedScrolling(); in clearState()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationMainView.java72 private SingleAxisSwipeDetector mSwipeDetector; field in NotificationMainView