Loading automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h +24 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,30 @@ const VehiclePropConfig kVehicleProperties[] = { .changeMode = VehiclePropertyChangeMode::STATIC, }, { .prop = toInt(VehicleProperty::PERF_VEHICLE_SPEED), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, }, { .prop = toInt(VehicleProperty::CURRENT_GEAR), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, }, { .prop = toInt(VehicleProperty::PARKING_BRAKE_ON), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, }, { .prop = toInt(VehicleProperty::FUEL_LEVEL_LOW), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, }, { .prop = toInt(VehicleProperty::HVAC_POWER_ON), .access = VehiclePropertyAccess::READ_WRITE, Loading automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultVehicleHal.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -361,6 +361,18 @@ void DefaultVehicleHal::setDefaultValue(VehiclePropValue* prop) { case toInt(VehicleProperty::INFO_MAKE): prop->value.stringValue = "Default Car"; break; case toInt(VehicleProperty::PERF_VEHICLE_SPEED): prop->value.floatValues[0] = 0; break; case toInt(VehicleProperty::CURRENT_GEAR): prop->value.int32Values[0] = toInt(VehicleGear::GEAR_PARK); break; case toInt(VehicleProperty::PARKING_BRAKE_ON): prop->value.int32Values[0] = 1; break; case toInt(VehicleProperty::FUEL_LEVEL_LOW): prop->value.int32Values[0] = 0; break; case toInt(VehicleProperty::HVAC_POWER_ON): prop->value.int32Values[0] = 1; break; Loading Loading
automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h +24 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,30 @@ const VehiclePropConfig kVehicleProperties[] = { .changeMode = VehiclePropertyChangeMode::STATIC, }, { .prop = toInt(VehicleProperty::PERF_VEHICLE_SPEED), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, }, { .prop = toInt(VehicleProperty::CURRENT_GEAR), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, }, { .prop = toInt(VehicleProperty::PARKING_BRAKE_ON), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, }, { .prop = toInt(VehicleProperty::FUEL_LEVEL_LOW), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, }, { .prop = toInt(VehicleProperty::HVAC_POWER_ON), .access = VehiclePropertyAccess::READ_WRITE, Loading
automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultVehicleHal.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -361,6 +361,18 @@ void DefaultVehicleHal::setDefaultValue(VehiclePropValue* prop) { case toInt(VehicleProperty::INFO_MAKE): prop->value.stringValue = "Default Car"; break; case toInt(VehicleProperty::PERF_VEHICLE_SPEED): prop->value.floatValues[0] = 0; break; case toInt(VehicleProperty::CURRENT_GEAR): prop->value.int32Values[0] = toInt(VehicleGear::GEAR_PARK); break; case toInt(VehicleProperty::PARKING_BRAKE_ON): prop->value.int32Values[0] = 1; break; case toInt(VehicleProperty::FUEL_LEVEL_LOW): prop->value.int32Values[0] = 0; break; case toInt(VehicleProperty::HVAC_POWER_ON): prop->value.int32Values[0] = 1; break; Loading