Home
last modified time | relevance | path

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

12

/base/notification/distributed_notification_service/services/ans/test/unittest/
Dnotification_preferences_database_test.cpp90 NotificationPreferencesInfo::BundleInfo bundleInfo; variable
91 bundleInfo.SetBundleName(bundleName_);
92 bundleInfo.SetBundleUid(bundleUid_);
93 EXPECT_TRUE(preferncesDB_->PutShowBadge(bundleInfo, true));
94 EXPECT_TRUE(preferncesDB_->PutShowBadge(bundleInfo, false));
104 NotificationPreferencesInfo::BundleInfo bundleInfo; variable
105 bundleInfo.SetBundleName(std::string());
106 EXPECT_FALSE(preferncesDB_->PutShowBadge(bundleInfo, false));
116 NotificationPreferencesInfo::BundleInfo bundleInfo; variable
117 bundleInfo.SetBundleName(bundleName_);
[all …]
Dbundle_manager_helper_test.cpp90 AppExecFwk::BundleInfo bundleInfo; in HWTEST_F() local
92 bool result = bundleManagerHelper.GetBundleInfoByBundleName(bundle, userId, bundleInfo); in HWTEST_F()
/base/customization/enterprise_device_management/test/unittest/mock/src/
Dbundle_manager_mock.cpp59 BundleInfo &bundleInfo, int32_t userId) in GetBundleInfo() argument
67 bundleInfo.reqPermissions.emplace_back("ohos.permission.aaa"); in GetBundleInfo()
68 bundleInfo.reqPermissions.emplace_back("ohos.permission.bbb"); in GetBundleInfo()
71 bundleInfo.reqPermissions.emplace_back("ohos.permission.aaa"); in GetBundleInfo()
72 bundleInfo.reqPermissions.emplace_back("ohos.permission.bbb"); in GetBundleInfo()
76 bundleInfo.reqPermissions.emplace_back("ohos.permission.aaa"); in GetBundleInfo()
77 bundleInfo.reqPermissions.emplace_back("ohos.permission.bbb"); in GetBundleInfo()
82 bundleInfo.reqPermissions.emplace_back("ohos.permission.EDM_TEST_PERMISSION"); in GetBundleInfo()
83 bundleInfo.reqPermissions.emplace_back("ohos.permission.EDM_TEST_ENT_PERMISSION"); in GetBundleInfo()
86 bundleInfo.reqPermissions.emplace_back("ohos.permission.aaa"); in GetBundleInfo()
[all …]
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_preferences.cpp79 NotificationPreferencesInfo::BundleInfo bundleInfo; in AddNotificationBundleProperty() local
80 preferencesInfo.SetBundleInfo(bundleInfo); in AddNotificationBundleProperty()
82 if (preferncesDB_->PutBundlePropertyToDisturbeDB(bundleInfo)) { in AddNotificationBundleProperty()
120 NotificationPreferencesInfo::BundleInfo bundleInfo; in RemoveNotificationAllSlots() local
121 if (preferencesInfo.GetBundleInfo(bundleOption, bundleInfo)) { in RemoveNotificationAllSlots()
122 bundleInfo.RemoveAllSlots(); in RemoveNotificationAllSlots()
123 preferencesInfo.SetBundleInfo(bundleInfo); in RemoveNotificationAllSlots()
201 NotificationPreferencesInfo::BundleInfo bundleInfo; in GetNotificationSlot() local
202 if (preferencesInfo_.GetBundleInfo(bundleOption, bundleInfo)) { in GetNotificationSlot()
203 if (!bundleInfo.GetSlot(type, slot)) { in GetNotificationSlot()
[all …]
Dnotification_preferences_database.cpp338 const NotificationPreferencesInfo::BundleInfo &bundleInfo) in PutBundlePropertyToDisturbeDB() argument
340 if (bundleInfo.GetBundleName().empty()) { in PutBundlePropertyToDisturbeDB()
350 std::string bundleKeyStr = KEY_BUNDLE_LABEL + GenerateBundleLablel(bundleInfo); in PutBundlePropertyToDisturbeDB()
355 result = PutBundleToDisturbeDB(bundleKeyStr, bundleInfo); in PutBundlePropertyToDisturbeDB()
370 const NotificationPreferencesInfo::BundleInfo &bundleInfo, const bool &enable) in PutShowBadge() argument
372 if (bundleInfo.GetBundleName().empty()) { in PutShowBadge()
377 if (!CheckBundle(bundleInfo.GetBundleName(), bundleInfo.GetBundleUid())) { in PutShowBadge()
381 std::string bundleKey = GenerateBundleLablel(bundleInfo); in PutShowBadge()
388 const NotificationPreferencesInfo::BundleInfo &bundleInfo, const int32_t &importance) in PutImportance() argument
390 if (bundleInfo.GetBundleName().empty()) { in PutImportance()
[all …]
Dbundle_manager_helper.cpp77 AppExecFwk::BundleInfo bundleInfo; in CheckApiCompatibility() local
80 if (!GetBundleInfoByBundleName(bundleOption->GetBundleName(), callingUserId, bundleInfo)) { in CheckApiCompatibility()
86 for (auto abilityInfo : bundleInfo.abilityInfos) { in CheckApiCompatibility()
95 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument
100 …Mgr_->GetBundleInfo(bundle, AppExecFwk::BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, userId); in GetBundleInfoByBundleName()
/base/notification/distributed_notification_service/services/ans/include/
Dnotification_preferences_database.h50 bool PutBundlePropertyToDisturbeDB(const NotificationPreferencesInfo::BundleInfo &bundleInfo);
59 … bool PutShowBadge(const NotificationPreferencesInfo::BundleInfo &bundleInfo, const bool &enable);
69 …bool PutImportance(const NotificationPreferencesInfo::BundleInfo &bundleInfo, const int32_t &impor…
78 …bool PutTotalBadgeNums(const NotificationPreferencesInfo::BundleInfo &bundleInfo, const int32_t &t…
87 …bool PutPrivateNotificationsAllowed(const NotificationPreferencesInfo::BundleInfo &bundleInfo, con…
97 const NotificationPreferencesInfo::BundleInfo &bundleInfo, const bool &enabled);
107 …bool PutHasPoppedDialog(const NotificationPreferencesInfo::BundleInfo &bundleInfo, const bool &has…
173 …bool PutBundlePropertyValueToDisturbeDB(const NotificationPreferencesInfo::BundleInfo &bundleInfo);
178 const std::string &bundleKey, const NotificationPreferencesInfo::BundleInfo &bundleInfo);
204 …void ParseSlotFromDisturbeDB(NotificationPreferencesInfo::BundleInfo &bundleInfo, const std::strin…
[all …]
Dbundle_manager_helper.h76 …foByBundleName(const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo);
/base/security/appverify/interfaces/innerkits/appverify/src/provision/
Dprovision_verify.cpp140 const auto& bundleInfo = obj[KEY_BUNDLE_INFO]; in ParseBundleInfo() local
141 GetStringIfExist(bundleInfo, KEY_DEVELOPER_ID, out.bundleInfo.developerId); in ParseBundleInfo()
142 … GetStringIfExist(bundleInfo, KEY_DEVELOPMENT_CERTIFICATE, out.bundleInfo.developmentCertificate); in ParseBundleInfo()
143 …GetStringIfExist(bundleInfo, KEY_DISTRIBUTION_CERTIFICATE, out.bundleInfo.distributionCertificate); in ParseBundleInfo()
144 GetStringIfExist(bundleInfo, KEY_BUNDLE_NAME, out.bundleInfo.bundleName); in ParseBundleInfo()
145 GetStringIfExist(bundleInfo, KEY_APL, out.bundleInfo.apl); in ParseBundleInfo()
146 GetStringIfExist(bundleInfo, KEY_APP_FEATURE, out.bundleInfo.appFeature); in ParseBundleInfo()
232 RETURN_IF_STRING_IS_EMPTY(info.bundleInfo.developerId, "Tag developer-id is empty.") in ParseProvision()
234 …RETURN_IF_STRING_IS_EMPTY(info.bundleInfo.developmentCertificate, "Tag development-certificate is … in ParseProvision()
237 …RETURN_IF_STRING_IS_EMPTY(info.bundleInfo.distributionCertificate, "Tag distribution-certificate i… in ParseProvision()
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dbundle_manager_adapter_module_test.cpp71 BundleInfo bundleInfo; variable
73 INVALID_BUNDLE_NAME, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, USER_ID);
102 BundleInfo bundleInfo; variable
104 INVALID_BUNDLE_NAME, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, USER_ID);
124 BundleInfo bundleInfo; variable
126 EMPTY_BUNDLE_NAME, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, USER_ID);
202 BundleInfo bundleInfo; variable
204 BUNDLE_NAME, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, USER_ID);
/base/security/appverify/interfaces/innerkits/appverify/src/ticket/
Dticket_verify.cpp126 if (ticketInfo.bundleInfo.bundleName != profileInfo.bundleInfo.bundleName) { in CompareTicketAndProfile()
136 …if (ticketInfo.bundleInfo.developmentCertificate != profileInfo.bundleInfo.developmentCertificate)… in CompareTicketAndProfile()
141 …if (ticketInfo.bundleInfo.distributionCertificate != profileInfo.bundleInfo.distributionCertificat… in CompareTicketAndProfile()
260 std::string ticketfilepath = TICKET_FILE_PATH + profileInfo.bundleInfo.bundleName + ".p7b"; in CheckTicketSource()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_bundle_mgr_proxy.cpp42 const std::string &bundleName, const BundleFlag flag, BundleInfo &bundleInfo, int32_t userId) in GetBundleInfo() argument
44 bundleInfo.uid = 1; in GetBundleInfo()
Dmock_bundle_manager_helper.cpp53 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dhap_verify_v2_test.cpp124 provisionInfo.bundleInfo.distributionCertificate = ERROR_CERTIFICATE;
141 provisionInfo.bundleInfo.developmentCertificate = ERROR_CERTIFICATE;
158 provisionInfo.bundleInfo.distributionCertificate = TEST_CERTIFICATE;
175 provisionInfo.bundleInfo.developmentCertificate = TEST_CERTIFICATE;
/base/security/appverify/interfaces/innerkits/appverify/src/verify/
Dhap_verify_v2.cpp224 std::string& certInProfile = provisionInfo.bundleInfo.distributionCertificate; in GenerateAppId()
225 if (provisionInfo.bundleInfo.distributionCertificate.empty()) { in GenerateAppId()
226 certInProfile = provisionInfo.bundleInfo.developmentCertificate; in GenerateAppId()
240 std::string& certInProfile = provisionInfo.bundleInfo.distributionCertificate; in GenerateFingerprint()
241 if (provisionInfo.bundleInfo.distributionCertificate.empty()) { in GenerateFingerprint()
242 certInProfile = provisionInfo.bundleInfo.developmentCertificate; in GenerateFingerprint()
261 std::string& certInProfile = provisionInfo.bundleInfo.developmentCertificate; in VerifyProfileInfo()
268 certInProfile = provisionInfo.bundleInfo.distributionCertificate; in VerifyProfileInfo()
/base/customization/enterprise_device_management/test/unittest/mock/include/
Dbundle_manager_mock.h40 BundleInfo &bundleInfo, int32_t userId) override;
62 BundleInfo &bundleInfo, int32_t userId) override;
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dmock_bundle_manager_helper.cpp58 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_manager_service.cpp151 AppExecFwk::BundleInfo bundleInfo; in EnableAppAccess() local
154 authorizedApp, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, userId); in EnableAppAccess()
176 AppExecFwk::BundleInfo bundleInfo; in DisableAppAccess() local
180 authorizedApp, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, userId); in DisableAppAccess()
215 AppExecFwk::BundleInfo bundleInfo; in SetAppAccess() local
218 authorizedApp, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, userId); in SetAppAccess()
446 AppExecFwk::BundleInfo bundleInfo; in SetAuthTokenVisibility() local
449 bundleName, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, userId); in SetAuthTokenVisibility()
563 AppExecFwk::BundleInfo bundleInfo; in GetAllAccounts() local
566 owner, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, userId); in GetAllAccounts()
[all …]
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/mock/
Dmock_bundle_manager_helper.cpp54 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_bundle_manager_helper.cpp59 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_verify.c684 if (profile->bundleInfo.releaseCert && in GetAppSignPublicKey()
685 strlen((char *)profile->bundleInfo.releaseCert) != 0) { in GetAppSignPublicKey()
686 ret = ParseCertGetPk((char *)profile->bundleInfo.releaseCert, pk); in GetAppSignPublicKey()
688 ret = ParseCertGetPk((char *)profile->bundleInfo.devCert, pk); in GetAppSignPublicKey()
717 int bundleNameLen = strlen(profile->bundleInfo.bundleName); in GetAppid()
731 ret = snprintf_s(appid, appidLen, bundleNameLen + 1, "%s_", profile->bundleInfo.bundleName); in GetAppid()
868 if (strlen((char *)pf->bundleInfo.releaseCert) == 0) { in CheckReleaseAppSign()
872 int ret = LoadCertAndCmpDest(pf->bundleInfo.releaseCert, binSignCert); in CheckReleaseAppSign()
883 if (strlen((char *)pf->bundleInfo.devCert) == 0) { in CheckDebugAppSign()
887 int ret = LoadCertAndCmpDest(pf->bundleInfo.devCert, binSignCert); in CheckDebugAppSign()
[all …]
Dapp_provision.c269 FreeProfBundle(&pf->bundleInfo); in ProfFreeData()
313 ret = GetProfBundleInfo(root, &pf->bundleInfo); in ParseProfile()
354 if (strlen((char *)pf->bundleInfo.devCert) == 0) { in VerifyAppBundleInfo()
359 if (strlen((char *)pf->bundleInfo.releaseCert) == 0) { in VerifyAppBundleInfo()
/base/account/os_account/services/accountmgr/test/mock/common/
Dbundle_manager_adapter.h35 AppExecFwk::BundleInfo &bundleInfo, int32_t userId);
/base/security/permission_lite/services/ipc_auth/src/
Dipc_auth_impl.c49 BundleInfo bundleInfo = {0}; in GetUidByBundleName() local
50 if (GetBundleInfo(bundleName, 0, &bundleInfo) != 0) { in GetUidByBundleName()
54 *uid = bundleInfo.uid; in GetUidByBundleName()
/base/security/appverify/interfaces/innerkits/appverify_lite/include/
Dapp_verify_pub.h105 ProfBundleInfo bundleInfo; /* bundle-info */ member

12