Home
last modified time | relevance | path

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

/ohos5.0/base/update/updater/test/unittest/updater_main_test/
H A Dupdater_main_unittest.cpp115 const std::string dLog = "/data/updater/main_data/ut_dLog.txt"; variable
116 bool ret = CopyUpdaterLogs(sLog, dLog);
118 unlink(dLog.c_str());
/ohos5.0/base/update/updater/test/unittest/utils/
H A Dutils_unittest.cpp127 const std::string dLog = "/data/updater/main_data/ut_dLog.txt"; variable
128 bool ret = Utils::CopyUpdaterLogs(sLog, dLog);
130 unlink(dLog.c_str());
/ohos5.0/base/update/updater/test/fuzztest/updaterutils_fuzzer/
H A Dupdater_utils_fuzzer.cpp124 const std::string dLog = "/data/updater/main_data/ut_dLog.txt"; in TestCopyUpdaterLogs() local
125 Utils::CopyUpdaterLogs(sLog, dLog); in TestCopyUpdaterLogs()
126 unlink(dLog.c_str()); in TestCopyUpdaterLogs()
/ohos5.0/base/update/updater/utils/
H A Dutils.cpp564 bool CopyUpdaterLogs(const std::string &sLog, const std::string &dLog) in CopyUpdaterLogs() argument
566 std::size_t found = dLog.find_last_of("/"); in CopyUpdaterLogs()
571 std::string destPath = dLog.substr(0, found); in CopyUpdaterLogs()
592 while (Utils::GetFileSize(sLog) + GetDirSizeForFile(dLog) > MAX_LOG_DIR_SIZE) { in CopyUpdaterLogs()
598 if (!CopyFile(sLog, dLog, true)) { in CopyUpdaterLogs()
602 if (GetFileSize(dLog) >= MAX_LOG_SIZE) { in CopyUpdaterLogs()
604 CompressLogs(dLog); in CopyUpdaterLogs()
/ohos5.0/base/update/updater/utils/include/
H A Dutils.h77 bool CopyUpdaterLogs(const std::string &sLog, const std::string &dLog);