Home
last modified time | relevance | path

Searched refs:oldFile (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/base/update/updater/test/unittest/diffpatch/
H A Ddiffpatch_unittest.cpp46 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 Dnet_policy_file_event_handler.cpp95 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 Dbundle_daemon.cpp179 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 Dbundle_daemon_handler.cpp99 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 Dbundle_file_utils.cpp135 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 Dbundle_daemon_client.cpp244 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 Dbundle_util.cpp916 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 Dbundle_daemon_handler.h28 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 Dbundle_daemon_client.h37 int32_t RenameFile(const char *oldFile, const char *newFile);
41 int32_t MoveFile(const char *oldFile, const char *newFile);
H A Dbundle_util.h63 static bool RenameFile(const char *oldFile, const char *newFile);
/ohos5.0/base/update/sys_installer/services/module_update/util/src/
H A Dmodule_file.cpp416 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 Dextend_resource_manager_host_impl.cpp250 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 Dmodule_file.h105 static bool CompareVersion(const ModuleFile &newFile, const ModuleFile &oldFile);
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dfile_fs_ffi.h45 FFI_EXPORT int32_t FfiOHOSFileFsRename(const char* oldFile, const char* newFile);
H A Dfile_fs_ffi.cpp307 int32_t FfiOHOSFileFsRename(const char* oldFile, const char* newFile) in FfiOHOSFileFsRename() argument
310 auto code = FileFsImpl::Rename(oldFile, newFile); in FfiOHOSFileFsRename()