/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/ |
H A D | store_util.cpp | 235 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 D | external_file_access_test.cpp | 121 …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 D | external_file_access_test.h | 45 static bool ReplaceBundleNameFromPath(std::string &path, const std::string &newName);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | store_util.cpp | 229 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 D | ble_properties.cpp | 94 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 D | media_space_statistics_test.cpp | 46 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 D | paramservice_unittest.cpp | 407 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 D | medialibrary_smartalbum_map_operations.cpp | 326 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 D | diffpatch_unittest.cpp | 143 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 D | meta_file.h | 56 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 D | manage-os-account.md | 111 let newName: string = 'Tom'; 112 accountManager.setOsAccountName(localId, newName, (err: BusinessError) => {
|
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/ |
H A D | fuse_operations.cpp | 262 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 D | clouddisk_notify_const.h | 55 std::string newName = ""; member
|
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/ |
H A D | fuse_operations_test.cpp | 759 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 D | file_operations_cloud_test.cpp | 1787 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 D | store_util.h | 46 static bool Rename(const std::string &oldName, const std::string &newName);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/ |
H A D | store_util.h | 47 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 D | index.test.js | 91 (newName, oldName) => { 93 expect(newName).toBe('Chen2');
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_gap.cpp | 421 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 D | fuse_operations.h | 46 fuse_ino_t newParent, const char *newName, unsigned int flags);
|
H A D | file_operations_cloud.h | 44 fuse_ino_t newParent, const char *newName, unsigned int flags) override;
|
H A D | file_operations_base.h | 51 fuse_ino_t newParent, const char *newName, unsigned int flags);
|
/ohos5.0/docs/en/application-dev/basic-services/account/ |
H A D | manage-os-account.md | 111 let newName: string = 'Tom'; 112 accountManager.setOsAccountName(localId, newName, (err: BusinessError) => {
|
/ohos5.0/foundation/multimedia/media_foundation/src/osal/task/pthread/ |
H A D | taskInner.cpp | 56 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 D | update_patch.cpp | 224 const std::string &oldName, const std::string &newName) in ApplyPatch() argument 239 std::unique_ptr<FilePatchWriter> writer = std::make_unique<FilePatchWriter>(newName); in ApplyPatch()
|