Searched refs:config_path (Results 1 – 5 of 5) sorted by relevance
33 static bool VerifyNodes(const std::string& config_path) { in VerifyNodes() argument36 if (!android::base::ReadFileToString(config_path, &json_doc)) { in VerifyNodes()37 LOG(ERROR) << "Failed to read JSON config from " << config_path; in VerifyNodes()43 LOG(ERROR) << "Failed to parse Nodes section from " << config_path; in VerifyNodes()125 std::string config_path; in main() local144 config_path = optarg; in main()161 if (config_path.empty()) { in main()168 execConfig(config_path); in main()172 if (android::perfmgr::NodeVerifier::VerifyNodes(config_path)) { in main()
48 string config_path = findConfigPath(); in loadConfig() local49 CHECK(config_path != ""); in loadConfig()50 config_.parseFromFile(config_path); in loadConfig()
106 const std::string& config_path) { in GetFromJSON() argument109 if (!android::base::ReadFileToString(config_path, &json_doc)) { in GetFromJSON()110 LOG(ERROR) << "Failed to read JSON config from " << config_path; in GetFromJSON()116 LOG(ERROR) << "Failed to parse Nodes section from " << config_path; in GetFromJSON()123 LOG(ERROR) << "Failed to parse Actions section from " << config_path; in GetFromJSON()131 LOG(INFO) << "Initialized HintManager from JSON config: " << config_path; in GetFromJSON()
65 const std::string& config_path);
380 void writeConfigFile(const std::string &config_path, in writeConfigFile() argument383 FILE *fp = fopen(config_path.c_str(), "w"); in writeConfigFile()