Home
last modified time | relevance | path

Searched refs:newName (Results 1 – 25 of 36) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_util.cpp235 bool StoreUtil::Rename(const std::string &oldName, const std::string &newName) in Rename() argument
237 if (oldName.empty() || newName.empty()) { in Rename()
240 if (!Remove(newName)) { in Rename()
243 if (rename(oldName.c_str(), newName.c_str()) != 0) { in Rename()
244 …E("rename error:%{public}d, file:%{public}s->%{public}s", errno, oldName.c_str(), newName.c_str()); in Rename()
/ohos5.0/foundation/filemanagement/user_file_service/test/unittest/
H A Dexternal_file_access_test.cpp121 …l FileExtensionHelperTest::ReplaceBundleNameFromPath(std::string &path, const std::string &newName) in ReplaceBundleNameFromPath() argument
130 path.replace(path.find(curName), curName.length(), newName); in ReplaceBundleNameFromPath()
152 path.replace(path.find(bundleName), bundleName.length(), newName); in ReplaceBundleNameFromPath()
H A Dexternal_file_access_test.h45 static bool ReplaceBundleNameFromPath(std::string &path, const std::string &newName);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_util.cpp229 bool StoreUtil::Rename(const std::string &oldName, const std::string &newName) in Rename() argument
231 if (oldName.empty() || newName.empty()) { in Rename()
234 if (!Remove(newName)) { in Rename()
237 if (rename(oldName.c_str(), newName.c_str()) != 0) { in Rename()
238 …E("rename error:%{public}d, file:%{public}s->%{public}s", errno, oldName.c_str(), newName.c_str()); in Rename()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_properties.cpp94 std::string newName = name; in SetLocalName() local
102 newName = name.substr(0, length); in SetLocalName()
106 if (newName != pimpl->deviceName_) { in SetLocalName()
107 pimpl->deviceName_ = newName; in SetLocalName()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialib_statistic_test/src/
H A Dmedia_space_statistics_test.cpp46 void CreateFile(std::string baseURI, std::string targetPath, std::string newName, MediaType mediaTy…
297 void CreateFile(std::string baseURI, std::string targetPath, std::string newName, MediaType mediaTy… in CreateFile() argument
300 MEDIA_INFO_LOG("CreateFile:: start Create file: %s", newName.c_str()); in CreateFile()
317 valuesBucket.Put(MEDIA_DATA_DB_NAME, newName); in CreateFile()
334 MEDIA_INFO_LOG("CreateFile:: end Create file: %s", newName.c_str()); in CreateFile()
337 void CopyFile(std::string srcUri, std::string baseURI, std::string targetPath, std::string newName, in CopyFile() argument
340 MEDIA_INFO_LOG("CopyFile:: start Copy sleepSecond[%d] file: %s", sleepSecond, newName.c_str()); in CopyFile()
360 valuesBucket.Put(MEDIA_DATA_DB_NAME, newName); in CopyFile()
381 MEDIA_INFO_LOG("CopyFile:: end Copy file: %s", newName.c_str()); in CopyFile()
/ohos5.0/base/startup/init/test/unittest/param/
H A Dparamservice_unittest.cpp407 std::string newName = name; in TestAddParamWatch1() local
408 newName += ".test.test.test"; in TestAddParamWatch1()
409 SystemWriteParam(newName.c_str(), value); in TestAddParamWatch1()
430 std::string newName = name; in TestAddParamWatch3() local
431 newName += ".test.test.test"; in TestAddParamWatch3()
432 SystemWriteParam(newName.c_str(), value); in TestAddParamWatch3()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_smartalbum_map_operations.cpp326 string newName = MediaLibraryDataManagerUtils::GetDisPlayNameFromPath(assetPath); in RecycleDir() local
327 values.PutString(MEDIA_DATA_DB_NAME, newName); in RecycleDir()
328 values.PutString(MEDIA_DATA_DB_TITLE, newName); in RecycleDir()
333 string newRelPath = fileAsset->GetRelativePath() + newName + "/"; in RecycleDir()
405 string newName = MediaLibraryDataManagerUtils::GetDisPlayNameFromPath(assetPath); in RecycleFile() local
406 values.PutString(MEDIA_DATA_DB_NAME, newName); in RecycleFile()
410 values.PutString(MEDIA_DATA_DB_TITLE, newName); in RecycleFile()
/ohos5.0/base/update/updater/test/unittest/diffpatch/
H A Ddiffpatch_unittest.cpp143 const std::string &oldName, const std::string &newName, bool isBuffer) const in TestApplyBlockPatch() argument
170 std::ofstream stream(newName, std::ios::out | std::ios::binary); in TestApplyBlockPatch()
172 PATCH_LOGE("Failed to open %s", newName.c_str()); in TestApplyBlockPatch()
178 std::make_unique<UpdatePatch::FilePatchWriter>(newName); in TestApplyBlockPatch()
/ohos5.0/foundation/filemanagement/dfs_service/utils/dentry/include/
H A Dmeta_file.h56 int32_t DoRename(const MetaBase &oldBase, const std::string &newName);
57 …int32_t DoRename(MetaBase &metaBase, const std::string &newName, std::shared_ptr<MetaFile> newMeta…
90 int32_t DoRename(MetaBase &metaBase, const std::string &newName,
/ohos5.0/docs/zh-cn/application-dev/basic-services/account/
H A Dmanage-os-account.md111 let newName: string = 'Tom';
112 accountManager.setOsAccountName(localId, newName, (err: BusinessError) => {
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/
H A Dfuse_operations.cpp262 fuse_ino_t newParent, const char *newName, unsigned int flags) in Rename() argument
266 opsPtr->Rename(req, parent, name, newParent, newName, flags); in Rename()
275 inoPtr->ops->Rename(req, parent, name, newParent, newName, flags); in Rename()
/ohos5.0/foundation/filemanagement/dfs_service/services/clouddisk_database/include/
H A Dclouddisk_notify_const.h55 std::string newName = ""; member
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/
H A Dfuse_operations_test.cpp759 const char *newName = ""; variable
762 fuseoperations_->Rename(req, FUSE_ROOT_ID, name, FUSE_ROOT_ID, newName, flags);
785 const char *newName = ""; variable
788 fuseoperations_->Rename(req, 0, name, FUSE_ROOT_ID, newName, flags);
H A Dfile_operations_cloud_test.cpp1787 const char *newName = ""; variable
1791 fileOperationsCloud_->Rename(req, parent, name, newParent, newName, flags);
1815 const char *newName = ""; variable
1820 fileOperationsCloud_->Rename(req, parent, name, newParent, newName, flags);
1844 const char *newName = "mock"; variable
1849 fileOperationsCloud_->Rename(req, parent, name, newParent, newName, flags);
1873 const char *newName = "test"; variable
1878 fileOperationsCloud_->Rename(req, parent, name, newParent, newName, flags);
/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/include/
H A Dstore_util.h46 static bool Rename(const std::string &oldName, const std::string &newName);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/
H A Dstore_util.h47 static bool Rename(const std::string &oldName, const std::string &newName);
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/packages/runtime-core/src/__test__/
H A Dindex.test.js91 (newName, oldName) => {
93 expect(newName).toBe('Chen2');
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gap.cpp421 string newName(reinterpret_cast<const char *>(localName)); in SetLocalName()
423 int ret = g_BluetoothHost->SetLocalName(newName); in SetLocalName()
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/include/cloud_disk/
H A Dfuse_operations.h46 fuse_ino_t newParent, const char *newName, unsigned int flags);
H A Dfile_operations_cloud.h44 fuse_ino_t newParent, const char *newName, unsigned int flags) override;
H A Dfile_operations_base.h51 fuse_ino_t newParent, const char *newName, unsigned int flags);
/ohos5.0/docs/en/application-dev/basic-services/account/
H A Dmanage-os-account.md111 let newName: string = 'Tom';
112 accountManager.setOsAccountName(localId, newName, (err: BusinessError) => {
/ohos5.0/foundation/multimedia/media_foundation/src/osal/task/pthread/
H A DtaskInner.cpp56 std::string newName = name_ + std::to_string(++singletonTaskId); in TaskInner() local
57 pipelineThread_ = PipeLineThreadPool::GetInstance().FindThread(newName, type, priority); in TaskInner()
/ohos5.0/base/update/updater/services/diffpatch/patch/
H A Dupdate_patch.cpp224 const std::string &oldName, const std::string &newName) in ApplyPatch() argument
239 std::unique_ptr<FilePatchWriter> writer = std::make_unique<FilePatchWriter>(newName); in ApplyPatch()

12