Home
last modified time | relevance | path

Searched refs:desPath (Results 1 - 9 of 9) sorted by relevance

/base/security/huks/utils/compatibility_bin/
H A Dcompatibility_small_bin.c115 static int ConstructSrcAndTargetPath(char *curPath, char *desPath, struct dirent *ptr, in ConstructSrcAndTargetPath() argument
132 ret = strcpy_s(desPath, DEFAULT_PATH_LEN, tarPath); in ConstructSrcAndTargetPath()
136 ret = strcat_s(desPath, DEFAULT_PATH_LEN, "/"); in ConstructSrcAndTargetPath()
141 ret = strcat_s(desPath, DEFAULT_PATH_LEN, ptr->d_name); in ConstructSrcAndTargetPath()
164 char desPath[DEFAULT_PATH_LEN] = { 0 }; in MoveOldFolderToNew() local
166 ret = ConstructSrcAndTargetPath(curPath, desPath, ptr, srcPath, tarPath); in MoveOldFolderToNew()
172 MoveOldFolderToNew(curPath, desPath); in MoveOldFolderToNew()
174 MoveOldFileToNew(curPath, desPath); in MoveOldFolderToNew()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Ddata_publisher.cpp178 std::string desPath; in HandleSubscribeTask() local
180 desPath = OHOS::HiviewDFX::DataShareUtil::GetSandBoxPathByUid(uid); in HandleSubscribeTask()
181 desPath.append("/") in HandleSubscribeTask()
188 auto res = OHOS::HiviewDFX::DataShareUtil::CopyFile(srcPath.c_str(), desPath.c_str()); in HandleSubscribeTask()
190 HIVIEW_LOGE("failed to move file to desPath."); in HandleSubscribeTask()
192 if (chmod(desPath.c_str(), FileUtil::FILE_PERM_666)) { in HandleSubscribeTask()
262 std::string desPath = OHOS::HiviewDFX::DataShareUtil::GetSandBoxPathByUid(uid); in AddExportTask() local
263 desPath.append(DOMAIN_PATH); in AddExportTask()
264 desPath.append(timeStr); in AddExportTask()
266 auto task = [queryWrapper, srcPath, desPath] { in AddExportTask()
[all...]
H A Ddata_publisher_sys_event_callback.cpp68 void DataPublisherSysEventCallback::HandleEventFile(const std::string &srcPath, const std::string &desPath) in HandleEventFile() argument
70 auto res = OHOS::HiviewDFX::DataShareUtil::CopyFile(srcPath.c_str(), desPath.c_str()); in HandleEventFile()
72 HIVIEW_LOGE("failed to move file to desPath."); in HandleEventFile()
77 if (chmod(desPath.c_str(), FileUtil::FILE_PERM_666)) { in HandleEventFile()
/base/hiviewdfx/hiview/utility/smart_parser/rule/
H A Dextract_rule.cpp158 string& desPath) const in IsMatchPath()
162 desPath = sourceFile; in IsMatchPath()
164 if (LogUtil::IsTestModel(sourceFile, name, pattern, desPath)) { in IsMatchPath()
165 HIVIEW_LOGI("this is test model, desPath is %{public}s.\n", desPath.c_str()); in IsMatchPath()
170 desPath = name; in IsMatchPath()
171 return LogUtil::FileExist(desPath); in IsMatchPath()
188 desPath = out.substr(0, out.size() - 1); in IsMatchPath()
189 if (LogUtil::FileExist(desPath)) { in IsMatchPath()
190 HIVIEW_LOGI("desPath i in IsMatchPath()
[all...]
/base/hiviewdfx/hiview/base/event_publish/
H A Devent_publish.cpp253 std::string desPath = GetSandBoxBasePath(uid, bundleName); in SaveEventAndLogToSandBox() local
255 desPath.append(FILE_PREFIX).append(timeStr).append(".txt"); in SaveEventAndLogToSandBox()
256 WriteEventJson(eventJson, desPath); in SaveEventAndLogToSandBox()
312 std::string desPath = GetSandBoxBasePath(uid, bundleName); in SendOverLimitEventToSandBox() local
314 desPath.append(FILE_PREFIX).append(timeStr).append(".txt"); in SendOverLimitEventToSandBox()
315 WriteEventJson(eventJson, desPath); in SendOverLimitEventToSandBox()
347 std::string desPath = GetSandBoxBasePath(uid, bundleName); in SendEventToSandBox() local
348 if (!FileUtil::FileExists(desPath)) { in SendEventToSandBox()
353 desPath.append(FILE_PREFIX).append(timeStr).append(".txt"); in SendEventToSandBox()
354 if (FileUtil::CopyFile(srcPath, desPath) in SendEventToSandBox()
382 std::string desPath = GetSandBoxBasePath(uid, bundleName); PushEvent() local
[all...]
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
H A Dlog_util.cpp125 const string& pattern, string& desPath) in IsTestModel()
136 return LogUtil::FileExist(desPath); in IsTestModel()
124 IsTestModel(const string& sourceFile, const string& name, const string& pattern, string& desPath) IsTestModel() argument
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
H A Ddata_publisher_sys_event_callback.h35 void HandleEventFile(const std::string &srcPath, const std::string &desPath);
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/include/
H A Dlog_util.h51 const std::string& pattern, std::string& desPath);
/base/hiviewdfx/hiview/utility/smart_parser/rule/include/
H A Dextract_rule.h43 std::string& desPath) const;

Completed in 5 milliseconds