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

Commit d911228f authored by Yu Shan's avatar Yu Shan
Browse files

Update doc for DOOR_POS.

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: Id1597b368d3ce48d8022644895dd4694ebcfad62
parent 4028d290
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2432,11 +2432,21 @@ enum VehicleProperty {
     * All integers between minInt32Value and maxInt32Value must be supported.
     *
     * The minInt32Value indicates the door is closed. The minInt32Value must be 0.
     *
     * The maxInt32Value indicates the door is fully open.
     *
     * Values in between minInt32Value and maxInt32Value indicate a transition state between the
     * closed and fully open positions.
     *
     * If {@code HasSupportedValueInfo} for a specific area ID is not {@code null}:
     * {@code HasSupportedValueInfo.hasMinSupportedValue} and
     * {@code HasSupportedValueInfo.hasMaxSupportedValue} must be {@code true} for the area ID.
     * {@code MinMaxSupportedValueResult.minSupportedValue} has the same meaning as minInt32Value.
     * {@code MinMaxSupportedValueResult.maxSupportedValue} has the same meaning as maxInt32Value.
     * All integers between minSupportedValue and maxSupportedValue must be supported.
     * At boot, minInt32Value is equal to minSupportedValue, maxInt32Value is equal to
     * maxSupportedValue.
     *
     * This property is not in any particular unit but in a specified range of relative positions.
     *
     * Some vehicles (minivans) can open the door electronically. Hence, the
@@ -2448,6 +2458,7 @@ enum VehicleProperty {
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ_WRITE
     * @access VehiclePropertyAccess.READ
     * @require_min_max_supported_value
     * @version 2
     */
    DOOR_POS = 0x0B00 + 0x10000000 + 0x06000000