/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/mock/ |
H A D | mock_bundle_manager_helper.cpp | 24 BundleManagerHelper::BundleManagerHelper()
in BundleManagerHelper() function in OHOS::Notification::BundleManagerHelper 27 BundleManagerHelper::~BundleManagerHelper()
in ~BundleManagerHelper() 30 void BundleManagerHelper::OnRemoteDied(const wptr<IRemoteObject> &object)
in OnRemoteDied() 33 std::string BundleManagerHelper::GetBundleNameByUid(int uid)
in GetBundleNameByUid() 38 int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId)
in GetDefaultUidByBundleName() 43 bool BundleManagerHelper::IsSystemApp(int uid)
in IsSystemApp() 48 bool BundleManagerHelper::CheckApiCompatibility(const sptr<NotificationBundleOption> &bundleOption)
in CheckApiCompatibility() 53 bool BundleManagerHelper [all...] |
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
H A D | mock_bundle_manager_helper.cpp | 28 BundleManagerHelper::BundleManagerHelper() in BundleManagerHelper() function in OHOS::Notification::BundleManagerHelper 31 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper() 34 void BundleManagerHelper::OnRemoteDied(const wptr<IRemoteObject> &object) in OnRemoteDied() 37 std::string BundleManagerHelper::GetBundleNameByUid(int uid) in GetBundleNameByUid() 42 bool BundleManagerHelper::IsSystemApp(int uid) in IsSystemApp() 47 int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId) in GetDefaultUidByBundleName() 52 bool BundleManagerHelper::GetBundleInfoByBundleName( in GetBundleInfoByBundleName() 58 bool BundleManagerHelper [all...] |
/base/notification/distributed_notification_service/services/test/moduletest/mock/ |
H A D | mock_bundle_manager_helper.cpp | 28 BundleManagerHelper::BundleManagerHelper() in BundleManagerHelper() function in OHOS::Notification::BundleManagerHelper 31 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper() 34 void BundleManagerHelper::OnRemoteDied(const wptr<IRemoteObject> &object) in OnRemoteDied() 37 std::string BundleManagerHelper::GetBundleNameByUid(int uid) in GetBundleNameByUid() 42 bool BundleManagerHelper::IsSystemApp(int uid) in IsSystemApp() 47 bool BundleManagerHelper::CheckApiCompatibility(const sptr<NotificationBundleOption> &bundleOption) in CheckApiCompatibility() 52 int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId) in GetDefaultUidByBundleName() 57 bool BundleManagerHelper [all...] |
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
H A D | mock_bundle_manager_helper.cpp | 25 BundleManagerHelper::BundleManagerHelper() in BundleManagerHelper() function in OHOS::Notification::BundleManagerHelper 28 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper() 31 void BundleManagerHelper::OnRemoteDied(const wptr<IRemoteObject> &object) in OnRemoteDied() 34 std::string BundleManagerHelper::GetBundleNameByUid(int uid) in GetBundleNameByUid() 39 int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId) in GetDefaultUidByBundleName() 48 bool BundleManagerHelper::IsSystemApp(int uid) in IsSystemApp() 53 bool BundleManagerHelper::CheckApiCompatibility(const sptr<NotificationBundleOption> &bundleOption) in CheckApiCompatibility() 58 bool BundleManagerHelper [all...] |
/base/notification/distributed_notification_service/services/ans/test/unittest/bundle_manager_helper_branch_test/ |
H A D | bundle_manager_helper_branch_test.cpp | 46 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 59 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 72 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 85 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 98 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 114 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 130 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 142 std::shared_ptr<BundleManagerHelper> bundleManagerHelper = std::make_shared<BundleManagerHelper>();
in HWTEST_F() 155 std::shared_ptr<BundleManagerHelper> bundleManagerHelpe in HWTEST_F() [all...] |
/base/notification/common_event_service/services/test/unittest/mock/ |
H A D | mock_bundle_manager_helper.cpp | 204 BundleManagerHelper::BundleManagerHelper() : sptrBundleMgr_(nullptr), bmsDeath_(nullptr) in BundleManagerHelper() function in OHOS::EventFwk::BundleManagerHelper 207 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper() 210 std::string BundleManagerHelper::GetBundleName(uid_t uid) in GetBundleName() 218 bool BundleManagerHelper::QueryExtensionInfos(std::vector<AppExecFwk::ExtensionAbilityInfo> &extensionInfos, in QueryExtensionInfos() 225 bool BundleManagerHelper::QueryExtensionInfos(std::vector<AppExecFwk::ExtensionAbilityInfo> &extensionInfos) in QueryExtensionInfos() 231 bool BundleManagerHelper::GetResConfigFile(const AppExecFwk::ExtensionAbilityInfo &extension, in GetResConfigFile() 238 bool BundleManagerHelper::CheckIsSystemAppByUid(uid_t uid) in CheckIsSystemAppByUid() 243 bool BundleManagerHelper [all...] |
/base/notification/common_event_service/services/src/ |
H A D | bundle_manager_helper.cpp | 33 BundleManagerHelper::BundleManagerHelper() : sptrBundleMgr_(nullptr), bmsDeath_(nullptr) in BundleManagerHelper() function in OHOS::EventFwk::BundleManagerHelper 36 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper() 39 std::string BundleManagerHelper::GetBundleName(const uid_t uid) in GetBundleName() 56 bool BundleManagerHelper::QueryExtensionInfos(std::vector<AppExecFwk::ExtensionAbilityInfo> &extensionInfos, in QueryExtensionInfos() 72 bool BundleManagerHelper::QueryExtensionInfos(std::vector<AppExecFwk::ExtensionAbilityInfo> &extensionInfos) in QueryExtensionInfos() 99 bool BundleManagerHelper::GetResConfigFile(const AppExecFwk::ExtensionAbilityInfo &extension, in GetResConfigFile() 115 bool BundleManagerHelper::CheckIsSystemAppByUid(const uid_t uid) in CheckIsSystemAppByUid() 133 bool BundleManagerHelper [all...] |
H A D | bms_death_recipient.cpp | 38 DelayedSingleton<BundleManagerHelper>::GetInstance()->ClearBundleManagerHelper(); in OnRemoteDied()
|
H A D | static_subscriber_manager.cpp | 54 if (!DelayedSingleton<BundleManagerHelper>::GetInstance() in InitAllowList() 92 if (!DelayedSingleton<BundleManagerHelper>::GetInstance()->QueryExtensionInfos(extensions)) { in InitValidSubscribers() 182 if (!DelayedSingleton<BundleManagerHelper>::GetInstance()-> in PublishCommonEventInner() 336 if (!DelayedSingleton<BundleManagerHelper>::GetInstance()->GetResConfigFile(extension, profileInfos)) { in AddSubscriber() 376 if (!DelayedSingleton<BundleManagerHelper>::GetInstance()->QueryExtensionInfos(extensions, userId)) { in AddSubscriberWithBundleName() 530 DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(IPCSkeleton::GetCallingUid()); in SetStaticSubscriberState() 547 DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(IPCSkeleton::GetCallingUid()); in SetStaticSubscriberState()
|
H A D | common_event_manager_service.cpp | 201 bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(uid); in PublishCommonEventDetailed() 254 bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(callingUid); in SubscribeCommonEvent() 339 std::string bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(callingUid); in GetStickyCommonEvent()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | bundle_manager_helper.cpp | 28 BundleManagerHelper::BundleManagerHelper() in BundleManagerHelper() function in OHOS::Notification::BundleManagerHelper 31 RemoteDeathRecipient(std::bind(&BundleManagerHelper::OnRemoteDied, this, std::placeholders::_1)); in BundleManagerHelper() 37 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper() 43 void BundleManagerHelper::OnRemoteDied(const wptr<IRemoteObject> &object) in OnRemoteDied() 49 std::string BundleManagerHelper::GetBundleNameByUid(int32_t uid) in GetBundleNameByUid() 65 bool BundleManagerHelper::IsSystemApp(int32_t uid) in IsSystemApp() 80 bool BundleManagerHelper::CheckApiCompatibility(const sptr<NotificationBundleOption> &bundleOption) in CheckApiCompatibility() 89 bool BundleManagerHelper [all...] |
H A D | permission_filter.cpp | 41 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in OnPublish()
|
H A D | advanced_notification_inline.cpp | 40 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in GetClientBundleNameByUid()
|
H A D | advanced_notification_subscriber_service.cpp | 107 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in SubscribeSelf()
|
H A D | advanced_notification_utils.cpp | 140 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in GenerateValidBundleOption() 327 auto bundleManager = BundleManagerHelper::GetInstance(); in SetAgentNotification() 956 int32_t uid = BundleManagerHelper::GetInstance()->GetDefaultUidByBundleName(bundleName, activeUserId); in OnDistributedPublish() 967 request->SetCreatorUid(BundleManagerHelper::GetInstance()->GetDefaultUidByBundleName(bundle, activeUserId)); in OnDistributedPublish() 1031 int32_t uid = BundleManagerHelper::GetInstance()->GetDefaultUidByBundleName(bundleName, activeUserId); in OnDistributedUpdate() 1042 request->SetCreatorUid(BundleManagerHelper::GetInstance()->GetDefaultUidByBundleName(bundle, activeUserId)); in OnDistributedUpdate() 1101 int32_t uid = BundleManagerHelper::GetInstance()->GetDefaultUidByBundleName(bundleName, activeUserId); in OnDistributedDelete() 1151 enable = BundleManagerHelper::GetInstance()->GetDistributedNotificationEnabled( in GetDistributedEnableInApplicationInfo() 1394 std::shared_ptr<BundleManagerHelper> bundleManage in CheckApiCompatibility() [all...] |
H A D | notification_dialog.cpp | 36 return IN_PROCESS_CALL(BundleManagerHelper::GetInstance()->GetDefaultUidByBundleName(bundleName, userId)); in GetUidByBundleName()
|
H A D | notification_local_live_view_subscriber_manager.cpp | 79 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in AddLocalLiveViewSubscriber()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | bundle_manager_helper_test.cpp | 50 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in HWTEST_F() 62 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in HWTEST_F() 75 BundleManagerHelper bundleManagerHelper; in HWTEST_F() 91 BundleManagerHelper bundleManagerHelper; in HWTEST_F() 107 BundleManagerHelper bundleManagerHelper; in HWTEST_F() 122 BundleManagerHelper bundleManagerHelper; in HWTEST_F() 137 BundleManagerHelper bundleManagerHelper; in HWTEST_F() 152 std::shared_ptr<BundleManagerHelper> bundleManagerHelpe in HWTEST_F() [all...] |
/base/notification/common_event_service/services/test/unittest/ |
H A D | bundle_manager_helper_test.cpp | 74 std::shared_ptr<BundleManagerHelper> bundleManagerHelper = std::make_shared<BundleManagerHelper>();
in HWTEST_F() 88 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 102 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 116 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 131 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 147 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 162 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 178 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 194 BundleManagerHelper bundleManagerHelpe in HWTEST_F() [all...] |
H A D | bundle_manager_helper_other_test.cpp | 74 BundleManagerHelper bundleManagerHelper;
in HWTEST_F() 91 BundleManagerHelper bundleManagerHelper;
in HWTEST_F()
|
H A D | common_event_unsubscribe_unit_test.cpp | 72 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
H A D | common_event_publish_system_event_test.cpp | 61 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
/base/notification/common_event_service/services/include/ |
H A D | bundle_manager_helper.h | 33 class BundleManagerHelper : public DelayedSingleton<BundleManagerHelper> { class 37 BundleManagerHelper(); 39 virtual ~BundleManagerHelper();
|
/base/notification/distributed_notification_service/services/ans/src/clone/ |
H A D | notification_clone_util.cpp | 36 return BundleManagerHelper::GetInstance()->GetDefaultUidByBundleName(bundleName, userId); in GetBundleUid() 38 return BundleManagerHelper::GetInstance()->GetDefaultUidByBundleName(bundleName, userId, appIndex); in GetBundleUid()
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | bundle_manager_helper.h | 33 class BundleManagerHelper : public DelayedSingleton<BundleManagerHelper> { class 148 DECLARE_DELAYED_SINGLETON(BundleManagerHelper)
|