/ohos5.0/base/update/updater/test/unittest/diffpatch/ |
H A D | diffpatch_unittest.cpp | 46 int BlockDiffPatchTest(const std::string &oldFile, in BlockDiffPatchTest() argument 49 int32_t ret = UpdatePatch::UpdateDiff::DiffBlock(TEST_PATH_FROM + oldFile, in BlockDiffPatchTest() 53 TEST_PATH_FROM + oldFile, TEST_PATH_FROM + restoreFile); in BlockDiffPatchTest() 62 int ImgageDiffPatchFileTest(size_t limit, const std::string &oldFile, in ImgageDiffPatchFileTest() argument 65 int32_t ret = UpdatePatch::UpdateDiff::DiffImage(limit, TEST_PATH_FROM + oldFile, in ImgageDiffPatchFileTest() 69 TEST_PATH_FROM + oldFile, TEST_PATH_FROM + restoreFile); in ImgageDiffPatchFileTest() 115 int ImgageDiffPatchFileTest2(size_t limit, const std::string &oldFile, in ImgageDiffPatchFileTest2() argument 118 int32_t ret = UpdatePatch::UpdateDiff::DiffImage(limit, TEST_PATH_FROM + oldFile, in ImgageDiffPatchFileTest2() 192 int BlockDiffPatchTest2(const std::string &oldFile, in BlockDiffPatchTest2() argument 195 int32_t ret = UpdatePatch::UpdateDiff::DiffBlock(TEST_PATH_FROM + oldFile, in BlockDiffPatchTest2() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/common/ |
H A D | net_policy_file_event_handler.cpp | 95 std::ifstream oldFile(POLICY_FILE_NAME, std::ios::binary); in Write() local 97 if (!oldFile.is_open() && !newFile.is_open()) { in Write() 101 newFile << oldFile.rdbuf(); in Write() 102 oldFile.close(); in Write()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
H A D | bundle_daemon.cpp | 179 std::string oldFile = ""; in RenameFileInvoke() local 181 int32_t ret = ObtainStringFromIpc(req, oldFile, newFile); in RenameFileInvoke() 185 return BundleDaemon::GetInstance().handler_.RenameFile(oldFile.c_str(), newFile.c_str()); in RenameFileInvoke() 229 const char *oldFile = reinterpret_cast<char *>(ReadString(req, &len)); in MoveFileInvoke() local 230 if (oldFile == nullptr || len == 0) { in MoveFileInvoke() 237 return BundleDaemon::GetInstance().handler_.MoveFile(oldFile, newFile); in MoveFileInvoke()
|
H A D | bundle_daemon_handler.cpp | 99 int32_t BundleDaemonHandler::RenameFile(const char *oldFile, const char *newFile) in RenameFile() argument 102 if (oldFile == nullptr || realpath(oldFile, realOldPath) == nullptr) { in RenameFile() 192 int32_t BundleDaemonHandler::MoveFile(const char *oldFile, const char *newFile) in MoveFile() argument 195 if (oldFile == nullptr || realpath(oldFile, static_cast<char *>(realOldPath)) == nullptr) { in MoveFile()
|
H A D | bundle_file_utils.cpp | 135 bool BundleFileUtils::RenameFile(const char *oldFile, const char *newFile) in RenameFile() argument 137 if (oldFile == nullptr || newFile == nullptr) { in RenameFile() 144 return rename(oldFile, newFile) == 0; in RenameFile()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_daemon_client.cpp | 244 int32_t BundleDaemonClient::RenameFile(const char *oldFile, const char *newFile) in RegisterCallback() argument 249 if (oldFile == nullptr || newFile == nullptr) { in RegisterCallback() 254 return CallClientInvoke(RENAME_DIR, oldFile, newFile); in RegisterCallback() 319 int32_t BundleDaemonClient::MoveFile(const char *oldFile, const char *newFile) in RegisterCallback() argument 324 if ((oldFile == nullptr) || (newFile == nullptr)) { in RegisterCallback() 331 WriteString(&request, oldFile); in RegisterCallback()
|
H A D | bundle_util.cpp | 916 bool BundleUtil::RenameFile(const char *oldFile, const char *newFile) in RenameFile() argument 918 if (oldFile == nullptr || newFile == nullptr) { in RenameFile() 927 if (frename(oldFile, newFile) != 0) { in RenameFile() 931 if (rename(oldFile, newFile) != 0) { in RenameFile()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/include/ |
H A D | bundle_daemon_handler.h | 28 int32_t RenameFile(const char *oldFile, const char *newFile); 32 int32_t MoveFile(const char *oldFile, const char *newFile);
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | bundle_daemon_client.h | 37 int32_t RenameFile(const char *oldFile, const char *newFile); 41 int32_t MoveFile(const char *oldFile, const char *newFile);
|
H A D | bundle_util.h | 63 static bool RenameFile(const char *oldFile, const char *newFile);
|
/ohos5.0/base/update/sys_installer/services/module_update/util/src/ |
H A D | module_file.cpp | 416 bool ModuleFile::CompareVersion(const ModuleFile &newFile, const ModuleFile &oldFile) in CompareVersion() argument 418 if (newFile.GetPath() == oldFile.GetPath()) { in CompareVersion() 425 !ParseVersion(oldFile.GetVersionInfo().version, " ", oldVersion)) { in CompareVersion() 434 …if (!CompareSaListVersion(oldFile.GetVersionInfo().saInfoList, newFile.GetVersionInfo().saInfoList… in CompareVersion() 438 …if (!CompareBundleList(oldFile.GetVersionInfo().bundleInfoList, newFile.GetVersionInfo().bundleInf… in CompareVersion()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/extend_resource/ |
H A D | extend_resource_manager_host_impl.cpp | 250 for (const auto &oldFile : oldFilePaths) { in CopyToTempDir() local 258 tempFile.append(GetFileName(oldFile)); in CopyToTempDir() 259 ret = InstalldClient::GetInstance()->MoveFile(oldFile, tempFile); in CopyToTempDir()
|
/ohos5.0/base/update/sys_installer/services/module_update/util/include/ |
H A D | module_file.h | 105 static bool CompareVersion(const ModuleFile &newFile, const ModuleFile &oldFile);
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | file_fs_ffi.h | 45 FFI_EXPORT int32_t FfiOHOSFileFsRename(const char* oldFile, const char* newFile);
|
H A D | file_fs_ffi.cpp | 307 int32_t FfiOHOSFileFsRename(const char* oldFile, const char* newFile) in FfiOHOSFileFsRename() argument 310 auto code = FileFsImpl::Rename(oldFile, newFile); in FfiOHOSFileFsRename()
|