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

Commit 042f410d authored by shrikar's avatar shrikar
Browse files

Added VEHICLE_HORN_ENGAGED to HAL

Bug: 374760333
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: Ic5b610c9339c6968f2c3e8429f3adfe52ab9b68f
parent 444dca1f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -239,6 +239,11 @@
                "data_enum": "ImpactSensorLocation",
                "description": "Impact detected.\nBit flag property to relay information on whether an impact has occurred on a particular side of the vehicle as described through the ImpactSensorLocation enum. As a bit flag property, this property can be set to multiple ORed together values of the enum when necessary.\nFor the global area ID (0), {@code getSupportedValuesList} must return a {@code SupportedValuesListResult} that contains supported values unless all bit flags of ImpactSensorLocation are supported.\nFor backward compatibility, if {@code SupportedValuesListResult} is defined, {@code VehicleAreaConfig#supportedEnumValues} must be set to the same values."
            },
            {
                "name": "Vehicle horn engaged.",
                "value": 287310656,
                "description": "Vehicle horn engaged.\nThis property must communicate if the vehicle's horn is currently engaged or not. If true, the horn is engaged. If false, the horn is disengaged."
            },
            {
                "name": "Currently selected gear",
                "value": 289408000,
+1 −0
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyAccess::READ},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::IMPACT_DETECTED, VehiclePropertyAccess::READ},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::GEAR_SELECTION, VehiclePropertyAccess::READ},
        {VehicleProperty::CURRENT_GEAR, VehiclePropertyAccess::READ},
        {VehicleProperty::PARKING_BRAKE_ON, VehiclePropertyAccess::READ},
+1 −0
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyChangeMode::STATIC},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::IMPACT_DETECTED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::GEAR_SELECTION, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::CURRENT_GEAR, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::PARKING_BRAKE_ON, VehiclePropertyChangeMode::ON_CHANGE},
+1 −0
Original line number Diff line number Diff line
@@ -75,6 +75,7 @@ std::unordered_map<VehicleProperty, int32_t> VersionForVehicleProperty = {
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, 2},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, 2},
        {VehicleProperty::IMPACT_DETECTED, 3},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, 4},
        {VehicleProperty::GEAR_SELECTION, 2},
        {VehicleProperty::CURRENT_GEAR, 2},
        {VehicleProperty::PARKING_BRAKE_ON, 2},
+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.IMPACT_DETECTED, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.VEHICLE_HORN_ENGAGED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.GEAR_SELECTION, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.CURRENT_GEAR, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.PARKING_BRAKE_ON, VehiclePropertyAccess.READ),
Loading