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

Commit 3f7177a9 authored by Aaqib Ismail's avatar Aaqib Ismail
Browse files

Add HAL changes for BLIND_SPOT_WARNING_ENABLED

Bug: 261743498
Test: atest VtsHalAutomotiveVehicle_TargetTest
      atest CtsCarTestCases:CarPropertyManagerTest
      atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I311d832c3926a764d2d817977b275e8b85c47987
parent a251367e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -233,5 +233,6 @@ enum VehicleProperty {
  SHUTDOWN_REQUEST = 289410889,
  AUTOMATIC_EMERGENCY_BRAKING_ENABLED = 287313920,
  FORWARD_COLLISION_WARNING_ENABLED = 287313922,
  BLIND_SPOT_WARNING_ENABLED = 287313924,
  LANE_CENTERING_ASSIST_ENABLED = 287313930,
}
+15 −0
Original line number Diff line number Diff line
@@ -3332,6 +3332,21 @@ enum VehicleProperty {
    FORWARD_COLLISION_WARNING_ENABLED =
            0x1002 + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,

    /**
     * Enable and disable blind spot warning (BSW).
     *
     * Set true to enable BSW and false to disable BSW. When BSW is enabled, the ADAS system in the
     * vehicle should be turned on and monitoring for objects in the vehicle’s blind spots.
     *
     * This property is defined as read_write, but OEMs have the option to implement it as read
     * only.
     *
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ_WRITE
     */
    BLIND_SPOT_WARNING_ENABLED =
            0x1004 + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,

    /**
     * Enable or disable lane centering assist (LCA).
     *
+1 −0
Original line number Diff line number Diff line
@@ -233,6 +233,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::SHUTDOWN_REQUEST, VehiclePropertyAccess::WRITE},
        {VehicleProperty::AUTOMATIC_EMERGENCY_BRAKING_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::FORWARD_COLLISION_WARNING_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::BLIND_SPOT_WARNING_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyAccess::READ_WRITE},
};

+1 −0
Original line number Diff line number Diff line
@@ -233,6 +233,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::SHUTDOWN_REQUEST, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::AUTOMATIC_EMERGENCY_BRAKING_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::FORWARD_COLLISION_WARNING_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::BLIND_SPOT_WARNING_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
};

+1 −0
Original line number Diff line number Diff line
@@ -225,6 +225,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.SHUTDOWN_REQUEST, VehiclePropertyAccess.WRITE),
        Map.entry(VehicleProperty.AUTOMATIC_EMERGENCY_BRAKING_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.FORWARD_COLLISION_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.BLIND_SPOT_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyAccess.READ_WRITE)
    );

Loading