/base/security/huks/utils/compatibility_bin/ |
D | compatibility_bin.c | 86 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/ |
D | js_wallpaper_extension_ability.cpp | 74 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/ |
D | build-profile.json5 | 15 "srcPath": "./product/oh/base", 27 "srcPath": "./common" 31 "srcPath": "./feature/ota"
|
/base/inputmethod/imf/frameworks/kits/extension/src/ |
D | js_inputmethod_extension.cpp | 91 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/ |
D | js_enterprise_admin_extension.cpp | 51 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/ |
D | data_publisher_sys_event_callback.h | 29 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);
|
D | data_publisher.h | 54 std::string srcPath, std::string timeStr);
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
D | data_publisher.cpp | 146 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 …]
|
D | data_publisher_sys_event_callback.cpp | 73 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/ |
D | js_print_extension.cpp | 81 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/ |
D | init_eng.c | 154 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/ |
D | zip_utils.cpp | 22 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/ |
D | napi_app_account_authorization_extension.cpp | 325 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/ |
D | js_static_subscriber_extension.cpp | 97 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/ |
D | build-profile.json5 | 35 "srcPath": "./entry", 47 "srcPath": "./usb_right_dialog",
|
/base/hiviewdfx/hidumper/frameworks/native/include/util/ |
D | zip_utils.h | 27 static bool ZipFolder(const std::string &srcPath, const std::string &dstFile,
|
/base/hiviewdfx/hiview/service/unified_collection/ |
D | xcollect_service.cpp | 89 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/ |
D | sandbox_utils.cpp | 365 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/ |
D | js_enterprise_admin_extension.h | 72 void GetSrcPath(std::string& srcPath);
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_extension/module_loader/ |
D | js_user_auth_extension.cpp | 104 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/ |
D | build-profile.json5 | 35 "srcPath": "./usb_function_switch_window",
|
/base/inputmethod/imf/frameworks/kits/extension/include/ |
D | js_inputmethod_extension.h | 112 void GetSrcPath(std::string &srcPath);
|
/base/useriam/face_auth/ui/Settings_FaceAuth/ |
D | build-profile.json5 | 30 "srcPath": "./entry",
|
/base/theme/wallpaper_mgr/frameworks/kits/extension/include/ |
D | js_wallpaper_extension_ability.h | 118 void GetSrcPath(std::string &srcPath);
|
/base/print/print_fwk/frameworks/kits/extension/include/ |
D | js_print_extension.h | 121 void GetSrcPath(std::string &srcPath);
|