Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97905a1e authored by Pavel Maltsev's avatar Pavel Maltsev
Browse files

Fix AP_POWER_STATE property in Vehicle HAL

Test: mm -j32, manual

Change-Id: I50e7ff68054c42a3f684df4858cf8fa6506ed6c3
Fix: b/34722118
parent f0e53e45
Loading
Loading
Loading
Loading
+36 −15
Original line number Diff line number Diff line
@@ -993,9 +993,30 @@ enum VehicleProperty: int32_t {
        | VehicleArea:GLOBAL),

    /*
     * Index in int32Values for AP_POWER_STATE property.
     * Property to control power state of application processor
     *
     * It is assumed that AP's power state is controller by separate power
     * controller.
     *
     * For configuration information, VehiclePropConfig.configFlags can
     * have bit flag combining values in VehicleApPowerStateConfigFlag.
     *
     * Value format for IVehicle#get / IVehicle#subscribe:
     *   int32Values[0] : vehicle_ap_power_state_type
     *   int32Values[1] : additional parameter relevant for each state,
     *                    0 if not used.
     * Value format for IVehicle#set:
     *   int32Values[0] : vehicle_ap_power_state_set_type
     *   int32Values[1] : additional parameter relevant for each request. should be 0 if not used.
     *
     * @change_mode VEHICLE_PROP_CHANGE_MODE_ON_CHANGE
     * @access VEHICLE_PROP_ACCESS_READ_WRITE
     */
    AP_POWER_STATE = (0x00000A00),
    AP_POWER_STATE = (
        0x0A00
        | VehiclePropertyGroup:SYSTEM
        | VehiclePropertyType:INT32_VEC
        | VehicleArea:GLOBAL),

    /*
     * Property to represent brightness of the display. Some cars have single