Vehicle properties
Power & shutdown
AP_POWER_STATE_REPORT
What it is
Property to report power state of application processor
It is assumed that AP's power state is controller by separate power controller.
int32Values[0] : VehicleApPowerStateReport enum value int32Values[1] : Time in ms to wake up, if necessary. Otherwise 0.
How the ID is built
A property ID is a 32-bit value packing four fields. Reading 0x11410a01 apart:
| Field | Mask | Value | Means |
|---|---|---|---|
| Group | 0xf0000000 | 0x10000000 | SYSTEM |
| Area | 0x0f000000 | 0x01000000 | GLOBAL |
| Type | 0x00ff0000 | 0x00410000 | INT32_VEC |
| Ordinal | 0x0000ffff | 0x00000a01 | 0xa01 |
Reading it from an app
CarPropertyManager mgr = (CarPropertyManager)
car.getCarManager(Car.PROPERTY_SERVICE);
CarPropertyValue<Integer> value =
mgr.getProperty(VehiclePropertyIds.AP_POWER_STATE_REPORT, 0);This property can be read and written, though an OEM may implement it as read-only. It fires a callback whenever the value changes.

