Lines Matching +full:auto +full:- +full:detects
8 // http://www.apache.org/licenses/LICENSE-2.0
87 auto mapper = in getSelectedProfiles()
98 auto resp = bus.call(mapper); in getSelectedProfiles()
116 for (const auto& objectPair : respData) in getSelectedProfiles()
119 for (const auto& ownerPair : objectPair.second) in getSelectedProfiles()
122 auto getProfile = in getSelectedProfiles()
129 auto resp = bus.call(getProfile); in getSelectedProfiles()
143 for (const auto& profile : ret) in getSelectedProfiles()
177 auto find = data.find(skip); in eventHandler()
191 for (auto& d : data) in eventHandler()
194 for (auto& second : d.second) in eventHandler()
207 timer->expires_after(std::chrono::seconds(2)); in eventHandler()
208 timer->async_wait([](const boost::system::error_code ec) { in eventHandler()
238 for (const auto& interface : interfaces) in createMatches()
259 * @param[in] base - the PID configuration map, keys are the attributes and
261 * @param attributeName - the name of the attribute
269 auto search = base.find(attributeName); in getPIDAttribute()
274 return search->second; in getPIDAttribute()
281 auto findAttributeName = zone.find(attributeName); in getCycleTimeSetting()
321 auto findFailSafe = base.find("FailSafePercent"); in populatePidInfo()
345 // single element, if it detects that SetPointOffset is in use. in populatePidInfo()
393 auto findCheckHysterFlag = base.find("CheckHysteresisWithSetpoint"); in populatePidInfo()
394 auto findNeg = base.find("NegativeHysteresis"); in populatePidInfo()
395 auto findPos = base.find("PositiveHysteresis"); in populatePidInfo()
396 auto findDerivative = base.find("DCoefficient"); in populatePidInfo()
400 checkHysterWithSetpt = std::get<bool>(findCheckHysterFlag->second); in populatePidInfo()
405 std::visit(VariantToDoubleVisitor(), findNeg->second); in populatePidInfo()
410 std::visit(VariantToDoubleVisitor(), findPos->second); in populatePidInfo()
415 std::visit(VariantToDoubleVisitor(), findDerivative->second); in populatePidInfo()
435 auto mapper = in init()
450 auto resp = bus.call(mapper); in init()
468 for (const auto& objectPair : respData) in init()
470 for (const auto& ownerPair : objectPair.second) in init()
472 auto& owner = owners[ownerPair.first]; in init()
500 for (const auto& owner : owners) in init()
507 auto endpoint = bus.new_method_call( in init()
513 auto responce = bus.call(endpoint); in init()
523 for (auto& pathPair : configuration) in init()
541 for (auto pathIt = configurations.begin(); in init()
544 for (auto confIt = pathIt->second.begin(); in init()
545 confIt != pathIt->second.end();) in init()
547 auto profilesFind = confIt->second.find("Profiles"); in init()
548 if (profilesFind == confIt->second.end()) in init()
553 auto profiles = in init()
554 std::get<std::vector<std::string>>(profilesFind->second); in init()
578 confIt = pathIt->second.erase(confIt); in init()
581 if (pathIt->second.empty()) in init()
592 // On D-Bus, although not necessary, in init()
597 // If not present, or not unique, auto-assign index, in init()
598 // using 0-based numbering, ensuring uniqueness. in init()
600 for (const auto& configuration : configurations) in init()
602 auto findZone = in init()
606 const auto& zone = findZone->second; in init()
610 auto findZoneIndex = zone.find("ZoneIndex"); in init()
616 auto ptrZoneIndex = std::get_if<double>(&(findZoneIndex->second)); in init()
622 auto desiredIndex = static_cast<int64_t>(*ptrZoneIndex); in init()
623 auto grantedIndex = setZoneIndex(name, foundZones, desiredIndex); in init()
629 for (const auto& configuration : configurations) in init()
631 auto findZone = in init()
635 const auto& zone = findZone->second; in init()
639 auto index = getZoneIndex(name, foundZones); in init()
641 auto& details = zoneDetailsConfig[index]; in init()
647 auto findFailSafe = zone.find("FailSafePercent"); in init()
661 auto findAccSetPoint = zone.find("AccumulateSetPoint"); in init()
664 accumulateSetPoint = std::get<bool>(findAccSetPoint->second); in init()
668 auto findBase = configuration.second.find(pidConfigurationInterface); in init()
672 const auto& base = in init()
682 auto index = getZoneIndex(zone, foundZones); in init()
690 auto findMissingAcceptable = base.find("MissingIsAcceptable"); in init()
695 findMissingAcceptable->second); in init()
706 auto findUnavailableAsFailed = in init()
711 std::get<bool>(findUnavailableAsFailed->second); in init()
724 * Mapping can be many-to-one since an element of Inputs can be in init()
753 // Setting timeout to 0 is intentional, as D-Bus passive in init()
758 // All non-fan PID classes should be initialized this way. in init()
766 auto& config = sensorConfig[inputSensorName]; in init()
883 auto& fanConfig = sensorConfig[fanPwmIndex]; in init()
887 // todo: un-hardcode this if there are fans with in init()
905 auto findSetpointOffset = base.find("SetPointOffset"); in init()
909 std::get<std::string>(findSetpointOffset->second); in init()
921 auto findTempToMargin = base.find("TempToMargin"); in init()
925 std::get<std::vector<double>>(findTempToMargin->second); in init()
940 // we have to split up the inputs, as in practice t-control in init()
953 auto findStepwise = in init()
957 const auto& base = findStepwise->second; in init()
964 auto index = getZoneIndex(zone, foundZones); in init()
974 auto findMissingAcceptable = base.find("MissingIsAcceptable"); in init()
979 findMissingAcceptable->second); in init()
983 auto findUnavailableAsFailed = in init()
988 std::get<bool>(findUnavailableAsFailed->second); in init()
1002 for (const auto& sensorPathIfacePair : sensorPathIfacePairs) in init()
1008 auto& config = sensorConfig[shortName]; in init()
1013 // todo: maybe un-hardcode this if we run into slower in init()
1039 for (const auto& sensorPathIfacePair : sensorPathIfacePairs) in init()
1052 auto findTempToMargin = base.find("TempToMargin"); in init()
1056 std::get<std::vector<double>>(findTempToMargin->second); in init()
1069 auto findPosHyst = base.find("PositiveHysteresis"); in init()
1070 auto findNegHyst = base.find("NegativeHysteresis"); in init()
1074 VariantToDoubleVisitor(), findPosHyst->second); in init()
1079 VariantToDoubleVisitor(), findNegHyst->second); in init()