Home
last modified time | relevance | path

Searched refs:newFileName (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/base/update/updater/services/diffpatch/diff/
H A Dupdate_diff.cpp137 const std::string &newFileName, const std::string &patchFileName) in MakePatch() argument
140 return BlocksDiff::MakePatch(oldFileName, newFileName, patchFileName); in MakePatch()
150 if (newParser_->Parse(newFileName) != 0 || oldParser_->Parse(oldFileName) != 0) { in MakePatch()
187 const std::string &newFileName, const std::string &patchFileName) in DiffImage() argument
194 return updateDiff->MakePatch(oldFileName, newFileName, patchFileName); in DiffImage()
198 const std::string &newFileName, const std::string &patchFileName) in DiffBlock() argument
205 return updateDiff->MakePatch(oldFileName, newFileName, patchFileName); in DiffBlock()
H A Dupdate_diff.h57 …int32_t MakePatch(const std::string &oldFileName, const std::string &newFileName, const std::strin…
60 const std::string &newFileName, const std::string &patchFileName);
63 const std::string &newFileName, const std::string &patchFileName);
H A Dblocks_diff.h53 const std::string &newFileName, const std::string &patchFileName);
H A Dblocks_diff.cpp62 int32_t BlocksDiff::MakePatch(const std::string &oldFileName, const std::string &newFileName, in MakePatch() argument
75 int32_t ret1 = PatchMapFile(newFileName, newBuffer); in MakePatch()
77 PATCH_LOGE("Failed to open %s", newFileName.c_str()); in MakePatch()
/ohos5.0/foundation/multimedia/ringtone_library/frameworks/ringtone_extension_hap/RingtoneLibraryExt/entry/src/main/ets/RingtoneBackupExtAbility/
H A DRingtoneBackupExtAbility.ts140 let newFileName = srcFileName;
142 while (this.isFileExist(`${dirPath}/${newFileName}`)) {
144 newFileName = `${fileNameWithoutExt}(${count})`;
146 newFileName = `${fileNameWithoutExt}(${count}).${fileExt}`;
151 await fs.copyFile(srcFile, `${dirPath}/${newFileName}`);
/ohos5.0/base/hiviewdfx/hiview/base/running_status_logger/
H A Drunning_status_logger.cpp67 std::string newFileName = GetLogDir() + "runningstatus_" + FormatTimeStamp(true) + suffix; in GenerateNewestFileName() local
68 HIVIEW_LOGD("create new log file: %{public}s.", newFileName.c_str()); in GenerateNewestFileName()
69 return newFileName; in GenerateNewestFileName()
/ohos5.0/base/update/updater/services/include/patch/
H A Dupdate_patch.h73 …FilePatchWriter(const std::string &newFileName) : UpdatePatchWriter(), newFileName_(newFileName) {} in FilePatchWriter() argument
/ohos5.0/foundation/filemanagement/dfs_service/services/clouddisk_database/src/
H A Dclouddisk_rdbstore.cpp1080 values.PutString(FileColumn::FILE_NAME, newFileName); in FileRename()
1082 FillFileType(newFileName, values); in FileRename()
1100 const std::string &newFileName) in FileMoveAndRename() argument
1103 values.PutString(FileColumn::FILE_NAME, newFileName); in FileMoveAndRename()
1105 FillFileType(newFileName, values); in FileMoveAndRename()
1118 string newFileName = newNode.fileName; in HandleRenameValue() local
1121 FileRename(rename, position, newFileName); in HandleRenameValue()
1132 const std::string &newParentCloudId, const std::string &newFileName) in Rename() argument
1134 int32_t ret = CheckName(newFileName); in Rename()
1150 ret = CheckNameForSpace(newFileName, S_ISDIR(metaBase.mode)); in Rename()
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_file_list.c502 int32_t FileListRenameFile(FileList *fileList, uint16_t fileId, const char *newFileName) in FileListRenameFile() argument
504 if (fileList == NULL || fileId == 0 || fileId > fileList->num || newFileName == NULL || in FileListRenameFile()
505 strlen(newFileName) == 0 || strlen(newFileName) >= NSTACKX_MAX_REMOTE_PATH_LEN) { in FileListRenameFile()
508 …if (strcpy_s(fileList->list[fileId - 1].fileName, NSTACKX_MAX_REMOTE_PATH_LEN, newFileName) != EOK… in FileListRenameFile()
H A Dnstackx_dfile_transfer.c1160 …if (strlen(renamePara.newFileName) == 0 || strlen(renamePara.newFileName) + 1 > NSTACKX_MAX_REMOTE… in RenameFileIfExisting()
1164 if (GetFileNameLen(renamePara.newFileName) > NSTACKX_MAX_FILE_NAME_LEN) { in RenameFileIfExisting()
1168 … if (FileListRenameFile(dFileTrans->fileList, i + 1, renamePara.newFileName) != NSTACKX_EOK) { in RenameFileIfExisting()
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_daemon_handler.cpp229 std::string newFileName = std::string(newFile) + PATH_SEPARATOR + ent->d_name; in MoveFile() local
230 if (!BundleFileUtils::RenameFile(oldFileName.c_str(), newFileName.c_str())) { in MoveFile()
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/
H A Dclouddisk_rdbstore_mock.cpp184 const std::string &newParentCloudId, const std::string &newFileName) in Rename() argument
186 if (oldFileName == "mock" || newFileName == "mock") { in Rename()
/ohos5.0/foundation/communication/dsoftbus/interfaces/kits/transport/
H A Dtrans_type.h297 char newFileName[MAX_PATH_LEN]; /**< New file name */ member
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/
H A Dclouddisk_rdbstore_test.cpp812 const std::string newFileName = ""; variable
816 …t32_t ret = CloudDiskRdbStore.Rename(oldParentCloudId, oldFileName, newParentCloudId, newFileName);
831 const std::string newFileName = "test"; variable
835 …t32_t ret = CloudDiskRdbStore.Rename(oldParentCloudId, oldFileName, newParentCloudId, newFileName);
850 const std::string newFileName = " test"; variable
854 …t32_t ret = CloudDiskRdbStore.Rename(oldParentCloudId, oldFileName, newParentCloudId, newFileName);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Ddatabase_oper.cpp42 std::string newFileName; in ExecuteRekey() local
43 errCode = CreateStatusCtrlFile(property, ctrlFileName, newFileName); in ExecuteRekey()
56 errCode = RenameStatusCtrlFile(ctrlFileName, newFileName); in ExecuteRekey()
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_adapter_impl.cpp535 std::string newFileName = fileName; in GetRawfile() local
537 newFileName = std::string(fileName.begin(), it); in GetRawfile()
540 auto state = manager->GetRawFilePathByName(newFileName, outPath); in GetRawfile()
H A Dresource_adapter_impl_v2.cpp652 std::string newFileName = fileName; in GetRawfile() local
654 newFileName = std::string(fileName.begin(), it); in GetRawfile()
657 auto state = manager->GetRawFilePathByName(newFileName, outPath); in GetRawfile()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/
H A Dnstackx_file_list.h202 int32_t FileListRenameFile(FileList *fileList, uint16_t fileId, const char *newFileName);
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/interface/
H A Dnstackx_dfile.h178 char newFileName[NSTACKX_MAX_REMOTE_PATH_LEN]; member
/ohos5.0/foundation/filemanagement/dfs_service/services/clouddisk_database/include/
H A Dclouddisk_rdbstore.h58 const std::string &newParentCloudId, const std::string &newFileName);
/ohos5.0/foundation/filemanagement/user_file_service/services/file_extension_hap/entry/src/main/ets/FileExtensionAbility/
H A DFileExtensionAbility.ts282 let newFileName = currentTrashParentPath + selectFileOnly;
284 fs.moveFileSync(path, newFileName, 0);
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/
H A Dclient_trans_file.c465 (void)strcpy_s(renamePara->newFileName, NSTACKX_MAX_REMOTE_PATH_LEN, renamePara->initFileName); in RenameHook()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
H A Dfaultlogger_unittest.cpp212 std::string newFileName = oldFileName + "_" + name; in CheckKeyWordsInJsErrorAppEventFile() local
213 rename(oldFileName.c_str(), newFileName.c_str()); in CheckKeyWordsInJsErrorAppEventFile()