/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/src/ |
D | VehicleUtils.cpp | 184 Result<void> checkValueRange(const VehiclePropValue& value, const VehicleAreaConfig* areaConfig) { in checkValueRange() argument 185 if (areaConfig == nullptr) { in checkValueRange() 194 if (areaConfig->minInt32Value == 0 && areaConfig->maxInt32Value == 0) { in checkValueRange() 198 if (int32Value < areaConfig->minInt32Value || in checkValueRange() 199 int32Value > areaConfig->maxInt32Value) { in checkValueRange() 201 << " out of range, min: " << areaConfig->minInt32Value in checkValueRange() 202 << " max: " << areaConfig->maxInt32Value; in checkValueRange() 209 if (areaConfig->minInt64Value == 0 && areaConfig->maxInt64Value == 0) { in checkValueRange() 213 if (int64Value < areaConfig->minInt64Value || in checkValueRange() 214 int64Value > areaConfig->maxInt64Value) { in checkValueRange() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/grpc/utils/proto_message_converter/src/ |
D | ProtoMessageConverter.cpp | 67 for (auto& areaConfig : in.areaConfigs) { in aidlToProto() local 69 protoACfg->set_area_id(areaConfig.areaId); in aidlToProto() 70 protoACfg->set_access(static_cast<proto::VehiclePropertyAccess>(toInt(areaConfig.access))); in aidlToProto() 71 protoACfg->set_min_int64_value(areaConfig.minInt64Value); in aidlToProto() 72 protoACfg->set_max_int64_value(areaConfig.maxInt64Value); in aidlToProto() 73 protoACfg->set_min_float_value(areaConfig.minFloatValue); in aidlToProto() 74 protoACfg->set_max_float_value(areaConfig.maxFloatValue); in aidlToProto() 75 protoACfg->set_min_int32_value(areaConfig.minInt32Value); in aidlToProto() 76 protoACfg->set_max_int32_value(areaConfig.maxInt32Value); in aidlToProto() 77 if (areaConfig.supportedEnumValues.has_value()) { in aidlToProto() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | DefaultVehicleHal.cpp | 283 const VehicleAreaConfig* areaConfig) { in checkValueRange() argument 284 if (areaConfig == nullptr) { in checkValueRange() 291 if (areaConfig->minInt32Value == 0 && areaConfig->maxInt32Value == 0) { in checkValueRange() 296 if (value.value.int32Values[0] < areaConfig->minInt32Value || in checkValueRange() 297 value.value.int32Values[0] > areaConfig->maxInt32Value) { in checkValueRange() 302 if (areaConfig->minInt64Value == 0 && areaConfig->maxInt64Value == 0) { in checkValueRange() 307 if (value.value.int64Values[0] < areaConfig->minInt64Value || in checkValueRange() 308 value.value.int64Values[0] > areaConfig->maxInt64Value) { in checkValueRange() 313 if (areaConfig->minFloatValue == 0 && areaConfig->maxFloatValue == 0) { in checkValueRange() 318 if (value.value.floatValues[0] < areaConfig->minFloatValue || in checkValueRange() [all …]
|
D | DefaultVehicleHal.h | 80 const VehicleAreaConfig* areaConfig);
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | ProtoMessageConverter.cpp | 88 for (auto& areaConfig : cfg.areaConfigs) { in toProto() local 90 protoACfg->set_area_id(areaConfig.areaId); in toProto() 103 protoACfg->set_min_int64_value(areaConfig.minInt64Value); in toProto() 104 protoACfg->set_max_int64_value(areaConfig.maxInt64Value); in toProto() 107 protoACfg->set_min_float_value(areaConfig.minFloatValue); in toProto() 108 protoACfg->set_max_float_value(areaConfig.maxFloatValue); in toProto() 111 protoACfg->set_min_int32_value(areaConfig.minInt32Value); in toProto() 112 protoACfg->set_max_int32_value(areaConfig.maxInt32Value); in toProto()
|
/hardware/interfaces/automotive/vehicle/aidl/impl/default_config/JsonConfigLoader/src/ |
D | JsonConfigLoader.cpp | 571 VehicleAreaConfig areaConfig = {}; in parseAreas() local 572 areaConfig.areaId = areaId; in parseAreas() 574 &areaConfig.access, errors); in parseAreas() 576 &areaConfig.minInt32Value, errors); in parseAreas() 578 &areaConfig.maxInt32Value, errors); in parseAreas() 580 &areaConfig.minInt64Value, errors); in parseAreas() 582 &areaConfig.maxInt64Value, errors); in parseAreas() 584 &areaConfig.minFloatValue, errors); in parseAreas() 586 &areaConfig.maxFloatValue, errors); in parseAreas() 590 areaConfig.supportVariableUpdateRate = true; in parseAreas() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/vhal/src/ |
D | DefaultVehicleHal.cpp | 429 const VehicleAreaConfig* areaConfig = getAreaConfig(propValue, *config); in checkProperty() local 430 if (!isGlobalProp(propId) && areaConfig == nullptr) { in checkProperty() 440 if (auto result = checkValueRange(propValue, areaConfig); !result.ok()) { in checkProperty() 685 for (VehicleAreaConfig areaConfig : areaConfigs) { in areaConfigsHaveRequiredAccess() local 686 if (!hasRequiredAccess(areaConfig.access, requiredAccess)) { in areaConfigsHaveRequiredAccess() 709 for (const VehicleAreaConfig& areaConfig : config.areaConfigs) { in checkSubscribeOptions() local 710 areaConfigByAreaId.emplace(areaConfig.areaId, areaConfig); in checkSubscribeOptions() 785 for (const auto& areaConfig : config.areaConfigs) { in subscribe() local 786 optionCopy.areaIds.push_back(areaConfig.areaId); in subscribe() 805 const VehicleAreaConfig* areaConfig = getAreaConfig(propId, areaId, config); in subscribe() local [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/hardware/src/ |
D | FakeVehicleHardware.cpp | 1000 for (auto& areaConfig : dependentPropConfig.areaConfigs) { in sendAdasPropertiesState() local 1007 createAdasStateReq(dependentPropId, areaConfig.areaId, hardcoded_state); in sendAdasPropertiesState() 1875 for (const auto& areaConfig : config.areaConfigs) { in dumpListProperties() local 1876 areaIds.push_back(areaConfig.areaId); in dumpListProperties() 2255 const auto& areaConfig = vehiclePropConfig.areaConfigs[i]; in isVariableUpdateRateSupported() local 2256 if (areaConfig.areaId != areaId) { in isVariableUpdateRateSupported() 2259 if (areaConfig.supportVariableUpdateRate) { in isVariableUpdateRateSupported()
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/hardware/test/ |
D | FakeVehicleHardwareTest.cpp | 473 for (const auto& areaConfig : config.areaConfigs) { in TEST_F() local 474 EXPECT_EQ(areaConfig.supportVariableUpdateRate, expectedSupportVUR) in TEST_F() 476 << ", areaId: " << areaConfig.areaId; in TEST_F() 529 for (auto areaConfig : config.config.areaConfigs) { in TEST_F() local 533 .areaId = areaConfig.areaId, in TEST_F() 541 } else if (auto valueForAreaIt = config.initialAreaValues.find(areaConfig.areaId); in TEST_F()
|
/hardware/interfaces/automotive/vehicle/vts/src/ |
D | VtsHalAutomotiveVehicle_TargetTest.cpp | 827 for (const auto& areaConfig : config->getAreaConfigs()) { in verifyProperty() local 828 int areaConfigAccess = areaConfig->getAccess(); in verifyProperty()
|
/hardware/interfaces/automotive/vehicle/2.0/ |
D | types.hal | 597 * Each tires is identified by its areaConfig.areaId config and their 600 * The Min value in the areaConfig data represents the lower bound of 602 * The Max value in the areaConfig data represents the upper bound of 605 * The following areaConfig indicates the recommended tire pressure 976 * areaConfig.areaId = {ROW_1_LEFT | ROW_1_RIGHT} indicates HVAC_MAX_DEFROST_ON
|