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

This commit is contained in:
TreeHugger Robot
2019-11-01 18:55:02 +00:00
committed by Android (Google) Code Review

View File

@@ -568,6 +568,16 @@ const ConfigDeclaration kVehicleProperties[]{
},
.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),