/base/update/updater/services/ui/ |
D | updater_ui_env.cpp | 103 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/ |
D | operator_file_parser.cpp | 184 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/ |
D | battery_stats_parser.cpp | 72 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()
|
D | battery_stats_core.cpp | 919 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/ |
D | ntp_update_time.cpp | 239 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/ |
D | json_node.cpp | 49 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/ |
D | language_ui.cpp | 177 std::ifstream ifs(realPath); in ParseLanguage() local 178 std::string content {std::istreambuf_iterator<char> {ifs}, {}}; in ParseLanguage()
|
/base/update/updater/utils/ |
D | utils.cpp | 442 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/ |
D | vendor.cpp | 205 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/ |
D | openssl_util.cpp | 114 std::ifstream ifs(filePath); in GetX509CertFromPemFile() local 115 if (!ifs.is_open()) { in GetX509CertFromPemFile()
|
/base/update/updater/services/ |
D | updater_main.cpp | 189 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/ |
D | ptable.cpp | 102 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()
|