Home
last modified time | relevance | path

Searched refs:abilityRes (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dbundle_installer.h71 #define CHECK_PRO_RESULT(errcode, bundleInfo, permissions, abilityRes) \ argument
76 AdapterFree(abilityRes); \
90 #define CHECK_PRO_PART_ROLLBACK(errcode, path, permissions, bundleInfo, abilityRes) \ argument
96 AdapterFree(abilityRes); \
101 #define CHECK_PRO_ROLLBACK(errcode, permissions, bundleInfo, abilityRes, randStr) \ argument
105 AdapterFree(abilityRes); \
H A Dbundle_parser.h53 AbilityRes &abilityRes, uint32_t index);
55 … ParseAbilityDesc(const cJSON *abilityObject, BundleProfile &bundleProfile, AbilityRes &abilityRes,
57 … ParseAbilityIcon(const cJSON *abilityObject, BundleProfile &bundleProfile, AbilityRes &abilityRes,
59 …ParseAbilityLabel(const cJSON *abilityObject, BundleProfile &bundleProfile, AbilityRes &abilityRes,
H A Dgt_bundle_parser.h94 if ((bundleRes).abilityRes != nullptr) { \
95 AdapterFree((bundleRes).abilityRes); \
H A Dbundle_common.h230 AbilityRes *abilityRes; member
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_res_transform.cpp59 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()
68 … !ConvertDesResIdToBundleInfo(resPath, bundleRes.abilityRes[i].descriptionId, bundleInfo, i)) { in ConvertResInfoToBundleInfo()
H A Dbundle_installer.cpp178 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()
211 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.cpp257 AdapterFree(bundleRes.abilityRes); in ParseHapProfile()
273 AdapterFree(bundleRes.abilityRes); in ParseHapProfile()
617 if (bundleRes.abilityRes == nullptr) { in ParseAllAbilityInfo()
659 AbilityRes &abilityRes, uint32_t index) in ParsePerAbilityInfo() argument
728 AbilityRes &abilityRes, int32_t index) in ParseAbilityDesc() argument
743 abilityRes.index = index; in ParseAbilityDesc()
753 AbilityRes &abilityRes, int32_t index) in ParseAbilityIcon() argument
767 abilityRes.index = index; in ParseAbilityIcon()
768 abilityRes.iconId = static_cast<uint32_t>(iconId); in ParseAbilityIcon()
774 AbilityRes &abilityRes, int32_t index) in ParseAbilityLabel() argument
[all …]
H A Dgt_bundle_installer.cpp238 … .bundleName = nullptr, .moduleDescriptionId = 0, .abilityRes = nullptr, .totalNumOfAbilityRes = 0 in ProcessBundleInstall()
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()
574 bundleRes->abilityRes = reinterpret_cast<AbilityRes *>(AdapterMalloc(sizeof(AbilityRes))); in AddBundleResList()
575 if (bundleRes->abilityRes == nullptr) { in AddBundleResList()
580 bundleRes->abilityRes->labelId = labelId; in AddBundleResList()
581 bundleRes->abilityRes->iconId = iconId; in AddBundleResList()
H A Dgt_bundle_manager_service.cpp821 AdapterFree(bundleRes->abilityRes); in ReloadBundleInfo()
826 if (bundleRes->abilityRes == nullptr || in ReloadBundleInfo()
827 (bundleRes->abilityRes->labelId == 0 && bundleRes->abilityRes->iconId == 0)) { in ReloadBundleInfo()
828 AdapterFree(bundleRes->abilityRes); in ReloadBundleInfo()
836 AdapterFree(bundleRes->abilityRes); in ReloadBundleInfo()
870 AdapterFree(res->abilityRes); in RemoveBundleResList()
886 if (res == nullptr || res->bundleName == nullptr || res->abilityRes == nullptr) { in UpdateBundleInfoList()
908 … uint8_t errorCode = GtBundleParser::ConvertResInfoToBundleInfo(path, res->abilityRes->labelId, in UpdateBundleInfoList()
909 res->abilityRes->iconId, bundleInfo); in UpdateBundleInfoList()
H A Dgt_bundle_parser.cpp319 bundleRes.abilityRes = reinterpret_cast<AbilityRes *>(AdapterMalloc(sizeof(AbilityRes))); in ParseAbilityInfo()
321 CHECK_NULL(bundleRes.abilityRes, ERR_APPEXECFWK_INSTALL_FAILED_INTERNAL_ERROR); in ParseAbilityInfo()
322 if (memset_s(bundleRes.abilityRes, sizeof(AbilityRes), 0, sizeof(AbilityRes)) != EOK) { in ParseAbilityInfo()
331 bundleRes.abilityRes->labelId = labelId; in ParseAbilityInfo()
345 bundleRes.abilityRes->iconId = iconId; in ParseAbilityInfo()
603 … errorCode = ConvertResInfoToBundleInfo(path, bundleRes.abilityRes->labelId, bundleRes.abilityRes-… in CreateBundleInfo()
883 if (bundleInfo == nullptr || bundleRes.abilityRes == nullptr || installedPath == nullptr) { in SetBundleInfo()
912 if (bundleRes.abilityRes->labelId == 0 && bundleProfile.label != nullptr && in SetBundleInfo()
H A Dgt_bundle_extractor.cpp223 if (bundleRes.abilityRes != nullptr) { in ExtractInstallMsg()
224 AdapterFree(bundleRes.abilityRes); in ExtractInstallMsg()