Home
last modified time | relevance | path

Searched refs:bundleMgrHelper (Results 1 - 25 of 42) sorted by relevance

12

/foundation/ability/ability_runtime/test/unittest/bundle_mgr_helper_test/
H A Dbundle_mgr_helper_test.cpp47 static std::shared_ptr<BundleMgrHelper> bundleMgrHelper; member in OHOS::AppExecFwk::BundleMgrHelperTest
50 std::shared_ptr<BundleMgrHelper> BundleMgrHelperTest::bundleMgrHelper = member in OHOS::AppExecFwk::BundleMgrHelperTest
76 auto ret = bundleMgrHelper->GetBundleInfo(bundleName, flags, bundleInfo, userId); in HWTEST_F()
89 auto ret = bundleMgrHelper->GetHapModuleInfo(abilityInfo, hapModuleInfo); in HWTEST_F()
102 auto ret = bundleMgrHelper->GetAbilityLabel(bundleName, abilityName); in HWTEST_F()
114 auto ret = bundleMgrHelper->GetAppType(bundleName); in HWTEST_F()
127 auto ret = bundleMgrHelper->GetBaseSharedBundleInfos(bundleName, baseSharedBundleInfos); in HWTEST_F()
140 auto ret = bundleMgrHelper->GetBundleInfoForSelf(flags, bundleInfo); in HWTEST_F()
153 auto ret = bundleMgrHelper->GetDependentBundleInfo(sharedBundleName, sharedBundleInfo); in HWTEST_F()
166 auto ret = bundleMgrHelper in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_preloader.cpp95 auto bundleMgrHelper = GetBundleManagerHelper(); in GetLaunchWant() local
96 if (!bundleMgrHelper) { in GetLaunchWant()
97 TAG_LOGE(AAFwkTag::APPMGR, "null bundleMgrHelper"); in GetLaunchWant()
101 auto errCode = IN_PROCESS_CALL(bundleMgrHelper->GetLaunchWantForBundle(bundleName, launchWant, userId)); in GetLaunchWant()
112 auto bundleMgrHelper = GetBundleManagerHelper(); in GetLaunchAbilityInfo() local
113 if (!bundleMgrHelper) { in GetLaunchAbilityInfo()
114 TAG_LOGE(AAFwkTag::APPMGR, "null bundleMgrHelper"); in GetLaunchAbilityInfo()
119 if (!IN_PROCESS_CALL(bundleMgrHelper->QueryAbilityInfo(want, abilityInfoFlag, userId, abilityInfo))) { in GetLaunchAbilityInfo()
131 auto bundleMgrHelper = GetBundleManagerHelper(); in GetBundleAndHapInfo() local
132 if (!bundleMgrHelper) { in GetBundleAndHapInfo()
[all...]
H A Dremote_client_manager.cpp55 void RemoteClientManager::SetBundleManagerHelper(const std::shared_ptr<BundleMgrHelper> &bundleMgrHelper) in SetBundleManagerHelper() argument
57 bundleManagerHelper_ = bundleMgrHelper; in SetBundleManagerHelper()
H A Dexit_resident_process_manager.cpp103 auto bundleMgrHelper = remoteClientManager->GetBundleManagerHelper(); in QueryExitBundleInfos() local
104 if (bundleMgrHelper == nullptr) { in QueryExitBundleInfos()
105 TAG_LOGE(AAFwkTag::APPMGR, "null bundleMgrHelper"); in QueryExitBundleInfos()
109 if (!IN_PROCESS_CALL(bundleMgrHelper->GetBundleInfo(item.bundleName, in QueryExitBundleInfos()
/foundation/ability/ability_runtime/interfaces/inner_api/quick_fix/src/
H A Dquick_fix_utils.cpp52 auto bundleMgrHelper = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in GetBundleQuickFixMgrProxy() local
53 if (bundleMgrHelper == nullptr) { in GetBundleQuickFixMgrProxy()
54 TAG_LOGE(AAFwkTag::QUICKFIX, "The bundleMgrHelper is nullptr"); in GetBundleQuickFixMgrProxy()
58 auto bundleQuickFixMgr = bundleMgrHelper->GetQuickFixManagerProxy(); in GetBundleQuickFixMgrProxy()
/foundation/ability/ability_runtime/service_router_framework/services/srms/src/
H A Dservice_router_data_mgr.cpp37 auto bundleMgrHelper = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in LoadAllBundleInfos() local
38 if (bundleMgrHelper == nullptr) { in LoadAllBundleInfos()
39 TAG_LOGE(AAFwkTag::SER_ROUTER, "null bundleMgrHelper"); in LoadAllBundleInfos()
44 if (!bundleMgrHelper->GetBundleInfos(flags, bundleInfos, SrSamgrHelper::GetCurrentActiveUserId())) { in LoadAllBundleInfos()
59 auto bundleMgrHelper = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in LoadBundleInfo() local
60 if (bundleMgrHelper == nullptr) { in LoadBundleInfo()
61 TAG_LOGI(AAFwkTag::SER_ROUTER, "null bundleMgrHelper"); in LoadBundleInfo()
66 if (!bundleMgrHelper->GetBundleInfo(bundleName, flags, bundleInfo, SrSamgrHelper::GetCurrentActiveUserId())) { in LoadBundleInfo()
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_delegator/
H A Dtest_runner.cpp36 auto bundleMgrHelper = DelayedSingleton<BundleMgrHelper>::GetInstance(); in Create() local
37 if (bundleMgrHelper == nullptr) { in Create()
38 TAG_LOGE(AAFwkTag::DELEGATOR, "null bundleMgrHelper"); in Create()
48 if (bundleMgrHelper->GetBundleInfoForSelf( in Create()
/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/
H A Dscreen_unlock_interceptor.cpp43 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in DoProcess() local
44 if (bundleMgrHelper == nullptr) { in DoProcess()
45 TAG_LOGD(AAFwkTag::ABILITYMGR, "The bundleMgrHelper is nullptr."); in DoProcess()
48 IN_PROCESS_CALL_WITHOUT_RET(bundleMgrHelper->QueryAbilityInfo(param.want, in DoProcess()
H A Dability_jump_interceptor.cpp46 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in DoProcess() local
47 if (bundleMgrHelper == nullptr) { in DoProcess()
48 TAG_LOGE(AAFwkTag::ABILITYMGR, "null bundleMgrHelper"); in DoProcess()
57 IN_PROCESS_CALL_WITHOUT_RET(bundleMgrHelper->QueryAbilityInfo(param.want, in DoProcess()
66 if (CheckControl(bundleMgrHelper, param.want, param.userId, controlRule)) { in DoProcess()
87 bool AbilityJumpInterceptor::CheckControl(std::shared_ptr<AppExecFwk::BundleMgrHelper> &bundleMgrHelper, in CheckControl() argument
93 auto result = IN_PROCESS_CALL(bundleMgrHelper->GetNameForUid(callerUid, callerBundleName)); in CheckControl()
114 auto appControlMgr = bundleMgrHelper->GetAppControlProxy(); in CheckControl()
H A Decological_rule_interceptor.cpp98 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in DoProcess() local
99 CHECK_POINTER_AND_RETURN(bundleMgrHelper, false); in DoProcess()
101 auto errCode = IN_PROCESS_CALL(bundleMgrHelper->GetLaunchWantForBundle(want.GetBundle(), launchWant, userId)); in DoProcess()
173 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in GetEcologicalCallerInfo() local
174 if (bundleMgrHelper == nullptr) { in GetEcologicalCallerInfo()
175 TAG_LOGE(AAFwkTag::ECOLOGICAL_RULE, "null bundleMgrHelper"); in GetEcologicalCallerInfo()
180 ErrCode err = IN_PROCESS_CALL(bundleMgrHelper->GetNameForUid(callerInfo.uid, callerBundleName)); in GetEcologicalCallerInfo()
185 bool getCallerResult = IN_PROCESS_CALL(bundleMgrHelper->GetApplicationInfo(callerBundleName, in GetEcologicalCallerInfo()
H A Dcontrol_interceptor.cpp73 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in CheckControl() local
74 if (bundleMgrHelper == nullptr) { in CheckControl()
75 TAG_LOGE(AAFwkTag::ABILITYMGR, "null bundleMgrHelper"); in CheckControl()
81 auto appControlMgr = bundleMgrHelper->GetAppControlProxy(); in CheckControl()
H A Dextension_control_interceptor.cpp97 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in GetTargetAbilityInfo() local
98 if (bundleMgrHelper == nullptr) { in GetTargetAbilityInfo()
99 TAG_LOGE(AAFwkTag::ABILITYMGR, "null bundleMgrHelper"); in GetTargetAbilityInfo()
102 IN_PROCESS_CALL_WITHOUT_RET(bundleMgrHelper->QueryAbilityInfo(param.want, in GetTargetAbilityInfo()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_module_reader.cpp135 auto bundleMgrHelper = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in GetOtherHspPath() local
136 if (bundleMgrHelper == nullptr) { in GetOtherHspPath()
137 TAG_LOGE(AAFwkTag::JSRUNTIME, "null bundleMgrHelper"); in GetOtherHspPath()
142 if (bundleMgrHelper->GetBaseSharedBundleInfos(bundleName, baseSharedBundleInfos) != 0) { in GetOtherHspPath()
155 int32_t ret = bundleMgrHelper->GetDependentBundleInfo(sharedBundleName, bundleInfo, in GetOtherHspPath()
178 auto bundleMgrHelper = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in GetPresetAppHapPath() local
179 if (bundleMgrHelper == nullptr) { in GetPresetAppHapPath()
180 TAG_LOGE(AAFwkTag::JSRUNTIME, "null bundleMgrHelper"); in GetPresetAppHapPath()
185 auto getInfoResult = bundleMgrHelper->GetBundleInfoForSelf(static_cast<int32_t>(AppExecFwk::GetBundleInfoFlag:: in GetPresetAppHapPath()
/foundation/ability/ability_runtime/services/quickfixmgr/src/
H A Dquick_fix_manager_service.cpp101 auto bundleMgrHelper = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in GetApplyedQuickFixInfo() local
102 if (bundleMgrHelper == nullptr) { in GetApplyedQuickFixInfo()
103 TAG_LOGE(AAFwkTag::QUICKFIX, "null bundleMgrHelper"); in GetApplyedQuickFixInfo()
108 if (!bundleMgrHelper->GetBundleInfo(bundleName, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, in GetApplyedQuickFixInfo()
206 auto bundleMgrHelper = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in GetQuickFixInfo() local
207 if (bundleMgrHelper == nullptr) { in GetQuickFixInfo()
208 TAG_LOGE(AAFwkTag::QUICKFIX, "null bundleMgrHelper"); in GetQuickFixInfo()
213 if (!bundleMgrHelper->GetBundleInfo(bundleName, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, in GetQuickFixInfo()
/foundation/ability/ability_runtime/services/abilitymgr/src/utils/
H A Dinsight_intent_utils.cpp66 auto bundleMgrHelper = DelayedSingleton<AppExecFwk::BundleMgrHelper>::GetInstance(); in GetSrcEntry() local
67 if (bundleMgrHelper == nullptr) { in GetSrcEntry()
73 auto ret = IN_PROCESS_CALL(bundleMgrHelper->GetJsonProfile(AppExecFwk::INTENT_PROFILE, bundleName, moduleName, in GetSrcEntry()
H A Dwant_utils.cpp28 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in GetCallerBundleName() local
29 CHECK_POINTER_AND_RETURN(bundleMgrHelper, ERR_INVALID_VALUE); in GetCallerBundleName()
32 return IN_PROCESS_CALL(bundleMgrHelper->GetNameForUid(callerUid, callerBundleName)); in GetCallerBundleName()
/foundation/ability/ability_runtime/services/abilitymgr/include/utils/
H A Dability_util.h209 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in AddAbilityJumpRuleToBms() local
210 if (bundleMgrHelper == nullptr) { in AddAbilityJumpRuleToBms()
214 auto appControlMgr = bundleMgrHelper->GetAppControlProxy(); in AddAbilityJumpRuleToBms()
249 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in IsStartIncludeAtomicService() local
250 if (bundleMgrHelper == nullptr) { in IsStartIncludeAtomicService()
257 bool getTargetResult = IN_PROCESS_CALL(bundleMgrHelper->GetApplicationInfo(targetBundleName, in IsStartIncludeAtomicService()
270 ErrCode err = IN_PROCESS_CALL(bundleMgrHelper->GetNameForUid(callerUid, callerBundleName)); in IsStartIncludeAtomicService()
276 bool getCallerResult = IN_PROCESS_CALL(bundleMgrHelper->GetApplicationInfo(callerBundleName, in IsStartIncludeAtomicService()
360 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in StartAppgallery() local
361 if (bundleMgrHelper in StartAppgallery()
[all...]
/foundation/ability/ability_runtime/test/unittest/app_preloader_test/
H A Dapp_preloader_test.cpp38 auto bundleMgrHelper = std::make_shared<BundleMgrHelper>(); in SetUp() local
39 remoteClientManager_->SetBundleManagerHelper(bundleMgrHelper); in SetUp()
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dimplicit_start_processor.cpp383 auto bundleMgrHelper = GetBundleManagerHelper(); in GenerateAbilityRequestByAction() local
384 CHECK_POINTER_AND_RETURN(bundleMgrHelper, GET_ABILITY_SERVICE_FAILED); in GenerateAbilityRequestByAction()
424 IN_PROCESS_CALL_WITHOUT_RET(bundleMgrHelper->ImplicitQueryInfos( in GenerateAbilityRequestByAction()
472 IN_PROCESS_CALL_WITHOUT_RET(bundleMgrHelper->ImplicitQueryInfos(implicitwant, abilityInfoFlag, userId, in GenerateAbilityRequestByAction()
599 auto bundleMgrHelper = GetBundleManagerHelper(); in QueryBmsAppInfos() local
617 IN_PROCESS_CALL_WITHOUT_RET(bundleMgrHelper->QueryAbilityInfo(want, abilityInfoFlag, in QueryBmsAppInfos()
742 auto bundleMgrHelper = GetBundleManagerHelper(); in GetDefaultAppProxy() local
743 if (bundleMgrHelper == nullptr) { in GetDefaultAppProxy()
744 TAG_LOGE(AAFwkTag::ABILITYMGR, "null bundleMgrHelper"); in GetDefaultAppProxy()
747 auto defaultAppProxy = bundleMgrHelper in GetDefaultAppProxy()
777 auto bundleMgrHelper = GetBundleManagerHelper(); GetEcologicalCallerInfo() local
[all...]
H A Dfree_install_manager.cpp97 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in StartFreeInstall() local
98 CHECK_POINTER_AND_RETURN(bundleMgrHelper, GET_ABILITY_SERVICE_FAILED); in StartFreeInstall()
109 if (IN_PROCESS_CALL(bundleMgrHelper->QueryAbilityInfo(info.want, flag, info.userId, abilityInfo, callback))) { in StartFreeInstall()
441 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in UpdateElementName() local
442 CHECK_POINTER_AND_RETURN(bundleMgrHelper, ERR_INVALID_VALUE); in UpdateElementName()
444 auto errCode = IN_PROCESS_CALL(bundleMgrHelper->GetLaunchWantForBundle(want.GetBundle(), launchWant, userId)); in UpdateElementName()
483 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in ConnectFreeInstall() local
484 CHECK_POINTER_AND_RETURN(bundleMgrHelper, GET_ABILITY_SERVICE_FAILED); in ConnectFreeInstall()
501 auto res = IN_PROCESS_CALL(bundleMgrHelper->GetNameForUid(callerUid, localBundleName)); in ConnectFreeInstall()
510 if (!IN_PROCESS_CALL(bundleMgrHelper in ConnectFreeInstall()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilityapppreloader_fuzzer/
H A Dabilityapppreloader_fuzzer.cpp57 auto bundleMgrHelper = std::make_shared<AppExecFwk::BundleMgrHelper>(); in DoSomethingInterestingWithMyAPI() local
58 remoteClientManager->SetBundleManagerHelper(bundleMgrHelper); in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_runtime/test/unittest/exit_resident_process_manager_test/
H A Dexit_resident_process_manager_test.cpp141 auto bundleMgrHelper = remoteClientManager->GetBundleManagerHelper(); in HWTEST_F() local
144 EXPECT_NE(bundleMgrHelper, nullptr); in HWTEST_F()
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrjumpinterceptor_fuzzer/
H A Dabilitymgrjumpinterceptor_fuzzer.cpp80 std::shared_ptr<AppExecFwk::BundleMgrHelper> bundleMgrHelper = std::make_shared<AppExecFwk::BundleMgrHelper>(); in DoSomethingInterestingWithMyAPI() local
82 interceptor->CheckControl(bundleMgrHelper, want, userId, controlRule); in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_runtime/services/appmgr/include/
H A Dremote_client_manager.h58 void SetBundleManagerHelper(const std::shared_ptr<BundleMgrHelper> &bundleMgrHelper);
/foundation/ability/ability_runtime/test/unittest/ability_interceptor_test/
H A Dability_interceptor_test.cpp226 auto bundleMgrHelper = AbilityUtil::GetBundleManagerHelper(); in HWTEST_F() local
599 std::shared_ptr<AppExecFwk::BundleMgrHelper> bundleMgrHelper = std::make_shared<AppExecFwk::BundleMgrHelper>(); in HWTEST_F() local
603 bool result = interceptor->CheckControl(bundleMgrHelper, want, userId, controlRule); in HWTEST_F()
616 std::shared_ptr<AppExecFwk::BundleMgrHelper> bundleMgrHelper = std::make_shared<AppExecFwk::BundleMgrHelper>(); in HWTEST_F() local
621 bool result = interceptor->CheckControl(bundleMgrHelper, want, userId, controlRule); in HWTEST_F()
634 std::shared_ptr<AppExecFwk::BundleMgrHelper> bundleMgrHelper = std::make_shared<AppExecFwk::BundleMgrHelper>(); in HWTEST_F() local
641 bool result = interceptor->CheckControl(bundleMgrHelper, want, userId, controlRule); in HWTEST_F()
654 std::shared_ptr<AppExecFwk::BundleMgrHelper> bundleMgrHelper = std::make_shared<AppExecFwk::BundleMgrHelper>(); in HWTEST_F() local
661 bool result = interceptor->CheckControl(bundleMgrHelper, want, userId, controlRule); in HWTEST_F()

Completed in 19 milliseconds

12