Home
last modified time | relevance | path

Searched refs:bundleRes (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_bundle_parser.h28 static BundleInfo *ParseHapProfile(const char *path, BundleRes *bundleRes);
36 BundleProfile &bundleProfile, BundleRes &bundleRes);
40 const BundleRes &bundleRes);
44 BundleRes &bundleRes);
52 static uint8_t SaveBundleInfo(const BundleProfile &bundleProfile, const BundleRes &bundleRes,
55 const BundleRes &bundleRes, BundleInfo *bundleInfo);
92 #define FREE_BUNDLE_RES(bundleRes) \ argument
94 if ((bundleRes).abilityRes != nullptr) { \
95 AdapterFree((bundleRes).abilityRes); \
99 #define CHECK_PARSE_RESULT(errorCode, object, bundleProfile, bundleRes) \ argument
[all …]
H A Dbundle_parser.h35 uint8_t ParseHapProfile(const std::string &path, Permissions &permissions, BundleRes &bundleRes,
40 BundleProfile &bundleProfile, BundleRes &bundleRes);
42 …8_t ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes);
45 …t ParseAbilityInfos(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes);
47 BundleRes &bundleRes);
54 …8_t ParseModuleDesc(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes);
H A Dbundle_res_transform.h30 static uint8_t ConvertResInfoToBundleInfo(const std::string &path, const BundleRes &bundleRes,
H A Dbundle_info_creator.h31 const std::string &dataDirPath, const BundleRes &bundleRes);
H A Dbundle_installer.h44 …uint8_t UpdateBundleInfo(const char *appId, const BundleRes &bundleRes, BundleInfo *bundleInfo, bo…
H A Dgt_bundle_manager_service.h68 void AddBundleResList(const BundleRes *bundleRes);
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_res_transform.cpp27 …BundleResTransform::ConvertResInfoToBundleInfo(const std::string &path, const BundleRes &bundleRes, in ConvertResInfoToBundleInfo() argument
34 if (bundleRes.totalNumOfAbilityRes == 0 || bundleInfo->isNativeApp) { in ConvertResInfoToBundleInfo()
41 if (bundleRes.moduleDescriptionId > 0) { in ConvertResInfoToBundleInfo()
46 if (GLOBAL_GetValueById(bundleRes.moduleDescriptionId, resPath.c_str(), &des) < 0) { in ConvertResInfoToBundleInfo()
58 for (uint32_t i = 0; i < bundleRes.totalNumOfAbilityRes; i++) { in ConvertResInfoToBundleInfo()
59 if (bundleRes.abilityRes[i].iconId > 0 && in ConvertResInfoToBundleInfo()
60 !ConvertIconResToBundleInfo(resPath, bundleRes.abilityRes[i].iconId, bundleInfo, i)) { in ConvertResInfoToBundleInfo()
63 if (bundleRes.abilityRes[i].labelId > 0 && in ConvertResInfoToBundleInfo()
64 !ConvertLableResToBundleInfo(resPath, bundleRes.abilityRes[i].labelId, bundleInfo, i)) { in ConvertResInfoToBundleInfo()
67 if (bundleRes.abilityRes[i].descriptionId > 0 && in ConvertResInfoToBundleInfo()
[all …]
H A Dgt_bundle_parser.cpp152 if (!BundleUtil::CheckRealPath(path) || bundleRes == nullptr) { in ParseHapProfile()
193 BundleProfile &bundleProfile, BundleRes &bundleRes) in ParseJsonInfo() argument
313 BundleRes &bundleRes) in ParseAbilityInfo() argument
320 bundleRes.totalNumOfAbilityRes = 1; in ParseAbilityInfo()
331 bundleRes.abilityRes->labelId = labelId; in ParseAbilityInfo()
345 bundleRes.abilityRes->iconId = iconId; in ParseAbilityInfo()
583 const BundleRes &bundleRes) in CreateBundleInfo() argument
603 …uint8_t errorCode = ConvertResInfoToBundleInfo(path, bundleRes.abilityRes->labelId, bundleRes.abil… in CreateBundleInfo()
800 CHECK_PARSE_RESULT(errorCode, root, bundleProfile, bundleRes); in ParseHapProfile()
804 CHECK_PARSE_RESULT(errorCode, root, bundleProfile, bundleRes); in ParseHapProfile()
[all …]
H A Dbundle_installer.cpp173 BundleRes bundleRes = { in ProcessBundleInstall() local
178 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
184 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
188 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
193 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
198 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
201 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
208 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
215 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
220 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
[all …]
H A Dbundle_parser.cpp252 BundleRes bundleRes = { in ParseHapProfile() local
257 AdapterFree(bundleRes.abilityRes); in ParseHapProfile()
271 bundleRes); in ParseHapProfile()
273 AdapterFree(bundleRes.abilityRes); in ParseHapProfile()
319 BundleProfile &bundleProfile, BundleRes &bundleRes) in ParseJsonInfo() argument
362 return ParseModuleInfo(moduleObject, bundleProfile, bundleRes); in ParseJsonInfo()
441 return ParseAbilityInfos(moduleObject, bundleProfile, bundleRes); in ParseModuleInfo()
457 bundleRes.moduleDescriptionId = static_cast<uint32_t>(descId); in ParseModuleDesc()
607 BundleRes &bundleRes) in ParseAllAbilityInfo() argument
610 bundleRes.totalNumOfAbilityRes = bundleProfile.numOfAbility; in ParseAllAbilityInfo()
[all …]
H A Dgt_bundle_installer.cpp237 BundleRes bundleRes = { in ProcessBundleInstall() local
253 uint32_t labelId = (bundleRes.abilityRes != nullptr) ? bundleRes.abilityRes->labelId : 0; in ProcessBundleInstall()
254 uint32_t iconId = (bundleRes.abilityRes != nullptr) ? bundleRes.abilityRes->iconId : 0; in ProcessBundleInstall()
255 AdapterFree(bundleRes.abilityRes); in ProcessBundleInstall()
570 if (bundleRes == nullptr) { in AddBundleResList()
575 if (bundleRes->abilityRes == nullptr) { in AddBundleResList()
576 AdapterFree(bundleRes); in AddBundleResList()
579 bundleRes->bundleName = const_cast<char *>(bundleName); in AddBundleResList()
580 bundleRes->abilityRes->labelId = labelId; in AddBundleResList()
581 bundleRes->abilityRes->iconId = iconId; in AddBundleResList()
[all …]
H A Dgt_bundle_manager_service.cpp808 if (bundleRes == nullptr) { in ReloadBundleInfo()
812 AdapterFree(bundleRes); in ReloadBundleInfo()
821 AdapterFree(bundleRes->abilityRes); in ReloadBundleInfo()
822 AdapterFree(bundleRes); in ReloadBundleInfo()
826 if (bundleRes->abilityRes == nullptr || in ReloadBundleInfo()
827 (bundleRes->abilityRes->labelId == 0 && bundleRes->abilityRes->iconId == 0)) { in ReloadBundleInfo()
829 AdapterFree(bundleRes); in ReloadBundleInfo()
832 AddBundleResList(bundleRes); in ReloadBundleInfo()
836 AdapterFree(bundleRes->abilityRes); in ReloadBundleInfo()
837 AdapterFree(bundleRes); in ReloadBundleInfo()
[all …]
H A Dgt_bundle_extractor.cpp217 BundleRes bundleRes = { 0 }; in ExtractInstallMsg() local
218 BundleInfo *bundleInfo = GtBundleParser::ParseHapProfile(TMP_RESOURCE_DIR, &bundleRes); in ExtractInstallMsg()
223 if (bundleRes.abilityRes != nullptr) { in ExtractInstallMsg()
224 AdapterFree(bundleRes.abilityRes); in ExtractInstallMsg()
H A Dbundle_info_creator.cpp78 const std::string &dataDirPath, const BundleRes &bundleRes) in CreateBundleInfo() argument
99 …Code = BundleResTransform::ConvertResInfoToBundleInfo(bundleInfo->codePath, bundleRes, bundleInfo); in CreateBundleInfo()