Loading services/core/java/com/android/server/policy/window_policy_flags.aconfig +8 −1 Original line number Diff line number Diff line Loading @@ -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" } services/java/com/android/server/SystemServer.java +11 −0 Original line number Diff line number Diff line Loading @@ -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 = Loading Loading @@ -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)) { Loading Loading
services/core/java/com/android/server/policy/window_policy_flags.aconfig +8 −1 Original line number Diff line number Diff line Loading @@ -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" }
services/java/com/android/server/SystemServer.java +11 −0 Original line number Diff line number Diff line Loading @@ -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 = Loading Loading @@ -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)) { Loading