Searched refs:uploadPath (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/base/hiviewdfx/hiview/base/utility/ |
H A D | hiview_db_util.cpp | 75 bool InitDbUploadPath(const std::string& dbPath, std::string& uploadPath) in InitDbUploadPath() argument 77 if (!uploadPath.empty()) { in InitDbUploadPath() 93 uploadPath = tmpUploadPath; in InitDbUploadPath() 94 HIVIEW_LOGI("init db upload path=%{public}s", uploadPath.c_str()); in InitDbUploadPath() 98 void MoveDbFilesToUploadDir(const std::string& dbPath, const std::string& uploadPath) in MoveDbFilesToUploadDir() argument 105 MoveDbFileToUploadDir(dbFile, uploadPath); in MoveDbFilesToUploadDir() 120 void MoveDbFileToUploadDir(const std::string& dbPath, const std::string& uploadPath) in MoveDbFileToUploadDir() argument 122 std::string uploadFilePath = FileUtil::IncludeTrailingPathDelimiter(uploadPath) in MoveDbFileToUploadDir() 134 void TryToAgeUploadDbFiles(const std::string& uploadPath, uint32_t maxFileNum) in TryToAgeUploadDbFiles() argument 137 FileUtil::GetDirFiles(uploadPath, dbFiles); in TryToAgeUploadDbFiles()
|
/ohos5.0/base/hiviewdfx/hiview/base/utility/include/ |
H A D | hiview_db_util.h | 25 bool InitDbUploadPath(const std::string& dbPath, std::string& uploadPath); 26 void MoveDbFilesToUploadDir(const std::string& dbPath, const std::string& uploadPath); 27 void MoveDbFileToUploadDir(const std::string& dbFilePath, const std::string& uploadPath); 28 void TryToAgeUploadDbFiles(const std::string& uploadPath, uint32_t maxNum = 7); // 7: one week
|
/ohos5.0/base/hiviewdfx/hiview/base/utility/test/unittest/common/ |
H A D | adapter_utility_ohos_test.cpp | 611 std::string uploadPath = UPLOAD_PATH; variable 612 ASSERT_TRUE(HiviewDbUtil::InitDbUploadPath("", uploadPath)); 613 uploadPath = ""; 614 ASSERT_FALSE(HiviewDbUtil::InitDbUploadPath("", uploadPath)); 615 ASSERT_TRUE(HiviewDbUtil::InitDbUploadPath(DB_PATH, uploadPath)); 620 HiviewDbUtil::MoveDbFilesToUploadDir(DB_PATH, uploadPath); 622 ASSERT_TRUE(FileUtil::FileExists(uploadPath + "/" + dbFile)); 623 HiviewDbUtil::TryToAgeUploadDbFiles(uploadPath, 1); // 1 is the max file number 624 ASSERT_TRUE(FileUtil::FileExists(uploadPath + "/" + dbFile)); 625 HiviewDbUtil::TryToAgeUploadDbFiles(uploadPath, 0); // 0 is the max file number [all …]
|