Home
last modified time | relevance | path

Searched refs:ifsConf (Results 1 – 2 of 2) sorted by relevance

/base/powermgr/battery_manager/services/native/src/
Dbattery_config.cpp53 std::ifstream ifsConf; in ParseConfig() local
55 RETURN_IF_WITH_RET (!OpenFile(ifsConf, configPath), false); in ParseConfig()
61 if (parseFromStream(readerBuilder, ifsConf, &config_, &errs) && !config_.empty()) { in ParseConfig()
64 ifsConf.close(); in ParseConfig()
84 bool BatteryConfig::OpenFile(std::ifstream& ifsConf, const std::string& configPath) in OpenFile() argument
88 ifsConf.open(configPath); in OpenFile()
89 isOpen = ifsConf.is_open(); in OpenFile()
94 ifsConf.open(VENDOR_BATTERY_CONFIG_PATH); in OpenFile()
95 isOpen = ifsConf.is_open(); in OpenFile()
99 ifsConf.open(SYSTEM_BATTERY_CONFIG_PATH); in OpenFile()
[all …]
/base/powermgr/battery_manager/services/native/include/
Dbattery_config.h44 bool OpenFile(std::ifstream& ifsConf, const std::string& configPath);