Call forceSuspend from CarPowerManagementService
Bug: 32061842
Test: Manual instrumentation
Change-Id: Ib3ad05bb6e3f74a95ece693f2f3098e02a1d1158
diff --git a/service/src/com/android/car/CarPowerManagementService.java b/service/src/com/android/car/CarPowerManagementService.java
index 16ece51..8b9d3be 100644
--- a/service/src/com/android/car/CarPowerManagementService.java
+++ b/service/src/com/android/car/CarPowerManagementService.java
@@ -417,7 +417,10 @@
synchronized (this) {
mLastSleepEntryTime = SystemClock.elapsedRealtime();
}
- mSystemInterface.enterDeepSleep(wakeupTimeSec);
+ if (mSystemInterface.enterDeepSleep(wakeupTimeSec) == false) {
+ // System did not suspend. Need to shutdown
+ // TODO: Shutdown gracefully
+ }
mHal.sendSleepExit();
for (PowerServiceEventListener listener : mListeners) {
listener.onSleepExit();