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

Commit 5d829ef2 authored by shrikar's avatar shrikar
Browse files

Added ACCELERATOR_PEDAL_COMPRESSION_PERCENTAGE to HAL

Bug: 374760335
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I28c5cb52c2c0d304992282df40b3dd71196f72a7
parent 8acbbe8d
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -225,6 +225,11 @@
                "value": 392168202,
                "value": 392168202,
                "description": "Critically low tire pressure\nThis property indicates the critically low pressure threshold for each tire. It indicates when it is time for tires to be replaced or fixed. The value must be less than or equal to minFloatValue in TIRE_PRESSURE. Minimum and maximum property values (that is, minFloatValue, maxFloatValue) are not applicable to this property."
                "description": "Critically low tire pressure\nThis property indicates the critically low pressure threshold for each tire. It indicates when it is time for tires to be replaced or fixed. The value must be less than or equal to minFloatValue in TIRE_PRESSURE. Minimum and maximum property values (that is, minFloatValue, maxFloatValue) are not applicable to this property."
            },
            },
            {
                "name": "ACCELERATOR_PEDAL_COMPRESSION_PERCENTAGE",
                "value": 291504911,
                "description": "Accelerator pedal compression percentage.\nThis property must communicate the percentage that the physical accelerator pedal in the vehicle is compressed. This property must return a float value from 0 to 100.\n0 indicates the pedal is not compressed. 100 indicates the pedal is maximally compressed."
            },
            {
            {
                "name": "ENGINE_IDLE_AUTO_STOP_ENABLED",
                "name": "ENGINE_IDLE_AUTO_STOP_ENABLED",
                "value": 287310624,
                "value": 287310624,
+1 −0
Original line number Original line Diff line number Diff line
@@ -74,6 +74,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::EV_BATTERY_AVERAGE_TEMPERATURE, VehiclePropertyAccess::READ},
        {VehicleProperty::EV_BATTERY_AVERAGE_TEMPERATURE, VehiclePropertyAccess::READ},
        {VehicleProperty::TIRE_PRESSURE, VehiclePropertyAccess::READ},
        {VehicleProperty::TIRE_PRESSURE, VehiclePropertyAccess::READ},
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyAccess::READ},
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyAccess::READ},
        {VehicleProperty::ACCELERATOR_PEDAL_COMPRESSION_PERCENTAGE, VehiclePropertyAccess::READ},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::IMPACT_DETECTED, VehiclePropertyAccess::READ},
        {VehicleProperty::IMPACT_DETECTED, VehiclePropertyAccess::READ},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, VehiclePropertyAccess::READ_WRITE},
+1 −0
Original line number Original line Diff line number Diff line
@@ -74,6 +74,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::EV_BATTERY_AVERAGE_TEMPERATURE, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::EV_BATTERY_AVERAGE_TEMPERATURE, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::TIRE_PRESSURE, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::TIRE_PRESSURE, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyChangeMode::STATIC},
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyChangeMode::STATIC},
        {VehicleProperty::ACCELERATOR_PEDAL_COMPRESSION_PERCENTAGE, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::IMPACT_DETECTED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::IMPACT_DETECTED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, VehiclePropertyChangeMode::ON_CHANGE},
+1 −0
Original line number Original line Diff line number Diff line
@@ -73,6 +73,7 @@ std::unordered_map<VehicleProperty, int32_t> VersionForVehicleProperty = {
        {VehicleProperty::EV_BATTERY_AVERAGE_TEMPERATURE, 3},
        {VehicleProperty::EV_BATTERY_AVERAGE_TEMPERATURE, 3},
        {VehicleProperty::TIRE_PRESSURE, 2},
        {VehicleProperty::TIRE_PRESSURE, 2},
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, 2},
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, 2},
        {VehicleProperty::ACCELERATOR_PEDAL_COMPRESSION_PERCENTAGE, 4},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, 2},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, 2},
        {VehicleProperty::IMPACT_DETECTED, 3},
        {VehicleProperty::IMPACT_DETECTED, 3},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, 4},
        {VehicleProperty::VEHICLE_HORN_ENGAGED, 4},
+1 −0
Original line number Original line Diff line number Diff line
@@ -67,6 +67,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.EV_BATTERY_AVERAGE_TEMPERATURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.EV_BATTERY_AVERAGE_TEMPERATURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.TIRE_PRESSURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.TIRE_PRESSURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.ACCELERATOR_PEDAL_COMPRESSION_PERCENTAGE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.ENGINE_IDLE_AUTO_STOP_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.IMPACT_DETECTED, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.IMPACT_DETECTED, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.VEHICLE_HORN_ENGAGED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.VEHICLE_HORN_ENGAGED, VehiclePropertyAccess.READ_WRITE),
Loading