Home
last modified time | relevance | path

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

12345678910>>...14

/ohos5.0/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
H A Djs_wallpaper_extension_ability.cpp66 std::string srcPath = ""; in Init() local
67 GetSrcPath(srcPath); in Init()
68 if (srcPath.empty()) { in Init()
72 return InitMoudle(srcPath); in Init()
221 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
222 srcPath.append("/assets/js/"); in GetSrcPath()
223 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
224 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
232 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
233 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/base/security/huks/utils/compatibility_bin/
H A 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()
/ohos5.0/base/inputmethod/imf/frameworks/kits/extension/src/
H A Djs_inputmethod_extension.cpp99 std::string srcPath; in Init() local
100 GetSrcPath(srcPath); in Init()
101 if (srcPath.empty()) { in Init()
374 void JsInputMethodExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
379 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
380 srcPath.append("/assets/js/"); in GetSrcPath()
381 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
382 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
390 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
391 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/foundation/window/window_manager/extension/window_extension/src/
H A Djs_window_extension.cpp121 std::string srcPath; in Init() local
122 GetSrcPath(srcPath); in Init()
123 if (srcPath.empty()) { in Init()
194 void JsWindowExtension::GetSrcPath(std::string& srcPath) const in GetSrcPath()
202 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
203 srcPath.append("/assets/js/"); in GetSrcPath()
204 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
205 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
213 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
214 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/ipc/
H A Dcloud_daemon.cpp126 string srcPath = srcBase + '/' + sub; in HandleStartMove() local
128 if (access(srcPath.c_str(), F_OK) != 0) { in HandleStartMove()
129 LOGI("srcPath %{public}s not found", GetAnonyString(srcPath).c_str()); in HandleStartMove()
132 LOGI("Begin to move path: %{public}s", GetAnonyString(srcPath).c_str()); in HandleStartMove()
134 filesystem::copy(srcPath, dstPath, copyOptions, errCode); in HandleStartMove()
137 GetAnonyString(srcPath).c_str(), errCode.value()); in HandleStartMove()
139 LOGI("End move path: %{public}s", GetAnonyString(srcPath).c_str()); in HandleStartMove()
140 bool ret = Storage::DistributedFile::Utils::ForceRemoveDirectoryDeepFirst(srcPath); in HandleStartMove()
142 LOGE("remove failed path: %{public}s", GetAnonyString(srcPath).c_str()); in HandleStartMove()
/ohos5.0/drivers/external_device_manager/services/native/driver_extension/src/
H A Djs_driver_extension.cpp137 std::string srcPath = ""; in Init() local
138 GetSrcPath(srcPath); in Init()
139 if (srcPath.empty()) { in Init()
147 moduleName.c_str(), srcPath.c_str()); in Init()
336 void JsDriverExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
340 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
341 srcPath.append("/assets/js/"); in GetSrcPath()
342 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
343 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
352 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Ddata_publisher.cpp159 std::string srcPath = TEMP_SRC_DIR; in OnSysEvent() local
161 auto task = std::bind(&DataPublisher::HandleSubscribeTask, this, event, srcPath, timeStr); in OnSysEvent()
165 HandleSubscribeTask(event, srcPath, timeStr); in OnSysEvent()
170 std::string srcPath, std::string timeStr) in HandleSubscribeTask() argument
173 if (!FileUtil::SaveStringToFile(srcPath, eventJson + ",", true)) { in HandleSubscribeTask()
188 auto res = OHOS::HiviewDFX::DataShareUtil::CopyFile(srcPath.c_str(), desPath.c_str()); in HandleSubscribeTask()
258 std::string srcPath = TEMP_EXPORT_SRC_DIR; in AddExportTask() local
259 if (!FileUtil::RemoveFile(srcPath)) { in AddExportTask()
266 auto task = [queryWrapper, srcPath, desPath] { in AddExportTask()
268 new(std::nothrow) DataPublisherSysEventCallback(srcPath, desPath, 0, 0); in AddExportTask()
[all …]
/ohos5.0/base/customization/enterprise_device_management/framework/extension/src/
H A Djs_enterprise_admin_extension.cpp53 std::string srcPath; in Init() local
54 GetSrcPath(srcPath); in Init()
55 if (srcPath.empty()) { in Init()
63 moduleName.c_str(), srcPath.c_str()); in Init()
66 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
279 void JsEnterpriseAdminExtension::GetSrcPath(std::string& srcPath) in GetSrcPath() argument
282 srcPath.append(Extension::abilityInfo_->moduleName + "/"); in GetSrcPath()
283 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
284 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
285 srcPath.append(".abc"); in GetSrcPath()
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dextractor.cpp51 bool Extractor::GetFileBuffer(const std::string& srcPath, std::ostringstream& dest) in GetFileBuffer() argument
58 if (srcPath.empty()) { in GetFileBuffer()
63 std::string relativePath = GetRelativePath(srcPath); in GetFileBuffer()
72 bool Extractor::GetFileList(const std::string& srcPath, std::vector<std::string>& assetList) in GetFileList() argument
80 if (srcPath.empty()) { in GetFileList()
84 zipFile_.GetAllFileList(srcPath, assetList); in GetFileList()
86 ABILITYBASE_LOGW("empty dir: %{public}s", srcPath.c_str()); in GetFileList()
241 bool Extractor::GetFileList(const std::string &srcPath, std::set<std::string> &fileSet) in GetFileList() argument
248 if (srcPath.empty()) { in GetFileList()
253 zipFile_.GetChildNames(srcPath, fileSet); in GetFileList()
[all …]
H A Dzip_file.cpp388 if (srcPath.empty()) { in GetAllFileList()
392 if (IsRootDir(srcPath)) { in GetAllFileList()
405 auto tmpDir = srcPath; in GetAllFileList()
430 if (srcPath.empty()) { in GetChildNames()
438 auto tmpDir = srcPath; in GetChildNames()
501 srcPath.substr(0, srcPath.length() - 1) : srcPath; in GetAllFileListCache()
534 while (cur < srcPath.size() && srcPath[cur] == FILE_SEPARATOR_CHAR) { in GetChildNamesCache()
537 if (cur >= srcPath.size()) { in GetChildNamesCache()
572 auto targetDir = srcPath; in GetAllFileListNormal()
586 auto targetDir = srcPath; in GetChildNamesNormal()
[all …]
/ohos5.0/base/print/print_fwk/frameworks/kits/extension/src/
H A Djs_print_extension.cpp92 std::string srcPath = ""; in InitExtensionObj() local
93 GetSrcPath(srcPath); in InitExtensionObj()
94 if (srcPath.empty()) { in InitExtensionObj()
306 void JsPrintExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
311 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
312 srcPath.append("/assets/js/"); in GetSrcPath()
313 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
314 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
322 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
323 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/child_process_manager/
H A Djs_child_process.cpp54 std::string srcPath = info->srcEntry; in Init() local
55 if (srcPath.rfind(".") != std::string::npos) { in Init()
56 srcPath.erase(srcPath.rfind(".")); in Init()
58 srcPath.append(".abc"); in Init()
63 … jsChildProcessObj_ = jsRuntime_.LoadModule(moduleName, srcPath, info->hapPath, info->isEsModule); in Init()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/form_runtime/
H A Djs_form_extension.cpp99 std::string srcPath; in Init() local
100 GetSrcPath(srcPath); in Init()
101 if (srcPath.empty()) { in Init()
348 void JsFormExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
352 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
353 srcPath.append("/assets/js/"); in GetSrcPath()
354 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
355 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
363 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
364 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/foundation/resourceschedule/work_scheduler/frameworks/extension/src/
H A Djs_work_scheduler_extension.cpp96 std::string srcPath = ""; in Init() local
97 GetSrcPath(srcPath); in Init()
98 if (srcPath.empty()) { in Init()
447 void JsWorkSchedulerExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
451 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
452 srcPath.append("/assets/js/"); in GetSrcPath()
453 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
454 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
462 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
463 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_path.cpp301 Path* srcPath = CastToPath(const_cast<OH_Drawing_Path*>(src)); in OH_Drawing_PathAddPath() local
303 path->AddPath(*srcPath); in OH_Drawing_PathAddPath()
306 path->AddPath(*srcPath, *CastToMatrix(matrix)); in OH_Drawing_PathAddPath()
321 Path* srcPath = CastToPath(const_cast<OH_Drawing_Path*>(src)); in OH_Drawing_PathAddPathWithMatrixAndMode() local
322 if (srcPath == nullptr) { in OH_Drawing_PathAddPathWithMatrixAndMode()
328 path->AddPath(*srcPath, static_cast<PathAddMode>(mode)); in OH_Drawing_PathAddPathWithMatrixAndMode()
346 if (srcPath == nullptr) { in OH_Drawing_PathAddPathWithMode()
350 path->AddPath(*srcPath, static_cast<PathAddMode>(mode)); in OH_Drawing_PathAddPathWithMode()
366 if (srcPath == nullptr) { in OH_Drawing_PathAddPathWithOffsetAndMode()
568 if (path == nullptr || srcPath == nullptr) { in OH_Drawing_PathOp()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dmovedir.cpp36 static int RecurMoveDir(const string &srcPath, const string &destPath, const int mode,
116 filesystem::path srcPath(src); in CopyAndDeleteFile() local
141 filesystem::path srcPath(src); in RenameFile() local
142 filesystem::rename(srcPath, dstPath, errCode); in RenameFile()
168 filesystem::path srcPath(src); in RenameDir() local
169 filesystem::rename(srcPath, destPath, errCode); in RenameDir()
207 errfiles.emplace_front(srcPath, destPath); in RecurMoveDir()
216 int num = scandir(srcPath.c_str(), &(ptr->namelist), FilterFunc, alphasort); in RecurMoveDir()
221 string srcTemp = srcPath + '/' + string((ptr->namelist[i])->d_name); in RecurMoveDir()
236 string src = srcPath + '/' + string((ptr->namelist[i])->d_name); in RecurMoveDir()
[all …]
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/
H A Dringtone_restore.cpp107 string srcPath = backupPath_ + it->data; in CheckRestoreFileInfos() local
108 if (!RingtoneFileUtils::IsFileExists(srcPath)) { in CheckRestoreFileInfos()
114 … RINGTONE_INFO_LOG("warnning:backup file is not exist, path=%{private}s", srcPath.c_str()); in CheckRestoreFileInfos()
174 string srcPath = backupPath_ + info.data; in OnPrepare() local
177 if (RingtoneFileUtils::IsSameFile(srcPath, info.restorePath)) { in OnPrepare()
179 RINGTONE_ERR_LOG("samefile: srcPath=%{private}s, dstPath=%{private}s", srcPath.c_str(), in OnPrepare()
186 if (!RingtoneRestoreBase::MoveFile(srcPath, info.restorePath)) { in OnPrepare()
/ohos5.0/base/location/frameworks/native/fence_extension_ability/src/
H A Djs_fence_extension.cpp121 std::string srcPath = ""; in Init() local
122 GetSrcPath(srcPath); in Init()
123 if (srcPath.empty()) { in Init()
133 srcPath.c_str()); in Init()
137 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init()
266 void JsFenceExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
269 srcPath.append(Extension::abilityInfo_->moduleName); in GetSrcPath()
270 srcPath.append("/"); in GetSrcPath()
271 srcPath.append(Extension::abilityInfo_->srcEntrance); in GetSrcPath()
272 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/vpnextension/src/
H A Djs_vpn_extension.cpp134 std::string srcPath = ""; in Init() local
135 GetSrcPath(srcPath); in Init()
136 if (srcPath.empty()) { in Init()
144 moduleName.c_str(), srcPath.c_str()); in Init()
437 void JsVpnExtension::GetSrcPath(std::string &srcPath) in GetSrcPath() argument
442 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath()
443 srcPath.append("/assets/js/"); in GetSrcPath()
444 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath()
445 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath()
454 srcPath.erase(srcPath.rfind('.')); in GetSrcPath()
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.1.5.2/
H A Dchangelogs-filemanagement.md55 | @ohos.fileio | **function** symlink(target: string, srcPath: string): Promise<void> | 功能不…
56 | @ohos.fileio | **function** symlink(target: string, srcPath: string, callback: AsyncCallb…
57 | @ohos.fileio | **function** symlinkSync(target: string, srcPath: string): void | 功能不可用 …
58 | @ohos.file.fs | **function** symlink(target: string, srcPath: string): Promise<void> | 功能不…
59 | @ohos.file.fs | **function** symlink(target: string, srcPath: string, callback: AsyncCallb…
60 | @ohos.file.fs | **function** symlinkSync(target: string, srcPath: string): void | 功能不可用 …
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dcopy_dir.cpp29 static int RecurCopyDir(const std::string &srcPath, const std::string &destPath, const int mode,
81 std::filesystem::path srcPath(src); in CopyFile() local
83 …if (!std::filesystem::copy_file(srcPath, dstPath, std::filesystem::copy_options::overwrite_existin… in CopyFile()
90 static int CopySubDir(const std::string &srcPath, const std::string &destPath, const int mode, in CopySubDir() argument
100 return RecurCopyDir(srcPath, destPath, mode, errfiles); in CopySubDir()
111 static int RecurCopyDir(const std::string &srcPath, const std::string &destPath, const int mode, in RecurCopyDir() argument
119 int num = scandir(srcPath.c_str(), &(pNameList->namelist), FilterFunc, alphasort); in RecurCopyDir()
124 std::string srcTemp = srcPath + '/' + std::string((pNameList->namelist[i])->d_name); in RecurCopyDir()
134 LOGI("srcPath %{public}s from", srcPath.c_str()); in RecurCopyDir()
136 std::string src = srcPath + '/' + std::string((pNameList->namelist[i])->d_name); in RecurCopyDir()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/app/
H A Djs_ability_stage.cpp110 std::string srcPath(hapModuleInfo.name); in Create() local
116 srcPath.append("/assets/js/"); in Create()
117 if (hapModuleInfo.srcPath.empty()) { in Create()
120 srcPath.append(hapModuleInfo.srcPath); in Create()
125 key.append(srcPath); in Create()
137 srcPath.append("/"); in Create()
140 srcPath.erase(srcPath.rfind(".")); in Create()
141 srcPath.append(".abc"); in Create()
489 auto pos = srcPath.rfind('.'); in LoadJsSrcEntry()
493 srcPath.erase(pos); in LoadJsSrcEntry()
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_delegator/runner_runtime/
H A Djs_test_runner.cpp60 std::string srcPath; in JsTestRunner() local
62 srcPath.append(args->GetTestModuleName()); in JsTestRunner()
64 srcPath.append(LOWERCASETESTRUNNER); in JsTestRunner()
68 srcPath.append(args->GetTestPackageName()); in JsTestRunner()
69 srcPath.append("/assets/js/TestRunner/"); in JsTestRunner()
72 srcPath.append(args->GetTestRunnerClassName()); in JsTestRunner()
73 srcPath.append(".abc"); in JsTestRunner()
74 srcPath_ = srcPath; in JsTestRunner()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_sceneview.cpp206 if (JSViewAbstract::ParseJsMedia(info[0], srcPath)) { in ParseSceneOpt()
229 JSViewAbstract::ParseJsMedia(sceneOpt, srcPath); in ParseSceneOpt()
246 std::string srcPath(""); in Create() local
260 ParseJsMedia(info[0], srcPath); in Create()
264 isSceneApi = ParseSceneOpt(info, srcPath, scene, surfaceData, bundleName, moduleName); in Create()
266 if (!ParseJsMedia(info[0], srcPath)) { in Create()
271 ParseJsMedia(scene, srcPath); in Create()
286 SetOhosPath(srcPath, ohosPath); in Create()
303 std::string srcPath; in JsSetBackground() local
304 auto parseOk = ParseJsMedia(info[0], srcPath); in JsSetBackground()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/operation/
H A Dphoto_file_operation.cpp352 std::string srcPath = sourcePhotoInfo.filePath; in CopyPhotoFile() local
356 if (srcPath.empty() || targetPath.empty()) { in CopyPhotoFile()
363 int32_t opRet = this->CopyFile(srcPath, targetPath); in CopyPhotoFile()
366 srcPath.c_str(), in CopyPhotoFile()
372 srcPath.c_str(), in CopyPhotoFile()
475 int32_t PhotoFileOperation::CopyFile(const std::string &srcPath, std::string &targetPath) in CopyFile() argument
477 …if (srcPath.empty() || !MediaFileUtils::IsFileExists((srcPath)) || !MediaFileUtils::IsFileValid(sr… in CopyFile()
478 MEDIA_ERR_LOG("Media_Operation: source file invalid! srcPath: %{public}s", srcPath.c_str()); in CopyFile()
485 bool opRet = MediaFileUtils::CopyFileUtil(srcPath, targetPath); in CopyFile()
489 srcPath.c_str(), in CopyFile()

12345678910>>...14