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

Commit 84866f7c authored by shrikar's avatar shrikar
Browse files

Added VALET_MODE_ENABLED to HAL

Bug: 313324764
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I2365ac050978ade0d441ff96bf9160bd2b6651e4
parent 858c4e17
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::AP_POWER_BOOTUP_REASON, VehiclePropertyAccess::READ},
        {VehicleProperty::DISPLAY_BRIGHTNESS, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::PER_DISPLAY_BRIGHTNESS, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::VALET_MODE_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::HW_KEY_INPUT, VehiclePropertyAccess::READ},
        {VehicleProperty::HW_KEY_INPUT_V2, VehiclePropertyAccess::READ},
        {VehicleProperty::HW_MOTION_INPUT, VehiclePropertyAccess::READ},
+1 −0
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::AP_POWER_BOOTUP_REASON, VehiclePropertyChangeMode::STATIC},
        {VehicleProperty::DISPLAY_BRIGHTNESS, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::PER_DISPLAY_BRIGHTNESS, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::VALET_MODE_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::HW_KEY_INPUT, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::HW_KEY_INPUT_V2, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::HW_MOTION_INPUT, VehiclePropertyChangeMode::ON_CHANGE},
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.AP_POWER_BOOTUP_REASON, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.DISPLAY_BRIGHTNESS, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.PER_DISPLAY_BRIGHTNESS, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.VALET_MODE_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.HW_KEY_INPUT, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.HW_KEY_INPUT_V2, VehiclePropertyAccess.READ),
        Map.entry(VehicleProperty.HW_MOTION_INPUT, VehiclePropertyAccess.READ),
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ public final class ChangeModeForVehicleProperty {
        Map.entry(VehicleProperty.AP_POWER_BOOTUP_REASON, VehiclePropertyChangeMode.STATIC),
        Map.entry(VehicleProperty.DISPLAY_BRIGHTNESS, VehiclePropertyChangeMode.ON_CHANGE),
        Map.entry(VehicleProperty.PER_DISPLAY_BRIGHTNESS, VehiclePropertyChangeMode.ON_CHANGE),
        Map.entry(VehicleProperty.VALET_MODE_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
        Map.entry(VehicleProperty.HW_KEY_INPUT, VehiclePropertyChangeMode.ON_CHANGE),
        Map.entry(VehicleProperty.HW_KEY_INPUT_V2, VehiclePropertyChangeMode.ON_CHANGE),
        Map.entry(VehicleProperty.HW_MOTION_INPUT, VehiclePropertyChangeMode.ON_CHANGE),
+8 −0
Original line number Diff line number Diff line
@@ -3210,6 +3210,14 @@
                }
            ]
        },
        {
            "property": "VehicleProperty::VALET_MODE_ENABLED",
            "defaultValue": {
                "int32Values": [
                    0
                ]
            }
        },
        {
            "property": "VehicleProperty::OBD2_LIVE_FRAME",
            "configArray": [
Loading