Call forceSuspend from CarPowerManagementService
Bug: 32061842
Test: Manual instrumentation
Change-Id: Ib3ad05bb6e3f74a95ece693f2f3098e02a1d1158
diff --git a/service/src/com/android/car/ICarImpl.java b/service/src/com/android/car/ICarImpl.java
index 34a6c60..0b7019f 100644
--- a/service/src/com/android/car/ICarImpl.java
+++ b/service/src/com/android/car/ICarImpl.java
@@ -78,6 +78,7 @@
private final PerUserCarServiceHelper mPerUserCarServiceHelper;
private final CarDiagnosticService mCarDiagnosticService;
private final CarStorageMonitoringService mCarStorageMonitoringService;
+ private final SystemInterface mSystemInterface;
private VmsSubscriberService mVmsSubscriberService;
private VmsPublisherService mVmsPublisherService;
@@ -98,6 +99,7 @@
public ICarImpl(Context serviceContext, IVehicle vehicle, SystemInterface systemInterface,
CanBusErrorNotifier errorNotifier) {
mContext = serviceContext;
+ mSystemInterface = systemInterface;
mHal = new VehicleHal(vehicle);
mSystemActivityMonitoringService = new SystemActivityMonitoringService(serviceContext);
mCarPowerManagementService = new CarPowerManagementService(
@@ -203,6 +205,7 @@
}
synchronized (this) {
mICarServiceHelper = ICarServiceHelper.Stub.asInterface(helper);
+ mSystemInterface.setCarServiceHelper(mICarServiceHelper);
}
}