Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e396af1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "keyGesture: set up WearInputService" into main

parents 3e4e1693 8dd347ba
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -17,3 +17,10 @@ flag {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    name: "wear_key_gesture_handling"
    namespace: "wear_frameworks"
    description: "Migrate Wear key gestures handling logic to Wear code base."
    bug: "368159846"
}
+11 −0
Original line number Diff line number Diff line
@@ -377,6 +377,8 @@ public final class SystemServer implements Dumpable {
            "com.android.clockwork.settings.WearSettingsService";
    private static final String WEAR_GESTURE_SERVICE_CLASS =
            "com.android.clockwork.gesture.WearGestureService";
    private static final String WEAR_INPUT_SERVICE_CLASS =
            "com.android.clockwork.input.WearInputService";
    private static final String WRIST_ORIENTATION_SERVICE_CLASS =
            "com.android.clockwork.wristorientation.WristOrientationService";
    private static final String IOT_SERVICE_CLASS =
@@ -2883,6 +2885,15 @@ public final class SystemServer implements Dumpable {
                mSystemServiceManager.startService(WEAR_GESTURE_SERVICE_CLASS);
                t.traceEnd();
            }

            if (com.android.server.policy.Flags.wearKeyGestureHandling()) {
                t.traceBegin("StartWearKeyGestureService");
                try {
                    mSystemServiceManager.startService(WEAR_INPUT_SERVICE_CLASS);
                } finally {
                    t.traceEnd();
                }
            }
        }

        if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SLICES_DISABLED)) {