/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/include/ |
H A D | bundle_daemon_handler.h | 27 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 D | js_worker.h | 38 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 D | application_env_impl_test.cpp | 69 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 D | context_deal_test.cpp | 129 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 D | bundle_info_creator.cpp | 48 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 D | bundle_manager_service.cpp | 448 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 D | bundle_daemon_client.cpp | 231 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 D | bundle_installer.cpp | 134 .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 D | gt_bundle_manager_service.cpp | 265 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 D | gt_bundle_installer.cpp | 178 .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 D | bundle_daemon_handler.cpp | 41 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 D | bundle_daemon.cpp | 169 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 D | bundle_info_utils.cpp | 55 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 D | application_info_test.cpp | 39 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 D | bundle_info_creator.h | 37 static bool SetAbilityInfos(const BundleProfile &bundleProfile, const std::string &codePath, 39 static bool SetAbilityInfo(const BundleProfile &bundleProfile, const std::string &codePath,
|
H A D | bundle_daemon_client.h | 36 int32_t ExtractHap(const char *hapFile, const char *codePath); 43 int32_t RemoveInstallDirectory(const char *codePath, const char *dataPath, bool keepData);
|
H A D | gt_bundle_installer.h | 68 uint8_t TransformJsToBc(const char *codePath, InstallRecord &record); 99 BundleUtil::RemoveDir(bundleInfo->codePath); \
|
H A D | bundle_installer.h | 42 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 D | bundle_info_test.cpp | 49 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 D | extension_ability_info_test.cpp | 48 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 D | js_worker_test.cpp | 77 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 D | bms_adapter.cpp | 347 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 D | file_path_utils_test.cpp | 580 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 D | start_other_app_interceptor.cpp | 131 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 D | recoverable_application_info.cpp | 62 for (auto &codePath : codePaths) { in Marshalling() 63 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(codePath)); in Marshalling()
|