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

Commit d067f9e5 authored by Shrikar Amirisetty's avatar Shrikar Amirisetty Committed by Android (Google) Code Review
Browse files

Merge "Add relationship between EV_BRAKE_REGENERATION_LEVEL and _STATE in HAL" into main

parents 6b0ab3ae 7a621b02
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@
            {
                "name": "EV_BRAKE_REGENERATION_LEVEL",
                "value": 289408012,
                "description": "Regenerative braking level of a electronic vehicle\nThe maxInt32Value and minInt32Value in VehicleAreaConfig must be defined. All values between minInt32Value and maxInt32Value must be supported. The minInt32Value must be 0.\nThe maxInt32Value indicates the maximum amount of energy regenerated from braking. The minInt32Value indicates no regenerative braking.\nThis property is defined as VehiclePropertyAccess.READ_WRITE, but OEMs have the option to implement it as VehiclePropertyAccess.READ only."
                "description": "Regenerative braking level of a electronic vehicle\nThe maxInt32Value and minInt32Value in VehicleAreaConfig must be defined. All values between minInt32Value and maxInt32Value must be supported. The minInt32Value must be 0.\nThe maxInt32Value indicates the setting for the maximum amount of energy regenerated from braking. The minInt32Value indicates the setting for no regenerative braking.\nThis property is a more granular form of EV_REGENERATIVE_BRAKING_STATE. It allows the user to set a more specific level of regenerative braking if the states in EvRegenerativeBrakingState are not granular enough for the OEM.\nThis property is defined as VehiclePropertyAccess.READ_WRITE, but OEMs have the option to implement it as VehiclePropertyAccess.READ only."
            },
            {
                "name": "Warning for fuel low level.",
@@ -1296,7 +1296,7 @@
                    "EvRegenerativeBrakingState"
                ],
                "data_enum": "EvRegenerativeBrakingState",
                "description": "Regenerative braking or one-pedal drive state of the car\nReturns the current state associated with the regenerative braking setting in the car"
                "description": "Regenerative braking or one-pedal drive setting of the car\nReturns the current setting associated with the regenerative braking setting in the car\nIf the OEM requires more setting than those provided in EvRegenerativeBrakingState, the EV_BRAKE_REGENERATION_LEVEL property can be used instead, which provides a more granular way of providing the same information."
            },
            {
                "name": "TRAILER_PRESENT",
+12 −5
Original line number Diff line number Diff line
@@ -668,8 +668,12 @@ enum VehicleProperty {
     * The maxInt32Value and minInt32Value in VehicleAreaConfig must be defined. All values between
     * minInt32Value and maxInt32Value must be supported. The minInt32Value must be 0.
     *
     * The maxInt32Value indicates the maximum amount of energy regenerated from braking. The
     * minInt32Value indicates no regenerative braking.
     * The maxInt32Value indicates the setting for the maximum amount of energy regenerated from
     * braking. The minInt32Value indicates the setting for no regenerative braking.
     *
     * This property is a more granular form of EV_REGENERATIVE_BRAKING_STATE. It allows the user to
     * set a more specific level of regenerative braking if the states in EvRegenerativeBrakingState
     * are not granular enough for the OEM.
     *
     * This property is defined as VehiclePropertyAccess.READ_WRITE, but OEMs have the option to
     * implement it as VehiclePropertyAccess.READ only.
@@ -4957,10 +4961,13 @@ enum VehicleProperty {
            + 0x00400000, // VehiclePropertyGroup:SYSTEM,VehicleArea:GLOBAL,VehiclePropertyType:INT32

    /**
     * Regenerative braking or one-pedal drive state of the car
     * Regenerative braking or one-pedal drive setting of the car
     *
     * Returns the current setting associated with the regenerative braking setting in the car
     *
     * Returns the current state associated with the regenerative braking
     * setting in the car
     * If the OEM requires more setting than those provided in EvRegenerativeBrakingState, the
     * EV_BRAKE_REGENERATION_LEVEL property can be used instead, which provides a more granular
     * way of providing the same information.
     *
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ