/base/notification/common_event_service/services/src/ |
H A D | bundle_manager_helper.cpp | 33 BundleManagerHelper::BundleManagerHelper() : sptrBundleMgr_(nullptr), bmsDeath_(nullptr) in BundleManagerHelper() 51 sptrBundleMgr_->GetNameForUid(uid, bundleName); in GetBundleName() 68 return sptrBundleMgr_->QueryExtensionAbilityInfos(AppExecFwk::ExtensionAbilityType::STATICSUBSCRIBER, in QueryExtensionInfos() 93 sptrBundleMgr_->QueryExtensionAbilityInfos(AppExecFwk::ExtensionAbilityType::STATICSUBSCRIBER, in QueryExtensionInfos() 128 isSystemApp = sptrBundleMgr_->CheckIsSystemAppByUid(uid); in CheckIsSystemAppByUid() 145 int32_t uid = sptrBundleMgr_->GetUidByBundleName(bundleName, userId); in CheckIsSystemAppByBundleName() 150 isSystemApp = sptrBundleMgr_->CheckIsSystemAppByUid(uid); in CheckIsSystemAppByBundleName() 170 if (!sptrBundleMgr_) { in GetBundleMgrProxyInner() 189 sptrBundleMgr_ = iface_cast<IBundleMgr>(remoteObject); in GetBundleMgrProxyInner() 190 if ((!sptrBundleMgr_) || (!sptrBundleMgr in GetBundleMgrProxyInner() [all...] |
/base/print/print_fwk/services/print_service/src/ |
H A D | print_bms_helper.cpp | 24 PrintBMSHelper::PrintBMSHelper() : sptrBundleMgr_(nullptr), printBMSDeath_(nullptr), helper_(nullptr) in PrintBMSHelper() 33 sptrBundleMgr_ = nullptr; in SetHelper() 53 helper_->QueryExtension(sptrBundleMgr_, userId, extensionInfos); in QueryExtensionInfos() 66 helper_->QueryNameForUid(sptrBundleMgr_, callerUid, bundleName); in QueryCallerBundleName() 73 if (sptrBundleMgr_ == nullptr) { in GetProxy() 84 sptrBundleMgr_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in GetProxy() 85 if (sptrBundleMgr_ == nullptr) { in GetProxy() 108 if (sptrBundleMgr_ == nullptr) { in ResetProxy() 109 PRINT_HILOGE("sptrBundleMgr_ is null"); in ResetProxy() 113 auto serviceRemote = sptrBundleMgr_ in ResetProxy() [all...] |
/base/notification/common_event_service/services/test/unittest/ |
H A D | bundle_manager_helper_test.cpp | 68 * @tc.desc: test ClearBundleManagerHelper function and sptrBundleMgr_ is nullptr.
82 * @tc.desc: test GetBundleMgrProxy function and sptrBundleMgr_ is not nullptr.
89 bundleManagerHelper.sptrBundleMgr_ = new (std::nothrow) TestIBundleMgr();
in HWTEST_F() 96 * @tc.desc: test GetBundleMgrProxy function and sptrBundleMgr_ is nullptr.
103 bundleManagerHelper.sptrBundleMgr_ = nullptr;
in HWTEST_F() 117 bundleManagerHelper.sptrBundleMgr_ = nullptr;
in HWTEST_F() 132 bundleManagerHelper.sptrBundleMgr_ = nullptr;
in HWTEST_F() 148 bundleManagerHelper.sptrBundleMgr_ = nullptr;
in HWTEST_F() 164 bundleManagerHelper.sptrBundleMgr_ = iface_cast<IBundleMgr>(remoteObject);
in HWTEST_F() 179 bundleManagerHelper.sptrBundleMgr_ in HWTEST_F() [all...] |
H A D | bundle_manager_helper_other_test.cpp | 76 bundleManagerHelper.sptrBundleMgr_ = iface_cast<IBundleMgr>(remoteObject);
in HWTEST_F() 93 bundleManagerHelper.sptrBundleMgr_ = iface_cast<IBundleMgr>(remoteObject);
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()
|
H A D | common_event_freeze_test.cpp | 257 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
H A D | common_event_sticky_test.cpp | 80 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
H A D | common_event_publish_ordered_event_unit_test.cpp | 87 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
H A D | common_event_subscribe_unit_test.cpp | 607 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
H A D | common_event_dump_test.cpp | 299 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
H A D | common_event_publish_permission_event_unit_test.cpp | 86 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
/base/print/print_fwk/services/print_service/include/ |
H A D | print_bms_helper.h | 47 sptr<AppExecFwk::IBundleMgr> sptrBundleMgr_; member in OHOS::Print::PrintBMSHelper
|
/base/print/print_fwk/test/unittest/fwk_print_helper_test/ |
H A D | print_bms_helper_test.cpp | 77 EXPECT_EQ(printBMSHelper.sptrBundleMgr_, nullptr); in HWTEST_F() 121 EXPECT_EQ(printBMSHelper.sptrBundleMgr_, nullptr); in HWTEST_F()
|
/base/notification/common_event_service/services/include/ |
H A D | bundle_manager_helper.h | 109 sptr<IBundleMgr> sptrBundleMgr_; member in OHOS::EventFwk::BundleManagerHelper
|
/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()
|
/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/ |
H A D | common_event_services_publish_ordered_module_test.cpp | 392 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/ |
H A D | common_event_services_module_test.cpp | 85 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase()
|