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

Commit dcf5b074 authored by shrikar's avatar shrikar
Browse files

Added INSTANTANEOUS_FUEL_ECONOMY to HAL

Bug: 374759706
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I312c858f3470b78fe8d15ba7e79256f546e0e4ee
parent 6ee18220
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -131,6 +131,11 @@
                "value": 291504656,
                "description": "Rear bicycle model steering angle for vehicle\nAngle is in degrees.  Left is negative.\nThis property is independent of the angle of the steering wheel. This property must communicate the angle of the rear wheels with respect to the vehicle, not the angle of the steering wheel."
            },
            {
                "name": "INSTANTANEOUS_FUEL_ECONOMY",
                "value": 291504657,
                "description": "Instantaneous Fuel Economy in L\/100km.\nThis property must communicate the instantaneous fuel economy of the vehicle in units of L\/100km. The property's value is independent of DISTANCE_DISPLAY_UNITS, FUEL_VOLUME_DISPLAY_UNITS, and FUEL_CONSUMPTION_UNITS_DISTANCE_OVER_VOLUME property i.e. this property must always communicate the value in L\/100km.\nFor the EV version of this property, see INSTANTANEOUS_EV_EFFICIENCY."
            },
            {
                "name": "Temperature of engine coolant",
                "value": 291504897,
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::PERF_VEHICLE_SPEED_DISPLAY, VehiclePropertyAccess::READ},
        {VehicleProperty::PERF_STEERING_ANGLE, VehiclePropertyAccess::READ},
        {VehicleProperty::PERF_REAR_STEERING_ANGLE, VehiclePropertyAccess::READ},
        {VehicleProperty::INSTANTANEOUS_FUEL_ECONOMY, VehiclePropertyAccess::READ},
        {VehicleProperty::ENGINE_COOLANT_TEMP, VehiclePropertyAccess::READ},
        {VehicleProperty::ENGINE_OIL_LEVEL, VehiclePropertyAccess::READ},
        {VehicleProperty::ENGINE_OIL_TEMP, VehiclePropertyAccess::READ},
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::PERF_VEHICLE_SPEED_DISPLAY, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::PERF_STEERING_ANGLE, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::PERF_REAR_STEERING_ANGLE, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::INSTANTANEOUS_FUEL_ECONOMY, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::ENGINE_COOLANT_TEMP, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::ENGINE_OIL_LEVEL, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::ENGINE_OIL_TEMP, VehiclePropertyChangeMode::CONTINUOUS},
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ std::unordered_map<VehicleProperty, int32_t> VersionForVehicleProperty = {
        {VehicleProperty::PERF_VEHICLE_SPEED_DISPLAY, 2},
        {VehicleProperty::PERF_STEERING_ANGLE, 2},
        {VehicleProperty::PERF_REAR_STEERING_ANGLE, 2},
        {VehicleProperty::INSTANTANEOUS_FUEL_ECONOMY, 4},
        {VehicleProperty::ENGINE_COOLANT_TEMP, 2},
        {VehicleProperty::ENGINE_OIL_LEVEL, 2},
        {VehicleProperty::ENGINE_OIL_TEMP, 2},
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.PERF_VEHICLE_SPEED_DISPLAY, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.PERF_STEERING_ANGLE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.PERF_REAR_STEERING_ANGLE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.INSTANTANEOUS_FUEL_ECONOMY, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.ENGINE_COOLANT_TEMP, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.ENGINE_OIL_LEVEL, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.ENGINE_OIL_TEMP, VehiclePropertyAccess.READ),
Loading