Init WearSettingsService

Initializes the `WearSettingsService` in `SystemServer`.

This is a cherry-pick and rebase of ag/19716435 and ag/19751030.

Test: unit test
Bug: 241600584
Bug: 241509962
Fixes: 272529454
Fixes: 272529428
Change-Id: Ie11f82ca51b41ae5d10fafd5590a9d6a1e02f810
This commit is contained in:
Eric Rahm
2023-04-12 17:14:27 -07:00
parent 23a917bd46
commit b8c40749ea

View File

@@ -335,6 +335,8 @@ public final class SystemServer implements Dumpable {
"com.android.clockwork.time.WearTimeService";
private static final String WEAR_GLOBAL_ACTIONS_SERVICE_CLASS =
"com.android.clockwork.globalactions.GlobalActionsService";
private static final String WEAR_SETTINGS_SERVICE_CLASS =
"com.android.clockwork.settings.WearSettingsService";
private static final String ACCOUNT_SERVICE_CLASS =
"com.android.server.accounts.AccountManagerService$Lifecycle";
private static final String CONTENT_SERVICE_CLASS =
@@ -2594,6 +2596,10 @@ public final class SystemServer implements Dumpable {
t.traceBegin("StartWearGlobalActionsService");
mSystemServiceManager.startService(WEAR_GLOBAL_ACTIONS_SERVICE_CLASS);
t.traceEnd();
t.traceBegin("StartWearSettingsService");
mSystemServiceManager.startService(WEAR_SETTINGS_SERVICE_CLASS);
t.traceEnd();
}
if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SLICES_DISABLED)) {