Home
last modified time | relevance | path

Searched refs:SwipeDetector (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/
DSwipeDetectorTest.java50 private SwipeDetector mDetector;
54 private SwipeDetector.Listener mMockListener;
68 mDetector = new SwipeDetector(mMockConfig, mMockListener, SwipeDetector.VERTICAL, false); in setup()
69 mDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_BOTH, false); in setup()
78 mDetector = new SwipeDetector(mMockConfig, mMockListener, SwipeDetector.VERTICAL, false); in testDragStart_verticalPositive()
79 mDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_POSITIVE, false); in testDragStart_verticalPositive()
88 mDetector = new SwipeDetector(mMockConfig, mMockListener, SwipeDetector.VERTICAL, false); in testDragStart_verticalNegative()
89 mDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_NEGATIVE, false); in testDragStart_verticalNegative()
106 mDetector = new SwipeDetector(mMockConfig, mMockListener, SwipeDetector.HORIZONTAL, false); in testDragStart_horizontalPositive()
107 mDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_POSITIVE, false); in testDragStart_horizontalPositive()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DTaskViewTouchController.java35 import com.android.launcher3.touch.SwipeDetector;
49 extends AnimatorListenerAdapter implements TouchController, SwipeDetector.Listener {
57 private final SwipeDetector mDetector;
77 mDetector = new SwipeDetector(activity, this, SwipeDetector.VERTICAL); in TaskViewTouchController()
116 directionsToDetectScroll = SwipeDetector.DIRECTION_BOTH; in onControllerInterceptTouchEvent()
129 directionsToDetectScroll = SwipeDetector.DIRECTION_POSITIVE; in onControllerInterceptTouchEvent()
134 … ? SwipeDetector.DIRECTION_BOTH : SwipeDetector.DIRECTION_POSITIVE; in onControllerInterceptTouchEvent()
168 if (goingUp && ((scrollDirections & SwipeDetector.DIRECTION_POSITIVE) == 0) in reInitAnimationController()
169 || !goingUp && ((scrollDirections & SwipeDetector.DIRECTION_NEGATIVE) == 0)) { in reInitAnimationController()
263 long animationDuration = SwipeDetector.calculateDuration(
DNavBarToHomeTouchController.java46 import com.android.launcher3.touch.SwipeDetector;
55 public class NavBarToHomeTouchController implements TouchController, SwipeDetector.Listener {
60 private final SwipeDetector mSwipeDetector;
70 mSwipeDetector = new SwipeDetector(mLauncher, this, SwipeDetector.VERTICAL); in NavBarToHomeTouchController()
82 mSwipeDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_POSITIVE, false); in onControllerInterceptTouchEvent()
DQuickSwitchTouchController.java45 import com.android.launcher3.touch.SwipeDetector;
63 this(launcher, SwipeDetector.HORIZONTAL); in QuickSwitchTouchController()
66 protected QuickSwitchTouchController(Launcher l, SwipeDetector.Direction dir) { in QuickSwitchTouchController()
DTransposedQuickSwitchTouchController.java20 import com.android.launcher3.touch.SwipeDetector;
25 super(launcher, SwipeDetector.VERTICAL); in TransposedQuickSwitchTouchController()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DAbstractSlideInView.java35 import com.android.launcher3.touch.SwipeDetector;
41 implements SwipeDetector.Listener {
60 protected final SwipeDetector mSwipeDetector;
76 mSwipeDetector = new SwipeDetector(context, this, SwipeDetector.VERTICAL); in AbstractSlideInView()
100 SwipeDetector.DIRECTION_NEGATIVE : 0; in onControllerInterceptTouchEvent()
142 mOpenCloseAnimator.setDuration(SwipeDetector.calculateDuration( in onDragEnd()
149 SwipeDetector.calculateDuration(velocity, mTranslationShift)) in onDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java58 implements TouchController, SwipeDetector.Listener {
72 protected final SwipeDetector mDetector;
73 protected final SwipeDetector.Direction mSwipeDirection;
107 public AbstractStateChangeTouchController(Launcher l, SwipeDetector.Direction dir) { in AbstractStateChangeTouchController()
109 mDetector = new SwipeDetector(l, this, dir); in AbstractStateChangeTouchController()
136 directionsToDetectScroll = SwipeDetector.DIRECTION_BOTH; in onControllerInterceptTouchEvent()
164 swipeDirection |= SwipeDetector.DIRECTION_POSITIVE; in getSwipeDirection()
167 swipeDirection |= SwipeDetector.DIRECTION_NEGATIVE; in getSwipeDirection()
418 duration = SwipeDetector.calculateDuration(velocity, in onDragEnd()
436 duration = SwipeDetector.calculateDuration(velocity, in onDragEnd()
DSwipeDetector.java40 public class SwipeDetector { class
248 public SwipeDetector(@NonNull Context context, @NonNull Listener l, @NonNull Direction dir) { in SwipeDetector() method in SwipeDetector
253 protected SwipeDetector(@NonNull ViewConfiguration config, @NonNull Listener l, in SwipeDetector() method in SwipeDetector
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationItemView.java31 import com.android.launcher3.touch.SwipeDetector;
36 import static com.android.launcher3.touch.SwipeDetector.HORIZONTAL;
52 private final SwipeDetector mSwipeDetector;
77 mSwipeDetector = new SwipeDetector(mContext, mMainView, HORIZONTAL); in NotificationItemView()
78 mSwipeDetector.setDetectableScrollConditions(SwipeDetector.DIRECTION_BOTH, false); in NotificationItemView()
DNotificationMainView.java42 import com.android.launcher3.touch.SwipeDetector;
51 public class NotificationMainView extends FrameLayout implements SwipeDetector.Listener {
78 private SwipeDetector mSwipeDetector;
110 public void setSwipeDetector(SwipeDetector swipeDetector) { in setSwipeDetector()
209 long duration = SwipeDetector.calculateDuration(velocity, in onDragEnd()
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/
DAllAppsSwipeController.java13 import com.android.launcher3.touch.SwipeDetector;
24 super(l, SwipeDetector.VERTICAL); in AllAppsSwipeController()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DLandscapeEdgeSwipeController.java14 import com.android.launcher3.touch.SwipeDetector;
27 super(l, SwipeDetector.HORIZONTAL); in LandscapeEdgeSwipeController()
DPortraitStatesTouchController.java46 import com.android.launcher3.touch.SwipeDetector;
83 super(l, SwipeDetector.VERTICAL); in PortraitStatesTouchController()