Home
last modified time | relevance | path

Searched refs:codePath (Results 1 - 25 of 101) sorted by relevance

12345

/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/include/
H A Dbundle_daemon_handler.h27 int32_t ExtractHap(const char *hapPath, const char *codePath);
34 int32_t RemoveInstallDirectory(const char *codePath, const char *dataPath, bool keepData);
36 bool IsValideCodePath(const char *codePath);
37 bool IsValideDataPath(const char *codePath);
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_worker.h38 panda::panda_file::StringPacProtect codePath = panda::panda_file::StringPacProtect(workerInfo_->codePath); in AssetHelper() local
39 if (!(codePath.GetOriginString()).empty() && (codePath.GetOriginString()).back() != '/') { in AssetHelper()
40 (workerInfo_->codePath).Append('/'); in AssetHelper()
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/
H A Dapplication_env_impl_test.cpp69 applicationInfo.codePath = "/codePath"; in HWTEST_F()
72 EXPECT_EQ(ApplicationEnvImpl::GetInstance()->GetSrcPath(), "/codePath"); in HWTEST_F()
88 appInfo.srcPath = "/codePath"; in HWTEST_F()
91 EXPECT_EQ(ApplicationEnvImpl::GetInstance()->GetSrcPath(), "/codePath"); in HWTEST_F()
107 appInfo.srcPath = "/codePath"; in HWTEST_F()
110 std::string codePath(GetSrcPath()); in HWTEST_F()
113 EXPECT_EQ(codePath, "/codePath"); in HWTEST_F()
129 applicationInfo.codePath in HWTEST_F()
[all...]
H A Dcontext_deal_test.cpp129 std::string codePath = "CodePath"; in HWTEST_F() local
130 info->codePath = codePath; in HWTEST_F()
144 std::string codePath = "/data/app/el1/bundle/public"; in HWTEST_F() local
145 info->codePath = codePath; in HWTEST_F()
248 std::string dir = "codePath"; in HWTEST_F()
296 std::string codePath = "CodePath"; in HWTEST_F() local
297 info->codePath = codePath; in HWTEST_F()
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_info_creator.cpp48 size_t index = std::string(info->codePath).find_last_of(PATH_SEPARATOR); in SaveBundleInfo()
50 HILOG_ERROR(HILOG_MODULE_APP, "codePath is invalid!"); in SaveBundleInfo()
55 installDirPath = std::string(info->codePath).substr(0, index); in SaveBundleInfo()
99 uint8_t errorCode = BundleResTransform::ConvertResInfoToBundleInfo(bundleInfo->codePath, bundleRes, bundleInfo); in CreateBundleInfo()
123 // set codePath and dataPath in SetBundleInfo()
124 std::string codePath = installDirPath + PATH_SEPARATOR + bundleProfile.bundleName; in SetBundleInfo() local
126 if (codePath.size() > PATH_LENGTH || dataPath.size() > PATH_LENGTH) { in SetBundleInfo()
127 HILOG_ERROR(HILOG_MODULE_APP, "codePath or dataPath length exceed max value!"); in SetBundleInfo()
133 std::string iconPath = codePath + PATH_SEPARATOR + bundleProfile.moduleInfo.moduleName + PATH_SEPARATOR + in SetBundleInfo()
154 !BundleInfoUtils::SetBundleInfoCodePath(bundleInfo, codePath in SetBundleInfo()
213 SetAbilityInfos(const BundleProfile &bundleProfile, const std::string &codePath, BundleInfo *bundleInfo) SetAbilityInfos() argument
240 SetAbilityInfo(const BundleProfile &bundleProfile, const std::string &codePath, BundleInfo *bundleInfo, uint32_t index) SetAbilityInfo() argument
[all...]
H A Dbundle_manager_service.cpp448 char *codePath = nullptr; in ReloadEntireBundleInfo() local
461 bool res = BundleUtil::CheckBundleJsonIsValid(bundleName, &codePath, &appId, oldVersionCode); in ReloadEntireBundleInfo()
467 AdapterFree(codePath); in ReloadEntireBundleInfo()
472 ReloadBundleInfo(codePath, appId, bundleName, isSystemApp); in ReloadEntireBundleInfo()
475 AdapterFree(codePath); in ReloadEntireBundleInfo()
481 HILOG_ERROR(HILOG_MODULE_APP, "codePath or appid in third app json file is invalid!"); in ReloadEntireBundleInfo()
482 AdapterFree(codePath); in ReloadEntireBundleInfo()
487 ReloadBundleInfo(codePath, appId, bundleName, isSystemApp); in ReloadEntireBundleInfo()
489 AdapterFree(codePath); in ReloadEntireBundleInfo()
492 void ManagerService::ReloadBundleInfo(const char *codePath, cons argument
637 char *codePath = installedInfo->codePath; GetBundleSize() local
[all...]
H A Dbundle_daemon_client.cpp231 int32_t BundleDaemonClient::ExtractHap(const char *hapFile, const char *codePath) in RegisterCallback() argument
236 if (hapFile == nullptr || codePath == nullptr) { in RegisterCallback()
237 PRINTE("BundleDaemonClient", "invalid params: hapFile or codePath is nullptr"); in RegisterCallback()
241 return CallClientInvoke(EXTRACT_HAP, hapFile, codePath); in RegisterCallback()
364 int32_t BundleDaemonClient::RemoveInstallDirectory(const char *codePath, const char *dataPath, bool keepData) in RegisterCallback() argument
369 if (codePath == nullptr || dataPath == nullptr) { in RegisterCallback()
374 return CallClientInvoke(REMOVE_INSTALL_DIRECTORY, codePath, dataPath, keepData); in RegisterCallback()
H A Dbundle_installer.cpp134 .bundleName = nullptr, .codePath = nullptr, .appId = nullptr, .versionCode = -1, .uid = INVALID_UID, in Install()
221 std::string codePath = std::string(bundleInfo->codePath) + PATH_SEPARATOR + bundleInfo->moduleInfos[0].moduleName; in ProcessBundleInstall() local
222 installRecord.codePath = bundleInfo->codePath; in ProcessBundleInstall()
224 std::string tmpCodePath = codePath + randStr; in ProcessBundleInstall()
230 errorCode = HandleFileAndBackUpRecord(codePath.c_str(), randStr, installRecord, isUpdate, hapType); in ProcessBundleInstall()
345 uint8_t BundleInstaller::HandleFileAndBackUpRecord(const char *codePath, const char *randStr, InstallRecord &record, in HandleFileAndBackUpRecord() argument
348 if (codePath == nullptr || randStr == nullptr) { in HandleFileAndBackUpRecord()
360 std::string tmpPath = std::string(codePath) in HandleFileAndBackUpRecord()
[all...]
H A Dgt_bundle_manager_service.cpp265 char *codePath = installedInfo->codePath; in GetBundleSize() local
266 uint32_t codeBundleSize = BundleUtil::GetFileFolderSize(codePath); in GetBundleSize()
730 char *codePath = nullptr; in ReloadEntireBundleInfo() local
745 bool res = BundleUtil::CheckBundleJsonIsValid(bundleName, &codePath, &appId, oldVersionCode); in ReloadEntireBundleInfo()
751 AdapterFree(codePath); in ReloadEntireBundleInfo()
755 AddSystemAppPathList(codePath, appPath, systemPathList, isSystemApp, true, appId); in ReloadEntireBundleInfo()
757 AdapterFree(codePath); in ReloadEntireBundleInfo()
761 if (!res && !BundleUtil::CheckBundleJsonIsValid(bundleName, &codePath, &appId, oldVersionCode)) { in ReloadEntireBundleInfo()
766 AdapterFree(codePath); in ReloadEntireBundleInfo()
919 TransformJsToBcWhenRestart(const char *codePath, const char *bundleName) TransformJsToBcWhenRestart() argument
993 TransformJsToBc(const char *codePath, const char *bundleJsonPath, cJSON *installRecordObj) TransformJsToBc() argument
[all...]
H A Dgt_bundle_installer.cpp178 .codePath = nullptr, in Install()
261 installRecord.codePath = bundleInfo->codePath; in ProcessBundleInstall()
276 char *tmpCodePathComp[] = {installRecord.codePath, const_cast<char *>(randStr)}; in ProcessBundleInstall()
330 const_cast<char *>(bundleInfo->codePath), const_cast<char *>(ASSETS), in MoveRawFileToDataPath()
458 if (!BundleUtil::RenameDir(tmpPath, record.codePath)) { in HandleFileAndBackUpRecord()
490 uint8_t GtBundleInstaller::TransformJsToBc(const char *codePath, InstallRecord &record) in TransformJsToBc() argument
492 if (codePath == nullptr) { in TransformJsToBc()
496 char *jsPathComp[] = {const_cast<char *>(codePath), const_cast<char *>(ASSET_JS_PATH)}; in TransformJsToBc()
503 char *newJsPathComp[] = {const_cast<char *>(codePath), const_cas in TransformJsToBc()
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_daemon_handler.cpp41 int32_t BundleDaemonHandler::ExtractHap(const char *hapPath, const char *codePath) in ExtractHap() argument
55 if (!IsValideCodePath(codePath)) { in ExtractHap()
58 if (!BundleFileUtils::RemoveFile(codePath)) { in ExtractHap()
59 PRINTE("BundleDaemonHandler", "remove codePath fail!"); in ExtractHap()
62 std::string codeDir = std::string(codePath); in ExtractHap()
68 PRINTE("BundleDaemonHandler", "create codePath fail!"); in ExtractHap()
156 int32_t BundleDaemonHandler::RemoveInstallDirectory(const char *codePath, const char *dataPath, bool keepData) in RemoveInstallDirectory() argument
158 bool result = IsValideCodePath(codePath) && BundleFileUtils::RemoveFile(codePath); in RemoveInstallDirectory()
259 bool BundleDaemonHandler::IsValideCodePath(const char *codePath) in IsValideCodePath() argument
[all...]
H A Dbundle_daemon.cpp169 std::string codePath = ""; in ExtractHapInvoke() local
170 int32_t ret = ObtainStringFromIpc(req, hapPath, codePath); in ExtractHapInvoke()
174 return BundleDaemon::GetInstance().handler_.ExtractHap(hapPath.c_str(), codePath.c_str()); in ExtractHapInvoke()
252 std::string codePath = ""; in RemoveInstallDirectoryInvoke() local
254 int32_t ret = ObtainStringFromIpc(req, codePath, dataPath); in RemoveInstallDirectoryInvoke()
260 return BundleDaemon::GetInstance().handler_.RemoveInstallDirectory(codePath.c_str(), dataPath.c_str(), keepData); in RemoveInstallDirectoryInvoke()
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/
H A Dbundle_info_utils.cpp55 SetBundleInfoCodePath(des, src.codePath); in CopyBundleInfo()
96 des->codePath = src.codePath; in CopyBundleInfoNoReplication()
186 bool BundleInfoUtils::SetBundleInfoCodePath(BundleInfo *bundleInfo, const char *codePath) in SetBundleInfoCodePath() argument
188 if (bundleInfo == nullptr || codePath == nullptr) { in SetBundleInfoCodePath()
192 AdapterFree(bundleInfo->codePath); in SetBundleInfoCodePath()
193 bundleInfo->codePath = Utils::Strdup(codePath); in SetBundleInfoCodePath()
194 return bundleInfo->codePath != nullptr; in SetBundleInfoCodePath()
/foundation/bundlemanager/bundle_framework/test/benchmarktest/application_info_test/
H A Dapplication_info_test.cpp39 info.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForReadFromParcel()
68 info.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForReadMetaDataFromParcel()
97 info.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForMarshalling()
125 info.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForUnmarshalling()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dbundle_info_creator.h37 static bool SetAbilityInfos(const BundleProfile &bundleProfile, const std::string &codePath,
39 static bool SetAbilityInfo(const BundleProfile &bundleProfile, const std::string &codePath,
H A Dbundle_daemon_client.h36 int32_t ExtractHap(const char *hapFile, const char *codePath);
43 int32_t RemoveInstallDirectory(const char *codePath, const char *dataPath, bool keepData);
H A Dgt_bundle_installer.h68 uint8_t TransformJsToBc(const char *codePath, InstallRecord &record);
99 BundleUtil::RemoveDir(bundleInfo->codePath); \
H A Dbundle_installer.h42 uint8_t HandleFileAndBackUpRecord(const char *codePath, const char *randStr, InstallRecord &record,
85 (bundleInfo)->codePath, (bundleInfo)->dataPath, false); \
/foundation/bundlemanager/bundle_framework/test/benchmarktest/bundle_info_test/
H A Dbundle_info_test.cpp49 info.applicationInfo.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForReadFromParcel()
88 info.applicationInfo.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForMarshalling()
126 info.applicationInfo.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForUnmarshalling()
/foundation/bundlemanager/bundle_framework/test/benchmarktest/extension_ability_info_test/
H A Dextension_ability_info_test.cpp48 info.applicationInfo.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForReadFromParcel()
86 info.applicationInfo.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForMarshalling()
123 info.applicationInfo.codePath = "/data/app/el1/budle/public/com.ohos.contactsdataability"; in BenchmarkTestForUnmarshalling()
/foundation/ability/ability_runtime/test/unittest/runtime_test/
H A Djs_worker_test.cpp77 workerInfo->codePath = panda::panda_file::StringPacProtect("/data/test/codePath"); in HWTEST_F()
104 workerInfo->codePath = panda::panda_file::StringPacProtect("/data/test/codePath"); in HWTEST_F()
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_external/
H A Dbms_adapter.cpp347 if (installedBundle.applicationInfo.codePath == HMOS_HAP_CODE_PATH || in GetBundleInfosForIncremental()
348 installedBundle.applicationInfo.codePath == LINUX_HAP_CODE_PATH) { in GetBundleInfosForIncremental()
390 if (installedBundle.applicationInfo.codePath == HMOS_HAP_CODE_PATH || in GetFullBundleInfos()
391 installedBundle.applicationInfo.codePath == LINUX_HAP_CODE_PATH) { in GetFullBundleInfos()
429 if (installedBundle.applicationInfo.codePath == HMOS_HAP_CODE_PATH || in GetExtName()
430 installedBundle.applicationInfo.codePath == LINUX_HAP_CODE_PATH) { in GetExtName()
510 if (installedBundle.applicationInfo.codePath == HMOS_HAP_CODE_PATH || in GetCurBundleExtenionInfo()
511 installedBundle.applicationInfo.codePath == LINUX_HAP_CODE_PATH) { in GetCurBundleExtenionInfo()
/foundation/ability/ability_runtime/test/unittest/file_path_utils_test/
H A Dfile_path_utils_test.cpp580 const std::string& codePath = bundleName; in HWTEST_F() local
583 bool newJsModulePath = MakeFilePath(codePath, modulePath, fileName); in HWTEST_F()
595 const std::string& codePath = "codePath"; in HWTEST_F() local
598 bool newJsModulePath = MakeFilePath(codePath, modulePath, fileName); in HWTEST_F()
610 const std::string& codePath = "../codePath"; in HWTEST_F() local
613 bool newJsModulePath = MakeFilePath(codePath, modulePath, fileName); in HWTEST_F()
/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/
H A Dstart_other_app_interceptor.cpp131 return (applicationInfo.codePath == std::to_string(CollaboratorType::RESERVE_TYPE) || in CheckAncoShellCall()
132 applicationInfo.codePath == std::to_string(CollaboratorType::OTHERS_TYPE)); in CheckAncoShellCall()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Drecoverable_application_info.cpp62 for (auto &codePath : codePaths) { in Marshalling()
63 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(codePath)); in Marshalling()

Completed in 24 milliseconds

12345