/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_inotify.cpp | 60 string localPath = "/storage/media/local/"; in ConvertMediaPath() local 62 if (mediaPath.find(localPath) != string::npos) { in ConvertMediaPath() 63 mediaPath.replace(mediaPath.find(localPath), localPath.length(), cloudPath); in ConvertMediaPath()
|
H A D | medialibrary_audio_operations.cpp | 427 string localPath = path.replace(0, CLOUD_AUDIO_DIR.length(), LOCAL_AUDIO_DIR); in MoveToMusic() local 429 if (!MediaFileUtils::ModifyAsset(localPath, MUSIC_DIR + displayName)) { in MoveToMusic()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/include/ |
H A D | cloud_ext_types.h | 108 const unsigned char *localPath; member 154 int OhCloudExtCloudAssetGetLocalPath(const OhCloudExtCloudAsset *asset, unsigned char **localPath, unsigned int *len);
|
/foundation/arkui/ace_engine/adapter/ohos/capability/html/ |
H A D | span_to_html.cpp | 373 std::string localPath = TEMP_HTML_CONVERT_DATA_ROOT_PATH + std::string("/") + fileName; in WriteLocalFile() local 380 imagePacker->StartPacking(localPath, option); in WriteLocalFile() 387 if (chmod(localPath.c_str(), CHOWN_RW_UG) != 0) { in WriteLocalFile() 390 fileUri = "file:///" + localPath; in WriteLocalFile()
|
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/ |
H A D | file_operations_cloud_mock.cpp | 566 string localPath = CloudFileUtils::GetLocalFilePath(cloudId, parentInode->bundleName, data->userId); in DoCloudUnlink() local 567 LOGI("unlink %{public}s", GetAnonyString(localPath).c_str()); in DoCloudUnlink() 568 ret = unlink(localPath.c_str()); in DoCloudUnlink()
|
/foundation/ability/ability_runtime/test/unittest/appkit/main_thread_test/ |
H A D | main_thread_test.cpp | 1877 std::vector<std::string> localPath = {}; in HWTEST_F() local 1878 mainThread_->ChangeToLocalPath(bundleName, sourceDirs1, localPath); in HWTEST_F() 1881 mainThread_->ChangeToLocalPath(bundleName, sourceDirs2, localPath); in HWTEST_F() 2076 std::string localPath = "/data/app/el1/bundle/public/com.ohos.demo/"; in HWTEST_F() local 2077 mainThread_->ChangeToLocalPath(bundleName, localPath, localPath); in HWTEST_F() 2078 EXPECT_TRUE(localPath == "/data/storage/el1/bundle/"); in HWTEST_F() 2092 std::string localPath = "/data/app/el1/bundle/public/com.example.demo/"; in HWTEST_F() local 2093 mainThread_->ChangeToLocalPath(bundleName, localPath, localPath); in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | context_impl_test.cpp | 1225 std::string localPath = "/data/app/el1/bundle/public/com.ohos.demo/"; in HWTEST_F() local 1226 contextImpl->ChangeToLocalPath(bundleName, localPath, localPath); in HWTEST_F() 1227 EXPECT_TRUE(localPath == "/data/storage/el1/bundle/"); in HWTEST_F() 1242 std::string localPath = "/data/app/el1/bundle/public/com.example.demo/"; in HWTEST_F() local 1243 contextImpl->ChangeToLocalPath(bundleName, localPath, localPath); in HWTEST_F() 1244 EXPECT_TRUE(localPath == "/data/bundles/com.example.demo/"); in HWTEST_F()
|
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/ |
H A D | main_thread.h | 684 const std::vector<std::string> &sourceDirs, std::vector<std::string> &localPath); 687 const std::string &sourcDir, std::string &localPath);
|
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/ |
H A D | context_impl.cpp | 1419 void ContextImpl::ChangeToLocalPath(const std::string& bundleName, const std::string& sourceDir, std::string& localPath) in ChangeToLocalPath() argument 1427 isExist = std::regex_search(localPath, std::regex(bundleName)); in ChangeToLocalPath() 1429 TAG_LOGE(AAFwkTag::APPKIT, "ChangeToLocalPath error localPath:%{public}s bundleName:%{public}s", in ChangeToLocalPath() 1430 localPath.c_str(), bundleName.c_str()); in ChangeToLocalPath() 1433 localPath = std::regex_replace(localPath, pattern, std::string(LOCAL_CODE_PATH)); in ChangeToLocalPath() 1435 localPath = std::regex_replace(localPath, std::regex(ABS_CODE_PATH), LOCAL_BUNDLES); in ChangeToLocalPath()
|
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | clone_restore.cpp | 533 string localPath = BackupFileUtils::GetReplacedPathByPrefixType(PrefixType::CLOUD, PrefixType::LOCAL, in MovePicture() local 537 opRet = this->MoveFile(fileInfo.filePath, localPath); in MovePicture() 539 opRet = this->CopyFile(fileInfo.filePath, localPath); in MovePicture() 556 std::string localPath = BackupFileUtils::GetReplacedPathByPrefixType(PrefixType::CLOUD, PrefixType::LOCAL, in MoveMovingPhotoVideo() local 563 std::string localVideoPath = MediaFileUtils::GetMovingPhotoVideoPath(localPath); in MoveMovingPhotoVideo() 581 string localPath = in MoveEditedData() local 1499 string localPath = RESTORE_MUSIC_LOCAL_DIR + fileInfo.displayName; in InsertAudio() local 1500 if (MediaFileUtils::IsFileExists(localPath)) { in InsertAudio() 1501 MEDIA_INFO_LOG("localPath %{public}s already exists.", in InsertAudio() 1506 int32_t moveErrCode = MoveFile(fileInfo.filePath, localPath); in InsertAudio() [all...] |
H A D | base_restore.cpp | 463 string localPath = tmpPath.replace(0, RESTORE_CLOUD_DIR.length(), RESTORE_LOCAL_DIR); in MoveAndModifyFile() local 464 int32_t errCode = BackupFileUtils::MoveFile(fileInfo.filePath, localPath, sceneCode); in MoveAndModifyFile() 468 BackupFileUtils::GarbleFilePath(localPath, sceneCode).c_str(), errCode, errno); in MoveAndModifyFile() 471 BackupFileUtils::ModifyFile(localPath, fileInfo.dateModified / MSEC_TO_SEC); in MoveAndModifyFile() 482 (void)MediaFileUtils::DeleteFile(localPath); in MoveAndModifyFile()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | main_thread.cpp | 1860 const std::vector<std::string> &sourceDirs, std::vector<std::string> &localPath) in ChangeToLocalPath() 1868 localPath.emplace_back( in ChangeToLocalPath() 1874 const std::string &sourceDir, std::string &localPath) in ChangeToLocalPath() 1882 isExist = std::regex_search(localPath, std::regex(bundleName)); in ChangeToLocalPath() 1884 TAG_LOGE(AAFwkTag::APPKIT, "ChangeToLocalPath error localPath:%{public}s bundleName:%{public}s", in ChangeToLocalPath() 1885 localPath.c_str(), bundleName.c_str()); in ChangeToLocalPath() 1888 localPath = std::regex_replace(localPath, pattern, std::string(LOCAL_CODE_PATH)); in ChangeToLocalPath() 1890 localPath = std::regex_replace(localPath, st in ChangeToLocalPath() 1859 ChangeToLocalPath(const std::string &bundleName, const std::vector<std::string> &sourceDirs, std::vector<std::string> &localPath) ChangeToLocalPath() argument 1873 ChangeToLocalPath(const std::string &bundleName, const std::string &sourceDir, std::string &localPath) ChangeToLocalPath() argument [all...] |
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/ |
H A D | context_impl.h | 447 const std::string &sourcDir, std::string &localPath);
|
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/ |
H A D | file_operations_cloud.cpp | 1102 string localPath = CloudFileUtils::GetLocalFilePath(cloudId, parentInode->bundleName, data->userId); in DoCloudUnlink() local 1103 LOGI("unlink %{public}s", GetAnonyString(localPath).c_str()); in DoCloudUnlink() 1104 ret = unlink(localPath.c_str()); in DoCloudUnlink()
|
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/fuse_manager/ |
H A D | fuse_manager.cpp | 600 string localPath = GetLocalPath(data->userId, cInode->path); in CloudOpenOnLocal() local 625 filesystem::path parentPath = filesystem::path(localPath).parent_path(); in CloudOpenOnLocal() 627 if (rename(tmpPath.c_str(), localPath.c_str()) < 0) { in CloudOpenOnLocal() 628 LOGE("Failed to rename tmpPath to localPath, errno: %{public}d", errno); in CloudOpenOnLocal()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/ |
H A D | extension_util.cpp | 439 .localPath = reinterpret_cast<const unsigned char *>(dbAsset.path.c_str()), in Convert()
|