Home
last modified time | relevance | path

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

/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_bundle_parser.h28 static BundleInfo *ParseHapProfile(const char *path, BundleRes *bundleRes);
29 static uint8_t ParseHapProfile(int32_t fp, uint32_t fileSize, Permissions &permissions, BundleRes &bundleRes,
36 BundleProfile &bundleProfile, BundleRes &bundleRes);
40 const BundleRes &bundleRes);
42 static uint8_t ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, 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) \
94 if ((bundleRes)
[all...]
H A Dbundle_parser.h35 uint8_t ParseHapProfile(const std::string &path, Permissions &permissions, BundleRes &bundleRes,
40 BundleProfile &bundleProfile, BundleRes &bundleRes);
42 static uint8_t ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes);
45 static uint8_t ParseAbilityInfos(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes);
47 BundleRes &bundleRes);
54 static uint8_t ParseModuleDesc(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes);
H A Dbundle_info_creator.h31 const std::string &dataDirPath, const BundleRes &bundleRes);
H A Dbundle_res_transform.h30 static uint8_t ConvertResInfoToBundleInfo(const std::string &path, const BundleRes &bundleRes,
H A Dbundle_installer.h44 uint8_t UpdateBundleInfo(const char *appId, const BundleRes &bundleRes, BundleInfo *bundleInfo, bool isUpdate,
H A Dgt_bundle_manager_service.h68 void AddBundleResList(const BundleRes *bundleRes);
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_res_transform.cpp27 uint8_t 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 in ConvertResInfoToBundleInfo()
[all...]
H A Dgt_bundle_parser.cpp150 BundleInfo *GtBundleParser::ParseHapProfile(const char *path, BundleRes *bundleRes) in ParseHapProfile() argument
152 if (!BundleUtil::CheckRealPath(path) || bundleRes == nullptr) { in ParseHapProfile()
180 if (ParseJsonInfo(appObject, configObject, moduleObject, bundleProfile, *bundleRes) != ERR_OK) { in ParseHapProfile()
186 BundleInfo *bundleInfo = CreateBundleInfo(path, bundleProfile, *bundleRes); in ParseHapProfile()
193 BundleProfile &bundleProfile, BundleRes &bundleRes) in ParseJsonInfo()
222 uint8_t errorCode = ParseModuleInfo(moduleObject, bundleProfile, bundleRes); in ParseJsonInfo()
270 uint8_t GtBundleParser::ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) in ParseModuleInfo() argument
309 return ParseAbilityInfo(abilityObjects, bundleProfile, bundleRes); in ParseModuleInfo()
313 BundleRes &bundleRes) in ParseAbilityInfo()
319 bundleRes in ParseAbilityInfo()
192 ParseJsonInfo(const cJSON *appObject, const cJSON *configObject, const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseJsonInfo() argument
312 ParseAbilityInfo(const cJSON *abilityInfoObjects, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseAbilityInfo() argument
582 CreateBundleInfo(const char *path, const BundleProfile &bundleProfile, const BundleRes &bundleRes) CreateBundleInfo() argument
770 ParseHapProfile(int32_t fp, uint32_t fileSize, Permissions &permissions, BundleRes &bundleRes, BundleInfo **bundleInfo) ParseHapProfile() argument
814 SaveBundleInfo(const BundleProfile &bundleProfile, const BundleRes &bundleRes, BundleInfo **bundleInfo) SaveBundleInfo() argument
880 SetBundleInfo(const char *installedPath, const BundleProfile &bundleProfile, const BundleRes &bundleRes, BundleInfo *bundleInfo) SetBundleInfo() argument
[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()
192 errorCode = bundleParser.ParseHapProfile(path, permissions, bundleRes, &bundleInfo); 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 in ProcessBundleInstall()
393 UpdateBundleInfo(const char *appId, const BundleRes &bundleRes, BundleInfo *bundleInfo, bool isUpdate, uint8_t hapType) UpdateBundleInfo() argument
[all...]
H A Dgt_bundle_installer.cpp237 BundleRes bundleRes = { in ProcessBundleInstall() local
249 errorCode = GtBundleParser::ParseHapProfile(fp, fileSize, permissions, bundleRes, &bundleInfo); 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()
455 // delete old bundleRes in HandleFileAndBackUpRecord()
569 BundleRes *bundleRes = reinterpret_cast<BundleRes *>(AdapterMalloc(sizeof(BundleRes))); in AddBundleResList() local
570 if (bundleRes in AddBundleResList()
[all...]
H A Dbundle_parser.cpp252 BundleRes bundleRes = { in ParseHapProfile() local
255 if (ParseJsonInfo(appObject, configObject, moduleObject, bundleProfile, bundleRes) != ERR_OK) { in ParseHapProfile()
257 AdapterFree(bundleRes.abilityRes); in ParseHapProfile()
271 bundleRes); in ParseHapProfile()
273 AdapterFree(bundleRes.abilityRes); in ParseHapProfile()
278 uint8_t BundleParser::ParseHapProfile(const std::string &path, Permissions &permissions, BundleRes &bundleRes, in ParseHapProfile() argument
303 errorCode = ParseJsonInfo(appObject, configObject, moduleObject, bundleProfile, bundleRes); in ParseHapProfile()
319 BundleProfile &bundleProfile, BundleRes &bundleRes) in ParseJsonInfo()
362 return ParseModuleInfo(moduleObject, bundleProfile, bundleRes); in ParseJsonInfo()
400 uint8_t BundleParser::ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) in ParseModuleInfo() argument
318 ParseJsonInfo(const cJSON *appObject, const cJSON *configObject, const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseJsonInfo() argument
444 ParseModuleDesc(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseModuleDesc() argument
536 ParseAbilityInfos(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseAbilityInfos() argument
606 ParseAllAbilityInfo(const cJSON *abilityObjects, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseAllAbilityInfo() argument
[all...]
H A Dgt_bundle_manager_service.cpp807 BundleRes *bundleRes = reinterpret_cast<BundleRes *>(AdapterMalloc(sizeof(BundleRes))); in ReloadBundleInfo() local
808 if (bundleRes == nullptr) { in ReloadBundleInfo()
811 if (memset_s(bundleRes, sizeof(BundleRes), 0, sizeof(BundleRes)) != EOK) { in ReloadBundleInfo()
812 AdapterFree(bundleRes); in ReloadBundleInfo()
815 BundleInfo *bundleInfo = GtBundleParser::ParseHapProfile(profileDir, 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 in ReloadBundleInfo()
843 AddBundleResList(const BundleRes *bundleRes) AddBundleResList() argument
[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()
99 uint8_t errorCode = BundleResTransform::ConvertResInfoToBundleInfo(bundleInfo->codePath, bundleRes, bundleInfo); in CreateBundleInfo()
77 CreateBundleInfo(const BundleProfile &bundleProfile, const std::string &installDirPath, const std::string &dataDirPath, const BundleRes &bundleRes) CreateBundleInfo() argument

Completed in 9 milliseconds