Home
last modified time | relevance | path

Searched refs:srcPath (Results 1 – 25 of 41) sorted by relevance

12

/base/hiviewdfx/hiview/base/event_publish/
Devent_publish.cpp42 std::string srcPath = PATH_DIR; in GetTempFilePath() local
43 srcPath.append(FILE_PREFIX).append(std::to_string(uid)).append(FILE_SUFFIX); in GetTempFilePath()
44 return srcPath; in GetTempFilePath()
89 for (const auto& srcPath : files) { in SendEventToSandBox() local
90 std::string uidStr = StringUtil::GetMidSubstr(srcPath, FILE_PREFIX, FILE_SUFFIX); in SendEventToSandBox()
98 (void)FileUtil::RemoveFile(srcPath); in SendEventToSandBox()
102 if (FileUtil::CopyFile(srcPath, desPath) == -1) { in SendEventToSandBox()
104 srcPath.c_str(), desPath.c_str()); in SendEventToSandBox()
107 … HIVIEW_LOGI("copy srcPath=%{public}s, desPath=%{public}s.", srcPath.c_str(), desPath.c_str()); in SendEventToSandBox()
108 (void)FileUtil::RemoveFile(srcPath); in SendEventToSandBox()
[all …]
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Djs_wallpaper_extension_ability.cpp67 std::string srcPath = ""; in Init() local
68 GetSrcPath(srcPath); in Init()
69 if (srcPath.empty()) { in Init()
75 …lpaperExtension::Init module:%{public}s,srcPath:%{public}s.", moduleName.c_str(), srcPath.c_str()); in Init()
78 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
209 void JsWallpaperExtensionAbility::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
214 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
215 srcPath.append("/assets/js/"); in GetSrcPath()
216 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
217 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
[all …]
/base/security/huks/utils/compatibility_bin/
Dcompatibility_small_bin.c86 static void MoveOldFileToNew(const char *srcPath, const char *tarPath) in MoveOldFileToNew() argument
90 if ((in = fopen(srcPath, "r")) == NULL) { in MoveOldFileToNew()
112 (void)remove(srcPath); in MoveOldFileToNew()
116 const char *srcPath, const char *tarPath) in ConstructSrcAndTargetPath() argument
118 int ret = strcpy_s(curPath, DEFAULT_PATH_LEN, srcPath); in ConstructSrcAndTargetPath()
148 static void MoveOldFolderToNew(const char *srcPath, const char *tarPath) in MoveOldFolderToNew() argument
157 DIR *dir = opendir(srcPath); in MoveOldFolderToNew()
166 ret = ConstructSrcAndTargetPath(curPath, desPath, ptr, srcPath, tarPath); in MoveOldFolderToNew()
181 (void)rmdir(srcPath); in MoveOldFolderToNew()
/base/update/update_app/
Dbuild-profile.json515 "srcPath": "./product/oh/base",
27 "srcPath": "./common"
31 "srcPath": "./feature/ota"
/base/inputmethod/imf/frameworks/kits/extension/src/
Djs_inputmethod_extension.cpp94 std::string srcPath; in Init() local
95 GetSrcPath(srcPath); in Init()
96 if (srcPath.empty()) { in Init()
103 …InputMethodExtension, module:%{public}s,srcPath:%{public}s.", moduleName.c_str(), srcPath.c_str()); in Init()
107 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init()
386 void JsInputMethodExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
391 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
392 srcPath.append("/assets/js/"); in GetSrcPath()
393 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
394 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
[all …]
/base/customization/enterprise_device_management/framework/extension/src/
Djs_enterprise_admin_extension.cpp51 std::string srcPath; in Init() local
52 GetSrcPath(srcPath); in Init()
53 if (srcPath.empty()) { in Init()
61 moduleName.c_str(), srcPath.c_str()); in Init()
64 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
269 void JsEnterpriseAdminExtension::GetSrcPath(std::string& srcPath) in GetSrcPath() argument
272 srcPath.append(Extension::abilityInfo_->moduleName + "/"); in GetSrcPath()
273 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
274 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
275 srcPath.append(".abc"); in GetSrcPath()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Ddata_publisher.cpp160 std::string srcPath = TEMP_SRC_DIR; in OnSysEvent() local
162 auto task = std::bind(&DataPublisher::HandleSubscribeTask, this, event, srcPath, timeStr); in OnSysEvent()
166 HandleSubscribeTask(event, srcPath, timeStr); in OnSysEvent()
171 std::string srcPath, std::string timeStr) in HandleSubscribeTask() argument
174 if (!FileUtil::SaveStringToFile(srcPath, eventJson + ",", true)) { in HandleSubscribeTask()
189 auto res = OHOS::HiviewDFX::DataShareUtil::CopyFile(srcPath.c_str(), desPath.c_str()); in HandleSubscribeTask()
259 std::string srcPath = TEMP_EXPORT_SRC_DIR; in AddExportTask() local
260 if (!FileUtil::RemoveFile(srcPath)) { in AddExportTask()
267 auto task = [queryWrapper, srcPath, desPath] { in AddExportTask()
269 new(std::nothrow) DataPublisherSysEventCallback(srcPath, desPath, 0, 0); in AddExportTask()
[all …]
Ddata_publisher_sys_event_callback.cpp68 void DataPublisherSysEventCallback::HandleEventFile(const std::string &srcPath, const std::string &… in HandleEventFile() argument
70 auto res = OHOS::HiviewDFX::DataShareUtil::CopyFile(srcPath.c_str(), desPath.c_str()); in HandleEventFile()
74 if (!FileUtil::RemoveFile(srcPath)) { in HandleEventFile()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Ddata_publisher_sys_event_callback.h29 DataPublisherSysEventCallback(std::string srcPath, std::string destPath, in DataPublisherSysEventCallback() argument
30 int32_t fileIndex, int32_t totalJsonSize): srcPath_(srcPath), in DataPublisherSysEventCallback()
35 void HandleEventFile(const std::string &srcPath, const std::string &desPath);
/base/print/print_fwk/frameworks/kits/extension/src/
Djs_print_extension.cpp81 std::string srcPath = ""; in InitExtensionObj() local
82 GetSrcPath(srcPath); in InitExtensionObj()
83 if (srcPath.empty()) { in InitExtensionObj()
90 PRINT_HILOGD("Init module:%{public}s,srcPath:%{public}s.", moduleName.c_str(), srcPath.c_str()); in InitExtensionObj()
93 jsObj_ = jsRuntime.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in InitExtensionObj()
284 void JsPrintExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
289 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
290 srcPath.append("/assets/js/"); in GetSrcPath()
291 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
292 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
[all …]
/base/startup/init/services/modules/init_eng/
Dinit_eng.c154 char srcPath[PATH_MAX] = {}; in DebugFilesOverlay() local
159 if (snprintf_s(srcPath, PATH_MAX, PATH_MAX - 1, "%s/%s", source, de->d_name) == -1) { in DebugFilesOverlay()
170 DebugFilesOverlay(srcPath, target); in DebugFilesOverlay()
172 BindMountFile(srcPath, target); in DebugFilesOverlay()
174 PLUGIN_LOGI("Ignore %s while overlaying", srcPath); in DebugFilesOverlay()
/base/hiviewdfx/hidumper/frameworks/native/src/util/
Dzip_utils.cpp22 bool ZipUtils::ZipFolder(const std::string &srcPath, const std::string &dstFile, const ZipTickNotif… in ZipFolder() argument
25 srcPath.c_str(), dstFile.c_str()); in ZipFolder()
27 std::string srcFolder = IncludeTrailingPathDelimiter(srcPath); in ZipFolder()
/base/notification/common_event_service/frameworks/extension/src/
Djs_static_subscriber_extension.cpp97 std::string srcPath(Extension::abilityInfo_->moduleName + "/"); in Init() local
98 srcPath.append(Extension::abilityInfo_->srcEntrance); in Init()
99 srcPath.erase(srcPath.rfind('.')); in Init()
100 srcPath.append(".abc"); in Init()
104 EVENT_LOGD("moduleName: %{public}s, srcPath: %{public}s.", moduleName.c_str(), srcPath.c_str()); in Init()
108 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
/base/usb/usb_manager/frameworks/dialog/dialog_ui/
Dbuild-profile.json535 "srcPath": "./entry",
47 "srcPath": "./usb_right_dialog",
/base/update/sys_installer/frameworks/installer_manager/include/
Dinstaller_manager_helper.h34 virtual int32_t AccDecompressAndVerifyPkg(const std::string &srcPath,
51 virtual int32_t AccDecompressAndVerifyPkg(const std::string &srcPath,
/base/update/sys_installer/frameworks/installer_manager/src/
Dinstaller_manager.cpp97 int32_t InstallerManager::AccDecompressAndVerifyPkg(const std::string &srcPath, in AccDecompressAndVerifyPkg() argument
104 return helper_->AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkg()
/base/update/sys_installer/frameworks/ipc_server/src/
Dsys_installer_server.cpp83 int32_t SysInstallerServer::AccDecompressAndVerifyPkg(const std::string &srcPath, in AccDecompressAndVerifyPkg() argument
87 return InstallerManager::GetInstance().AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkg()
Dsys_installer_stub.cpp153 string srcPath = Str16ToStr8(data.ReadString16()); in AccDecompressAndVerifyPkgStub() local
156 LOG(INFO) << "StartUpdateParaZipStub srcPath:" << srcPath << " dstPath:" << dstPath; in AccDecompressAndVerifyPkgStub()
158 int32_t ret = service->AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkgStub()
/base/hiviewdfx/hidumper/frameworks/native/include/util/
Dzip_utils.h27 static bool ZipFolder(const std::string &srcPath, const std::string &dstFile,
/base/startup/appspawn/util/src/
Dsandbox_utils.cpp381 const std::string &srcPath, const std::string &sandboxPath, in DoDlpAppMountStrategy() argument
402 ret = mount(srcPath.c_str(), sandboxPath.c_str(), fsType.c_str(), mountFlags, options); in DoDlpAppMountStrategy()
404 "failed %{public}d", srcPath.c_str(), sandboxPath.c_str(), errno); in DoDlpAppMountStrategy()
418 const std::string &srcPath, const std::string &sandboxPath, in HandleSpecialAppMount() argument
431 return DoDlpAppMountStrategy(appProperty, srcPath, sandboxPath, fsType, mountFlags); in HandleSpecialAppMount()
545 … std::string srcPath = ConvertToRealPath(appProperty, mntPoint[g_srcPath].get<std::string>()); in DoAllMntPointsMount() local
553 …int ret = HandleSpecialAppMount(appProperty, srcPath, sandboxPath, mountConfig.fsType, mountFlags); in DoAllMntPointsMount()
555 … ret = DoAppSandboxMountOnce(srcPath.c_str(), sandboxPath.c_str(), mountConfig.fsTypePoint, in DoAllMntPointsMount()
1171 std::string srcPath = hapPath.substr(0, pathIndex); in SetOverlayAppSandboxProperty() local
1172 if (mountedSrcSet.find(srcPath) != mountedSrcSet.end()) { in SetOverlayAppSandboxProperty()
[all …]
/base/update/sys_installer/interfaces/inner_api/include/
Disys_installer.h37 virtual int32_t AccDecompressAndVerifyPkg(const std::string &srcPath,
/base/theme/wallpaper_mgr/utils/src/
Dfile_deal.cpp63 std::filesystem::path srcPath(sourceFile); in CopyFile() local
65 …if (!std::filesystem::copy_file(srcPath, dstPath, std::filesystem::copy_options::overwrite_existin… in CopyFile()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_dump.cpp481 std::string srcPath = CanonicalizeSpecPath(src.c_str()); in WriteFile() local
482 int srcFd = open(srcPath.c_str(), O_RDONLY | O_NONBLOCK); in WriteFile()
534 void WriteEventFile(std::string &srcPath, int outFd) in WriteEventFile() argument
537 std::string srcSpecPath = CanonicalizeSpecPath(srcPath.c_str()); in WriteEventFile()
540 HILOG_ERROR(LOG_CORE, "WriteEventFile: open %{public}s failed.", srcPath.c_str()); in WriteEventFile()
553 …HILOG_INFO(LOG_CORE, "WriteEventFile end, path: %{public}s, data size: %{public}zd.", srcPath.c_st… in WriteEventFile()
617 std::string srcPath = g_traceRootPath + "hongmeng/" + priorityTracingCategory[i]; in WriteEventsFormat() local
618 if (access(srcPath.c_str(), R_OK) != -1) { in WriteEventsFormat()
619 WriteEventFile(srcPath, fd); in WriteEventsFormat()
621 srcPath = g_traceRootPath + priorityTracingCategory[i]; in WriteEventsFormat()
[all …]
/base/update/sys_installer/interfaces/innerkits/ipc_client/include/
Dsys_installer_kits.h46 virtual int32_t AccDecompressAndVerifyPkg(const std::string &srcPath,
Dsys_installer_proxy.h35 virtual int32_t AccDecompressAndVerifyPkg(const std::string &srcPath,

12