Home
last modified time | relevance | path

Searched refs:GestureMatcher (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DGesturesObserver.java23 import com.android.server.accessibility.gestures.GestureMatcher;
36 public final class GesturesObserver implements GestureMatcher.StateChangeListener {
65 private final List<GestureMatcher> mGestureMatchers = new ArrayList<>();
71 public GesturesObserver(Listener listener, GestureMatcher... matchers) { in GesturesObserver()
101 final GestureMatcher matcher = mGestureMatchers.get(i); in onMotionEvent()
103 if (matcher.getState() == GestureMatcher.STATE_GESTURE_COMPLETED) { in onMotionEvent()
118 for (GestureMatcher matcher : mGestureMatchers) { in clear()
128 if (state == GestureMatcher.STATE_GESTURE_COMPLETED) { in onStateChanged()
137 } else if (state == GestureMatcher.STATE_GESTURE_CANCELED) { in onStateChanged()
DSimpleSwipe.java26 import com.android.server.accessibility.gestures.GestureMatcher;
31 class SimpleSwipe extends GestureMatcher {
DTwoFingersDownOrSwipe.java26 import com.android.server.accessibility.gestures.GestureMatcher;
33 final class TwoFingersDownOrSwipe extends GestureMatcher {
DMagnificationGesturesObserver.java29 import com.android.server.accessibility.gestures.GestureMatcher;
95 MagnificationGesturesObserver(@NonNull Callback callback, GestureMatcher... matchers) { in MagnificationGesturesObserver()
DMagnificationGestureMatcher.java24 import com.android.server.accessibility.gestures.GestureMatcher;
DWindowMagnificationGestureHandler.java43 import com.android.server.accessibility.gestures.GestureMatcher;
463 final List<GestureMatcher> mGestureMatchers = new ArrayList<>(); in DetectingState()
492 mGestureMatchers.toArray(new GestureMatcher[mGestureMatchers.size()])); in DetectingState()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DGestureManifold.java85 public class GestureManifold implements GestureMatcher.StateChangeListener {
89 private final List<GestureMatcher> mGestures = new ArrayList<>();
105 private final List<GestureMatcher> mMultiFingerGestures = new ArrayList<>();
108 private final List<GestureMatcher> mTwoFingerSwipes = new ArrayList<>();
240 for (GestureMatcher matcher : mGestures) { in onMotionEvent()
241 if (matcher.getState() != GestureMatcher.STATE_GESTURE_CANCELED) { in onMotionEvent()
249 if (matcher.getState() == GestureMatcher.STATE_GESTURE_COMPLETED) { in onMotionEvent()
261 for (GestureMatcher matcher : mGestures) { in clear()
321 if (state == GestureMatcher.STATE_GESTURE_STARTED && !mState.isGestureDetecting()) { in onStateChanged()
329 } else if (state == GestureMatcher.STATE_GESTURE_COMPLETED) { in onStateChanged()
[all …]
DSwipe.java38 class Swipe extends GestureMatcher {
96 GestureMatcher.StateChangeListener listener) { in Swipe()
105 GestureMatcher.StateChangeListener listener) { in Swipe()
113 GestureMatcher.StateChangeListener listener) { in Swipe()
DMultiTap.java29 public class MultiTap extends GestureMatcher {
45 GestureMatcher.StateChangeListener listener) { in MultiTap()
DSecondFingerMultiTap.java33 class SecondFingerMultiTap extends GestureMatcher {
45 Context context, int taps, int gesture, GestureMatcher.StateChangeListener listener) { in SecondFingerMultiTap()
DMultiTapAndHold.java29 Context context, int taps, int gesture, GestureMatcher.StateChangeListener listener) { in MultiTapAndHold()
DMultiFingerMultiTapAndHold.java33 GestureMatcher.StateChangeListener listener) { in MultiFingerMultiTapAndHold()
DGestureMatcher.java37 public abstract class GestureMatcher { class
68 protected GestureMatcher(int gestureId, Handler handler, StateChangeListener listener) { in GestureMatcher() method in GestureMatcher
DMultiFingerMultiTap.java34 public class MultiFingerMultiTap extends GestureMatcher {
64 GestureMatcher.StateChangeListener listener) { in MultiFingerMultiTap()
DMultiFingerSwipe.java40 class MultiFingerSwipe extends GestureMatcher {
79 GestureMatcher.StateChangeListener listener) { in MultiFingerSwipe()
/frameworks/base/services/accessibility/
DAndroid.bp45 "java/**/gestures/GestureMatcher.java",
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DGesturesObserverTest.java113 private static class GestureMatcherStub extends GestureMatcher {
/frameworks/base/core/java/android/view/accessibility/flags/
Daccessibility_flags.aconfig54 description: "Creates copies of MotionEvents and GestureEvents in GestureMatcher"