• Home
  • Raw
  • Download

Lines Matching refs:name

73   int next_token(std::string* name, std::string* value, std::string* error_msg) {  in next_token()  argument
84 *name = line.substr(1, line.size() - 2); in next_token()
91 *name = android::base::Trim(line.substr(0, found_assign)); in next_token()
97 *name = android::base::Trim(line.substr(0, found_append)); in next_token()
200 std::string name; in parse_config_file() local
204 int result = cp.next_token(&name, &value, &error); in parse_config_file()
218 if (!android::base::StartsWith(name, "dir.")) { in parse_config_file()
223 name.c_str()); in parse_config_file()
266 section_name = name.substr(4); in parse_config_file()
276 std::string name; in parse_config_file() local
280 int result = cp.next_token(&name, &value, &error); in parse_config_file()
282 if (result == ConfigParser::kSection && name == section_name) { in parse_config_file()
296 std::string name; in parse_config_file() local
300 int result = cp.next_token(&name, &value, &error); in parse_config_file()
307 if (properties->find(name) != properties->end()) { in parse_config_file()
311 name.c_str()); in parse_config_file()
314 (*properties)[name] = PropertyValue(std::move(value), cp.lineno()); in parse_config_file()
316 if (properties->find(name) == properties->end()) { in parse_config_file()
320 name.c_str()); in parse_config_file()
321 (*properties)[name] = PropertyValue(std::move(value), cp.lineno()); in parse_config_file()
323 if (android::base::EndsWith(name, ".links") || in parse_config_file()
324 android::base::EndsWith(name, ".namespaces")) { in parse_config_file()
326 (*properties)[name].append_value(std::move(value)); in parse_config_file()
327 } else if (android::base::EndsWith(name, ".paths") || in parse_config_file()
328 android::base::EndsWith(name, ".shared_libs") || in parse_config_file()
329 android::base::EndsWith(name, ".whitelisted") || in parse_config_file()
330 android::base::EndsWith(name, ".allowed_libs")) { in parse_config_file()
332 (*properties)[name].append_value(std::move(value)); in parse_config_file()
337 name.c_str()); in parse_config_file()
364 std::vector<std::string> get_strings(const std::string& name, size_t* lineno = nullptr) const { in get_strings() argument
365 auto it = find_property(name, lineno); in get_strings()
380 bool get_bool(const std::string& name, size_t* lineno = nullptr) const { in get_bool() argument
381 auto it = find_property(name, lineno); in get_bool()
389 std::string get_string(const std::string& name, size_t* lineno = nullptr) const { in get_string() argument
390 auto it = find_property(name, lineno); in get_string()
394 …std::vector<std::string> get_paths(const std::string& name, bool resolve, size_t* lineno = nullptr… in get_paths() argument
395 std::string paths_str = get_string(name, lineno); in get_paths()
448 find_property(const std::string& name, size_t* lineno) const { in find_property() argument
449 auto it = properties_.find(name); in find_property()
485 for (const auto& name : additional_namespaces) { in read_binary_config() local
486 namespace_configs[name] = g_config.create_namespace_config(name); in read_binary_config()
519 auto& name = ns_config_it.first; in read_binary_config() local
522 std::string property_name_prefix = std::string("namespace.") + name; in read_binary_config()
548 name + in read_binary_config()
559 name + "->" + linked_ns_name + " link."); in read_binary_config()
615 NamespaceConfig* Config::create_namespace_config(const std::string& name) { in create_namespace_config() argument
616 namespace_configs_.push_back(std::unique_ptr<NamespaceConfig>(new NamespaceConfig(name))); in create_namespace_config()
618 namespace_configs_map_[name] = ns_config_ptr; in create_namespace_config()