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

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

Added SEAT_CUSHION_SIDE_SUPPORT_MOVE to hardware layer.

Bug: 257268273
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I18d418556ed763fc12e875b74044ca9e292dcb67
parent 21e18815
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -157,6 +157,7 @@ enum VehicleProperty {
  SEAT_HEADREST_FORE_AFT_MOVE = 356518810,
  SEAT_EASY_ACCESS_ENABLED = 354421661,
  SEAT_CUSHION_SIDE_SUPPORT_POS = 356518815,
  SEAT_CUSHION_SIDE_SUPPORT_MOVE = 356518816,
  SEAT_OCCUPANCY = 356518832,
  WINDOW_POS = 322964416,
  WINDOW_MOVE = 322964417,
+19 −0
Original line number Diff line number Diff line
@@ -1748,6 +1748,25 @@ enum VehicleProperty {
     */
    SEAT_CUSHION_SIDE_SUPPORT_POS =
            0x0B9F + VehiclePropertyGroup.SYSTEM + VehicleArea.SEAT + VehiclePropertyType.INT32,
    /**
     * Represents property for movement direction and speed of seat cushion side 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 represents the maximum movement speed of
     * the seat cushion side support in the growing wider direction (i.e. less support).
     * minInt32Value in default area's VehicleAreaConfig represents the maximum movement speed of
     * the seat cushion side support in the growing thinner direction (i.e. more support).
     *
     * 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.
     *
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ_WRITE
     */
    SEAT_CUSHION_SIDE_SUPPORT_MOVE =
            0x0BA0 + VehiclePropertyGroup.SYSTEM + VehicleArea.SEAT + VehiclePropertyType.INT32,
    /**
     * Seat Occupancy
     *
+1 −0
Original line number Diff line number Diff line
@@ -157,6 +157,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::SEAT_HEADREST_FORE_AFT_MOVE, VehiclePropertyAccess::READ_WRITE},
        {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_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
@@ -157,6 +157,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::SEAT_HEADREST_FORE_AFT_MOVE, VehiclePropertyChangeMode::ON_CHANGE},
        {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_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
@@ -149,6 +149,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.SEAT_HEADREST_FORE_AFT_MOVE, VehiclePropertyAccess.READ_WRITE),
        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_OCCUPANCY, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.WINDOW_POS, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.WINDOW_MOVE, VehiclePropertyAccess.READ_WRITE),
Loading