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

Commit 80073ea4 authored by Yu Shan's avatar Yu Shan
Browse files

Update doc for EV_CHARGE_CURRENT_DRAW_LIMIT.

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: Ia6d9d5207785cbede27e41518b1a5abb656442a6
parent e50882a0
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -5920,8 +5920,20 @@ enum VehicleProperty {
    /**
     * Indicates the maximum current draw threshold for charging set by the user
     *
     * configArray[0] is used to specify the max current draw allowed by
     * the vehicle in Amperes.
     * configArray[0] is used to specify the max current draw allowed by the vehicle in Amperes at
     * boot time.
     *
     * If {@code HasSupportedValueInfo} for the global area ID (0) is not {@code null},
     * {@code HasSupportedValueInfo.hasMaxSupportedValue} and
     * {@code HasSupportedValueInfo.hasMinSupportedValue} must be {@code true}.
     * {@code MinMaxSupportedValueResult.maxSupportedValue} specifies the max current draw allowed
     * by the vehicle in Amperes at the current moment.
     * {@code MinMaxSupportedValueResult.minSupportedValue} must be 0.
     * At boot, configArray[0] is equal to maxSupportedValue.
     *
     * If the max current draw allowed by the vehicle may change dynamically,
     * {@code HasSupportedValueInfo.hasMaxSupportedValue} must be {@code true} and
     * {@code MinMaxSupportedValueResult.maxSupportedValue} must be implemented.
     *
     * This property is defined as VehiclePropertyAccess.READ_WRITE, but OEMs have the option to
     * implement it as VehiclePropertyAccess.READ only.