/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_info_creator.cpp | 30 uint8_t BundleInfoCreator::SaveBundleInfo(const BundleProfile &bundleProfile, BundleInfo **bundleInfo) in SaveBundleInfo() argument 46 BundleInfo *info = ManagerService::GetInstance().QueryBundleInfo(bundleProfile.bundleName); in SaveBundleInfo() 69 if (!SetBundleInfo(bundleProfile, installDirPath, dataDirPath, *bundleInfo)) { in SaveBundleInfo() 77 BundleInfo *BundleInfoCreator::CreateBundleInfo(const BundleProfile &bundleProfile, const std::string &installDirPath, in CreateBundleInfo() argument 93 if (!SetBundleInfo(bundleProfile, installDirPath, dataDirPath, bundleInfo)) { in CreateBundleInfo() 108 bool BundleInfoCreator::SetBundleInfo(const BundleProfile &bundleProfile, const std::string &installDirPath, in SetBundleInfo() argument 114 bundleInfo->isKeepAlive = bundleProfile.isKeepAlive; in SetBundleInfo() 115 bundleInfo->isNativeApp = bundleProfile.isNativeApp; in SetBundleInfo() 116 bundleInfo->versionCode = bundleProfile.profileVersion.versionCode; in SetBundleInfo() 117 bundleInfo->compatibleApi = bundleProfile in SetBundleInfo() 165 SetModuleInfos(const BundleProfile &bundleProfile, BundleInfo *bundleInfo) SetModuleInfos() argument 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_parser.cpp | 246 BundleProfile bundleProfile; in ParseHapProfile() local 247 if (memset_s(&bundleProfile, sizeof(BundleProfile), 0, sizeof(BundleProfile)) != EOK) { in ParseHapProfile() 255 if (ParseJsonInfo(appObject, configObject, moduleObject, bundleProfile, bundleRes) != ERR_OK) { in ParseHapProfile() 256 FREE_BUNDLE_PROFILE(bundleProfile); in ParseHapProfile() 270 BundleInfo *bundleInfo = BundleInfoCreator::CreateBundleInfo(bundleProfile, installDirPath, dataDirPath, in ParseHapProfile() 272 FREE_BUNDLE_PROFILE(bundleProfile); in ParseHapProfile() 297 BundleProfile bundleProfile; in ParseHapProfile() local 298 if (memset_s(&bundleProfile, sizeof(BundleProfile), 0, sizeof(BundleProfile)) != EOK) { in ParseHapProfile() 303 errorCode = ParseJsonInfo(appObject, configObject, moduleObject, bundleProfile, bundleRes); in ParseHapProfile() 304 CHECK_PARSE_RESULT(errorCode, root, bundleProfile); in ParseHapProfile() 318 ParseJsonInfo(const cJSON *appObject, const cJSON *configObject, const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseJsonInfo() argument 365 ParseDeviceConfig(const cJSON *configObject, BundleProfile &bundleProfile) ParseDeviceConfig() argument 400 ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseModuleInfo() argument 444 ParseModuleDesc(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseModuleDesc() argument 465 ParseDeviceType(const cJSON *moduleObject, BundleProfile &bundleProfile) ParseDeviceType() argument 485 ParseModuleMetaData(const cJSON *moduleObject, BundleProfile &bundleProfile) ParseModuleMetaData() argument 536 ParseAbilityInfos(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseAbilityInfos() argument 606 ParseAllAbilityInfo(const cJSON *abilityObjects, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseAllAbilityInfo() argument 658 ParsePerAbilityInfo(const cJSON *abilityObjectItem, BundleProfile &bundleProfile, AbilityRes &abilityRes, uint32_t index) ParsePerAbilityInfo() argument 727 ParseAbilityDesc(const cJSON *abilityObject, BundleProfile &bundleProfile, AbilityRes &abilityRes, int32_t index) ParseAbilityDesc() argument 752 ParseAbilityIcon(const cJSON *abilityObject, BundleProfile &bundleProfile, AbilityRes &abilityRes, int32_t index) ParseAbilityIcon() argument 773 ParseAbilityLabel(const cJSON *abilityObject, BundleProfile &bundleProfile, AbilityRes &abilityRes, int32_t index) ParseAbilityLabel() argument [all...] |
H A D | gt_bundle_parser.cpp | 174 BundleProfile bundleProfile; in ParseHapProfile() local 175 if (memset_s(&bundleProfile, sizeof(BundleProfile), 0, sizeof(BundleProfile)) != EOK) { in ParseHapProfile() 180 if (ParseJsonInfo(appObject, configObject, moduleObject, bundleProfile, *bundleRes) != ERR_OK) { in ParseHapProfile() 182 FREE_BUNDLE_PROFILE(bundleProfile); in ParseHapProfile() 186 BundleInfo *bundleInfo = CreateBundleInfo(path, bundleProfile, *bundleRes); in ParseHapProfile() 187 FREE_BUNDLE_PROFILE(bundleProfile); in ParseHapProfile() 193 BundleProfile &bundleProfile, BundleRes &bundleRes) in ParseJsonInfo() 196 bundleProfile.bundleName = ParseValue(appObject, PROFILE_KEY_BUNDLENAME); in ParseJsonInfo() 197 CHECK_NULL(bundleProfile.bundleName, ERR_APPEXECFWK_INSTALL_FAILED_PARSE_BUNDLENAME_ERROR); in ParseJsonInfo() 198 if (!((strlen(bundleProfile in ParseJsonInfo() 192 ParseJsonInfo(const cJSON *appObject, const cJSON *configObject, const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseJsonInfo() argument 226 CheckApiVersion(const cJSON *appObject, BundleProfile &bundleProfile) CheckApiVersion() argument 270 ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseModuleInfo() argument 312 ParseAbilityInfo(const cJSON *abilityInfoObjects, BundleProfile &bundleProfile, BundleRes &bundleRes) ParseAbilityInfo() argument 353 ParseAllAbilityInfo(const cJSON *abilityObjects, BundleProfile &bundleProfile) ParseAllAbilityInfo() argument 532 ParseModuleMetaData(const cJSON *moduleObject, BundleProfile &bundleProfile) ParseModuleMetaData() argument 582 CreateBundleInfo(const char *path, const BundleProfile &bundleProfile, const BundleRes &bundleRes) CreateBundleInfo() argument 793 BundleProfile bundleProfile; ParseHapProfile() local 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 925 SetModuleInfos(const BundleProfile &bundleProfile, BundleInfo *bundleInfo) SetModuleInfos() argument [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | bundle_parser.h | 40 BundleProfile &bundleProfile, BundleRes &bundleRes); 41 static uint8_t ParseDeviceConfig(const cJSON *configObject, BundleProfile &bundleProfile); 42 static uint8_t ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes); 43 static uint8_t ParseModuleMetaData(const cJSON *moduleObject, BundleProfile &bundleProfile); 44 static uint8_t ParseDeviceType(const cJSON *object, BundleProfile &bundleProfile); 45 static uint8_t ParseAbilityInfos(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes); 46 static uint8_t ParseAllAbilityInfo(const cJSON *abilityObjects, BundleProfile &bundleProfile, 52 static uint8_t ParsePerAbilityInfo(const cJSON *abilityObjectItem, BundleProfile &bundleProfile, 54 static uint8_t ParseModuleDesc(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes); 55 static uint8_t ParseAbilityDesc(const cJSON *abilityObject, BundleProfile &bundleProfile, AbilityRe [all...] |
H A D | gt_bundle_parser.h | 36 BundleProfile &bundleProfile, BundleRes &bundleRes); 37 static uint8_t CheckApiVersion(const cJSON *appObject, BundleProfile &bundleProfile); 39 static BundleInfo *CreateBundleInfo(const char *path, const BundleProfile &bundleProfile, 42 static uint8_t ParseModuleInfo(const cJSON *moduleObject, BundleProfile &bundleProfile, BundleRes &bundleRes); 43 static uint8_t ParseAbilityInfo(const cJSON *abilityInfoObjects, BundleProfile &bundleProfile, 45 static uint8_t ParseModuleMetaData(const cJSON *moduleObject, BundleProfile &bundleProfile); 46 static uint8_t ParseAllAbilityInfo(const cJSON *abilityObjects, BundleProfile &bundleProfile); 51 static bool SetModuleInfos(const BundleProfile &bundleProfile, BundleInfo *bundleInfo); 52 static uint8_t SaveBundleInfo(const BundleProfile &bundleProfile, const BundleRes &bundleRes, 54 static bool SetBundleInfo(const char *installedPath, const BundleProfile &bundleProfile, [all...] |
H A D | bundle_info_creator.h | 30 static BundleInfo *CreateBundleInfo(const BundleProfile &bundleProfile, const std::string &installDirPath, 32 static uint8_t SaveBundleInfo(const BundleProfile &bundleProfile, BundleInfo **bundleInfo); 34 static bool SetBundleInfo(const BundleProfile &bundleProfile, const std::string &installDirPath, 36 static bool SetModuleInfos(const BundleProfile &bundleProfile, BundleInfo *bundleInfo); 37 static bool SetAbilityInfos(const BundleProfile &bundleProfile, const std::string &codePath, 39 static bool SetAbilityInfo(const BundleProfile &bundleProfile, const std::string &codePath,
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_parser.cpp | 127 BundleProfile bundleProfile; in Parse() local 128 ErrCode ret = bundleProfile.TransformTo( in Parse() 165 BundleProfile bundleProfile; in ParsePackInfo() local 166 ErrCode ret = bundleProfile.TransformTo(outStreamForPackInfo, bundlePackInfo); in ParsePackInfo()
|
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/include/ |
H A D | bundle_info_utils.h | 49 const BundleProfile &bundleProfile);
|
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | bundle_info_utils.cpp | 333 const BundleProfile &bundleProfile) in SetBundleInfoAbilityInfo() 347 AbilityInfoUtils::CopyBundleProfileToAbilityInfo(bundleInfo->abilityInfo, bundleProfile); in SetBundleInfoAbilityInfo() 332 SetBundleInfoAbilityInfo(BundleInfo *bundleInfo, const AbilityInfo &abilityInfo, const BundleProfile &bundleProfile) SetBundleInfoAbilityInfo() argument
|