Home
last modified time | relevance | path

Searched refs:SingleAxisSwipeDetector (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/
DSingleAxisSwipeDetectorTest.java18 import static com.android.launcher3.touch.SingleAxisSwipeDetector.DIRECTION_BOTH;
19 import static com.android.launcher3.touch.SingleAxisSwipeDetector.DIRECTION_NEGATIVE;
20 import static com.android.launcher3.touch.SingleAxisSwipeDetector.DIRECTION_POSITIVE;
21 import static com.android.launcher3.touch.SingleAxisSwipeDetector.HORIZONTAL;
22 import static com.android.launcher3.touch.SingleAxisSwipeDetector.VERTICAL;
59 private SingleAxisSwipeDetector mDetector;
63 private SingleAxisSwipeDetector.Listener mMockListener;
77 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in setup()
87 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in testDragStart_verticalPositive()
97 mDetector = new SingleAxisSwipeDetector(mMockConfig, mMockListener, VERTICAL, false); in testDragStart_verticalNegative()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java51 implements TouchController, SingleAxisSwipeDetector.Listener {
54 protected final SingleAxisSwipeDetector mDetector;
55 protected final SingleAxisSwipeDetector.Direction mSwipeDirection;
78 public AbstractStateChangeTouchController(Launcher l, SingleAxisSwipeDetector.Direction dir) { in AbstractStateChangeTouchController()
80 mDetector = new SingleAxisSwipeDetector(l, this, dir); in AbstractStateChangeTouchController()
100 directionsToDetectScroll = SingleAxisSwipeDetector.DIRECTION_BOTH; in onControllerInterceptTouchEvent()
125 swipeDirection |= SingleAxisSwipeDetector.DIRECTION_POSITIVE; in getSwipeDirection()
128 swipeDirection |= SingleAxisSwipeDetector.DIRECTION_NEGATIVE; in getSwipeDirection()
DSeascapePagedViewHandler.java19 import static com.android.launcher3.touch.SingleAxisSwipeDetector.HORIZONTAL;
120 public SingleAxisSwipeDetector.Direction getUpDownSwipeDirection() { in getUpDownSwipeDirection()
126 return isRtl ? SingleAxisSwipeDetector.DIRECTION_POSITIVE in getUpDirection()
127 : SingleAxisSwipeDetector.DIRECTION_NEGATIVE; in getUpDirection()
DSingleAxisSwipeDetector.java31 public class SingleAxisSwipeDetector extends BaseSwipeDetector { class
107 public SingleAxisSwipeDetector(@NonNull Context context, @NonNull Listener l, in SingleAxisSwipeDetector() method in SingleAxisSwipeDetector
113 protected SingleAxisSwipeDetector(@NonNull ViewConfiguration config, @NonNull Listener l, in SingleAxisSwipeDetector() method in SingleAxisSwipeDetector
DLandscapePagedViewHandler.java23 import static com.android.launcher3.touch.SingleAxisSwipeDetector.HORIZONTAL;
306 public SingleAxisSwipeDetector.Direction getUpDownSwipeDirection() { in getUpDownSwipeDirection()
312 return isRtl ? SingleAxisSwipeDetector.DIRECTION_NEGATIVE in getUpDirection()
313 : SingleAxisSwipeDetector.DIRECTION_POSITIVE; in getUpDirection()
DPortraitPagedViewHandler.java21 import static com.android.launcher3.touch.SingleAxisSwipeDetector.VERTICAL;
326 public SingleAxisSwipeDetector.Direction getUpDownSwipeDirection() { in getUpDownSwipeDirection()
333 return SingleAxisSwipeDetector.DIRECTION_POSITIVE; in getUpDirection()
DAllAppsSwipeController.java33 super(l, SingleAxisSwipeDetector.VERTICAL); in AllAppsSwipeController()
DPagedOrientationHandler.java148 SingleAxisSwipeDetector.Direction getUpDownSwipeDirection(); in getUpDownSwipeDirection()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DAbstractSlideInView.java37 import com.android.launcher3.touch.SingleAxisSwipeDetector;
48 extends AbstractFloatingView implements SingleAxisSwipeDetector.Listener {
68 protected final SingleAxisSwipeDetector mSwipeDetector;
86 mSwipeDetector = new SingleAxisSwipeDetector(context, this, in AbstractSlideInView()
87 SingleAxisSwipeDetector.VERTICAL); in AbstractSlideInView()
130 ? SingleAxisSwipeDetector.DIRECTION_NEGATIVE : 0; in onControllerInterceptTouchEvent()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DNavBarToHomeTouchController.java48 import com.android.launcher3.touch.SingleAxisSwipeDetector;
60 SingleAxisSwipeDetector.Listener {
67 private final SingleAxisSwipeDetector mSwipeDetector;
77 mSwipeDetector = new SingleAxisSwipeDetector(mLauncher, this, in NavBarToHomeTouchController()
78 SingleAxisSwipeDetector.VERTICAL); in NavBarToHomeTouchController()
90 mSwipeDetector.setDetectableScrollConditions(SingleAxisSwipeDetector.DIRECTION_POSITIVE, in onControllerInterceptTouchEvent()
DTaskViewTouchController.java20 import static com.android.launcher3.touch.SingleAxisSwipeDetector.DIRECTION_BOTH;
40 import com.android.launcher3.touch.SingleAxisSwipeDetector;
53 SingleAxisSwipeDetector.Listener {
60 private final SingleAxisSwipeDetector mDetector;
84 SingleAxisSwipeDetector.Direction dir = in TaskViewTouchController()
86 mDetector = new SingleAxisSwipeDetector(activity, this, dir); in TaskViewTouchController()
DTwoButtonNavbarTouchController.java35 import com.android.launcher3.touch.SingleAxisSwipeDetector;
58 ? SingleAxisSwipeDetector.HORIZONTAL : SingleAxisSwipeDetector.VERTICAL); in TwoButtonNavbarTouchController()
DTransposedQuickSwitchTouchController.java20 import com.android.launcher3.touch.SingleAxisSwipeDetector;
25 super(launcher, SingleAxisSwipeDetector.VERTICAL); in TransposedQuickSwitchTouchController()
DQuickSwitchTouchController.java46 import com.android.launcher3.touch.SingleAxisSwipeDetector;
62 this(launcher, SingleAxisSwipeDetector.HORIZONTAL); in QuickSwitchTouchController()
65 protected QuickSwitchTouchController(Launcher l, SingleAxisSwipeDetector.Direction dir) { in QuickSwitchTouchController()
DPortraitStatesTouchController.java38 import com.android.launcher3.touch.SingleAxisSwipeDetector;
75 super(l, SingleAxisSwipeDetector.VERTICAL); in PortraitStatesTouchController()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationMainView.java40 import com.android.launcher3.touch.SingleAxisSwipeDetector;
72 private SingleAxisSwipeDetector mSwipeDetector;