Home
last modified time | relevance | path

Searched refs:ifs (Results 1 – 12 of 12) sorted by relevance

/base/update/updater/services/ui/
Dupdater_ui_env.cpp103 std::ifstream ifs { maxBrightnessFile }; in InitBrightness() local
104 if (!ifs.is_open()) { in InitBrightness()
109 ifs >> maxValue; in InitBrightness()
110 if (ifs.fail() || ifs.bad()) { in InitBrightness()
/base/telephony/core_service/services/sim/src/
Doperator_file_parser.cpp184 std::ifstream ifs; in LoaderJsonFile() local
185 ifs.open(path); in LoaderJsonFile()
186 if (ifs.fail()) { in LoaderJsonFile()
190 ifs.seekg(0, std::ios::end); in LoaderJsonFile()
191 uint64_t len = static_cast<uint64_t>(ifs.tellg()); in LoaderJsonFile()
194 ifs.close(); in LoaderJsonFile()
200 ifs.close(); in LoaderJsonFile()
207 ifs.close(); in LoaderJsonFile()
210 ifs.seekg(0, std::ios::beg); in LoaderJsonFile()
211 ifs.read(content, len); in LoaderJsonFile()
[all …]
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_parser.cpp72 std::ifstream ifs(path, std::ios::binary); in LoadAveragePowerFromFile() local
73 if (!ifs.is_open()) { in LoadAveragePowerFromFile()
77 if (!parseFromStream(reader, ifs, &root, &errors)) { in LoadAveragePowerFromFile()
79 ifs.close(); in LoadAveragePowerFromFile()
82 ifs.close(); in LoadAveragePowerFromFile()
Dbattery_stats_core.cpp919 std::ifstream ifs(BATTERY_STATS_JSON, std::ios::binary); in LoadBatteryStatsData() local
920 if (!ifs.is_open()) { in LoadBatteryStatsData()
924 if (!parseFromStream(reader, ifs, &root, &errors)) { in LoadBatteryStatsData()
926 ifs.close(); in LoadBatteryStatsData()
929 ifs.close(); in LoadBatteryStatsData()
/base/time/time_service/services/time/src/
Dntp_update_time.cpp239 std::ifstream ifs; in GetAutoTimeInfoFromFile() local
240 ifs.open(AUTOTIME_FILE_PATH); in GetAutoTimeInfoFromFile()
244 if (!parseFromStream(builder, ifs, &jsonValue, &errs)) { in GetAutoTimeInfoFromFile()
245 ifs.close(); in GetAutoTimeInfoFromFile()
255 ifs.close(); in GetAutoTimeInfoFromFile()
/base/update/updater/utils/json/
Djson_node.cpp49 std::ifstream ifs(realPath); in JsonNode() local
50 if (!ifs.is_open()) { in JsonNode()
56 std::string content {std::istreambuf_iterator<char> {ifs}, {}}; in JsonNode()
/base/update/updater/services/ui/language/
Dlanguage_ui.cpp177 std::ifstream ifs(realPath); in ParseLanguage() local
178 std::string content {std::istreambuf_iterator<char> {ifs}, {}}; in ParseLanguage()
/base/update/updater/utils/
Dutils.cpp442 std::ifstream ifs(dLog, std::ios::binary | std::ios::in); in GetFileSize() local
443 if (ifs.is_open()) { in GetFileSize()
444 ifs.seekg(0, std::ios::end); in GetFileSize()
445 ret = ifs.tellg(); in GetFileSize()
503 std::ifstream ifs; in CheckDumpResult() local
505 ifs.open(resultPath, std::ios::in); in CheckDumpResult()
507 if (ifs.is_open() && getline(ifs, buff) && buff.find("fail:") != std::string::npos) { in CheckDumpResult()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dvendor.cpp205 std::ifstream ifs(filePath, std::ios::in); in MergeEventLog() local
206 if (!ifs.is_open()) { in MergeEventLog()
224 body << ifs.rdbuf(); in MergeEventLog()
225 ifs.close(); in MergeEventLog()
/base/update/updater/services/package/pkg_verify/
Dopenssl_util.cpp114 std::ifstream ifs(filePath); in GetX509CertFromPemFile() local
115 if (!ifs.is_open()) { in GetX509CertFromPemFile()
/base/update/updater/services/
Dupdater_main.cpp189 std::ifstream ifs { it }; in GetBatteryCapacity() local
190 if (!ifs.is_open()) { in GetBatteryCapacity()
195 ifs >> tmpCapacity; in GetBatteryCapacity()
196 if ((ifs.fail()) || (ifs.bad())) { in GetBatteryCapacity()
/base/update/updater/services/ptable_parse/
Dptable.cpp102 std::ifstream ifs(std::string {PTABLE_CONFIG_PATH}); in ParsePtableData() local
103 if (!ifs.is_open()) { in ParsePtableData()
109 std::string content {std::istreambuf_iterator<char> {ifs}, {}}; in ParsePtableData()