Lines Matching refs:config
75 Json::Value config;
79 if (parseFromStream(readerBuilder, ifsConf, &config, &errs) && !config.empty()) {
80 ParseConfInner(config);
113 void PowerConfig::ParseConfInner(const Json::Value& config)
115 HDF_LOGI("start parse power config inner");
116 ParseSceneConfig(GetValue(config, "scene"));
125 Json::Value PowerConfig::GetValue(const Json::Value& config, std::string key) const
134 Json::Value value = (config.isObject() && config.isMember(firstKey)) ? config[firstKey] : Json::Value();
163 HDF_LOGW("The scene config is invalid, key=%{public}s", key.c_str());
181 HDF_LOGI("The charge scene config size: %{public}d",
185 bool PowerConfig::isValidJsonString(const Json::Value& config) const
187 return !config.isNull() && config.isString();