Lines Matching +full:auto +full:- +full:string +full:- +full:detection

8  *     http://www.apache.org/licenses/LICENSE-2.0
42 constexpr auto busName = "xyz.openbmc_project.Power.Regulators";
43 constexpr auto managerObjPath = "/xyz/openbmc_project/power/regulators/manager";
44 constexpr auto chassisStatePath = "/xyz/openbmc_project/state/chassis0";
45 constexpr auto chassisStateIntf = "xyz.openbmc_project.State.Chassis";
46 constexpr auto chassisStateProp = "CurrentPowerState";
54 * implement the D-Bus compatible interface.
56 constexpr auto defaultConfigFileName = "config.json";
62 const fs::path standardConfigFileDir{"/usr/share/phosphor-regulators"};
68 const fs::path testConfigFileDir{"/etc/phosphor-regulators"};
87 // Obtain D-Bus service name
109 system->configure(services); in configure()
122 // Throw InternalFailure to propogate error status to D-Bus client in configure()
140 // Restart phase fault detection timer with repeating 15 second interval in monitor()
167 system->closeDevices(services); in monitor()
172 void Manager::compatibleSystemTypesFound(const std::vector<std::string>& types) in compatibleSystemTypesFound()
177 std::string typesStr = format_utils::toString(std::span{types}); in compatibleSystemTypesFound()
195 system->detectPhaseFaults(services); in phaseFaultTimerExpired()
208 system->monitorSensors(services); in sensorTimerExpired()
232 system->clearCache(); in clearHardwareData()
235 system->clearErrorHistory(); in clearHardwareData()
242 std::vector<std::string> fileNames{}; in findConfigFile()
245 for (const std::string& systemType : compatibleSystemTypes) in findConfigFile()
253 std::string::size_type pos = systemType.rfind('.'); in findConfigFile()
254 if ((pos != std::string::npos) && ((systemType.size() - pos) > 1)) in findConfigFile()
264 for (const std::string& fileName : fileNames) in findConfigFile()
291 // Get D-Bus property that contains the current power state for in isSystemPoweredOn()
294 auto service = getService(chassisStatePath, chassisStateIntf, bus); in isSystemPoweredOn()
309 // application can start before the power state is published on D-Bus. in isSystemPoweredOn()
325 "Loading configuration file " + pathName.string()); in loadConfigFile()
356 auto start = std::chrono::system_clock::now(); in waitUntilConfigFileLoaded()
362 // to re-find system types on D-Bus because we are not receiving in waitUntilConfigFileLoaded()
364 compatSysTypesFinder->refind(); in waitUntilConfigFileLoaded()
371 timeWaited = std::chrono::system_clock::now() - start; in waitUntilConfigFileLoaded()