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

Commit 7a46cef0 authored by Aaqib Ismail's avatar Aaqib Ismail
Browse files

Add HAL changes for LANE_DEPARTURE_WARNING_ENABLED

Bug: 261743848
Test: atest VtsHalAutomotiveVehicle_TargetTest
      atest CtsCarTestCases:CarPropertyManagerTest
      atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: Ic9ea2df2a4b729619307f6aa12667d46ba4baa19
parent 3f7177a9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -234,5 +234,6 @@ enum VehicleProperty {
  AUTOMATIC_EMERGENCY_BRAKING_ENABLED = 287313920,
  FORWARD_COLLISION_WARNING_ENABLED = 287313922,
  BLIND_SPOT_WARNING_ENABLED = 287313924,
  LANE_DEPARTURE_WARNING_ENABLED = 287313926,
  LANE_CENTERING_ASSIST_ENABLED = 287313930,
}
+16 −0
Original line number Diff line number Diff line
@@ -3347,6 +3347,22 @@ enum VehicleProperty {
    BLIND_SPOT_WARNING_ENABLED =
            0x1004 + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,

    /**
     * Enable or disable lane departure warning (LDW).
     *
     * Set true to enable LDW and false to disable LDW. When LDW is enabled, the ADAS system in the
     * vehicle should be turned on and monitoring if the vehicle is approaching or crossing lane
     * lines, in which case a warning will be given.
     *
     * 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
     */
    LANE_DEPARTURE_WARNING_ENABLED =
            0x1006 + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,

    /**
     * Enable or disable lane centering assist (LCA).
     *
+1 −0
Original line number Diff line number Diff line
@@ -234,6 +234,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {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_DEPARTURE_WARNING_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyAccess::READ_WRITE},
};

+1 −0
Original line number Diff line number Diff line
@@ -234,6 +234,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {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_DEPARTURE_WARNING_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
};

+1 −0
Original line number Diff line number Diff line
@@ -226,6 +226,7 @@ public final class AccessForVehicleProperty {
        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_DEPARTURE_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyAccess.READ_WRITE)
    );

Loading