Home
last modified time | relevance | path

Searched refs:bundleMgr (Results 1 - 25 of 55) sorted by relevance

123

/foundation/ability/ability_runtime/frameworks/native/appkit/ability_bundle_manager_helper/
H A Dbundle_mgr_helper.cpp44 auto bundleMgr = Connect(); in GetNameForUid() local
45 if (bundleMgr == nullptr) { in GetNameForUid()
51 return bundleMgr->GetNameForUid(uid, name); in GetNameForUid()
57 auto bundleMgr = Connect(); in GetNameAndIndexForUid() local
58 if (bundleMgr == nullptr) { in GetNameAndIndexForUid()
64 return bundleMgr->GetNameAndIndexForUid(uid, bundleName, appIndex); in GetNameAndIndexForUid()
71 auto bundleMgr = Connect(); in GetBundleInfo() local
72 if (bundleMgr == nullptr) { in GetBundleInfo()
78 return bundleMgr->GetBundleInfo(bundleName, flag, bundleInfo, userId); in GetBundleInfo()
119 auto bundleMgr in GetUninstalledBundleInfo() local
137 auto bundleMgr = Connect(); GetSandboxBundleInfo() local
155 auto bundleMgr = Connect(); GetSandboxAbilityInfo() local
176 auto bundleMgr = Connect(); GetSandboxExtAbilityInfos() local
194 auto bundleMgr = Connect(); GetSandboxHapModuleInfo() local
207 auto bundleMgr = Connect(); GetAppIdByBundleName() local
275 auto bundleMgr = Connect(); ConnectBundleInstaller() local
308 auto bundleMgr = Connect(); GetBundleInfo() local
321 auto bundleMgr = Connect(); GetHapModuleInfo() local
334 auto bundleMgr = Connect(); GetAbilityLabel() local
347 auto bundleMgr = Connect(); GetAppType() local
362 auto bundleMgr = Connect(); GetBaseSharedBundleInfos() local
375 auto bundleMgr = Connect(); GetBundleInfoForSelf() local
389 auto bundleMgr = Connect(); GetDependentBundleInfo() local
402 auto bundleMgr = Connect(); GetGroupDir() local
415 auto bundleMgr = Connect(); GetOverlayManagerProxy() local
428 auto bundleMgr = Connect(); QueryAbilityInfo() local
443 auto bundleMgr = Connect(); QueryAbilityInfo() local
458 auto bundleMgr = Connect(); GetBundleInfos() local
471 auto bundleMgr = Connect(); GetBundleInfos() local
484 auto bundleMgr = Connect(); GetQuickFixManagerProxy() local
497 auto bundleMgr = Connect(); ProcessPreload() local
512 auto bundleMgr = Connect(); GetAppControlProxy() local
526 auto bundleMgr = Connect(); QueryExtensionAbilityInfos() local
542 auto bundleMgr = Connect(); GetBundleInfoV9() local
556 auto bundleMgr = Connect(); GetApplicationInfo() local
570 auto bundleMgr = Connect(); GetApplicationInfo() local
588 auto bundleMgr = Connect(); GetApplicationInfoWithAppIndex() local
625 auto bundleMgr = Connect(); UnregisterBundleEventCallback() local
639 auto bundleMgr = Connect(); QueryExtensionAbilityInfoByUri() local
653 auto bundleMgr = Connect(); ImplicitQueryInfoByPriority() local
667 auto bundleMgr = Connect(); QueryAbilityInfoByUri() local
681 auto bundleMgr = Connect(); QueryAbilityInfo() local
696 auto bundleMgr = Connect(); UpgradeAtomicService() local
712 auto bundleMgr = Connect(); ImplicitQueryInfos() local
730 auto bundleMgr = Connect(); CleanBundleDataFiles() local
744 auto bundleMgr = Connect(); QueryDataGroupInfos() local
762 auto bundleMgr = Connect(); RegisterBundleEventCallback() local
775 auto bundleMgr = Connect(); GetHapModuleInfo() local
788 auto bundleMgr = Connect(); QueryAppGalleryBundleName() local
801 auto bundleMgr = Connect(); GetUidByBundleName() local
815 auto bundleMgr = Connect(); QueryExtensionAbilityInfosOnlyWithTypeName() local
828 auto bundleMgr = Connect(); GetDefaultAppProxy() local
842 auto bundleMgr = Connect(); GetJsonProfile() local
855 auto bundleMgr = Connect(); GetLaunchWantForBundle() local
870 auto bundleMgr = Connect(); QueryCloneAbilityInfo() local
884 auto bundleMgr = Connect(); GetCloneBundleInfo() local
898 auto bundleMgr = Connect(); QueryCloneExtensionAbilityInfoWithAppIndex() local
912 auto bundleMgr = Connect(); GetCloneAppIndexes() local
925 auto bundleMgr = Connect(); GetSignatureInfoByBundleName() local
[all...]
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_check_service_test/
H A Dbms_check_service_test.cpp77 sptr<IBundleMgr> bundleMgr = GetBundleMgr(); in HWTEST_F() local
78 if (!bundleMgr) { in HWTEST_F()
80 EXPECT_NE(bundleMgr, nullptr); in HWTEST_F()
92 sptr<IBundleMgr> bundleMgr = GetBundleMgr(); in HWTEST_F() local
93 if (!bundleMgr) { in HWTEST_F()
95 EXPECT_NE(bundleMgr, nullptr); in HWTEST_F()
99 bool getInfoResult = bundleMgr->GetBundleInfos(BundleFlag::GET_BUNDLE_DEFAULT, bundleInfos); in HWTEST_F()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/bundle/
H A Dbundle_manager_internal.cpp52 auto bundleMgr = GetBundleManager(); in GetCallerAppIdFromBms() local
53 if (bundleMgr == nullptr) { in GetCallerAppIdFromBms()
62 appId = bundleMgr->GetAppIdByBundleName(bundleName, activeAccountId); in GetCallerAppIdFromBms()
69 auto bundleMgr = GetBundleManager(); in GetSpecifyBundleNameFromBms() local
70 if (bundleMgr == nullptr) { in GetSpecifyBundleNameFromBms()
74 bool result = bundleMgr->GetBundleNameForUid(callingUid, bundleName); in GetSpecifyBundleNameFromBms()
84 auto bundleMgr = GetBundleManager(); in GetBundleNameListFromBms() local
85 if (bundleMgr == nullptr) { in GetBundleNameListFromBms()
89 bool result = bundleMgr->GetBundlesForUid(callingUid, bundleNameList); in GetBundleNameListFromBms()
118 auto bundleMgr in QueryAbilityInfo() local
140 auto bundleMgr = GetBundleManager(); QueryExtensionAbilityInfo() local
196 auto bundleMgr = GetBundleManager(); IsSameDeveloperId() local
260 auto bundleMgr = GetBundleManager(); GetContinueBundle4Src() local
284 sptr<AppExecFwk::IBundleMgr> bundleMgr = GetBundleManager(); GetAppProvisionInfo4CurrentUser() local
397 auto bundleMgr = GetBundleManager(); GetUidFromBms() local
479 auto bundleMgr = GetBundleManager(); GetApplicationInfoFromBms() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_free_install_test/
H A Dbms_bundle_free_install_test.cpp287 auto bundleMgr = GetBundleDataMgr(); in HWTEST_F() local
288 if (bundleMgr != nullptr) { in HWTEST_F()
290 ErrCode ret = bundleMgr->IsModuleRemovable("", "", isRemovable); in HWTEST_F()
307 auto bundleMgr = GetBundleDataMgr(); in HWTEST_F() local
308 if (bundleMgr != nullptr) { in HWTEST_F()
310 ErrCode ret = bundleMgr->IsModuleRemovable(BUNDLE_NAME_DEMO, MODULE_NAME_TEST, isRemovable); in HWTEST_F()
329 auto bundleMgr = GetBundleDataMgr(); in HWTEST_F() local
330 if (bundleMgr != nullptr) { in HWTEST_F()
332 ErrCode ret = bundleMgr->IsModuleRemovable(BUNDLE_NAME, MODULE_NAME_NOT_EXIST, isRemovable); in HWTEST_F()
351 auto bundleMgr in HWTEST_F() local
373 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
395 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
413 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
433 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
453 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
473 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
491 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
511 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
531 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
553 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
575 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
608 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
637 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
668 auto bundleMgr = GetBundleDataMgr(); HWTEST_F() local
1034 auto bundleMgr = GetBundleConnectAbilityMgr(); HWTEST_F() local
1063 auto bundleMgr = GetBundleConnectAbilityMgr(); HWTEST_F() local
1091 auto bundleMgr = GetBundleConnectAbilityMgr(); HWTEST_F() local
1124 auto bundleMgr = GetBundleConnectAbilityMgr(); HWTEST_F() local
1153 auto bundleMgr = GetBundleConnectAbilityMgr(); HWTEST_F() local
1179 auto bundleMgr = GetBundleConnectAbilityMgr(); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dapp_bar_helper_impl.cpp32 auto bundleMgr = iface_cast<AppExecFwk::IBundleMgr>(bundleObj); in QueryAppGalleryBundleName() local
33 CHECK_NULL_RETURN(bundleMgr, ""); in QueryAppGalleryBundleName()
36 auto result = bundleMgr->QueryAppGalleryBundleName(bundleName); in QueryAppGalleryBundleName()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/checkissystemappbyuid_fuzzer/
H A Dcheckissystemappbyuid_fuzzer.cpp53 auto bundleMgr = GetBundleMgr(); in DoSomethingInterestingWithMyAPI() local
54 if (bundleMgr == nullptr) { in DoSomethingInterestingWithMyAPI()
58 return bundleMgr->CheckIsSystemAppByUid(reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundleinfos_fuzzer/
H A Dgetbundleinfos_fuzzer.cpp53 auto bundleMgr = GetBundleMgr(); in DoSomethingInterestingWithMyAPI() local
54 if (bundleMgr == nullptr) { in DoSomethingInterestingWithMyAPI()
59 bundleMgr->GetBundleInfos(reinterpret_cast<uintptr_t>(data), bundleInfos); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifycallingpermission_fuzzer/
H A Dverifycallingpermission_fuzzer.cpp53 auto bundleMgr = GetBundleMgr(); in DoSomethingInterestingWithMyAPI() local
54 if (bundleMgr == nullptr) { in DoSomethingInterestingWithMyAPI()
59 bundleMgr->VerifyCallingPermission(info); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getapplicationinfos_fuzzer/
H A Dgetapplicationinfos_fuzzer.cpp53 auto bundleMgr = GetBundleMgr(); in DoSomethingInterestingWithMyAPI() local
54 if (bundleMgr == nullptr) { in DoSomethingInterestingWithMyAPI()
59 return bundleMgr->GetApplicationInfos( in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_runtime/test/unittest/quick_fix/mock/src/
H A Dmock_quick_fix_util.cpp58 auto bundleMgr = GetBundleManagerProxy(); in GetBundleQuickFixMgrProxy() local
59 if (bundleMgr == nullptr) { in GetBundleQuickFixMgrProxy()
64 auto bundleQuickFixMgr = bundleMgr->GetQuickFixManagerProxy(); in GetBundleQuickFixMgrProxy()
/foundation/ability/ability_runtime/test/moduletest/ui_extension_ability_test/ui_extension_info_module_test/
H A Dui_extension_info_module_test.cpp88 sptr<AppExecFwk::IBundleMgr> bundleMgr = iface_cast<AppExecFwk::IBundleMgr>(remoteObj); in SetUpTestCase() local
89 if (bundleMgr == nullptr) { in SetUpTestCase()
94 bundleMgr_ = bundleMgr; in SetUpTestCase()
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Ddefault_app.cpp70 auto bundleMgr = OHOS::iface_cast<IBundleMgr>(bundleMgrSa); in GetDefaultAppProxy() local
71 if (bundleMgr == nullptr) { in GetDefaultAppProxy()
75 auto defaultAppProxy = bundleMgr->GetDefaultAppProxy(); in GetDefaultAppProxy()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/bundlemgr_graphics/src/
H A Dbundle_graphics_client_impl.cpp46 auto bundleMgr = OHOS::iface_cast<IBundleMgr>(bundleMgrSa); in GetBundleMgr() local
47 if (bundleMgr == nullptr) { in GetBundleMgr()
50 bundleMgr_ = bundleMgr; in GetBundleMgr()
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/
H A Dtext_bundle_config_parser.cpp32 auto bundleMgr = GetSystemAbilityManager(); in IsMetaDataExistInEntryModule() local
33 if (bundleMgr == nullptr) { in IsMetaDataExistInEntryModule()
39 ErrCode errCode = bundleMgr->GetBundleInfoForSelf( in IsMetaDataExistInEntryModule()
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl_bundle_mgr_helper.cpp85 auto bundleMgr = Connect(); in GetBundleInfoForSelf() local
86 if (bundleMgr == nullptr) { in GetBundleInfoForSelf()
90 return bundleMgr->GetBundleInfoForSelf(static_cast<int32_t>(flags), bundleInfo); in GetBundleInfoForSelf()
/foundation/arkui/ace_engine/test/unittest/core/pattern/plugin/
H A Dplugin_pattern_test_ng.cpp362 auto* bundleMgr = static_cast<AppExecFwk::MOCKIBundleMgr*>(bms.GetRefPtr()); in HWTEST_F() local
364 EXPECT_CALL(*bundleMgr, GetBundleInfo(_, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, _, _)).WillOnce(Return(false)); in HWTEST_F()
368 EXPECT_CALL(*bundleMgr, GetBundleInfo(_, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, _, _)) in HWTEST_F()
383 EXPECT_CALL(*bundleMgr, GetBundleInfo(_, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, _, _)) in HWTEST_F()
396 EXPECT_CALL(*bundleMgr, GetBundleInfo(_, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, _, _)) in HWTEST_F()
437 auto* bundleMgr = static_cast<AppExecFwk::MOCKIBundleMgr*>(bms.GetRefPtr()); in HWTEST_F() local
439 EXPECT_CALL(*bundleMgr, GetBundleInfo(_, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, _, _)) in HWTEST_F()
446 EXPECT_CALL(*bundleMgr, GetBundleInfo(_, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, _, _)) in HWTEST_F()
461 EXPECT_CALL(*bundleMgr, GetBundleInfo(_, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, _, _)) in HWTEST_F()
463 EXPECT_CALL(*bundleMgr, QueryAbilityInf in HWTEST_F()
517 auto* bundleMgr = static_cast<AppExecFwk::MOCKIBundleMgr*>(bms.GetRefPtr()); HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/src/utils/
H A Dupdate_caller_info_util.cpp73 auto bundleMgr = AbilityUtil::GetBundleManagerHelper(); in UpdateCallerInfo() local
74 if (bundleMgr != nullptr) { in UpdateCallerInfo()
75 IN_PROCESS_CALL(bundleMgr->GetNameForUid(callerUid, bundleName)); in UpdateCallerInfo()
104 auto bundleMgr = AbilityUtil::GetBundleManagerHelper(); in UpdateSignatureInfo() local
105 if (bundleMgr != nullptr) { in UpdateSignatureInfo()
107 IN_PROCESS_CALL(bundleMgr->GetSignatureInfoByBundleName(bundleName, signatureInfo)); in UpdateSignatureInfo()
287 auto bundleMgr = AbilityUtil::GetBundleManagerHelper(); in UpdateDmsCallerInfo() local
288 if (bundleMgr != nullptr) { in UpdateDmsCallerInfo()
289 IN_PROCESS_CALL(bundleMgr->GetNameForUid(callerUid, bundleName)); in UpdateDmsCallerInfo()
/foundation/ability/ability_runtime/test/unittest/ams_mgr_kill_process_test/
H A Dams_mgr_kill_process_test.cpp68 auto bundleMgr = DelayedSingleton<BundleMgrHelper>::GetInstance(); in GetAppMgrServiceInner() local
69 appMgrServiceInner->remoteClientManager_->SetBundleManagerHelper(bundleMgr); in GetAppMgrServiceInner()
/foundation/multimedia/media_library/frameworks/utils/src/
H A Dpermission_utils.cpp77 auto bundleMgr = iface_cast<AppExecFwk::IBundleMgr>(bundleObj); in GetSysBundleManager() local
78 if (bundleMgr == nullptr) { in GetSysBundleManager()
82 bundleMgr_ = bundleMgr; in GetSysBundleManager()
124 auto bundleMgr = GetSysBundleManager(); in GetPackageNameFromCache() local
125 if (bundleMgr == nullptr) { in GetPackageNameFromCache()
130 int ret = bundleMgr->GetLaunchWantForBundle(bundleName, want, userId); in GetPackageNameFromCache()
137 packageName = bundleMgr->GetAbilityLabel(bundleName, abilityName); in GetPackageNameFromCache()
430 MEDIA_ERR_LOG("Can not get bundleMgr"); in CheckIsSystemAppByUid()
/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_status_service.cpp303 auto bundleMgr = DelayedSingleton<BundleMgrConnector>::GetInstance()->GetBundleMgrProxy(); in GetBundleStats() local
304 if (bundleMgr == nullptr) { in GetBundleStats()
319 bool res = bundleMgr->GetBundleStats(pkgName, userId, bundleStats, appIndex); in GetBundleStats()
344 auto bundleMgr = DelayedSingleton<BundleMgrConnector>::GetInstance()->GetBundleMgrProxy(); in GetAppSize() local
345 if (bundleMgr == nullptr) { in GetAppSize()
351 bool res = bundleMgr->GetAllBundleStats(userId, bundleStats); in GetAppSize()
H A Dstorage_monitor_service.cpp142 auto bundleMgr = DelayedSingleton<BundleMgrConnector>::GetInstance()->GetBundleMgrProxy(); in CheckAndCleanBundleCache() local
143 if (bundleMgr == nullptr) { in CheckAndCleanBundleCache()
148 auto ret = bundleMgr->CleanBundleCacheFilesAutomatic(lowThreshold * CONST_NUM_TWO); in CheckAndCleanBundleCache()
150 LOGE("Invoke bundleMgr interface to clean bundle cache files automatic failed."); in CheckAndCleanBundleCache()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/
H A Ddistributed_bm_storage.cpp92 auto bundleMgr = DmsBmStorage::GetInstance()->GetBundleMgr(); in SaveStorageDistributeInfo() local
93 if (bundleMgr == nullptr) { in SaveStorageDistributeInfo()
94 HILOGE("Get bundleMgr shared_ptr nullptr"); in SaveStorageDistributeInfo()
98 bool ret = bundleMgr->GetBundleInfo(bundleName, FLAGS, bundleInfo, AppExecFwk::Constants::ALL_USERID); in SaveStorageDistributeInfo()
115 result = bundleMgr->GetAppProvisionInfo(bundleName, account.GetLocalId(), appProvisionInfo); in SaveStorageDistributeInfo()
213 auto bundleMgr = DmsBmStorage::GetInstance()->GetBundleMgr(); in DeleteStorageDistributeInfo() local
214 if (bundleMgr == nullptr) { in DeleteStorageDistributeInfo()
215 HILOGE("Get bundleMgr shared_ptr nullptr"); in DeleteStorageDistributeInfo()
219 bool ret = bundleMgr->GetBundleInfo(bundleName, FLAGS, bundleInfo, AppExecFwk::Constants::ALL_USERID); in DeleteStorageDistributeInfo()
749 void DmsBmStorage::FindProvishionInfo(OHOS::sptr<OHOS::AppExecFwk::IBundleMgr> bundleMgr, in FindProvishionInfo() argument
766 auto bundleMgr = DmsBmStorage::GetInstance()->GetBundleMgr(); UpdateDistributedData() local
[all...]
/foundation/bundlemanager/distributed_bundle_framework/services/dbms/src/
H A Ddistributed_data_storage.cpp89 auto bundleMgr = DelayedSingleton<DistributedBms>::GetInstance()->GetBundleMgr(); in SaveStorageDistributeInfo() local
90 if (bundleMgr == nullptr) { in SaveStorageDistributeInfo()
91 APP_LOGE("Get bundleMgr shared_ptr nullptr"); in SaveStorageDistributeInfo()
95 bool ret = bundleMgr->GetBundleInfo(bundleName, FLAGS, bundleInfo, currentUserId); in SaveStorageDistributeInfo()
437 auto bundleMgr = DelayedSingleton<DistributedBms>::GetInstance()->GetBundleMgr(); in UpdateDistributedData() local
438 if (bundleMgr == nullptr) { in UpdateDistributedData()
439 APP_LOGE("Get bundleMgr shared_ptr nullptr"); in UpdateDistributedData()
443 if (!bundleMgr->GetBundleInfos(FLAGS, bundleInfos, userId)) { in UpdateDistributedData()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/package/
H A Dpackage.cpp87 auto bundleMgr = OHOS::iface_cast<IBundleMgr>(bundleMgrSa); in GetBundleMgr() local
88 if (bundleMgr == nullptr) { in GetBundleMgr()
91 return bundleMgr; in GetBundleMgr()
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessible_ability_connection.cpp217 auto bundleMgr = Singleton<AccessibleAbilityManagerService>::GetInstance().GetBundleMgrProxy(); in Connect() local
218 if (!bundleMgr) { in Connect()
221 HILOG_ERROR("get bundleMgr failed"); in Connect()
224 int uid = bundleMgr->GetUidByBundleName(bundleName, accountId_); in Connect()

Completed in 16 milliseconds

123