Lines Matching refs:path
95 bool Parser::ParseConfigFile(const std::string& path) { in ParseConfigFile() argument
96 INFO("Parsing file %s...\n", path.c_str()); in ParseConfigFile()
99 if (!read_file(path.c_str(), &data)) { in ParseConfigFile()
104 ParseData(path, data); in ParseConfigFile()
106 sp.second->EndFile(path); in ParseConfigFile()
113 NOTICE("(Parsing %s took %.2fs.)\n", path.c_str(), t.duration()); in ParseConfigFile()
117 bool Parser::ParseConfigDir(const std::string& path) { in ParseConfigDir() argument
118 INFO("Parsing directory %s...\n", path.c_str()); in ParseConfigDir()
119 std::unique_ptr<DIR, int(*)(DIR*)> config_dir(opendir(path.c_str()), closedir); in ParseConfigDir()
121 ERROR("Could not import directory '%s'\n", path.c_str()); in ParseConfigDir()
127 android::base::StringPrintf("%s/%s", path.c_str(), current_file->d_name); in ParseConfigDir()
138 bool Parser::ParseConfig(const std::string& path) { in ParseConfig() argument
139 if (is_dir(path.c_str())) { in ParseConfig()
140 return ParseConfigDir(path); in ParseConfig()
142 return ParseConfigFile(path); in ParseConfig()