Merge "DO NOT MERGE Add DISTANCE_DISPLAY_UNIT to google VHAL" into qt-qpr1-dev

This commit is contained in:
TreeHugger Robot
2019-11-01 20:27:32 +00:00
committed by Android (Google) Code Review

View File

@@ -545,6 +545,13 @@ const ConfigDeclaration kVehicleProperties[]{
.areaConfigs = {VehicleAreaConfig{.areaId = (0)}}},
.initialValue = {.int32Values = {(int)VehicleUnit::FAHRENHEIT}}},
{.config = {.prop = toInt(VehicleProperty::DISTANCE_DISPLAY_UNITS),
.access = VehiclePropertyAccess::READ_WRITE,
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
.configArray = {(int)VehicleUnit::KILOMETER, (int)VehicleUnit::MILE},
.areaConfigs = {VehicleAreaConfig{.areaId = (0)}}},
.initialValue = {.int32Values = {(int)VehicleUnit::MILE}}},
{.config =
{
.prop = toInt(VehicleProperty::NIGHT_MODE),