/base/startup/init/test/unittest/fs_manager/erofs/ |
H A D | erofs_remount_unittest.cpp | 46 const char *targetPath = STARTUP_INIT_UT_PATH"/data/modem2Exchangetarget"; in HWTEST_F() local 49 CheckAndCreateDir(targetPath); in HWTEST_F() 52 int ret = Modem2Exchange(srcPath, targetPath); in HWTEST_F() 56 ret = Modem2Exchange(srcPath, targetPath); in HWTEST_F() 60 rmdir(targetPath); in HWTEST_F() 66 const char *targetPath = STARTUP_INIT_UT_PATH"/data/Exchange2Modetarget"; in HWTEST_F() local 68 int ret = Exchange2Modem(srcPath, targetPath); in HWTEST_F() 72 CheckAndCreateDir(targetPath); in HWTEST_F() 77 ret = Exchange2Modem(srcPath, targetPath); in HWTEST_F() 80 CheckAndCreateDir(targetPath); in HWTEST_F() [all...] |
/base/powermgr/power_manager/utils/vibrator/src/ |
H A D | vibrator_source_parser.cpp | 32 std::string targetPath;
in ParseSources() local 33 GetTargetPath(targetPath, etcPath, vendorPath, systemPath);
in ParseSources() 34 if (targetPath.empty()) {
in ParseSources() 35 POWER_HILOGE(COMP_UTILS, "targetPath is null");
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() 47 std::string& targetPath, cons in GetTargetPath() 46 GetTargetPath( std::string& targetPath, const std::string& etcPath, const std::string& vendorPath, const std::string& systemPath) GetTargetPath() argument [all...] |
/base/powermgr/power_manager/services/native/src/wakeup_action/ |
H A D | wakeup_action_source_parser.cpp | 40 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 in GetTargetPath() [all...] |
H A D | wakeup_action_source_parser.h | 31 static bool GetTargetPath(std::string& targetPath);
|
/base/powermgr/power_manager/services/native/src/suspend/ |
H A D | suspend_source_parser.cpp | 55 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; 94 bool ret = GetTargetPath(targetPath); 98 POWER_HILOGI(FEATURE_SUSPEND, "use targetPath=%{public}s", targetPath.c_str()); 99 std::ifstream inputStream(targetPath 111 GetTargetPath(std::string& targetPath) GetTargetPath() argument [all...] |
H A D | suspend_source_parser.h | 31 static bool GetTargetPath(std::string& targetPath);
|
/base/powermgr/power_manager/services/native/src/wakeup/ |
H A D | wakeup_source_parser.cpp | 47 std::string targetPath; in ParseSources() local 48 bool ret = GetTargetPath(targetPath); in ParseSources() 53 POWER_HILOGI(FEATURE_WAKEUP, "use targetPath=%{public}s", targetPath.c_str()); in ParseSources() 54 std::ifstream inputStream(targetPath.c_str(), std::ios::in | std::ios::binary); in ParseSources() 67 bool WakeupSourceParser::GetTargetPath(std::string& targetPath) in GetTargetPath() argument 69 targetPath.clear(); in GetTargetPath() 74 targetPath = path; in GetTargetPath() 84 targetPath = SYSTEM_POWER_WAKEUP_CONFIG_FILE; in GetTargetPath() 87 targetPath in GetTargetPath() [all...] |
H A D | wakeup_source_parser.h | 34 static bool GetTargetPath(std::string& targetPath);
|
/base/update/updater/services/diffpatch/patch_shared/ |
H A D | patch_shared.cpp | 87 const std::string &srcImage, const std::string &targetPath) in GetUpdateBlockInfo() 99 if (!UpdatePathCheck(targetPath, targetPath.length())) { in GetUpdateBlockInfo() 101 if (Updater::Utils::MkdirRecursive(targetPath, S_IRWXU) != 0) { in GetUpdateBlockInfo() 153 TransferManagerPtr tm, const std::string &partitionName, const std::string &targetPath) in ExecuteTransferCommand() 158 transferParams->storeBase = targetPath + partitionName + "_tmp"; in ExecuteTransferCommand() 192 const std::vector<std::string> &lines, const std::string &targetPath, const std::string &dstImage) in DoExecuteUpdateBlock() 199 int32_t ret = ExecuteTransferCommand(fd, lines, tm, infos.partitionName, targetPath); in DoExecuteUpdateBlock() 363 const std::string targetPath, std::string destImage) in ExecuteUpdateBlock() 407 int32_t ret = DoExecuteUpdateBlock(infos, tm.get(), lines, targetPath, destImag in ExecuteUpdateBlock() 86 GetUpdateBlockInfo(UpdateBlockInfo &infos, const std::string &packagePath, const std::string &srcImage, const std::string &targetPath) GetUpdateBlockInfo() argument 152 ExecuteTransferCommand(int fd, const std::vector<std::string> &lines, TransferManagerPtr tm, const std::string &partitionName, const std::string &targetPath) ExecuteTransferCommand() argument 191 DoExecuteUpdateBlock(const UpdateBlockInfo &infos, TransferManagerPtr tm, const std::vector<std::string> &lines, const std::string &targetPath, const std::string &dstImage) DoExecuteUpdateBlock() argument 362 ExecuteUpdateBlock(Uscript::UScriptEnv &env, const UpdateBlockInfo &infos, const std::string targetPath, std::string destImage) ExecuteUpdateBlock() argument 412 RestoreOriginalFile(const std::string &packagePath, const std::string &srcImage, const std::string &targetPath) RestoreOriginalFile() argument [all...] |
H A D | patch_shared.h | 23 const std::string &srcImage, const std::string &targetPath);
|
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage_utils.c | 207 int32_t GetPath(const char *path, const char *name, char *targetPath, uint32_t pathLen, uint32_t bakFlag) in GetPath() argument 209 if (strncpy_s(targetPath, pathLen, path, strlen(path)) != EOK) { in GetPath() 214 if (strlen(targetPath) <= 0) { in GetPath() 218 if (targetPath[strlen(targetPath) - 1] != '/') { in GetPath() 219 if (strncat_s(targetPath, pathLen, "/", strlen("/")) != EOK) { in GetPath() 225 if (strncat_s(targetPath, pathLen, name, strlen(name)) != EOK) { in GetPath() 231 if (strncat_s(targetPath, pathLen, ".bak", strlen(".bak")) != EOK) { in GetPath()
|
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/ |
H A D | panic_error_info_handle.cpp | 172 string targetPath = dirPath + "last_kmsg"; in CopyPstoreFileToHistoryLog() local 174 fout.open(targetPath, ios::in | ios::out | ios::trunc); in CopyPstoreFileToHistoryLog() 176 HIVIEW_LOGE("Failed to open file: %{public}s error=%{public}d", targetPath.c_str(), errno); in CopyPstoreFileToHistoryLog()
|
/base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/ |
H A D | log_catcher_utils.cpp | 95 std::string targetPath = ""; in WriteKernelStackToFd() local 98 targetPath = fileName; in WriteKernelStackToFd() 104 if (FileUtil::PathToRealPath(targetPath, realPath)) { in WriteKernelStackToFd()
|
/base/powermgr/power_manager/utils/vibrator/include/ |
H A D | vibrator_source_parser.h | 57 void GetTargetPath(std::string& targetPath,
|
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/include/ |
H A D | hks_storage_utils.h | 98 int32_t GetPath(const char *path, const char *name, char *targetPath, uint32_t pathLen, uint32_t bakFlag);
|
/base/powermgr/power_manager/test/unittest/src/interface_test/ |
H A D | power_wakeup_controller_test.cpp | 175 std::string targetPath; in HWTEST_F() local 176 WakeupSourceParser::GetTargetPath(targetPath); in HWTEST_F() 177 EXPECT_TRUE(targetPath.size() != 0); in HWTEST_F()
|
/base/startup/appspawn/test/unittest/hnp_test/ |
H A D | hnp_installer_test.cpp | 950 static bool HnpSymlinkCheck(const char *sourcePath, const char *targetPath) in HnpSymlinkCheck() argument 971 GTEST_LOG_(INFO) << "sourcelink is" << link << ";targetlink is" << targetPath; in HnpSymlinkCheck() local 972 return strcmp(link, targetPath) == 0 ? true : false; in HnpSymlinkCheck()
|
/base/startup/appspawn/modules/sandbox/ |
H A D | appspawn_sandbox.c | 568 static void MountDir(AppSpawnMsgDacInfo *info, const char *bundleName, const char *rootPath, const char *targetPath) in MountDir() argument 570 if (info == NULL || bundleName == NULL || rootPath == NULL || targetPath == NULL) { in MountDir() 575 size_t allPathSize = strlen(rootPath) + strlen(targetPath) + strlen(bundleName) + 2; in MountDir() 579 int len = sprintf_s(path, allPathSize, "%s%u/%s%s", rootPath, info->uid / userIdBase, bundleName, targetPath); in MountDir()
|
H A D | sandbox_utils.cpp | 1838 static void MountDir(const AppSpawningCtx *property, const char *rootPath, const char *srcPath, const char *targetPath) 1847 size_t allPathSize = strlen(rootPath) + strlen(targetPath) + strlen(bundleName) + 2; 1851 int len = sprintf_s(path, allPathSize, "%s%u/%s%s", rootPath, info->uid / userIdBase, bundleName, targetPath);
|