Merge "Introduce SystemVibratorManager" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-11 13:12:18 +00:00
committed by Android (Google) Code Review
24 changed files with 1105 additions and 2309 deletions

View File

@@ -1291,7 +1291,6 @@ public final class SystemServer implements Dumpable {
t.traceBegin("startOtherServices");
final Context context = mSystemContext;
VibratorService vibrator = null;
DynamicSystemService dynamicSystem = null;
IStorageManager storageManager = null;
NetworkManagementService networkManagement = null;
@@ -1417,11 +1416,6 @@ public final class SystemServer implements Dumpable {
mSystemServiceManager.startService(VibratorManagerService.Lifecycle.class);
t.traceEnd();
t.traceBegin("StartVibratorService");
vibrator = new VibratorService(context);
ServiceManager.addService("vibrator", vibrator);
t.traceEnd();
t.traceBegin("StartDynamicSystemService");
dynamicSystem = new DynamicSystemService(context);
ServiceManager.addService("dynamic_system", dynamicSystem);
@@ -2490,14 +2484,6 @@ public final class SystemServer implements Dumpable {
// It is now time to start up the app processes...
t.traceBegin("MakeVibratorServiceReady");
try {
vibrator.systemReady();
} catch (Throwable e) {
reportWtf("making Vibrator Service ready", e);
}
t.traceEnd();
t.traceBegin("MakeLockSettingsServiceReady");
if (lockSettings != null) {
try {