Home
last modified time | relevance | path

Searched refs:targetPath (Results 1 - 25 of 60) sorted by relevance

123

/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/operation/
H A Dphoto_file_operation.cpp42 const std::shared_ptr<NativeRdb::ResultSet> &resultSet, const std::string &targetPath) in CopyPhoto()
44 if (resultSet == nullptr || targetPath.empty()) { in CopyPhoto()
45 MEDIA_ERR_LOG("Media_Operation: CopyPhoto failed, resultSet is null or targetPath is empty"); in CopyPhoto()
59 targetPhotoInfo.filePath = targetPath; in CopyPhoto()
223 std::string targetPath = targetPhotoInfo.filePath; in CopyPhotoFile() local
226 if (srcPath.empty() || targetPath.empty()) { in CopyPhotoFile()
227 MEDIA_ERR_LOG("Media_Operation: CopyPhotoFile failed, srcPath or targetPath is empty. " in CopyPhotoFile()
233 int32_t opRet = this->CopyFile(srcPath, targetPath); in CopyPhotoFile()
235 MEDIA_ERR_LOG("Media_Operation: CopyPhoto failed, srcPath: %{public}s, targetPath: %{public}s", in CopyPhotoFile()
237 targetPath in CopyPhotoFile()
41 CopyPhoto( const std::shared_ptr<NativeRdb::ResultSet> &resultSet, const std::string &targetPath) CopyPhoto() argument
321 CopyFile(const std::string &srcPath, std::string &targetPath) CopyFile() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbase_extractor.cpp88 bool BaseExtractor::ExtractFile(const std::string &fileName, const std::string &targetPath) const in ExtractFile()
90 APP_LOGD("begin to extract %{public}s file into %{private}s targetPath", fileName.c_str(), targetPath.c_str()); in ExtractFile()
92 fileStream.open(targetPath, std::ios_base::out | std::ios_base::binary); in ExtractFile()
94 APP_LOGE("fail to open %{private}s file to write, errno:%{public}d", targetPath.c_str(), errno); in ExtractFile()
101 if (remove(targetPath.c_str()) != 0) { in ExtractFile()
103 targetPath.c_str(), errno); in ExtractFile()
H A Dinstalld_client.cpp40 ErrCode InstalldClient::ExtractModuleFiles(const std::string &srcModulePath, const std::string &targetPath, in ExtractModuleFiles() argument
43 if (srcModulePath.empty() || targetPath.empty()) { in ExtractModuleFiles()
48 return CallService(&IInstalld::ExtractModuleFiles, srcModulePath, targetPath, targetSoPath, cpuAbi); in ExtractModuleFiles()
53 if (extractParam.srcPath.empty() || extractParam.targetPath.empty()) { in ExtractFiles()
62 if (extractParam.srcPath.empty() || extractParam.targetPath.empty() || hnpPackageInfo.empty()) { in ExtractHnpFiles()
351 ErrCode InstalldClient::ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, in ExtractDiffFiles() argument
354 if (filePath.empty() || targetPath.empty() || cpuAbi.empty()) { in ExtractDiffFiles()
358 return CallService(&IInstalld::ExtractDiffFiles, filePath, targetPath, cpuAbi); in ExtractDiffFiles()
574 ErrCode InstalldClient::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) in MoveHapToCodeDir() argument
576 if (originPath.empty() || targetPath in MoveHapToCodeDir()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixdeployer_fuzzer/
H A Dquickfixdeployer_fuzzer.cpp63 std::string targetPath(data, size); in DoSomethingInterestingWithMyAPI()
66 QuickFixDeployer quickFixDeployer(bundlePaths, false, targetPath); in DoSomethingInterestingWithMyAPI()
71 bundleFilePaths.push_back(targetPath); in DoSomethingInterestingWithMyAPI()
87 quickFixDeployer.ProcessPatchDeployEnd(appQuickFix, targetPath); in DoSomethingInterestingWithMyAPI()
88 quickFixDeployer.ProcessHotReloadDeployEnd(appQuickFix, targetPath); in DoSomethingInterestingWithMyAPI()
97 quickFixDeployer.MoveHqfFiles(innerAppQuickFix, targetPath); in DoSomethingInterestingWithMyAPI()
101 quickFixDeployer.ProcessNativeLibraryPath(targetPath, innerAppQuickFix); in DoSomethingInterestingWithMyAPI()
109 std::string targetPath(data, size); in DoSomething2()
146 bundleFilePaths.push_back(targetPath); in DoSomething2()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/test/unittest/
H A Dressched_utils_test.cpp79 std::string targetPath = "/dev/pids/100/com.example.myapplication/app_5973/cgroup.procs"; in HWTEST_F() local
80 int ret = mkdir(targetPath.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); in HWTEST_F()
85 EXPECT_TRUE(path == targetPath); in HWTEST_F()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_album_fusion_utils.cpp358 static inline void buildTargetFilePath(const std::string &srcPath, std::string &targetPath) in buildTargetFilePath() argument
368 targetPath = srcPath.substr(0, underlineIndex + 1) + timeStamp + srcPath.substr(dotIndex); in buildTargetFilePath()
413 static int32_t CopyOriginThumbnail(const std::string &srcPath, std::string &targetPath) in CopyOriginThumbnail() argument
415 if (srcPath.empty() || targetPath.empty()) { in CopyOriginThumbnail()
416 MEDIA_ERR_LOG("source file or targetPath empty"); in CopyOriginThumbnail()
420 std::string targetThumbnailDirPath = getThumbnailPathFromOrignalPath(targetPath); in CopyOriginThumbnail()
431 static int32_t DeleteFile(const std::string &targetPath) in DeleteFile() argument
433 if (targetPath.empty()) { in DeleteFile()
434 MEDIA_ERR_LOG("targetPath empty"); in DeleteFile()
437 MediaFileUtils::DeleteFile(targetPath); in DeleteFile()
441 DeleteThumbnail(const std::string &targetPath) DeleteThumbnail() argument
550 std::string targetPath; global() member
579 std::string targetPath = copyInfo.targetPath; BuildInsertValuesBucket() local
667 GenerateThumbnail(const int32_t &assetId, const std::string &targetPath, shared_ptr<NativeRdb::ResultSet> &resultSet) GenerateThumbnail() argument
688 UpdateCoverInfoForAlbum(NativeRdb::RdbStore *upgradeStore, const int32_t &oldAssetId, const int32_t &ownerAlbumId, int64_t &newAssetId, const std::string &targetPath) UpdateCoverInfoForAlbum() argument
725 std::string targetPath = ""; CopyLocalSingleFile() local
780 std::string targetPath = ""; CopyCloudSingleFile() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ipc/
H A Dextract_param.cpp57 targetPath = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
66 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(targetPath)); in Marshalling()
84 + ", targetPath = " + targetPath in ToString()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dquick_fix_mgr.cpp34 const sptr<IQuickFixStatusCallback> &statusCallback, bool isDebug, const std::string &targetPath) in DeployQuickFix()
43 auto task = [quickFixer, bundleFilePaths, isDebug, targetPath] { in DeployQuickFix()
45 quickFixer->DeployQuickFix(bundleFilePaths, isDebug, targetPath); in DeployQuickFix()
33 DeployQuickFix(const std::vector<std::string> &bundleFilePaths, const sptr<IQuickFixStatusCallback> &statusCallback, bool isDebug, const std::string &targetPath) DeployQuickFix() argument
H A Dquick_fixer.cpp31 const std::string &targetPath) in DeployQuickFix()
36 bundleFilePaths, isDebug, targetPath); in DeployQuickFix()
30 DeployQuickFix(const std::vector<std::string> &bundleFilePaths, bool isDebug, const std::string &targetPath) DeployQuickFix() argument
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfix_fuzzer/
H A Dquickfix_fuzzer.cpp34 std::string targetPath; in DoSomethingInterestingWithMyAPI() local
39 quickFixMgr_.DeployQuickFix(bundleFilePaths, isDebug, targetPath); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixmgr_fuzzer/
H A Dquickfixmgr_fuzzer.cpp35 std::string targetPath; in DoSomethingInterestingWithMyAPI() local
39 quickFixMgr->DeployQuickFix(bundleFilePaths, statusCallback, isDebug, targetPath); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/
H A Dinstalld_client.cpp35 ErrCode InstalldClient::ExtractModuleFiles(const std::string &srcModulePath, const std::string &targetPath, in ExtractModuleFiles() argument
38 if (srcModulePath.empty() || targetPath.empty()) { in ExtractModuleFiles()
43 return CallService(&IInstalld::ExtractModuleFiles, srcModulePath, targetPath, targetSoPath, cpuAbi); in ExtractModuleFiles()
48 if (extractParam.srcPath.empty() || extractParam.targetPath.empty()) { in ExtractFiles()
56 if (extractParam.srcPath.empty() || extractParam.targetPath.empty() || hnpPackageInfo.empty()) { in ExtractHnpFiles()
293 ErrCode InstalldClient::ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, in ExtractDiffFiles() argument
296 if (filePath.empty() || targetPath.empty() || cpuAbi.empty()) { in ExtractDiffFiles()
299 return CallService(&IInstalld::ExtractDiffFiles, filePath, targetPath, cpuAbi); in ExtractDiffFiles()
483 ErrCode InstalldClient::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) in MoveHapToCodeDir() argument
485 if (originPath.empty() || targetPath in MoveHapToCodeDir()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/operation/
H A Dphoto_file_operation.h36 int32_t CopyPhoto(const std::shared_ptr<NativeRdb::ResultSet> &resultSet, const std::string &targetPath);
49 int32_t CopyFile(const std::string &srcPath, std::string &targetPath);
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dfile_utils.cpp191 string targetPath = filePath; in SaveVideo() local
193 targetPath = MediaLibraryAssetOperations::GetEditDataSourcePath(filePath); in SaveVideo()
204 MEDIA_INFO_LOG("video rename targetPath: %{public}s, tempPath: %{public}s", targetPath.c_str(), tempPath.c_str()); in SaveVideo()
205 return rename(tempPath.c_str(), targetPath.c_str()); in SaveVideo()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixmanagerhostipml_fuzzer/
H A Dquickfixmanagerhostipml_fuzzer.cpp45 std::string targetPath(data, size); in DoSomethingInterestingWithMyAPI()
46 quickFixManagerHostImpl->DeployQuickFix(bundleFilePaths, statusCallback, false, targetPath); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/quick_fix/
H A Dquick_fix_manager_proxy.cpp58 std::string targetPath = inputTargetPath; in DeployQuickFix() local
59 if (targetPath.find(".") != std::string::npos || in DeployQuickFix()
60 targetPath.find("..") != std::string::npos || in DeployQuickFix()
61 targetPath.find("/") != std::string::npos) { in DeployQuickFix()
62 LOG_E(BMS_TAG_DEFAULT, "input targetPath is invalid"); in DeployQuickFix()
79 if (!data.WriteString(targetPath)) { in DeployQuickFix()
80 LOG_E(BMS_TAG_DEFAULT, "write targetPath failed"); in DeployQuickFix()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/quick_fix/
H A Dquick_fixer.h32 const std::string &targetPath = "");
H A Dquick_fix_mgr.h35 const sptr<IQuickFixStatusCallback> &statusCallback, bool isDebug = false, const std::string &targetPath = "");
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_installd_client_test/
H A Dbms_installd_client_test.cpp33 const std::string TARGET_PATH = "targetPath";
124 std::string targetPath = TARGET_PATH; in HWTEST_F() local
127 ErrCode result = installClient_->ExtractModuleFiles(srcModulePath, targetPath, targetSoPath, cpuAbi); in HWTEST_F()
135 * @tc.desc: Test whether init is called normally.(targetPath is empty)
141 std::string targetPath = EMPTY_STRING; in HWTEST_F() local
144 ErrCode result = installClient_->ExtractModuleFiles(srcModulePath, targetPath, targetSoPath, cpuAbi); in HWTEST_F()
158 std::string targetPath = TARGET_PATH; in HWTEST_F() local
161 ErrCode result = installClient_->ExtractModuleFiles(srcModulePath, targetPath, targetSoPath, cpuAbi); in HWTEST_F()
163 srcModulePath, targetPath, targetSoPath, cpuAbi)); in HWTEST_F()
177 extractParam.targetPath in HWTEST_F()
926 std::string targetPath = TARGET_PATH; HWTEST_F() local
942 std::string targetPath = EMPTY_STRING; HWTEST_F() local
958 std::string targetPath = TARGET_PATH; HWTEST_F() local
974 std::string targetPath = TARGET_PATH; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
H A Dhi_audit.h58 std::string targetPath; member
64 return AuditLog::TitleString() + ", type, path, targetPath, createTime, size"; in TitleString()
69 return AuditLog::ToString() + ", " + type + ", " + path + ", " + targetPath + ", " + createTime + in ToString()
/foundation/deviceprofile/device_info_manager/services/core/src/contentsensormanager/
H A Dswitch_status_collector.cpp73 char targetPath[PATH_MAX + 1] = {0x00}; in LoadJsonFile() local
79 if (strlen(srcPath) == 0 || strlen(srcPath) > PATH_MAX || realpath(srcPath, targetPath) == nullptr) { in LoadJsonFile()
83 std::ifstream ifs(targetPath); in LoadJsonFile()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/installd/
H A Dinstalld_operator.h94 const std::string &targetPath,
100 const std::string &targetPath,
228 const std::string &targetPath, const std::string &cpuAbi);
230 static bool ExtractDiffFiles(const std::string &filePath, const std::string &targetPath,
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ipc/
H A Dextract_param.h36 std::string targetPath; member
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dpackage_file.h31 static int UnpackFile(const std::string &sourceFile, const std::string &targetPath, FileInfo &fileInfo);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbase_extractor.h44 * @param targetPath Indicates the target Path.
47 bool ExtractFile(const std::string &fileName, const std::string &targetPath) const;

Completed in 13 milliseconds

123