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

Commit 2a081c52 authored by shrikar's avatar shrikar Committed by Shrikar Amirisetty
Browse files

Added SEAT_LUMBAR_VERTICAL_MOVE to hardware layer

Bug: 257268500
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I437270c9bbc0ba37eecde1845a1f3a69b8b4007a
parent eff71b2f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@ enum VehicleProperty {
  SEAT_CUSHION_SIDE_SUPPORT_POS = 356518815,
  SEAT_CUSHION_SIDE_SUPPORT_MOVE = 356518816,
  SEAT_LUMBAR_VERTICAL_POS = 356518817,
  SEAT_LUMBAR_VERTICAL_MOVE = 356518818,
  SEAT_OCCUPANCY = 356518832,
  WINDOW_POS = 322964416,
  WINDOW_MOVE = 322964417,
+21 −0
Original line number Diff line number Diff line
@@ -1783,6 +1783,27 @@ enum VehicleProperty {
     */
    SEAT_LUMBAR_VERTICAL_POS =
            0x0BA1 + VehiclePropertyGroup.SYSTEM + VehicleArea.SEAT + VehiclePropertyType.INT32,
    /**
     * Represents property for vertical movement direction and speed of seat lumbar support.
     *
     * The maxInt32Value and minInt32Value in VehicleAreaConfig must be defined. All integers
     * between minInt32Value and maxInt32Value must be supported.
     *
     * maxInt32Value in default area's VehicleAreaConfig indicates the lumbar support is moving at
     * the fastest upward speed.
     * minInt32Value in default area's VehicleAreaConfig indicates the lumbar support is moving at
     * the fastest downward speed.
     *
     * Larger absolute values, either positive or negative, indicate a faster movement speed. Once
     * the seat cushion side support reaches the positional limit, the value resets to 0.
     *
     * This value is not in any particular unit but in a specified range of steps.
     *
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ_WRITE
     */
    SEAT_LUMBAR_VERTICAL_MOVE =
            0x0BA2 + VehiclePropertyGroup.SYSTEM + VehicleArea.SEAT + VehiclePropertyType.INT32,
    /**
     * Seat Occupancy
     *
+1 −0
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::SEAT_CUSHION_SIDE_SUPPORT_POS, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::SEAT_CUSHION_SIDE_SUPPORT_MOVE, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::SEAT_LUMBAR_VERTICAL_POS, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::SEAT_LUMBAR_VERTICAL_MOVE, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::SEAT_OCCUPANCY, VehiclePropertyAccess::READ},
        {VehicleProperty::WINDOW_POS, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::WINDOW_MOVE, VehiclePropertyAccess::READ_WRITE},
+1 −0
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::SEAT_CUSHION_SIDE_SUPPORT_POS, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::SEAT_CUSHION_SIDE_SUPPORT_MOVE, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::SEAT_LUMBAR_VERTICAL_POS, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::SEAT_LUMBAR_VERTICAL_MOVE, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::SEAT_OCCUPANCY, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::WINDOW_POS, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::WINDOW_MOVE, VehiclePropertyChangeMode::ON_CHANGE},
+1 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.SEAT_CUSHION_SIDE_SUPPORT_POS, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.SEAT_CUSHION_SIDE_SUPPORT_MOVE, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.SEAT_LUMBAR_VERTICAL_POS, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.SEAT_LUMBAR_VERTICAL_MOVE, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.SEAT_OCCUPANCY, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.WINDOW_POS, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.WINDOW_MOVE, VehiclePropertyAccess.READ_WRITE),
Loading