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

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

Added SEAT_LUMBAR_VERTICAL_POS to hardware layer.

Bug: 257268339
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I698ff091e20a9a2c141687b0180d470c6652b12c
parent 1f0ce0d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ enum VehicleProperty {
  SEAT_EASY_ACCESS_ENABLED = 354421661,
  SEAT_CUSHION_SIDE_SUPPORT_POS = 356518815,
  SEAT_CUSHION_SIDE_SUPPORT_MOVE = 356518816,
  SEAT_LUMBAR_VERTICAL_POS = 356518817,
  SEAT_OCCUPANCY = 356518832,
  WINDOW_POS = 322964416,
  WINDOW_MOVE = 322964417,
+16 −0
Original line number Diff line number Diff line
@@ -1767,6 +1767,22 @@ enum VehicleProperty {
     */
    SEAT_CUSHION_SIDE_SUPPORT_MOVE =
            0x0BA0 + VehiclePropertyGroup.SYSTEM + VehicleArea.SEAT + VehiclePropertyType.INT32,
    /**
     * Represents property for seat’s lumbar support vertical position.
     *
     * The maxInt32Value and minInt32Value in VehicleAreaConfig must be defined. All integers
     * between minInt32Value and maxInt32Value are supported.
     *
     * maxInt32Value indicates the highest position.
     * minInt32Value indicates the lowest position.
     *
     * 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_POS =
            0x0BA1 + VehiclePropertyGroup.SYSTEM + VehicleArea.SEAT + VehiclePropertyType.INT32,
    /**
     * Seat Occupancy
     *
+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::SEAT_EASY_ACCESS_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {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_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
@@ -158,6 +158,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::SEAT_EASY_ACCESS_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {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_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
@@ -150,6 +150,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.SEAT_EASY_ACCESS_ENABLED, VehiclePropertyAccess.READ_WRITE),
        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_OCCUPANCY, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.WINDOW_POS, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.WINDOW_MOVE, VehiclePropertyAccess.READ_WRITE),
Loading