Lines Matching refs:keys
119 bool PowerConfig::SplitKey(const std::string& key, std::vector<std::string>& keys) const in SplitKey()
121 SplitStr(TrimStr(key), ".", keys); in SplitKey()
122 return (keys.size() < MIN_DEPTH || keys.size() > MAX_DEPTH) ? false : true; in SplitKey()
127 std::vector<std::string> keys; in GetValue() local
128 if (!SplitKey(key, keys)) { in GetValue()
133 std::string firstKey = keys[MAP_KEY_INDEX]; in GetValue()
136 HDF_LOGW("Value is empty. key=%{public}s", keys[MAP_KEY_INDEX].c_str()); in GetValue()
140 for (size_t i = 1; i < keys.size(); ++i) { in GetValue()
141 if (!value.isObject() || !value.isMember(keys[i])) { in GetValue()
142 HDF_LOGW("The key is not configured. key=%{public}s", keys[i].c_str()); in GetValue()
145 value = value[keys[i]]; in GetValue()