/aosp12/hardware/google/pixel/power-libperfmgr/libperfmgr/tools/ |
H A D | ConfigVerifier.cc | 32 static bool VerifyNodes(const std::string& config_path) { in VerifyNodes() argument 35 if (!android::base::ReadFileToString(config_path, &json_doc)) { in VerifyNodes() 36 LOG(ERROR) << "Failed to read JSON config from " << config_path; in VerifyNodes() 42 LOG(ERROR) << "Failed to parse Nodes section from " << config_path; in VerifyNodes() 112 std::string config_path; in main() local 136 config_path = optarg; in main() 159 if (config_path.empty()) { in main() 166 execConfig(config_path, hint_name, hint_duration); in main() 170 if (android::perfmgr::NodeVerifier::VerifyNodes(config_path)) { in main()
|
/aosp12/system/linkerconfig/modules/ |
H A D | configparser.cc | 34 Result<LinkerConfig> ParseLinkerConfig(const std::string& config_path) { in ParseLinkerConfig() argument 37 if (!ReadFileToString(config_path, &file_content)) { in ParseLinkerConfig() 38 return ErrnoErrorf("Cannot read file {}", config_path); in ParseLinkerConfig() 43 return Errorf("Failed to parse file {}", config_path); in ParseLinkerConfig()
|
/aosp12/hardware/google/pixel/power-libperfmgr/aidl/ |
H A D | service.cpp | 43 const std::string config_path = in main() local 47 << config_path; in main() 50 std::shared_ptr<HintManager> hm = HintManager::GetFromJSON(config_path, false); in main() 52 LOG(FATAL) << "Invalid config: " << config_path; in main()
|
/aosp12/hardware/nxp/secure_element/pn8x/libese-spi/p73/utils/ |
H A D | ese_config.cpp | 49 string config_path = findConfigPath(); in EseConfig() local 50 CHECK(config_path != ""); in EseConfig() 51 config_.parseFromFile(config_path); in EseConfig()
|
/aosp12/hardware/nxp/secure_element/snxxx/libese-spi/p73/utils/ |
H A D | ese_config.cpp | 49 string config_path = findConfigPath(); in EseConfig() local 50 CHECK(config_path != ""); in EseConfig() 51 config_.parseFromFile(config_path); in EseConfig()
|
/aosp12/hardware/st/secure_element/ese-spi-driver/utils-lib/ |
H A D | ese_config.cc | 51 string config_path = findConfigPath(); in EseConfig() local 52 CHECK(config_path != ""); in EseConfig() 53 config_.parseFromFile(config_path); in EseConfig()
|
/aosp12/system/nfc/src/adaptation/ |
H A D | nfc_config.cc | 69 string config_path = findConfigPath(); in loadConfig() local 70 CHECK(config_path != ""); in loadConfig() 71 config_.parseFromFile(config_path); in loadConfig()
|
/aosp12/hardware/google/pixel/thermal/utils/ |
H A D | config_parser.h | 131 std::unordered_map<std::string, SensorInfo> ParseSensorInfo(std::string_view config_path); 132 std::unordered_map<std::string, CdevInfo> ParseCoolingDevice(std::string_view config_path); 133 std::unordered_map<std::string, PowerRailInfo> ParsePowerRailInfo(std::string_view config_path);
|
H A D | config_parser.cpp | 139 std::unordered_map<std::string, SensorInfo> ParseSensorInfo(std::string_view config_path) { in ParseSensorInfo() argument 142 if (!android::base::ReadFileToString(config_path.data(), &json_doc)) { in ParseSensorInfo() 143 LOG(ERROR) << "Failed to read JSON config from " << config_path; in ParseSensorInfo() 683 std::unordered_map<std::string, CdevInfo> ParseCoolingDevice(std::string_view config_path) { in ParseCoolingDevice() argument 686 if (!android::base::ReadFileToString(config_path.data(), &json_doc)) { in ParseCoolingDevice() 687 LOG(ERROR) << "Failed to read JSON config from " << config_path; in ParseCoolingDevice() 769 std::unordered_map<std::string, PowerRailInfo> ParsePowerRailInfo(std::string_view config_path) { in ParsePowerRailInfo() argument 772 if (!android::base::ReadFileToString(config_path.data(), &json_doc)) { in ParsePowerRailInfo() 773 LOG(ERROR) << "Failed to read JSON config from " << config_path; in ParsePowerRailInfo()
|
/aosp12/build/make/tools/releasetools/ |
H A D | check_target_files_vintf.py | 96 config_path = os.path.join(input_tmp, 'META/kernel_configs.txt') 98 if not os.path.isfile(version_path) or not os.path.isfile(config_path): 103 return ['--kernel', '{}:{}'.format(version_path, config_path)]
|
/aosp12/packages/modules/Virtualization/vm/src/ |
H A D | run.rs | 36 config_path: &Path, in command_run() 39 let config_filename = config_path.to_str().context("Failed to parse VM config path")?; in command_run()
|
/aosp12/hardware/google/pixel/power-libperfmgr/libperfmgr/ |
H A D | HintManager.cc | 263 const std::string& config_path, bool start) { in GetFromJSON() argument 266 if (!android::base::ReadFileToString(config_path, &json_doc)) { in GetFromJSON() 267 LOG(ERROR) << "Failed to read JSON config from " << config_path; in GetFromJSON() 273 LOG(ERROR) << "Failed to parse Nodes section from " << config_path; in GetFromJSON() 279 LOG(ERROR) << "Failed to parse Actions section from " << config_path; in GetFromJSON() 292 LOG(INFO) << "Initialized HintManager from JSON config: " << config_path; in GetFromJSON()
|
/aosp12/system/linkerconfig/modules/include/linkerconfig/ |
H A D | configparser.h | 26 ParseLinkerConfig(const std::string& config_path);
|
/aosp12/system/update_engine/payload_generator/ |
H A D | squashfs_filesystem.cc | 116 auto config_path = unsquash_dir.GetPath().Append(kUpdateEngineConf); in GetUpdateEngineConfig() local 118 if (!utils::ReadFile(config_path.value(), &config_content)) { in GetUpdateEngineConfig() 119 PLOG(ERROR) << "Failed to read " << config_path.value(); in GetUpdateEngineConfig()
|
/aosp12/frameworks/base/tools/aapt2/configuration/ |
H A D | ConfigurationParser.cpp | 291 const std::string& config_path, in ExtractConfiguration() argument 294 std::unique_ptr<xml::XmlResource> doc = xml::Inflate(&in, diag, Source(config_path)); in ExtractConfiguration() 441 ConfigurationParser::ConfigurationParser(std::string contents, const std::string& config_path) in ConfigurationParser() argument 442 : contents_(std::move(contents)), config_path_(config_path), diag_(&noop_) { in ConfigurationParser()
|
H A D | ConfigurationParser.h | 165 ConfigurationParser(std::string contents, const std::string& config_path);
|
H A D | ConfigurationParser.internal.h | 216 const std::string& config_path,
|
/aosp12/hardware/google/pixel/power-libperfmgr/libperfmgr/include/perfmgr/ |
H A D | HintManager.h | 114 const std::string& config_path, bool start = true);
|
/aosp12/hardware/google/camera/devices/EmulatedCamera/hwl/ |
H A D | EmulatedCameraProviderHWLImpl.cpp | 727 for (const auto& config_path : configurationFileLocation) { in Initialize() local 728 if (!android::base::ReadFileToString(config_path, &config)) { in Initialize() 730 config_path); in Initialize()
|
/aosp12/hardware/google/pixel/thermal/ |
H A D | thermal-helper.cpp | 272 const std::string config_path = in ThermalHelper() local 275 cooling_device_info_map_ = ParseCoolingDevice(config_path); in ThermalHelper() 276 sensor_info_map_ = ParseSensorInfo(config_path); in ThermalHelper() 277 power_rail_info_map_ = ParsePowerRailInfo(config_path); in ThermalHelper()
|