Lines Matching refs:BatteryConfig
48 std::shared_ptr<BatteryConfig> BatteryConfig::instance_ = nullptr;
49 std::mutex BatteryConfig::mutex_;
51 BatteryConfig& BatteryConfig::GetInstance()
55 instance_ = std::make_shared<BatteryConfig>();
60 bool BatteryConfig::ParseConfig()
104 const std::vector<BatteryConfig::LightConfig>& BatteryConfig::GetLightConfig() const
109 const BatteryConfig::ChargerConfig& BatteryConfig::GetChargerConfig() const
114 const std::map<std::string, BatteryConfig::ChargeSceneConfig>& BatteryConfig::GetChargeSceneConfigMap() const
119 const UeventMap& BatteryConfig::GetUeventList() const
124 void BatteryConfig::DestroyInstance()
130 bool BatteryConfig::OpenFile(std::ifstream& ifsConf, const std::string& configPath)
156 void BatteryConfig::ParseConfInner(const Json::Value& config)
163 void BatteryConfig::ParseConfSplit(const Json::Value& config)
170 void BatteryConfig::ParseChargerConfig(const Json::Value& chargerConfig)
194 void BatteryConfig::ParseLightConfig(const Json::Value& lightConfig)
226 BatteryConfig::LightConfig tempLightConfig = {
239 void BatteryConfig::ParseChargeSceneConfig(const Json::Value& chargeSceneConfig)
255 BatteryConfig::ChargeSceneConfig tempChargeSceneConfig;
268 bool BatteryConfig::IsValidChargeSceneConfig(const std::string& key, const Json::Value& valueObj)
286 bool BatteryConfig::ParseChargeSceneSupport(const Json::Value& valueObj, BatteryConfig::ChargeSceneConfig& config)
303 bool BatteryConfig::ParseChargeSceneSet(const Json::Value& valueObj, BatteryConfig::ChargeSceneConfig& config)
316 bool BatteryConfig::ParseChargeSceneGet(const Json::Value& valueObj, BatteryConfig::ChargeSceneConfig& config)
329 bool BatteryConfig::IsValidSysPath(const std::string& path)
340 void BatteryConfig::ParseUeventConfig(const Json::Value& ueventConfig)
372 bool BatteryConfig::SplitKey(const std::string& key, std::vector<std::string>& keys) const
378 Json::Value BatteryConfig::GetValue(const Json::Value& config, std::string key) const
403 bool BatteryConfig::isValidJsonString(const Json::Value& config) const