Add GameManager service.
GameManager service is a service to manage game related features. This patch creates the initial service to manage the game mode and persist the data across reboot. Bug: b/174956354 Test: atest GameManagerTests Test: atest GameManagerServiceTests Test: atest GameManagerServiceSettingsTests Change-Id: Iee2ab47c79d29f48847bc6d4b3eb781a5af18ff4
This commit is contained in:
@@ -360,6 +360,8 @@ public final class SystemServer implements Dumpable {
|
||||
private static final String IP_CONNECTIVITY_METRICS_CLASS =
|
||||
"com.android.server.connectivity.IpConnectivityMetrics";
|
||||
private static final String ROLE_SERVICE_CLASS = "com.android.role.RoleService";
|
||||
private static final String GAME_MANAGER_SERVICE_CLASS =
|
||||
"com.android.server.graphics.GameManagerService$Lifecycle";
|
||||
|
||||
private static final String TETHERING_CONNECTOR_CLASS = "android.net.ITetheringConnector";
|
||||
|
||||
@@ -2514,6 +2516,10 @@ public final class SystemServer implements Dumpable {
|
||||
}
|
||||
t.traceEnd();
|
||||
|
||||
t.traceBegin("GameManagerService");
|
||||
mSystemServiceManager.startService(GAME_MANAGER_SERVICE_CLASS);
|
||||
t.traceEnd();
|
||||
|
||||
t.traceBegin("StartBootPhaseDeviceSpecificServicesReady");
|
||||
mSystemServiceManager.startBootPhase(t, SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);
|
||||
t.traceEnd();
|
||||
|
||||
Reference in New Issue
Block a user