Home
last modified time | relevance | path

Searched refs:json_doc (Results 1 – 5 of 5) sorted by relevance

/hardware/google/pixel/power-libperfmgr/libperfmgr/tools/
DConfigVerifier.cc33 std::string json_doc; in VerifyNodes() local
35 if (!android::base::ReadFileToString(config_path, &json_doc)) { in VerifyNodes()
40 std::vector<std::unique_ptr<Node>> nodes = ParseNodes(json_doc); in VerifyNodes()
/hardware/google/pixel/power-libperfmgr/libperfmgr/
DHintManager.cc311 static std::optional<std::string> ParseGpuSysfsNode(const std::string &json_doc) { in ParseGpuSysfsNode() argument
316 if (!reader->parse(&*json_doc.begin(), &*json_doc.end(), &root, &errorMessage)) { in ParseGpuSysfsNode()
328 std::string json_doc; in GetFromJSON() local
330 if (!android::base::ReadFileToString(config_path, &json_doc)) { in GetFromJSON()
335 std::vector<std::unique_ptr<Node>> nodes = ParseNodes(json_doc); in GetFromJSON()
340 std::vector<std::shared_ptr<AdpfConfig>> adpfs = HintManager::ParseAdpfConfigs(json_doc); in GetFromJSON()
345 std::unordered_map<std::string, Hint> actions = HintManager::ParseActions(json_doc, nodes); in GetFromJSON()
352 auto const gpu_sysfs_node = ParseGpuSysfsNode(json_doc); in GetFromJSON()
372 const std::string& json_doc) { in ParseNodes() argument
382 if (!reader->parse(&*json_doc.begin(), &*json_doc.end(), &root, &errorMessage)) { in ParseNodes()
[all …]
/hardware/google/pixel/thermal/virtualtemp_estimator/
Dvirtualtemp_estimator_test.cpp62 std::string json_doc; in get_input_combination() local
63 if (!android::base::ReadFileToString(thermal_config_path.data(), &json_doc)) { in get_input_combination()
73 if (!reader->parse(&*json_doc.begin(), &*json_doc.end(), &root, &errorMessage)) { in get_input_combination()
332 std::string json_doc; in run_batch_process() local
333 if (!android::base::ReadFileToString(input_file, &json_doc)) { in run_batch_process()
342 if (!reader->parse(&*json_doc.begin(), &*json_doc.end(), &root, &errorMessage)) { in run_batch_process()
/hardware/google/pixel/power-libperfmgr/libperfmgr/include/perfmgr/
DHintManager.h157 const std::string& json_doc);
159 const std::string &json_doc, const std::vector<std::unique_ptr<Node>> &nodes);
160 static std::vector<std::shared_ptr<AdpfConfig>> ParseAdpfConfigs(const std::string &json_doc);
/hardware/google/pixel/thermal/utils/
Dthermal_info.cpp202 std::string json_doc; in ParseThermalConfig() local
203 if (!::android::base::ReadFileToString(config_path.data(), &json_doc)) { in ParseThermalConfig()
210 if (!reader->parse(&*json_doc.begin(), &*json_doc.end(), config, &errorMessage)) { in ParseThermalConfig()