summaryrefslogtreecommitdiffstats
path: root/automotive
diff options
context:
space:
mode:
authorJim Kaye <jameskaye@google.com>2019-10-11 13:37:37 -0700
committerJim Kaye <jameskaye@google.com>2019-10-16 21:48:46 +0000
commitf210a8ca97c3d513decf693b4305f42d33947d9d (patch)
tree4ac854fa03b0422d6c5c4a34f272fcffcc136ad5 /automotive
parent82b655e6c2f5dd80f42f9bd089b673f79f6fb80c (diff)
downloadplatform_hardware_interfaces-f210a8ca97c3d513decf693b4305f42d33947d9d.tar.gz
platform_hardware_interfaces-f210a8ca97c3d513decf693b4305f42d33947d9d.tar.bz2
platform_hardware_interfaces-f210a8ca97c3d513decf693b4305f42d33947d9d.zip
[AAE Power Mgt] Allow Suspend to RAM without triggering Garage Mode
The Vehicle HAL can tell us to shut down immediately, but it cannot tell us to suspend immediately. Add that capability. This capability will be needed when the VHAL initiates a Silent Boot and then asks for suspension. In this case, we do not want to postpone the suspension by entering Garage Mode. Bug: 134521909 Test: Added CarPowerManagementTest.testSleepImmediateEntry() Test: Added CarPowerManagementServiceTest.testSleepImmediately() Change-Id: I8190d16cb6faa15672ec3d61f126f6d283d1189e
Diffstat (limited to 'automotive')
-rw-r--r--automotive/vehicle/2.0/types.hal6
1 files changed, 5 insertions, 1 deletions
diff --git a/automotive/vehicle/2.0/types.hal b/automotive/vehicle/2.0/types.hal
index 1355d9feab..bc0b4d3d9e 100644
--- a/automotive/vehicle/2.0/types.hal
+++ b/automotive/vehicle/2.0/types.hal
@@ -2569,6 +2569,11 @@ enum VehicleApPowerStateShutdownParam : int32_t {
/** AP can only shutdown with postponing allowed. */
SHUTDOWN_ONLY = 3,
+
+ /**
+ * AP may enter deep sleep, but must either sleep or shut down immediately.
+ * Postponing is not allowed. */
+ SLEEP_IMMEDIATELY = 4,
};
enum VehicleApPowerStateReport : int32_t {
@@ -3581,4 +3586,3 @@ enum VmsAvailabilityStateIntegerValuesIndex : VmsBaseMessageIntegerValuesIndex {
enum VmsPublisherInformationIntegerValuesIndex : VmsBaseMessageIntegerValuesIndex {
PUBLISHER_ID = 1,
};
-