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

Commit e3331b7f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix AP_POWER_STATE property in Vehicle HAL"

parents 6387576b 97905a1e
Loading
Loading
Loading
Loading
+36 −15
Original line number Diff line number Diff line
@@ -994,9 +994,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