[DO NOT MERGE ] Stop setting flag to enable two-finger passthrough swipes.
Bug: 162521649 Test: atest GestureManifoldTest TouchExplorerTest AccessibilityGestureDetectorTest FrameworksServicesTests:TouchExplorerTest Change-Id: I7718ac2ae86d46aa05d45a1ac3abc556e000e39d
This commit is contained in:
@@ -636,7 +636,6 @@ public class AccessibilityServiceInfo implements Parcelable {
|
|||||||
0);
|
0);
|
||||||
flags = asAttributes.getInt(
|
flags = asAttributes.getInt(
|
||||||
com.android.internal.R.styleable.AccessibilityService_accessibilityFlags, 0);
|
com.android.internal.R.styleable.AccessibilityService_accessibilityFlags, 0);
|
||||||
flags |= FLAG_REQUEST_2_FINGER_PASSTHROUGH;
|
|
||||||
mSettingsActivityName = asAttributes.getString(
|
mSettingsActivityName = asAttributes.getString(
|
||||||
com.android.internal.R.styleable.AccessibilityService_settingsActivity);
|
com.android.internal.R.styleable.AccessibilityService_settingsActivity);
|
||||||
if (asAttributes.getBoolean(com.android.internal.R.styleable
|
if (asAttributes.getBoolean(com.android.internal.R.styleable
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ public class TouchExplorerTest {
|
|||||||
goFromStateClearTo(STATE_DRAGGING_2FINGERS);
|
goFromStateClearTo(STATE_DRAGGING_2FINGERS);
|
||||||
|
|
||||||
assertState(STATE_DRAGGING);
|
assertState(STATE_DRAGGING);
|
||||||
assertCapturedEvents(MotionEvent.ACTION_DOWN);
|
assertCapturedEvents(MotionEvent.ACTION_DOWN, MotionEvent.ACTION_MOVE);
|
||||||
assertCapturedEventsNoHistory();
|
assertCapturedEventsNoHistory();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,6 +174,7 @@ public class TouchExplorerTest {
|
|||||||
assertState(STATE_DELEGATING);
|
assertState(STATE_DELEGATING);
|
||||||
assertCapturedEvents(
|
assertCapturedEvents(
|
||||||
/* goto dragging state */ MotionEvent.ACTION_DOWN,
|
/* goto dragging state */ MotionEvent.ACTION_DOWN,
|
||||||
|
MotionEvent.ACTION_MOVE,
|
||||||
/* leave dragging state */ MotionEvent.ACTION_UP,
|
/* leave dragging state */ MotionEvent.ACTION_UP,
|
||||||
MotionEvent.ACTION_DOWN,
|
MotionEvent.ACTION_DOWN,
|
||||||
MotionEvent.ACTION_POINTER_DOWN);
|
MotionEvent.ACTION_POINTER_DOWN);
|
||||||
|
|||||||
Reference in New Issue
Block a user