/ohos5.0/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::GetBundleInfoByBundleName( in GetBundleInfoByBundleName() 59 void BundleManagerHelper::Connect() in Connect() 62 void BundleManagerHelper::Disconnect() in Disconnect() [all …]
|
/ohos5.0/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::GetBundleInfoByBundleName( in GetBundleInfoByBundleName() 64 void BundleManagerHelper::Connect() in Connect() 67 void BundleManagerHelper::Disconnect() in Disconnect() [all …]
|
/ohos5.0/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::CheckApiCompatibility(const sptr<NotificationBundleOption> &bundleOption) in CheckApiCompatibility() 63 void BundleManagerHelper::Connect() in Connect() 66 void BundleManagerHelper::Disconnect() in Disconnect() [all …]
|
/ohos5.0/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::GetBundleInfoByBundleName( in GetBundleInfoByBundleName() 63 void BundleManagerHelper::Connect() in Connect() 66 void BundleManagerHelper::Disconnect() in Disconnect() [all …]
|
/ohos5.0/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; 59 BundleManagerHelper bundleManagerHelper; 72 BundleManagerHelper bundleManagerHelper; 85 BundleManagerHelper bundleManagerHelper; 98 BundleManagerHelper bundleManagerHelper; 114 BundleManagerHelper bundleManagerHelper; 142 …std::shared_ptr<BundleManagerHelper> bundleManagerHelper = std::make_shared<BundleManagerHelper>(); 155 …std::shared_ptr<BundleManagerHelper> bundleManagerHelper = std::make_shared<BundleManagerHelper>(); 169 …std::shared_ptr<BundleManagerHelper> bundleManagerHelper = std::make_shared<BundleManagerHelper>(); 184 …std::shared_ptr<BundleManagerHelper> bundleManagerHelper = std::make_shared<BundleManagerHelper>(); [all …]
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/ |
H A D | mock_bundle_manager_helper.cpp | 32 BundleManagerHelper::BundleManagerHelper() {} in BundleManagerHelper() function in OHOS::BackgroundTaskMgr::BundleManagerHelper 34 BundleManagerHelper::~BundleManagerHelper() {} in ~BundleManagerHelper() 46 bool BundleManagerHelper::GetApplicationInfo(const std::string &appName, const AppExecFwk::Applicat… in GetApplicationInfo() 58 std::string BundleManagerHelper::GetClientBundleName(int32_t uid) in GetClientBundleName() 63 bool BundleManagerHelper::CheckPermission(const std::string &permission) in CheckPermission() 68 bool BundleManagerHelper::IsSystemApp(uint64_t fullTokenId) in IsSystemApp() 76 bool BundleManagerHelper::GetBundleInfo(const std::string &bundleName, const AppExecFwk::BundleFlag… in GetBundleInfo() 96 bool BundleManagerHelper::QueryAbilityInfo(const AAFwk::Want &want, int32_t flags, int32_t userId, in QueryAbilityInfo() 104 bool BundleManagerHelper::Connect() in Connect() 109 void BundleManagerHelper::Disconnect() {} in Disconnect() [all …]
|
/ohos5.0/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 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() 89 bool BundleManagerHelper::CheckApiCompatibility(const std::string &bundleName, const int32_t &uid) in CheckApiCompatibility() 108 bool BundleManagerHelper::GetBundleInfoByBundleName( in GetBundleInfoByBundleName() 124 void BundleManagerHelper::Connect() in Connect() 147 void BundleManagerHelper::Disconnect() in Disconnect() 214 bool BundleManagerHelper::GetBundleInfos( in GetBundleInfos() [all …]
|
H A D | permission_filter.cpp | 41 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in OnPublish()
|
/ohos5.0/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> &extens… in QueryExtensionInfos() 99 bool BundleManagerHelper::GetResConfigFile(const AppExecFwk::ExtensionAbilityInfo &extension, in GetResConfigFile() 115 bool BundleManagerHelper::CheckIsSystemAppByUid(const uid_t uid) in CheckIsSystemAppByUid() 155 bool BundleManagerHelper::GetBundleMgrProxyAsync() in GetBundleMgrProxyAsync() 160 bool BundleManagerHelper::GetBundleMgrProxy() in GetBundleMgrProxy() 165 bool BundleManagerHelper::GetBundleMgrProxyInner(bool isAsync) in GetBundleMgrProxyInner() 208 void BundleManagerHelper::ClearBundleManagerHelper() in ClearBundleManagerHelper() [all …]
|
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, profileInfo… 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()
|
/ohos5.0/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> &extens… in QueryExtensionInfos() 225 bool BundleManagerHelper::QueryExtensionInfos(std::vector<AppExecFwk::ExtensionAbilityInfo> &extens… in QueryExtensionInfos() 231 bool BundleManagerHelper::GetResConfigFile(const AppExecFwk::ExtensionAbilityInfo &extension, in GetResConfigFile() 238 bool BundleManagerHelper::CheckIsSystemAppByUid(uid_t uid) in CheckIsSystemAppByUid() 243 bool BundleManagerHelper::CheckIsSystemAppByBundleName(const std::string &bundleName, const int32_t… in CheckIsSystemAppByBundleName() 248 bool BundleManagerHelper::GetBundleMgrProxy() in GetBundleMgrProxy() 253 void BundleManagerHelper::ClearBundleManagerHelper() in ClearBundleManagerHelper() [all …]
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/common/src/ |
H A D | bundle_manager_helper.cpp | 35 BundleManagerHelper::BundleManagerHelper() in BundleManagerHelper() function in OHOS::BackgroundTaskMgr::BundleManagerHelper 41 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper() 47 std::string BundleManagerHelper::GetClientBundleName(int32_t uid) in GetClientBundleName() 59 bool BundleManagerHelper::CheckPermission(const std::string &permission) in CheckPermission() 70 bool BundleManagerHelper::IsSystemApp(uint64_t fullTokenId) in IsSystemApp() 75 bool BundleManagerHelper::GetBundleInfo(const std::string &bundleName, const AppExecFwk::BundleFlag… in GetBundleInfo() 88 bool WEAK_FUNC BundleManagerHelper::GetApplicationInfo(const std::string &appName, in GetApplicationInfo() 102 bool BundleManagerHelper::QueryAbilityInfo(const AAFwk::Want &want, int32_t flags, int32_t userId, in QueryAbilityInfo() 113 bool BundleManagerHelper::Connect() in Connect() 141 void BundleManagerHelper::Disconnect() in Disconnect() [all …]
|
/ohos5.0/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(); 62 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); 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> bundleManagerHelper = std::make_shared<BundleManagerHelper>(); in HWTEST_F()
|
/ohos5.0/foundation/resourceschedule/device_standby/services/core/src/ |
H A D | bundle_manager_helper.cpp | 26 IMPLEMENT_SINGLE_INSTANCE(BundleManagerHelper); 27 BundleManagerHelper::BundleManagerHelper() in BundleManagerHelper() function in OHOS::DevStandbyMgr::BundleManagerHelper 31 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper() 35 std::string WEAK_FUNC BundleManagerHelper::GetClientBundleName(int32_t uid) in GetClientBundleName() 47 bool WEAK_FUNC BundleManagerHelper::GetApplicationInfo(const std::string &appName, const in GetApplicationInfo() 61 bool WEAK_FUNC BundleManagerHelper::GetApplicationInfos(const AppExecFwk::ApplicationFlag flag, int… in GetApplicationInfos() 74 bool WEAK_FUNC BundleManagerHelper::CheckIsSystemAppByUid(const int uid, bool& isSystemApp) in CheckIsSystemAppByUid() 86 bool WEAK_FUNC BundleManagerHelper::Connect() in Connect()
|
/ohos5.0/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 bundleManagerHelper; in HWTEST_F() 209 BundleManagerHelper bundleManagerHelper; 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()
|
/ohos5.0/foundation/resourceschedule/device_standby/services/test/unittest/ |
H A D | standby_helper_unit_test.cpp | 75 BundleManagerHelper::GetInstance()->GetClientBundleName(uid); 77 BundleManagerHelper::GetInstance()->GetApplicationInfo("test", 120 BundleManagerHelper::GetInstance()->bundleMgr_ = nullptr; 122 …BundleManagerHelper::GetInstance()->GetApplicationInfo("", AppExecFwk::ApplicationFlag::GET_BASIC_… 126 …BundleManagerHelper::GetInstance()->GetApplicationInfos(AppExecFwk::ApplicationFlag::GET_BASIC_APP…
|
/ohos5.0/base/notification/common_event_service/services/include/ |
H A D | bundle_manager_helper.h | 33 class BundleManagerHelper : public DelayedSingleton<BundleManagerHelper> { 37 BundleManagerHelper(); 39 virtual ~BundleManagerHelper();
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/common/include/ |
H A D | bundle_manager_helper.h | 30 class BundleManagerHelper : public DelayedSingleton<BundleManagerHelper> { 52 DECLARE_DELAYED_SINGLETON(BundleManagerHelper)
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/ |
H A D | bundle_manager_helper.h | 33 class BundleManagerHelper : public DelayedSingleton<BundleManagerHelper> { 148 DECLARE_DELAYED_SINGLETON(BundleManagerHelper)
|
/ohos5.0/foundation/resourceschedule/device_standby/services/test/unittest/mock/ |
H A D | mock_standby_helper_unit_test.cpp | 65 BundleManagerHelper::GetInstance()->GetClientBundleName(uid); 68 …BundleManagerHelper::GetInstance()->GetApplicationInfo("", AppExecFwk::ApplicationFlag::GET_BASIC_… 72 …BundleManagerHelper::GetInstance()->GetApplicationInfos(AppExecFwk::ApplicationFlag::GET_BASIC_APP…
|
H A D | mock_helper.cpp | 51 bool BundleManagerHelper::GetApplicationInfo(const std::string &appName, const AppExecFwk::Applicat… in GetApplicationInfo() 103 std::string BundleManagerHelper::GetClientBundleName(int32_t uid) in GetClientBundleName() 108 bool BundleManagerHelper::Connect() in Connect()
|
/ohos5.0/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()
|
/ohos5.0/foundation/resourceschedule/device_standby/services/core/include/ |
H A D | bundle_manager_helper.h | 32 class BundleManagerHelper { 33 DECLARE_SINGLE_INSTANCE(BundleManagerHelper);
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/ |
H A D | bgtask_misc_unit_test.cpp | 131 EXPECT_EQ(BundleManagerHelper::GetInstance()->GetClientBundleName(1), ""); 132 EXPECT_FALSE(BundleManagerHelper::GetInstance()->CheckPermission("permission")); 133 EXPECT_FALSE(BundleManagerHelper::GetInstance()->IsSystemApp(1LLU)); 135 EXPECT_FALSE(BundleManagerHelper::GetInstance()->GetBundleInfo("bundleName", 138 EXPECT_FALSE(BundleManagerHelper::GetInstance()->GetApplicationInfo("bundleName", 140 BundleManagerHelper::GetInstance()->OnRemoteDied(nullptr); 141 BundleManagerHelper::GetInstance()->bundleMgr_ = nullptr; 142 BundleManagerHelper::GetInstance()->OnRemoteDied(nullptr); 148 BundleManagerHelper::GetInstance()->QueryAbilityInfo(want, 150 BundleManagerHelper::GetInstance()->bundleMgr_ = nullptr; [all …]
|