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

Commit 83914478 authored by shrikar's avatar shrikar
Browse files

Added ENGINE_IDLE_AUTO_STOP_ENABLED to hardware layer.

Bug: 262765277
Test: VtsHalAutomotiveVehciel_TargetTest
Change-Id: I394cd50b236c3ff045993da9ac10a551cafe16ed
parent 6ae79169
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ enum VehicleProperty {
  RANGE_REMAINING = 291504904,
  TIRE_PRESSURE = 392168201,
  CRITICALLY_LOW_TIRE_PRESSURE = 392168202,
  ENGINE_IDLE_AUTO_STOP_ENABLED = 287310624,
  GEAR_SELECTION = 289408000,
  CURRENT_GEAR = 289408001,
  PARKING_BRAKE_ON = 287310850,
+11 −0
Original line number Diff line number Diff line
@@ -440,6 +440,17 @@ enum VehicleProperty {
     */
    CRITICALLY_LOW_TIRE_PRESSURE = 0x030A + 0x10000000 + 0x07000000
            + 0x00600000, // VehiclePropertyGroup:SYSTEM,VehicleArea:WHEEL,VehiclePropertyType:FLOAT
    /**
     * Represents feature for engine idle automatic stop.
     *
     * If true, the vehicle may automatically shut off the engine when it is not needed and then
     * automatically restart it when needed.
     *
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ_WRITE
     */
    ENGINE_IDLE_AUTO_STOP_ENABLED =
            0x0320 + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,
    /**
     * Currently selected gear
     *
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::RANGE_REMAINING, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::TIRE_PRESSURE, VehiclePropertyAccess::READ},
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyAccess::READ},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, 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
@@ -68,6 +68,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::RANGE_REMAINING, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::TIRE_PRESSURE, VehiclePropertyChangeMode::CONTINUOUS},
        {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyChangeMode::STATIC},
        {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, 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
@@ -60,6 +60,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.RANGE_REMAINING, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.TIRE_PRESSURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.CRITICALLY_LOW_TIRE_PRESSURE, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.ENGINE_IDLE_AUTO_STOP_ENABLED, 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