Home
last modified time | relevance | path

Searched refs:localPath (Results 1 - 16 of 16) sorted by relevance

/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_inotify.cpp60 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 Dmedialibrary_audio_operations.cpp427 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 Dcloud_ext_types.h108 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 Dspan_to_html.cpp373 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 Dfile_operations_cloud_mock.cpp566 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 Dmain_thread_test.cpp1877 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 Dcontext_impl_test.cpp1225 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 Dmain_thread.h684 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 Dcontext_impl.cpp1419 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 Dclone_restore.cpp533 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 Dbase_restore.cpp463 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 Dmain_thread.cpp1860 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 Dcontext_impl.h447 const std::string &sourcDir, std::string &localPath);
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/
H A Dfile_operations_cloud.cpp1102 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 Dfuse_manager.cpp600 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 Dextension_util.cpp439 .localPath = reinterpret_cast<const unsigned char *>(dbAsset.path.c_str()), in Convert()

Completed in 33 milliseconds