Implement setAlwaysOn to IVibratorManagerService

This implementation supports synced CombinedVibrationEffect instances
with prebaked effects only.

This implementation adds some vibration checks from VibratorService to
VibratorManager, and wires the implementation of VibratorController
native service to IVibratorManager.

Bug: 167946816
Bug: 131311651
Test: atest FrameworksServiceTests:VibratorManagerServiceTest
Change-Id: I8da10c7903e91bba30b11fe46515121858fb5211
This commit is contained in:
Lais Andrade
2020-11-16 20:02:19 +00:00
parent c9991d0a93
commit 9e755fb3fe
12 changed files with 682 additions and 131 deletions

View File

@@ -1252,6 +1252,10 @@ public final class SystemServer implements Dumpable {
mSystemServiceManager.startService(DropBoxManagerService.class);
t.traceEnd();
t.traceBegin("StartVibratorManagerService");
mSystemServiceManager.startService(VibratorManagerService.Lifecycle.class);
t.traceEnd();
t.traceBegin("StartVibratorService");
vibrator = new VibratorService(context);
ServiceManager.addService("vibrator", vibrator);