/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_filesystem/ |
H A D | b_file_test.cpp | 69 BFile bf;
in HWTEST_F() 97 BFile::SendFile(UniqueFd(open(fileOutPath.data(), O_RDWR)),
in HWTEST_F() 99 string contentTmp = BFile::ReadFile(UniqueFd(open(fileOutPath.c_str(), O_RDONLY))).get();
in HWTEST_F() 125 auto ret = BFile::CopyFile(filePath, fileInPath);
in HWTEST_F() 128 ret = BFile::CopyFile(filePath, filePath);
in HWTEST_F() 154 auto ret = BFile::MoveFile(filePath, fileInPath);
in HWTEST_F() 157 ret = BFile::MoveFile(filePath, filePath);
in HWTEST_F() 183 BFile::Write(UniqueFd(open(filePath.data(), O_RDWR)), fileInPath);
in HWTEST_F() 184 string contentTmp = BFile::ReadFile(UniqueFd(open(fileInPath.c_str(), O_RDONLY))).get();
in HWTEST_F()
|
/foundation/filemanagement/app_file_service/tests/mock/b_filesystem/ |
H A D | b_file_mock.cpp | 27 unique_ptr<char[]> BFile::ReadFile(const UniqueFd &fd) in ReadFile() 30 GTEST_LOG_(INFO) << "BFile::ReadFile lseek error " << errno; in ReadFile() 36 GTEST_LOG_(INFO) << "BFile::ReadFile fstat error " << errno; in ReadFile() 41 GTEST_LOG_(INFO) << "BFile::ReadFile fileSize error " << fileSize; in ReadFile() 47 GTEST_LOG_(INFO) << "BFile::ReadFile read error " << errno; in ReadFile() 52 void BFile::SendFile(int outFd, int inFd) in SendFile() 60 GTEST_LOG_(INFO) << "BFile::SendFile lseek1 error " << errno; in SendFile() 64 GTEST_LOG_(INFO) << "BFile::SendFile lseek2 error " << errno; in SendFile() 69 GTEST_LOG_(INFO) << "BFile::SendFile fstat error " << errno; in SendFile() 76 GTEST_LOG_(INFO) << "BFile in SendFile() [all...] |
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/ |
H A D | b_file.cpp | 34 unique_ptr<char[]> BFile::ReadFile(const UniqueFd &fd) in ReadFile() 57 void BFile::SendFile(int outFd, int inFd) in SendFile() 83 void BFile::Write(const UniqueFd &fd, const string &str) in Write() 94 bool BFile::CopyFile(const string &from, const string &to) in CopyFile() 145 bool BFile::GetRealPath(const string &path, string &realPath) in GetRealPath() 162 bool BFile::MoveFile(const string &from, const string &to) in MoveFile() 214 bool BFile::EndsWith(const string &str, const string &suffix) in EndsWith()
|
/foundation/filemanagement/app_file_service/utils/include/b_json/ |
H A D | b_json_cached_entity.h | 63 BFile::Write(srcFile_, jsonFileContent); in Persist() 77 std::unique_ptr<char[]> rawBuf = BFile::ReadFile(srcFile_); in ReloadFromFile()
|
/foundation/filemanagement/app_file_service/utils/src/b_json/ |
H A D | b_json_entity_extension_config.cpp | 145 return BFile::ReadFile(std::move(fd)).get(); in GetJSonSource() 169 return BFile::ReadFile(std::move(fd)).get(); in GetJSonSource()
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | ext_backup_context.cpp | 32 if (BFile::EndsWith(bundleName, BConstants::BUNDLE_FILE_MANAGER) && bundleName.size() == BConstants::FM_LEN) { in GetBackupDir()
|
H A D | ext_extension.cpp | 95 if (BFile::EndsWith(bundleName, BConstants::BUNDLE_FILE_MANAGER) && bundleName.size() == BConstants::FM_LEN) { in GetIndexFileRestorePath() 108 if (BFile::EndsWith(bundleName, BConstants::BUNDLE_FILE_MANAGER) && bundleName.size() == BConstants::FM_LEN) { in GetRestoreTempPath() 318 if (BFile::EndsWith(bundleName, BConstants::BUNDLE_FILE_MANAGER) && bundleName.size() == BConstants::FM_LEN) { in GetIncrementalFileHandlePath() 1171 if (!BFile::MoveFile(fileName, filePath)) { in RestoreOneBigFile()
|
/foundation/filemanagement/app_file_service/utils/include/b_filesystem/ |
H A D | b_file.h | 29 class BFile { class
|
/foundation/filemanagement/app_file_service/tools/backup_tool/src/ |
H A D | tools_op_incremental_backup.cpp | 157 BFile::SendFile(fdLocal, fd); in OnFileReady() 169 BFile::SendFile(fdManifest, manifestFd); in OnFileReady() 178 BFile::SendFile(fullDatFd, fdManifest); in OnFileReady() 293 BFile::SendFile(fdLocal, fd); in GetLocalCapabilitiesIncremental()
|
H A D | tools_op_backup.cpp | 142 BFile::SendFile(fdLocal, fd); in OnFileReady() 248 BFile::SendFile(fdLocal, proxy->GetLocalCapabilities()); in InitPathCapFile()
|
H A D | tools_op_incremental_restore.cpp | 145 BFile::SendFile(fd, fdLocal); in OnFileReady() 155 BFile::SendFile(manifestFd, fdManifest); in OnFileReady()
|
H A D | tools_op_incremental_restore_async.cpp | 125 BFile::SendFile(fd, fdLocal); in OnFileReady()
|
H A D | tools_op_restore_async.cpp | 119 BFile::SendFile(fd, fdLocal); in OnFileReady()
|
H A D | tools_op_restore.cpp | 134 BFile::SendFile(fd, fdLocal); in OnFileReady()
|