Home
last modified time | relevance | path

Searched refs:bundleInfo (Results 1 – 25 of 630) sorted by relevance

12345678910>>...26

/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/
H A Dbundle_info_utils.cpp38 if (bundleInfo == nullptr) { in FreeBundleInfo()
41 ClearBundleInfo(bundleInfo); in FreeBundleInfo()
42 AdapterFree(bundleInfo); in FreeBundleInfo()
137 AdapterFree(bundleInfo->bundleName); in SetBundleInfoBundleName()
148 AdapterFree(bundleInfo->vendor); in SetBundleInfoVendor()
159 AdapterFree(bundleInfo->label); in SetBundleInfoLabel()
192 AdapterFree(bundleInfo->codePath); in SetBundleInfoCodePath()
203 AdapterFree(bundleInfo->dataPath); in SetBundleInfoDataPath()
255 AdapterFree(bundleInfo->appId); in SetBundleInfoAppId()
314 if (bundleInfo == nullptr) { in SetBundleInfoAbilityInfo()
[all …]
H A Dbundle_info.cpp24 if (bundleInfo == nullptr) { in ClearBundleInfo()
27 AdapterFree(bundleInfo->bundleName); in ClearBundleInfo()
28 AdapterFree(bundleInfo->versionName); in ClearBundleInfo()
29 AdapterFree(bundleInfo->label); in ClearBundleInfo()
30 AdapterFree(bundleInfo->bigIconPath); in ClearBundleInfo()
31 AdapterFree(bundleInfo->codePath); in ClearBundleInfo()
32 AdapterFree(bundleInfo->dataPath); in ClearBundleInfo()
33 AdapterFree(bundleInfo->vendor); in ClearBundleInfo()
34 OHOS::BundleInfoUtils::ClearModuleInfos(bundleInfo->moduleInfos, bundleInfo->numOfModule); in ClearBundleInfo()
36 AdapterFree(bundleInfo->appId); in ClearBundleInfo()
[all …]
H A Dconvert_utils.cpp86 if (bundleInfo == nullptr) { in ConvertBundleInfoToString()
146 if (bundleInfo == nullptr) { in ConvertStringToBundleInfo()
150 AdapterFree(bundleInfo); in ConvertStringToBundleInfo()
155 AdapterFree(bundleInfo); in ConvertStringToBundleInfo()
165 return bundleInfo; in ConvertStringToBundleInfo()
185 if (*bundleInfo == nullptr) { in ConvertStringToBundleInfos()
213 if (bundleInfo == nullptr) { in GetJsonBundleInfo()
274 if (bundleInfo == nullptr || root == nullptr || bundleInfo->numOfModule <= 0) { in ConvertModuleInfosToJson()
300 if (bundleInfo == nullptr || root == nullptr || bundleInfo->numOfAbility < 0) { in ConvertAbilityInfosToJson()
644 &(bundleInfo->moduleInfos), bundleInfo->numOfModule)) { in ConvertJsonToBundleInfo()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_info_creator.cpp33 if (*bundleInfo == nullptr) { in SaveBundleInfo()
40 AdapterFree(*bundleInfo); in SaveBundleInfo()
41 *bundleInfo = nullptr; in SaveBundleInfo()
52 *bundleInfo = nullptr; in SaveBundleInfo()
60 *bundleInfo = nullptr; in SaveBundleInfo()
71 *bundleInfo = nullptr; in SaveBundleInfo()
81 if (bundleInfo == nullptr) { in CreateBundleInfo()
89 AdapterFree(bundleInfo); in CreateBundleInfo()
105 return bundleInfo; in CreateBundleInfo()
119 bundleInfo->targetApi = bundleInfo->compatibleApi; in SetBundleInfo()
[all …]
H A Dbundle_map.cpp54 void BundleMap::Add(BundleInfo *bundleInfo) in Add() argument
56 if ((bundleInfo == nullptr) || (bundleInfo->bundleName == nullptr)) { in Add()
71 bundleInfos_->PushFront(bundleInfo); in Add()
76 bool BundleMap::Update(BundleInfo *bundleInfo) in Update() argument
78 if ((bundleInfo == nullptr) || (bundleInfo->bundleName == nullptr)) { in Update()
106 bundleInfos_->PushFront(bundleInfo); in Update()
135 if (bundleInfo == nullptr) { in GetCopyBundleInfo()
141 newBundleInfo.label = bundleInfo->label; in GetCopyBundleInfo()
151 newBundleInfo.appId = bundleInfo->appId; in GetCopyBundleInfo()
155 newBundleInfo.uid = bundleInfo->uid; in GetCopyBundleInfo()
[all …]
H A Dbundle_res_transform.cpp28 BundleInfo *bundleInfo) in ConvertResInfoToBundleInfo() argument
30 if (bundleInfo == nullptr) { in ConvertResInfoToBundleInfo()
34 if (bundleRes.totalNumOfAbilityRes == 0 || bundleInfo->isNativeApp) { in ConvertResInfoToBundleInfo()
40 bundleInfo->moduleInfos[0].moduleName + RESOURCES_INDEX; in ConvertResInfoToBundleInfo()
50 if (!ModuleInfoUtils::SetModuleInfoDescription(bundleInfo->moduleInfos, des)) { in ConvertResInfoToBundleInfo()
78 if (path.empty() || bundleInfo == nullptr) { in ConvertIconResToBundleInfo()
91 …std::string iconPath = std::string(bundleInfo->codePath) + PATH_SEPARATOR + bundleInfo->moduleInfo… in ConvertIconResToBundleInfo()
100 if (!BundleInfoUtils::SetBundleInfoBigIconPath(bundleInfo, iconPath.c_str())) { in ConvertIconResToBundleInfo()
118 if (path.empty() || bundleInfo == nullptr) { in ConvertLableResToBundleInfo()
132 if (!BundleInfoUtils::SetBundleInfoLabel(bundleInfo, label)) { in ConvertLableResToBundleInfo()
[all …]
H A Dbundle_installer.cpp148 CLEAR_INSTALL_ENV(bundleInfo); in Install()
155 CLEAR_INSTALL_ENV(bundleInfo); in Install()
171 BundleInfo *bundleInfo = nullptr; in ProcessBundleInstall() local
232 bundleInfo->uid = installRecord.uid; in ProcessBundleInstall()
379 if (bundleInfo == nullptr) { in HandleFileAndBackUpRecord()
383 record.uid = bundleInfo->uid; in HandleFileAndBackUpRecord()
384 record.gid = bundleInfo->gid; in HandleFileAndBackUpRecord()
414 if (bundleInfo->appId == nullptr) { in UpdateBundleInfo()
432 if (bundleInfo == nullptr) { in Uninstall()
436 if (bundleInfo->isSystemApp) { in Uninstall()
[all …]
H A Dgt_bundle_parser.cpp189 return bundleInfo; in ParseHapProfile()
604 bundleInfo); in CreateBundleInfo()
640 return bundleInfo; in CreateBundleInfo()
644 BundleInfo *bundleInfo) in ConvertResInfoToBundleInfo() argument
771 BundleInfo **bundleInfo) in ParseHapProfile() argument
815 BundleInfo **bundleInfo) in SaveBundleInfo() argument
835 *bundleInfo = nullptr; in SaveBundleInfo()
842 *bundleInfo = nullptr; in SaveBundleInfo()
855 *bundleInfo = nullptr; in SaveBundleInfo()
865 *bundleInfo = nullptr; in SaveBundleInfo()
[all …]
H A Dgt_bundle_installer.cpp213 CLEAR_INSTALL_ENV(bundleInfo); in Install()
240 BundleInfo *bundleInfo = nullptr; in ProcessBundleInstall() local
251 SetCurrentBundle(bundleInfo->bundleName); in ProcessBundleInstall()
325 if (bundleInfo == nullptr) { in MoveRawFileToDataPath()
522 BundleInfo *bundleInfo, bool isUpdate) in UpdateBundleInfo() argument
524 if (bundleInfo == nullptr || bundleInfo->abilityInfo == nullptr) { in UpdateBundleInfo()
532 …orCode = GtBundleParser::ConvertResInfoToBundleInfo(bundleInfo->codePath, labelId, iconId, bundleI… in UpdateBundleInfo()
538 bundleInfo->isSystemApp = true; in UpdateBundleInfo()
594 if (bundleInfo == nullptr) { in Uninstall()
598 if (bundleInfo->isSystemApp) { in Uninstall()
[all …]
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_preferences_database_test.cpp93 bundleInfo.SetBundleUid(bundleUid_);
119 bundleInfo.SetBundleUid(bundleUid_);
144 bundleInfo.SetBundleUid(0);
931 bundleInfo.SetBundleName("name");
932 bundleInfo.SetBundleUid(1);
947 bundleInfo.SetBundleUid(1);
962 bundleInfo.SetBundleName("");
963 bundleInfo.SetBundleUid(1);
979 bundleInfo.SetBundleUid(1);
994 bundleInfo.SetBundleName("");
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dquick_fix_checker.cpp126 auto iter = std::find_if(bundleInfo.hapModuleInfos.begin(), bundleInfo.hapModuleInfos.end(), in CheckPatchNativeSoWithInstalledBundle()
207 auto iter = std::find(bundleInfo.moduleNames.begin(), bundleInfo.moduleNames.end(), in CheckModuleNameExist()
223 if (bundleInfo.applicationInfo.appPrivilegeLevel != provisionInfo.bundleInfo.apl) { in CheckSignatureInfo()
225 bundleInfo.name.c_str()); in CheckSignatureInfo()
228 …if (bundleInfo.signatureInfo.appIdentifier.empty() || provisionInfo.bundleInfo.appIdentifier.empty… in CheckSignatureInfo()
229 if (bundleInfo.appId != quickFixAppId) { in CheckSignatureInfo()
231 bundleInfo.name.c_str()); in CheckSignatureInfo()
234 } else if (bundleInfo.signatureInfo.appIdentifier != provisionInfo.bundleInfo.appIdentifier) { in CheckSignatureInfo()
236 bundleInfo.name.c_str()); in CheckSignatureInfo()
239 if (bundleInfo.name != provisionInfo.bundleInfo.bundleName) { in CheckSignatureInfo()
[all …]
/ohos5.0/foundation/ability/ability_runtime/test/mock/services_appmgr_test/src/
H A Dmock_bundle_manager.cpp87 bundleInfo.versionName = "1.0.0"; in ConstructHqfInfo()
213 bundleInfo.uid = userUid; in GetBundleInfo()
214 bundleInfo.gid = userGid; in GetBundleInfo()
226 bundleInfo.jointUserId = ""; in GetBundleInfo()
236 bundleInfo.uid = appUid; in GetBundleInfo()
248 bundleInfo.uid = appUid1; in GetBundleInfo()
290 BundleInfo bundleInfo; in PushTestHelloIndexAbility() local
311 BundleInfo bundleInfo; in PushTestSpecialAbility() local
332 BundleInfo bundleInfo; in PushTestHelloAbility() local
354 BundleInfo bundleInfo; in MakingResidentProcData() local
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Duser_unlocked_event_subscriber.cpp105 if (fileStat.uid != bundleInfo.uid) { in CheckPathAttribute()
138 createDirParam.uid = bundleInfo.uid; in CreateBundleDataDir()
139 createDirParam.gid = bundleInfo.gid; in CreateBundleDataDir()
155 CreateDataGroupDir(bundleInfo, userId); in CreateBundleDataDir()
276 if (bundleInfo.appIndex > 0) { in ProcessUpdateAppDataDir()
278 bundleInfo.name.c_str(), bundleInfo.appIndex); in ProcessUpdateAppDataDir()
296 bundleInfo.applicationInfo.appPrivilegeLevel, bundleInfo.isPreInstallApp, in ProcessUpdateAppDataDir()
303 bundleInfo.applicationInfo.appPrivilegeLevel, bundleInfo.isPreInstallApp, in ProcessUpdateAppDataDir()
339 if (bundleInfo.appIndex > 0) { in ProcessNewBackupDir()
341 bundleInfo.name.c_str(), bundleInfo.appIndex); in ProcessNewBackupDir()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dbundle_info.cpp648 {BUNDLE_INFO_NAME, bundleInfo.name}, {BUNDLE_INFO_LABEL, bundleInfo.label}, in to_json()
702 bundleInfo.name, in from_json()
710 bundleInfo.label, in from_json()
726 bundleInfo.vendor, in from_json()
830 bundleInfo.mainEntry, in from_json()
838 bundleInfo.cpuAbi, in from_json()
846 bundleInfo.appId, in from_json()
878 bundleInfo.uid, in from_json()
886 bundleInfo.gid, in from_json()
894 bundleInfo.seInfo, in from_json()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_bundle_installer.h67 uint8_t MoveRawFileToDataPath(const BundleInfo *bundleInfo);
71 #define FREE_PRO_RESOURCE(fp, permissions, bundleInfo) \ argument
76 BundleInfoUtils::FreeBundleInfo(bundleInfo); \
87 #define CHECK_PRO_RESULT(errcode, fp, permissions, bundleInfo, signatureInfo) \ argument
90 FREE_PRO_RESOURCE(fp, permissions, bundleInfo); \
96 #define CLEAR_INSTALL_ENV(bundleInfo) \ argument
98 if ((bundleInfo) != nullptr) { \
99 BundleUtil::RemoveDir(bundleInfo->codePath); \
100 BundleUtil::RemoveDir(bundleInfo->dataPath); \
101 BundleInfoUtils::FreeBundleInfo(bundleInfo); \
[all …]
H A Dbundle_installer.h55 uint8_t CheckVersionAndSignature(const char *bundleName, BundleInfo *bundleInfo);
64 uint8_t CheckDeviceCapIsValid(BundleInfo *bundleInfo);
71 #define CHECK_PRO_RESULT(errcode, bundleInfo, permissions, abilityRes) \ argument
74 BundleInfoUtils::FreeBundleInfo(bundleInfo); \
81 #define CLEAR_INSTALL_ENV(bundleInfo) \ argument
83 if ((bundleInfo) != nullptr) { \
85 (bundleInfo)->codePath, (bundleInfo)->dataPath, false); \
86 BundleInfoUtils::FreeBundleInfo(bundleInfo); \
90 #define CHECK_PRO_PART_ROLLBACK(errcode, path, permissions, bundleInfo, abilityRes) \ argument
94 BundleInfoUtils::FreeBundleInfo(bundleInfo); \
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/include/
H A Dbundle_info_utils.h28 static bool SetBundleInfoBundleName(BundleInfo *bundleInfo, const char *bundleName);
29 static bool SetBundleInfoVendor(BundleInfo *bundleInfo, const char *vendor);
30 static bool SetBundleInfoLabel(BundleInfo *bundleInfo, const char *label);
31 static bool SetBundleInfoVersionName(BundleInfo *bundleInfo, const char *versionName);
32 static bool SetBundleInfoBigIconPath(BundleInfo *bundleInfo, const char *bigIconPath);
33 static bool SetBundleInfoCodePath(BundleInfo *bundleInfo, const char *codePath);
34 static bool SetBundleInfoDataPath(BundleInfo *bundleInfo, const char *dataPath);
38 static void FreeBundleInfo(BundleInfo *bundleInfo);
39 static bool SetBundleInfoAppId(BundleInfo *bundleInfo, const char *appId);
45 static bool SetBundleInfoSmallIconPath(BundleInfo *bundleInfo, const char *smallIconPath);
[all …]
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences.cpp109 preferencesInfo.SetBundleInfo(bundleInfo); in AddNotificationBundleProperty()
166 bundleInfo.RemoveAllSlots(); in RemoveNotificationAllSlots()
287 bundleInfo.GetAllSlots(slots); in GetNotificationAllSlots()
563 for (auto& bundleInfo : trustList) { in AddDoNotDisturbProfiles() local
565 bundleInfo.SetAppIndex(index); in AddDoNotDisturbProfiles()
713 bundleInfo.SetSlot(slotInfo); in UpdateCloneBundleInfo()
842 bundleInfo.SetSlot(slot); in CheckSlotForCreateSlot()
855 bundleInfo.RemoveSlot(slotType); in CheckSlotForRemoveSlot()
882 bundleInfo.SetSlot(slot); in CheckSlotForUpdateSlot()
922 bundleInfo.SetImportance(value); in SaveBundleProperty()
[all …]
/ohos5.0/foundation/ability/dmsfwk_lite/source/
H A Ddmslite_permission.c69 BundleInfo bundleInfo; in CheckRemotePermission() local
86 GET_BUNDLE_WITHOUT_ABILITIES, &bundleInfo); in CheckRemotePermission()
90 GET_BUNDLE_WITHOUT_ABILITIES, &bundleInfo); in CheckRemotePermission()
96 GET_BUNDLE_WITHOUT_ABILITIES, &bundleInfo); in CheckRemotePermission()
106 ClearBundleInfo(&bundleInfo); in CheckRemotePermission()
120 static int32_t GetBundleInfoFromFile(const char *filePath, BundleInfo *bundleInfo) in GetBundleInfoFromFile() argument
160 bundleInfo->appId = appId; in GetBundleInfoFromFile()
206 if ((callerInfo == NULL) || (bundleInfo == NULL)) { in GetCallerBundleInfo()
219 bundleInfo->uid = callerInfo->uid; in GetCallerBundleInfo()
220 return GetBundleInfoFromFile(filePath, bundleInfo); in GetCallerBundleInfo()
[all …]
/ohos5.0/foundation/ability/dmsfwk_lite/moduletest/dtbschedmgr_lite/source/
H A Dpermission_test.cpp63 BundleInfo bundleInfo = {0}; variable
77 BundleInfo bundleInfo = {0}; variable
78 EXPECT_EQ(GetCallerBundleInfo(&callerInfo, &bundleInfo), DMS_EC_FAILURE);
105 BundleInfo bundleInfo = {0}; variable
106 EXPECT_EQ(GetCallerBundleInfo(&callerInfo, &bundleInfo), DMS_EC_SUCCESS);
107 EXPECT_EQ(strcmp(bundleInfo.appId, FOUNDATION_APPID), 0);
108 ClearBundleInfo(&bundleInfo);
124 BundleInfo bundleInfo = {0}; variable
136 BundleInfo bundleInfo = {0}; variable
137 GetBundleInfo(LAUNCHER_BUNDLE_NAME, 0, &bundleInfo);
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_default_app_test/
H A Dbms_bundle_default_app_test.cpp286 BundleInfo bundleInfo; variable
314 BundleInfo bundleInfo; variable
342 BundleInfo bundleInfo; variable
375 BundleInfo bundleInfo; variable
406 BundleInfo bundleInfo; variable
434 BundleInfo bundleInfo; variable
462 BundleInfo bundleInfo; variable
487 BundleInfo bundleInfo; variable
513 BundleInfo bundleInfo; variable
537 BundleInfo bundleInfo; variable
[all …]
/ohos5.0/foundation/communication/netmanager_base/utils/bundle_utils/src/
H A Dnet_bundle_impl.cpp49 AppExecFwk::BundleInfo bundleInfo; in GetJsonFromBundle() local
50 auto ret = bundleMgrProxy->GetBundleInfoForSelf(0, bundleInfo); in GetJsonFromBundle()
56 bundleInfo.name, bundleInfo.entryModuleName, jsonProfile); in GetJsonFromBundle()
71 AppExecFwk::BundleInfo bundleInfo; in IsAtomicService() local
73 auto ret = bundleMgrProxy->GetBundleInfoForSelf(static_cast<int32_t>(flags), bundleInfo); in IsAtomicService()
78 bundleName = bundleInfo.applicationInfo.bundleName; in IsAtomicService()
79 return bundleInfo.applicationInfo.bundleType == AppExecFwk::BundleType::ATOMIC_SERVICE; in IsAtomicService()
89 AppExecFwk::BundleInfo bundleInfo; in ObtainBundleNameForSelf() local
96 return bundleInfo.applicationInfo.bundleName; in ObtainBundleNameForSelf()
107 AppExecFwk::BundleInfo bundleInfo; in ObtainTargetApiVersionForSelf() local
[all …]
/ohos5.0/foundation/filemanagement/app_file_service/test/fuzztest/svcrestoredepsmanager_fuzzer/
H A Dsvcrestoredepsmanager_fuzzer.cpp41 BJsonEntityCaps::BundleInfo bundleInfo; in GetInfo() local
44bundleInfo.name = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i % base); in GetInfo()
46bundleInfo.versionName = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo()
58bundleInfo.supportScene = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo()
61 bundleInfo.allToBackup = *(reinterpret_cast<const bool*>(data)); in GetInfo()
65 bundleInfo.versionCode = *(reinterpret_cast<const int64_t*>(data)); in GetInfo()
69 bundleInfo.spaceOccupied = *(reinterpret_cast<const int64_t*>(data)); in GetInfo()
71 info.push_back(bundleInfo); in GetInfo()
85 BJsonEntityCaps::BundleInfo bundleInfo; in SvcRestoreDepsManagerFuzzTest() local
86 bundleInfo.name = string(reinterpret_cast<const char*>(data), size); in SvcRestoreDepsManagerFuzzTest()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/native/bundle/src/
H A Dnative_interface_bundle.cpp103 OHOS::AppExecFwk::BundleInfo bundleInfo; in OH_NativeBundle_GetCurrentApplicationInfo() local
122 bundleInfo.applicationInfo.bundleName.c_str()) != EOK) { in OH_NativeBundle_GetCurrentApplicationInfo()
140 bundleInfo.signatureInfo.fingerprint.c_str()) != EOK) { in OH_NativeBundle_GetCurrentApplicationInfo()
152 OHOS::AppExecFwk::BundleInfo bundleInfo; in OH_NativeBundle_GetAppId() local
161 size_t appIdLen = bundleInfo.signatureInfo.appId.size(); in OH_NativeBundle_GetAppId()
183 OHOS::AppExecFwk::BundleInfo bundleInfo; in OH_NativeBundle_GetAppIdentifier() local
203 bundleInfo.signatureInfo.appIdentifier.c_str()) != EOK) { in OH_NativeBundle_GetAppIdentifier()
216 OHOS::AppExecFwk::BundleInfo bundleInfo; in OH_NativeBundle_GetMainElementName() local
225 for (const auto &hapModuleInfo : bundleInfo.hapModuleInfos) { in OH_NativeBundle_GetMainElementName()
234 for (const auto &hapModuleInfo : bundleInfo.hapModuleInfos) { in OH_NativeBundle_GetMainElementName()
[all …]
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/notification_preferences_database_branch_test/
H A Dnotification_preferences_database_branch_test.cpp56 NotificationPreferencesInfo::BundleInfo bundleInfo; variable
58 bundleInfo.SetBundleName(name);
74 bundleInfo.SetBundleName(name);
94 bundleInfo.SetBundleName(name);
130 bundleInfo.SetBundleName(name);
150 bundleInfo.SetBundleName(name);
170 bundleInfo.SetBundleName(name);
190 bundleInfo.SetBundleName(name);
241 bundleInfo.SetBundleName(name);
690 bundleInfo.SetBundleName(name);
[all …]

12345678910>>...26