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

Commit 6ae79169 authored by shrikar's avatar shrikar
Browse files

Added SEAT_WALK_IN_POS to hardware layer.

Bug: 262765640
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I4c27a8670abeb905d54f9e188d218139c06c67bb
parent 25014749
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ enum VehicleProperty {
  SEAT_CUSHION_SIDE_SUPPORT_MOVE = 356518816,
  SEAT_LUMBAR_VERTICAL_POS = 356518817,
  SEAT_LUMBAR_VERTICAL_MOVE = 356518818,
  SEAT_WALK_IN_POS = 356518819,
  SEAT_OCCUPANCY = 356518832,
  WINDOW_POS = 322964416,
  WINDOW_MOVE = 322964417,
+21 −0
Original line number Diff line number Diff line
@@ -1911,6 +1911,27 @@ enum VehicleProperty {
     */
    SEAT_LUMBAR_VERTICAL_MOVE =
            0x0BA2 + VehiclePropertyGroup.SYSTEM + VehicleArea.SEAT + VehiclePropertyType.INT32,
    /**
     * Represents property that indicates the current walk-in position of the seat.
     *
     * The maxInt32Value and minInt32Value in VehicleAreaConfig must be defined.
     * The minInt32Value must be 0.
     * All integers between minInt32Value and maxInt32Value must be supported.
     *
     * minInt32Value indicates the normal seat position.
     * maxInt32Value indicates the seat is in the full walk-in position.
     *
     * Values in between minInt32Value and maxInt32Value indicate a transition state between the
     * normal and walk-in positions.
     *
     * The area ID must match the seat that actually moves when the walk-in feature activates, not
     * the intended seat the passengers will sit in.
     *
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ_WRITE
     */
    SEAT_WALK_IN_POS =
            0x0BA3 + VehiclePropertyGroup.SYSTEM + VehicleArea.SEAT + VehiclePropertyType.INT32,
    /**
     * Seat Occupancy
     *
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {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_WALK_IN_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
@@ -165,6 +165,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {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_WALK_IN_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
@@ -157,6 +157,7 @@ public final class AccessForVehicleProperty {
        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_WALK_IN_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