Home
last modified time | relevance | path

Searched refs:bundleMgr_ (Results 1 – 25 of 55) sorted by relevance

123

/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dbundle_manager_helper.cpp57 if (bundleMgr_ != nullptr) { in GetBundleNameByUid()
73 if (bundleMgr_ != nullptr) { in IsSystemApp()
114 if (bundleMgr_ == nullptr) { in GetBundleInfoByBundleName()
126 if (bundleMgr_ != nullptr) { in Connect()
142 if (bundleMgr_ != nullptr) { in Connect()
149 if (bundleMgr_ != nullptr) { in Disconnect()
151 bundleMgr_ = nullptr; in Disconnect()
163 if (bundleMgr_ != nullptr) { in GetDefaultUidByBundleName()
182 if (bundleMgr_ != nullptr) { in GetDistributedNotificationEnabled()
203 if (bundleMgr_ == nullptr) { in GetBundleInfo()
[all …]
/ohos5.0/foundation/resourceschedule/device_standby/services/core/src/
H A Dbundle_manager_helper.cpp40 if (bundleMgr_ != nullptr) { in GetClientBundleName()
41 bundleMgr_->GetNameForUid(uid, bundle); in GetClientBundleName()
54 STANDBYSERVICE_LOGD("bundleMgr is null: %{public}d ", bundleMgr_ == nullptr); in GetApplicationInfo()
55 if (bundleMgr_ == nullptr || !bundleMgr_->GetApplicationInfo(appName, flag, userId, appInfo)) { in GetApplicationInfo()
67 STANDBYSERVICE_LOGD("bundleMgr is null: %{public}d ", bundleMgr_ == nullptr); in GetApplicationInfos()
68 if (bundleMgr_ == nullptr || !bundleMgr_->GetApplicationInfos(flag, userId, appInfos)) { in GetApplicationInfos()
79 if (bundleMgr_ == nullptr) { in CheckIsSystemAppByUid()
82 isSystemApp = bundleMgr_->CheckIsSystemAppByUid(uid); in CheckIsSystemAppByUid()
88 if (bundleMgr_ != nullptr) { in Connect()
105 bundleMgr_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in Connect()
[all …]
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/common/src/
H A Dbundle_manager_helper.cpp52 if (bundleMgr_ != nullptr) { in GetClientBundleName()
53 bundleMgr_->GetNameForUid(uid, bundle); in GetClientBundleName()
82 if (bundleMgr_ != nullptr && bundleMgr_->GetBundleInfo(bundleName, flag, bundleInfo, userId)) { in GetBundleInfo()
95 BGTASK_LOGD("bundleMgr is null: %{public}d ", bundleMgr_ == nullptr); in GetApplicationInfo()
96 if (bundleMgr_ != nullptr && bundleMgr_->GetApplicationInfo(appName, flag, userId, appInfo)) { in GetApplicationInfo()
107 if (bundleMgr_ != nullptr && bundleMgr_->QueryAbilityInfo(want, flags, userId, abilityInfo)) { in QueryAbilityInfo()
115 if (bundleMgr_ != nullptr) { in Connect()
132 bundleMgr_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in Connect()
133 if (bundleMgr_ != nullptr && bundleMgrDeathRecipient_ != nullptr) { in Connect()
143 if (bundleMgr_ != nullptr && bundleMgr_->AsObject() != nullptr) { in Disconnect()
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dbundle_manager_connector.cpp36 bundleMgr_ = nullptr; in ~BundleMgrConnector()
43 if (bundleMgr_ == nullptr) { in GetBundleMgrProxy()
54 bundleMgr_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in GetBundleMgrProxy()
55 if (bundleMgr_ == nullptr) { in GetBundleMgrProxy()
62 bundleMgr_ = nullptr; in GetBundleMgrProxy()
65 bundleMgr_->AsObject()->AddDeathRecipient(deathRecipient_); in GetBundleMgrProxy()
67 return bundleMgr_; in GetBundleMgrProxy()
73 if ((bundleMgr_ != nullptr) && (bundleMgr_->AsObject() != nullptr)) { in ResetBundleMgrProxy()
74 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in ResetBundleMgrProxy()
76 bundleMgr_ = nullptr; in ResetBundleMgrProxy()
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl_bundle_mgr_helper.cpp27 if (bundleMgr_ != nullptr && bundleMgr_->AsObject() != nullptr && deathRecipient_ != nullptr) { in ~EGLBundleMgrHelper()
28 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in ~EGLBundleMgrHelper()
36 if (bundleMgr_ == nullptr) { in Connect()
45 … if (remoteObject_ == nullptr || (bundleMgr_ = iface_cast<IBundleMgr>(remoteObject_)) == nullptr) { in Connect()
63 if (bundleMgr_->AsObject() != nullptr) { in Connect()
64 bundleMgr_->AsObject()->AddDeathRecipient(deathRecipient_); in Connect()
67 return bundleMgr_; in Connect()
74 if (bundleMgr_ == nullptr || bundleMgr_->AsObject() == nullptr) { in OnDeath()
78 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in OnDeath()
79 bundleMgr_ = nullptr; in OnDeath()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_bundle_mgr_helper.cpp46 if (!bundleMgr_) { in GetNameForUid()
49 bundleMgr_->GetNameForUid(uid, bundleName); in GetNameForUid()
62 if (!bundleMgr_) { in GetApplicationInfo()
65 BUNDLE_ACTIVE_LOGD("bundleMgr is null: %{public}d ", bundleMgr_ == nullptr); in GetApplicationInfo()
66 if (bundleMgr_ != nullptr && bundleMgr_->GetApplicationInfo(appName, flag, userId, appInfo)) { in GetApplicationInfo()
82 if (bundleMgr_ != nullptr && bundleMgr_->GetApplicationInfos(flag, userId, appInfos)) { in GetApplicationInfos()
96 if (!bundleMgr_) { in GetBundleInfo()
99 if (bundleMgr_ != nullptr && bundleMgr_->GetBundleInfo(bundleName, flag, bundleInfo, userId)) { in GetBundleInfo()
107 if (bundleMgr_ != nullptr) { in Connect()
124 bundleMgr_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in Connect()
[all …]
H A Dbundle_active_continuous_task_observer.cpp55 if (!bundleMgr_) { in GetBundleMgr()
67 bundleMgr_ = iface_cast<IBundleMgr>(remoteObject); in GetBundleMgr()
68 if (!bundleMgr_) { in GetBundleMgr()
72 auto object = bundleMgr_->AsObject(); in GetBundleMgr()
91 bundleMgr_->GetNameForUid(uid, bundleName); in ReportContinuousTaskEvent()
/ohos5.0/foundation/multimedia/media_library/frameworks/utils/src/
H A Dpermission_utils.cpp55 if (bundleMgr_ != nullptr) { in GetSysBundleManager()
56 return bundleMgr_; in GetSysBundleManager()
60 if (bundleMgr_ != nullptr) { in GetSysBundleManager()
61 return bundleMgr_; in GetSysBundleManager()
81 bundleMgr_ = bundleMgr; in GetSysBundleManager()
83 return bundleMgr_; in GetSysBundleManager()
95 bundleMgr_ = GetSysBundleManager(); in GetBundleNameFromCache()
96 if (bundleMgr_ == nullptr) { in GetBundleNameFromCache()
154 if (bundleMgr_ == nullptr) { in GetAppIdFromCache()
427 bundleMgr_ = GetSysBundleManager(); in CheckIsSystemAppByUid()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/
H A Dbundle_mgr_client_impl.cpp55 if (bundleMgr_ != nullptr && deathRecipient_ != nullptr) { in ~BundleMgrClientImpl()
56 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in ~BundleMgrClientImpl()
67 return bundleMgr_->GetNameForUid(uid, name); in GetNameForUid()
107 return bundleMgr_->CreateBundleDataDir(userId); in CreateBundleDataDir()
123 return bundleMgr_->GetHapModuleInfo(info, hapModuleInfo); in GetHapModuleInfo()
540 if (bundleMgr_ == nullptr) { in GetDirByBundleNameAndAppIndex()
557 return bundleMgr_->GetAllBundleDirs(userId, bundleDirs); in GetAllBundleDirs()
564 if (bundleMgr_ == nullptr) { in Connect()
585 bundleMgr_->AsObject()->AddDeathRecipient(deathRecipient_); in Connect()
589 bundleInstaller_ = bundleMgr_->GetBundleInstaller(); in Connect()
[all …]
H A Dlauncher_service.cpp28 OHOS::sptr<OHOS::AppExecFwk::IBundleMgr> LauncherService::bundleMgr_ = nullptr; member in OHOS::AppExecFwk::LauncherService
38 bundleMgr_ = nullptr;
59 if (bundleMgr_ != nullptr && deathRecipient_ != nullptr) { in ~LauncherService()
60 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in ~LauncherService()
66 if (bundleMgr_ == nullptr) { in GetBundleMgr()
68 if (bundleMgr_ == nullptr) { in GetBundleMgr()
84 bundleMgr_ = bundleMgr; in GetBundleMgr()
85 bundleMgr_->AsObject()->AddDeathRecipient(deathRecipient_); in GetBundleMgr()
88 return bundleMgr_; in GetBundleMgr()
403 bundleMgr_ = nullptr; in OnDeath()
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/ui_extension_ability_test/ui_extension_info_module_test/
H A Dui_extension_info_module_test.cpp68 static sptr<AppExecFwk::IBundleMgr> bundleMgr_; member in OHOS::AAFwk::UIExtensionInfoModuleTest
71 sptr<AppExecFwk::IBundleMgr> UIExtensionInfoModuleTest::bundleMgr_ = nullptr; member in OHOS::AAFwk::UIExtensionInfoModuleTest
94 bundleMgr_ = bundleMgr; in SetUpTestCase()
116 ASSERT_NE(bundleMgr_, nullptr);
120 … bool queryResult = bundleMgr_->QueryExtensionAbilityInfos(type, AppExecFwk::Constants::ALL_USERID,
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/bundlemgr_graphics/src/
H A Dbundle_graphics_client_impl.cpp35 if (bundleMgr_ == nullptr) { in GetBundleMgr()
50 bundleMgr_ = bundleMgr; in GetBundleMgr()
53 return bundleMgr_; in GetBundleMgr()
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/
H A Dability_info_manager.cpp32 bundleMgr_ = bundleMgr; in Init()
49 if (bundleMgr_ == nullptr) { in IsAnco()
57 bool ret = bundleMgr_->QueryAbilityInfo(want, abilityInfoFlag, userId_, abilityInfo); in IsAnco()
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/
H A Ddrv_bundle_state_callback.cpp356 if (bundleMgr_ == nullptr) { in QueryDriverInfos()
365 if (!(bundleMgr_->GetBundleInfo(bundleName, flags, tmpBundleInfo, userId))) { in QueryDriverInfos()
426 if (bundleMgr_ == nullptr) { in GetBundleMgrProxy()
428 if (bundleMgr_ == nullptr) { in GetBundleMgrProxy()
443 bundleMgr_ = bundleMgr; in GetBundleMgrProxy()
446 return bundleMgr_; in GetBundleMgrProxy()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_bundle_manager_helper/
H A Dbundle_mgr_helper.cpp31 if (bundleMgr_ != nullptr && bundleMgr_->AsObject() != nullptr && deathRecipient_ != nullptr) { in ~BundleMgrHelper()
32 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in ~BundleMgrHelper()
222 if (bundleMgr_ == nullptr) { in Connect()
231 … if (remoteObject_ == nullptr || (bundleMgr_ = iface_cast<IBundleMgr>(remoteObject_)) == nullptr) { in Connect()
249 if (bundleMgr_->AsObject() != nullptr) { in Connect()
250 bundleMgr_->AsObject()->AddDeathRecipient(deathRecipient_); in Connect()
254 return bundleMgr_; in Connect()
287 if (bundleMgr_ == nullptr || bundleMgr_->AsObject() == nullptr) { in OnDeath()
291 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in OnDeath()
292 bundleMgr_ = nullptr; in OnDeath()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Dcontext_impl.cpp257 bool ret = bundleMgr_->GetGroupDir(groupId, groupDirGet); in GetGroupDirWithCheck()
420 ErrCode ret = bundleMgr_->GetDependentBundleInfo(bundleName, bundleInfo, in CreateModuleContext()
523 ErrCode ret = bundleMgr_->GetDependentBundleInfo(bundleName, bundleInfo, in CreateSystemHspModuleResourceManager()
572 bundleMgr_->GetBundleInfoForSelf(( in GetBundleInfo()
603 if (bundleMgr_ == nullptr) { in GetBundleInfo()
612 bundleMgr_->GetBundleInfoForSelf( in GetBundleInfo()
1032 if (bundleMgr_ != nullptr && !resetFlag_) { in GetBundleManager()
1036 bundleMgr_ = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in GetBundleManager()
1037 if (bundleMgr_ == nullptr) { in GetBundleManager()
1103 if (!bundleMgr_->GetHapModuleInfo(*abilityInfo.get(), *hapModuleInfo_)) { in InitHapModuleInfo()
[all …]
/ohos5.0/foundation/resourceschedule/device_standby/services/test/unittest/mock/
H A Dmock_connect.cpp34 bundleMgr_ = nullptr; in Connect()
/ohos5.0/base/customization/enterprise_device_management/common/external/src/
H A Dexternal_manager_factory.cpp27 return bundleMgr_; in CreateBundleManager()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage/
H A Dbundle_manager_connector.h38 sptr<AppExecFwk::IBundleMgr> bundleMgr_ = nullptr; variable
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/
H A Dability_info_manager.h50 sptr<AppExecFwk::IBundleMgr> bundleMgr_; variable
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/bundlemgr_graphics/include/
H A Dbundle_graphics_client_impl.h42 OHOS::sptr<OHOS::AppExecFwk::IBundleMgr> bundleMgr_ = nullptr; variable
/ohos5.0/foundation/resourceschedule/device_standby/services/core/include/
H A Dbundle_manager_helper.h45 sptr<AppExecFwk::IBundleMgr> bundleMgr_ = nullptr;
/ohos5.0/base/customization/enterprise_device_management/common/external/include/
H A Dexternal_manager_factory.h37 std::shared_ptr<IEdmBundleManager> bundleMgr_ = std::make_shared<EdmBundleManagerImpl>();
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_continuous_task_observer.h44 sptr<IBundleMgr> bundleMgr_;
/ohos5.0/foundation/bundlemanager/distributed_bundle_framework/services/dbms/src/
H A Ddistributed_bms.cpp181 if (bundleMgr_ == nullptr) { in GetBundleMgr()
183 if (bundleMgr_ == nullptr) { in GetBundleMgr()
194 bundleMgr_ = OHOS::iface_cast<IBundleMgr>(bundleMgrSa); in GetBundleMgr()
197 return bundleMgr_; in GetBundleMgr()

123