Home
last modified time | relevance | path

Searched refs:targetPath (Results 1 – 25 of 77) sorted by relevance

1234

/ohos5.0/base/powermgr/power_manager/utils/vibrator/src/
H A Dvibrator_source_parser.cpp32 std::string targetPath; in ParseSources() local
33 GetTargetPath(targetPath, etcPath, vendorPath, systemPath); in ParseSources()
34 if (targetPath.empty()) { in ParseSources()
38 POWER_HILOGI(COMP_UTILS, "use targetPath=%{public}s", targetPath.c_str()); in ParseSources()
39 std::ifstream inputStream(targetPath.c_str(), std::ios::in | std::ios::binary); in ParseSources()
41 targetPath = fileStringStr; in ParseSources()
42 sources = ParseSources(targetPath); in ParseSources()
49 targetPath.clear(); in GetTargetPath()
54 targetPath = path; in GetTargetPath()
64 targetPath = systemPath; in GetTargetPath()
[all …]
/ohos5.0/base/powermgr/power_manager/services/native/src/suspend/
H A Dsuspend_source_parser.cpp55 std::string targetPath; in ParseSources() local
56 bool ret = GetTargetPath(targetPath); in ParseSources()
61 POWER_HILOGI(FEATURE_SUSPEND, "use targetPath=%{public}s", targetPath.c_str()); in ParseSources()
62 std::ifstream inputStream(targetPath.c_str(), std::ios::in | std::ios::binary); in ParseSources()
93 std::string targetPath; in ParseSources() local
94 bool ret = GetTargetPath(targetPath); in ParseSources()
111 bool SuspendSourceParser::GetTargetPath(std::string& targetPath) in GetTargetPath() argument
113 targetPath.clear(); in GetTargetPath()
119 targetPath = path; in GetTargetPath()
129 targetPath = SYSTEM_POWER_SUSPEND_CONFIG_FILE; in GetTargetPath()
[all …]
/ohos5.0/base/powermgr/power_manager/services/native/src/wakeup_action/
H A Dwakeup_action_source_parser.cpp40 std::string targetPath; in ParseSources() local
41 bool ret = GetTargetPath(targetPath); in ParseSources()
45 POWER_HILOGI(FEATURE_WAKEUP_ACTION, "use targetPath=%{public}s", targetPath.c_str()); in ParseSources()
46 std::ifstream inputStream(targetPath.c_str(), std::ios::in | std::ios::binary); in ParseSources()
53 bool WakeupActionSourceParser::GetTargetPath(std::string& targetPath) in GetTargetPath() argument
55 targetPath.clear(); in GetTargetPath()
61 targetPath = path; in GetTargetPath()
71 targetPath = SYSTEM_POWER_WAKEUP_ACTION_CONFIG_FILE; in GetTargetPath()
74 targetPath = VENDOR_POWER_WAKEUP_ACTION_CONFIG_FILE; in GetTargetPath()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/operation/
H A Dphoto_file_operation.cpp46 if (resultSet == nullptr || targetPath.empty()) { in CopyPhoto()
61 targetPhotoInfo.filePath = targetPath; in CopyPhoto()
84 if (resultSet == nullptr || targetPath.empty()) { in CopyThumbnail()
101 targetPhotoInfo.filePath = targetPath; in CopyThumbnail()
353 std::string targetPath = targetPhotoInfo.filePath; in CopyPhotoFile() local
356 if (srcPath.empty() || targetPath.empty()) { in CopyPhotoFile()
363 int32_t opRet = this->CopyFile(srcPath, targetPath); in CopyPhotoFile()
367 targetPath.c_str()); in CopyPhotoFile()
373 targetPath.c_str()); in CopyPhotoFile()
481 if (targetPath.empty()) { in CopyFile()
[all …]
/ohos5.0/base/powermgr/power_manager/services/native/src/wakeup/
H A Dwakeup_source_parser.cpp64 std::string targetPath; in GetWakeupSourcesByConfig() local
65 bool ret = GetTargetPath(targetPath); in GetWakeupSourcesByConfig()
70 POWER_HILOGI(FEATURE_WAKEUP, "use targetPath=%{public}s", targetPath.c_str()); in GetWakeupSourcesByConfig()
71 std::ifstream inputStream(targetPath.c_str(), std::ios::in | std::ios::binary); in GetWakeupSourcesByConfig()
75 bool WakeupSourceParser::GetTargetPath(std::string& targetPath) in GetTargetPath() argument
77 targetPath.clear(); in GetTargetPath()
82 targetPath = path; in GetTargetPath()
92 targetPath = SYSTEM_POWER_WAKEUP_CONFIG_FILE; in GetTargetPath()
95 targetPath = VENDOR_POWER_WAKEUP_CONFIG_FILE; in GetTargetPath()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_album_fusion_utils.cpp400 if (targetPath.empty()) { in DeleteFile()
410 if (targetPath.empty()) { in DeleteThumbnail()
517 std::string targetPath; member
523 : targetPath(targetPath), isCopyThumbnail(isCopyThumbnail), ownerAlbumId(ownerAlbumId), in MediaAssetCopyInfo()
687 if (targetPath.empty()) { in CopyLocalFile()
710 DeleteFile(targetPath); in CopyMateData()
717 DeleteFile(targetPath); in CopyMateData()
735 std::string targetPath = ""; in CopyLocalSingleFile() local
777 std::string targetPath = ""; in CopyLocalSingleFileSync() local
825 std::string targetPath = ""; in CopyCloudSingleFile() local
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixdeployer_fuzzer/
H A Dquickfixdeployer_fuzzer.cpp63 std::string targetPath(data, size); in DoSomethingInterestingWithMyAPI() local
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() local
146 bundleFilePaths.push_back(targetPath); in DoSomething2()
/ohos5.0/base/update/updater/services/diffpatch/patch_shared/
H A Dpatch_shared.cpp67 const std::string &srcImage, const std::string &targetPath) in GetUpdateBlockInfo() argument
79 if (!UpdatePathCheck(targetPath, targetPath.length())) { in GetUpdateBlockInfo()
81 if (Updater::Utils::MkdirRecursive(targetPath, S_IRWXU) != 0) { in GetUpdateBlockInfo()
129 TransferManagerPtr tm, const std::string &partitionName, const std::string &targetPath) in ExecuteTransferCommand() argument
134 transferParams->storeBase = targetPath + partitionName + "_tmp"; in ExecuteTransferCommand()
175 int32_t ret = ExecuteTransferCommand(fd, lines, tm, infos.partitionName, targetPath); in DoExecuteUpdateBlock()
340 const std::string targetPath, std::string destImage) in ExecuteUpdateBlock() argument
383 int32_t ret = DoExecuteUpdateBlock(infos, tm.get(), lines, targetPath, destImage); in ExecuteUpdateBlock()
390 if (GetUpdateBlockInfo(infos, packagePath, srcImage, targetPath) != 0) { in RestoreOriginalFile()
394 std::string destImage = targetPath + "/" + destName; in RestoreOriginalFile()
[all …]
/ohos5.0/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 …gin 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 …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()
362 ErrCode InstalldClient::ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, in ExtractDiffFiles() argument
365 if (filePath.empty() || targetPath.empty() || cpuAbi.empty()) { in ExtractDiffFiles()
369 return CallService(&IInstalld::ExtractDiffFiles, filePath, targetPath, cpuAbi); in ExtractDiffFiles()
580 …Code InstalldClient::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) in MoveHapToCodeDir() argument
582 if (originPath.empty() || targetPath.empty()) { in MoveHapToCodeDir()
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/test/unittest/
H A Dressched_utils_test.cpp79 std::string targetPath = "/dev/pids/100/com.example.myapplication/app_5973/cgroup.procs"; variable
80 int ret = mkdir(targetPath.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
85 EXPECT_TRUE(path == targetPath);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/
H A Dinstalld_client.cpp35 …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()
298 ErrCode InstalldClient::ExtractDiffFiles(const std::string &filePath, const std::string &targetPath, in ExtractDiffFiles() argument
301 if (filePath.empty() || targetPath.empty() || cpuAbi.empty()) { in ExtractDiffFiles()
304 return CallService(&IInstalld::ExtractDiffFiles, filePath, targetPath, cpuAbi); in ExtractDiffFiles()
483 …Code InstalldClient::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) in MoveHapToCodeDir() argument
485 if (originPath.empty() || targetPath.empty()) { in MoveHapToCodeDir()
[all …]
/ohos5.0/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() argument
43 auto task = [quickFixer, bundleFilePaths, isDebug, targetPath] { in DeployQuickFix()
45 quickFixer->DeployQuickFix(bundleFilePaths, isDebug, targetPath); in DeployQuickFix()
H A Dquick_fixer.cpp31 const std::string &targetPath) in DeployQuickFix() argument
36 bundleFilePaths, isDebug, targetPath); in DeployQuickFix()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_installd_client_test/
H A Dbms_installd_client_test.cpp124 std::string targetPath = TARGET_PATH; variable
141 std::string targetPath = EMPTY_STRING; variable
158 std::string targetPath = TARGET_PATH; variable
177 extractParam.targetPath = TARGET_PATH;
193 extractParam.targetPath = EMPTY_STRING;
209 extractParam.targetPath = TARGET_PATH;
226 extractParam.targetPath = TARGET_PATH;
243 extractParam.targetPath = EMPTY_STRING;
260 extractParam.targetPath = TARGET_PATH;
928 std::string targetPath = TARGET_PATH; variable
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ipc/
H A Dextract_param.cpp58 targetPath = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
67 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(targetPath)); in Marshalling()
85 + ", targetPath = " + targetPath in ToString()
/ohos5.0/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()
79 if (!data.WriteString(targetPath)) { in DeployQuickFix()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/operation/
H A Dphoto_file_operation.h37 …t CopyPhoto(const std::shared_ptr<NativeRdb::ResultSet> &resultSet, const std::string &targetPath);
38 …opyThumbnail(const std::shared_ptr<NativeRdb::ResultSet> &resultSet, const std::string &targetPath,
59 int32_t CopyFile(const std::string &srcPath, std::string &targetPath);
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage_utils.c203 int32_t GetPath(const char *path, const char *name, char *targetPath, uint32_t pathLen, uint32_t ba… in GetPath() argument
205 if (strncpy_s(targetPath, pathLen, path, strlen(path)) != EOK) { in GetPath()
210 if (strlen(targetPath) <= 0) { in GetPath()
214 if (targetPath[strlen(targetPath) - 1] != '/') { in GetPath()
215 if (strncat_s(targetPath, pathLen, "/", strlen("/")) != EOK) { in GetPath()
221 if (strncat_s(targetPath, pathLen, name, strlen(name)) != EOK) { in GetPath()
227 if (strncat_s(targetPath, pathLen, ".bak", strlen(".bak")) != EOK) { in GetPath()
/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
306 if (MediaFileUtils::StartsWith(targetPath, "Pictures/") || in CreateFile()
307 MediaFileUtils::StartsWith(targetPath, "Videos/")) { in CreateFile()
309 } else if (MediaFileUtils::StartsWith(targetPath, "Audios/")) { in CreateFile()
318 valuesBucket.Put(MEDIA_DATA_DB_RELATIVE_PATH, targetPath); in CreateFile()
337 void CopyFile(std::string srcUri, std::string baseURI, std::string targetPath, std::string newName, in CopyFile() argument
349 if (MediaFileUtils::StartsWith(targetPath, "Pictures/") || in CopyFile()
350 MediaFileUtils::StartsWith(targetPath, "Videos/")) { in CopyFile()
352 } else if (MediaFileUtils::StartsWith(targetPath, "Audios/")) { in CopyFile()
[all …]
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dfile_utils.cpp195 string targetPath = filePath; in SaveVideo() local
197 targetPath = MediaLibraryAssetOperations::GetEditDataSourcePath(filePath); in SaveVideo()
208 …MEDIA_INFO_LOG("video rename targetPath: %{public}s, tempPath: %{public}s", targetPath.c_str(), te… in SaveVideo()
209 return rename(tempPath.c_str(), targetPath.c_str()); in SaveVideo()
/ohos5.0/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()
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/
H A Dlog_catcher_utils.cpp87 std::string targetPath = ""; in WriteKernelStackToFd() local
90 targetPath = fileName; in WriteKernelStackToFd()
96 if (FileUtil::PathToRealPath(targetPath, realPath)) { in WriteKernelStackToFd()

1234