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

Commit 4028d290 authored by Yu Shan's avatar Yu Shan
Browse files

Update doc for EV_BATTERY_DISPLAY_UNITS.

Part of a large doc update. Add doc for new supported value range
APIs. For be backward compatible with older VHAL clients still
using deprecated fields, we still require the old fields to be
populated.

Test: None
Bug: 383184445
Flag: EXEMPT no code change
Change-Id: I313677d75bbe209391d70f863389b6c7a543790c
parent 4209ffd8
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1946,6 +1946,14 @@ enum VehicleProperty {
     *              configArray[1] = AMPERE_HOURS
     *              configArray[2] = KILOWATT_HOUR
     *
     * If {@code HasSupportedValueInfo} is not {@code null} for the global area ID (0):
     * {@code VehicleAreaConfig.HasSupportedValueInfo.hasSupportedValuesList} for the global area ID
     * (0) must be {@code true}.
     * {@code getSupportedValuesLists} for [EV_BATTERY_DISPLAY_UNITS, areaId=0] must return a
     * {@code SupportedValuesListResult} that contains non-null {@code supportedValuesList},
     * e.g. [WATT_HOUR, AMPERE_HOURS, KILOWATT_HOUR].
     * At boot, the values in the config array are equal to the supported values list.
     *
     * If updating EV_BATTERY_DISPLAY_UNITS affects the values of other *_DISPLAY_UNITS properties,
     * then their values must be updated and communicated to the AAOS framework as well.
     *
@@ -1956,6 +1964,8 @@ enum VehicleProperty {
     * @access VehiclePropertyAccess.READ_WRITE
     * @access VehiclePropertyAccess.READ
     * @data_enum VehicleUnit
     * @require_supported_values_list
     * @legacy_supported_values_in_config
     * @version 2
     */
    EV_BATTERY_DISPLAY_UNITS = 0x0603 + 0x10000000 + 0x01000000