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

Commit e37a6dda authored by Tyler Trephan's avatar Tyler Trephan
Browse files

Added missing mirror area type HVAC properties

Test: atest CarPropertyManagerTest
Bug: 237610879
Change-Id: Ibff9b429110ee72f28b109ac193df21ad395de51
parent 3c7a832a
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ using ::aidl::android::hardware::automotive::vehicle::RawPropValues;
using ::aidl::android::hardware::automotive::vehicle::VehicleApPowerStateReport;
using ::aidl::android::hardware::automotive::vehicle::VehicleApPowerStateReq;
using ::aidl::android::hardware::automotive::vehicle::VehicleAreaConfig;
using ::aidl::android::hardware::automotive::vehicle::VehicleAreaMirror;
using ::aidl::android::hardware::automotive::vehicle::VehicleAreaWindow;
using ::aidl::android::hardware::automotive::vehicle::VehicleGear;
using ::aidl::android::hardware::automotive::vehicle::VehicleHvacFanDirection;
@@ -715,6 +716,22 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
                                    }}},
         .initialValue = {.int32Values = {0}}},  // +ve values for heating and -ve for cooling

        {.config = {.prop = toInt(VehicleProperty::HVAC_SIDE_MIRROR_HEAT),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .areaConfigs = {VehicleAreaConfig{
                                            .areaId = toInt(VehicleAreaMirror::DRIVER_LEFT),
                                            .minInt32Value = 0,
                                            .maxInt32Value = 2,
                                    },
                                    VehicleAreaConfig{
                                            .areaId = toInt(VehicleAreaMirror::DRIVER_RIGHT),
                                            .minInt32Value = 0,
                                            .maxInt32Value = 2,
                                    }}},
         .initialAreaValues = {{toInt(VehicleAreaMirror::DRIVER_LEFT), {.int32Values = {2}}},
                               {toInt(VehicleAreaMirror::DRIVER_RIGHT), {.int32Values = {1}}}}},

        {.config = {.prop = toInt(VehicleProperty::HVAC_TEMPERATURE_SET),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@
#include <aidl/android/hardware/automotive/vehicle/VehicleApPowerStateReq.h>
#include <aidl/android/hardware/automotive/vehicle/VehicleArea.h>
#include <aidl/android/hardware/automotive/vehicle/VehicleAreaDoor.h>
#include <aidl/android/hardware/automotive/vehicle/VehicleAreaMirror.h>
#include <aidl/android/hardware/automotive/vehicle/VehicleAreaSeat.h>
#include <aidl/android/hardware/automotive/vehicle/VehicleAreaWheel.h>
#include <aidl/android/hardware/automotive/vehicle/VehicleAreaWindow.h>