Home
last modified time | relevance | path

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

12

/base/security/huks/utils/compatibility_bin/
Dcompatibility_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/theme/wallpaper_mgr/frameworks/kits/extension/src/
Djs_wallpaper_extension_ability.cpp74 std::string srcPath = ""; in Init() local
75 GetSrcPath(srcPath); in Init()
76 if (srcPath.empty()) { in Init()
82 …lpaperExtension::Init module:%{public}s,srcPath:%{public}s.", moduleName.c_str(), srcPath.c_str()); in Init()
85 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
212 void JsWallpaperExtensionAbility::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
217 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
218 srcPath.append("/assets/js/"); in GetSrcPath()
219 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
220 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
[all …]
/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.cpp91 std::string srcPath; in Init() local
92 GetSrcPath(srcPath); in Init()
93 if (srcPath.empty()) { in Init()
101 …MethodExtension::Init module:%{public}s,srcPath:%{public}s.", moduleName.c_str(), srcPath.c_str()); in Init()
106 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init()
308 void JsInputMethodExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
313 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
314 srcPath.append("/assets/js/"); in GetSrcPath()
315 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
316 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()
238 void JsEnterpriseAdminExtension::GetSrcPath(std::string& srcPath) in GetSrcPath() argument
241 srcPath.append(Extension::abilityInfo_->moduleName + "/"); in GetSrcPath()
242 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
243 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
244 srcPath.append(".abc"); in GetSrcPath()
/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);
Ddata_publisher.h54 std::string srcPath, std::string timeStr);
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Ddata_publisher.cpp146 std::string srcPath = TEMP_SRC_DIR; in OnSysEvent() local
148 auto task = std::bind(&DataPublisher::HandleSubscribeTask, this, event, srcPath, timeStr); in OnSysEvent()
152 HandleSubscribeTask(event, srcPath, timeStr); in OnSysEvent()
157 std::string srcPath, std::string timeStr) in HandleSubscribeTask() argument
160 if (!FileUtil::SaveStringToFile(srcPath, eventJson + ",", true)) { in HandleSubscribeTask()
175 auto res = OHOS::HiviewDFX::DataShareUtil::CopyFile(srcPath.c_str(), desPath.c_str()); in HandleSubscribeTask()
240 std::string srcPath = TEMP_EXPORT_SRC_DIR; in AddExportTask() local
241 if (!FileUtil::RemoveFile(srcPath)) { in AddExportTask()
248 auto task = [queryWrapper, srcPath, desPath] { in AddExportTask()
250 new(std::nothrow) DataPublisherSysEventCallback(srcPath, desPath, 0, 0); in AddExportTask()
[all …]
Ddata_publisher_sys_event_callback.cpp73 void DataPublisherSysEventCallback::HandleEventFile(const std::string &srcPath, const std::string &… in HandleEventFile() argument
75 auto res = OHOS::HiviewDFX::DataShareUtil::CopyFile(srcPath.c_str(), desPath.c_str()); in HandleEventFile()
79 if (!FileUtil::RemoveFile(srcPath)) { in HandleEventFile()
/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()
287 void JsPrintExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
292 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
293 srcPath.append("/assets/js/"); in GetSrcPath()
294 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
295 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/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_authorization_extension.cpp325 std::string srcPath = ""; in Init() local
326 GetSrcPath(srcPath); in Init()
327 if (srcPath.empty()) { in Init()
337 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, Extension::abilityInfo_->hapPath, in Init()
507 void JsAuthorizationExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
511 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
512 srcPath.append("/assets/js/"); in GetSrcPath()
513 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
514 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
516 srcPath.append("/").append(Extension::abilityInfo_->name).append(".abc"); in GetSrcPath()
[all …]
/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/hiviewdfx/hidumper/frameworks/native/include/util/
Dzip_utils.h27 static bool ZipFolder(const std::string &srcPath, const std::string &dstFile,
/base/hiviewdfx/hiview/service/unified_collection/
Dxcollect_service.cpp89 char srcPath[PATH_MAX + 1] = {0x00}; in CopyTmpFile() local
90 if (strlen(src.c_str()) > PATH_MAX || realpath(src.c_str(), srcPath) == nullptr) { in CopyTmpFile()
93 int srcFd = open(srcPath, O_RDONLY | O_NONBLOCK); in CopyTmpFile()
96 HiLog::Error(LABEL, "CopyFile: open %{public}s failed.", srcPath); in CopyTmpFile()
/base/startup/appspawn/util/src/
Dsandbox_utils.cpp365 const std::string &srcPath, const std::string &sandboxPath, in DoDlpAppMountStrategy() argument
383 ret = mount(srcPath.c_str(), sandboxPath.c_str(), fsType.c_str(), mountFlags, options); in DoDlpAppMountStrategy()
385 "failed %{public}d", srcPath.c_str(), sandboxPath.c_str(), errno); in DoDlpAppMountStrategy()
399 const std::string &srcPath, const std::string &sandboxPath, in HandleSpecialAppMount() argument
410 return DoDlpAppMountStrategy(appProperty, srcPath, sandboxPath, fsType, mountFlags); in HandleSpecialAppMount()
458 … std::string srcPath = ConvertToRealPath(appProperty, mntPoint[g_srcPath].get<std::string>()); in DoAllMntPointsMount() local
467 int ret = HandleSpecialAppMount(appProperty, srcPath, sandboxPath, fsType, mountFlags); in DoAllMntPointsMount()
469 ret = DoAppSandboxMountOnce(srcPath.c_str(), sandboxPath.c_str(), fsTypePoint, in DoAllMntPointsMount()
1024 std::string srcPath = hapPath.substr(0, pathIndex); in SetOverlayAppSandboxProperty() local
1025 if (mountedSrcSet.find(srcPath) != mountedSrcSet.end()) { in SetOverlayAppSandboxProperty()
[all …]
/base/customization/enterprise_device_management/framework/extension/include/
Djs_enterprise_admin_extension.h72 void GetSrcPath(std::string& srcPath);
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_extension/module_loader/
Djs_user_auth_extension.cpp104 std::string srcPath(Extension::abilityInfo_->moduleName + "/"); in Init() local
105 srcPath.append(Extension::abilityInfo_->srcEntrance); in Init()
106 srcPath.erase(srcPath.rfind('.')); in Init()
107 srcPath.append(".abc"); in Init()
115 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init()
/base/usb/usb_manager/frameworks/dialog/functionswitch_ui/
Dbuild-profile.json535 "srcPath": "./usb_function_switch_window",
/base/inputmethod/imf/frameworks/kits/extension/include/
Djs_inputmethod_extension.h112 void GetSrcPath(std::string &srcPath);
/base/useriam/face_auth/ui/Settings_FaceAuth/
Dbuild-profile.json530 "srcPath": "./entry",
/base/theme/wallpaper_mgr/frameworks/kits/extension/include/
Djs_wallpaper_extension_ability.h118 void GetSrcPath(std::string &srcPath);
/base/print/print_fwk/frameworks/kits/extension/include/
Djs_print_extension.h121 void GetSrcPath(std::string &srcPath);

12