/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/ |
H A D | panic_error_info_handle.cpp | 139 ofstream fout; in SaveHistoryLog() local 140 fout.open(HISTORY_LOG_PATH, ios::out | ios::app); in SaveHistoryLog() 141 if (!fout.is_open()) { in SaveHistoryLog() 145 fout << "[" << GetTopCategory(info->module, info->event) << "],"; in SaveHistoryLog() 146 fout << "module[" << info->module << "],"; in SaveHistoryLog() 147 fout << "category[" << GetCategory(info->module, info->event) << "],"; in SaveHistoryLog() 148 fout << "event[" << info->event << "],"; in SaveHistoryLog() 149 fout << "time[" << bboxTime << "],"; in SaveHistoryLog() 150 fout << "sysreboot[" << bboxSysreset << "],"; in SaveHistoryLog() 151 fout << "errdes in SaveHistoryLog() 173 ofstream fout; CopyPstoreFileToHistoryLog() local [all...] |
/base/security/selinux_adapter/test/unittest/common/ |
H A D | test_common.cpp | 117 std::ofstream fout(des, std::ofstream::out || std::ofstream::binary); in CopyFile() 118 if (!fout) { in CopyFile() 122 fout << fin.rdbuf(); in CopyFile() 123 if (!fout) { in CopyFile() 125 fout.close(); in CopyFile() 129 fout.close(); in CopyFile() 135 std::ofstream fout(file, std::ofstream::out || std::ofstream::app); in WriteFile() 136 if (!fout) { in WriteFile() 140 fout << i << std::endl; in WriteFile() 142 if (!fout) { in WriteFile() [all...] |
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/ |
H A D | native_leak_state.cpp | 284 ofstream fout; in GetMemoryLeakLog() local 286 fout.open(filePath, ios::out); in GetMemoryLeakLog() 288 fout.open(filePath, ios::out | ios::app); in GetMemoryLeakLog() 290 if (!fout.is_open()) { in GetMemoryLeakLog() 295 DumpGeneralInfo(fout, userMonitorInfo); in GetMemoryLeakLog() 299 DumpDetailInfo(fout, userMonitorInfo); in GetMemoryLeakLog() 307 void NativeLeakDumpState::DumpGeneralInfo(ofstream &fout, shared_ptr<NativeLeakInfo> &userMonitorInfo) const in DumpGeneralInfo() argument 313 fout << endl; in DumpGeneralInfo() 314 fout << "Generated by HivewDFX @OpenHarmony" << endl; in DumpGeneralInfo() 315 fout << "LOGGER_MEMCHECK_GERNAL_INF in DumpGeneralInfo() 334 DumpDetailInfo(ofstream &fout, shared_ptr<NativeLeakInfo> &userMonitorInfo) DumpDetailInfo() argument [all...] |
H A D | native_leak_state.h | 69 void DumpGeneralInfo(std::ofstream &fout, std::shared_ptr<NativeLeakInfo> &userMonitorInfo) const; 70 void DumpDetailInfo(std::ofstream &fout, std::shared_ptr<NativeLeakInfo> &userMonitorInfo);
|
/base/security/code_signature/test/unittest/utils/include/ |
H A D | xpm_common.h | 40 std::fstream fout(filePath, std::ios::out);
in SaveStringToFile() 41 if (!fout.is_open()) {
in SaveStringToFile() 44 fout << value;
in SaveStringToFile() 45 fout.close();
in SaveStringToFile()
|
/base/security/code_signature/test/unittest/ |
H A D | multi_thread_local_sign_test.cpp | 63 int32_t fout = open(path.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777);
in DupFile() local 64 if (fout < 0) {
in DupFile() 77 write(fout, buffer, len);
in DupFile() 80 close(fout);
in DupFile()
|
H A D | enable_verity_test.cpp | 164 static void CopyData(const std::string &srcPath, FILE *fout)
in CopyData() argument 169 int32_t ret = fwrite(data.GetBuffer(), 1, data.GetSize(), fout);
in CopyData() 176 FILE *fout = fopen(dstPath.c_str(), "wb");
in CopyFile() local 177 if (fout == nullptr) {
in CopyFile() 180 CopyData(srcPath, fout);
in CopyFile() 181 (void)fclose(fout);
in CopyFile() 193 FILE *fout = fopen(dstPath.c_str(), "wb");
in ExpandFile() local 194 if (fout == nullptr) {
in ExpandFile() 197 CopyData(srcPath, fout);
in ExpandFile() 207 ret = fwrite(buffer, 1, writeSize, fout);
in ExpandFile() 224 FILE *fout = fopen(filePath.c_str(), "wb"); CheckEnableSuccess() local [all...] |
/base/hiviewdfx/hiview/base/utility/ |
H A D | file_util.cpp | 275 std::ofstream fout(path); in CreateFile() 276 if (!fout.is_open()) { in CreateFile() 279 fout.flush(); in CreateFile() 280 fout.close(); in CreateFile() 291 std::ofstream fout(des, ios::binary); in CopyFile() 295 if (!fout.is_open()) { in CopyFile() 298 fout << fin.rdbuf(); in CopyFile() 299 if (fout.fail()) { in CopyFile() 300 fout.clear(); in CopyFile() 302 fout in CopyFile() [all...] |
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
H A D | file_util.cpp | 159 std::ofstream fout(file);
in CreateFile() 160 if (!fout.is_open()) {
in CreateFile() 163 fout.flush();
in CreateFile() 164 fout.close();
in CreateFile()
|
/base/hiviewdfx/hidumper/frameworks/native/ |
H A D | dump_utils.cpp | 411 std::ofstream fout(des); in CopyFile() 412 if ((!fin.is_open()) || (!fout.is_open())) { in CopyFile() 415 fout << fin.rdbuf(); in CopyFile() 416 if (fout.fail()) { in CopyFile() 417 fout.clear(); in CopyFile() 419 fout.flush(); in CopyFile()
|
/base/hiviewdfx/faultloggerd/tools/crasher_cpp/ |
H A D | dfx_crasher.cpp | 470 std::ofstream fout; in StackTop() local 471 fout.open("/data/sp"); in StackTop() 472 fout << std::hex << stackTop << std::endl; in StackTop() 473 fout.close(); in StackTop()
|
/base/update/updater/utils/ |
H A D | utils.cpp | 380 std::ofstream fout(dest, mode); in CopyFile() 381 if (!fin.is_open() || !fout.is_open()) { in CopyFile() 385 fout << fin.rdbuf(); in CopyFile() 386 if (fout.fail()) { in CopyFile() 387 fout.clear(); in CopyFile() 390 fout.flush(); in CopyFile() 391 fout.close(); in CopyFile()
|