Home
last modified time | relevance | path

Searched refs:bundleManager (Results 1 – 8 of 8) sorted by relevance

/base/customization/enterprise_device_management/common/native/src/
Dbundle_manager_utils.cpp31 sptr<AppExecFwk::IBundleMgr> bundleManager = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in GetAppIdByCallingUid() local
32 if (bundleManager == nullptr) { in GetAppIdByCallingUid()
38 bundleManager->GetNameForUid(IPCSkeleton::GetCallingUid(), callingBundleName); in GetAppIdByCallingUid()
43 appId = bundleManager->GetAppIdByBundleName(callingBundleName, userId); in GetAppIdByCallingUid()
/base/notification/distributed_notification_service/services/ans/src/
Dpermission_filter.cpp38 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in OnPublish() local
39 if (bundleManager != nullptr) { in OnPublish()
40 enable = bundleManager->CheckApiCompatibility(record->bundleOption); in OnPublish()
Dadvanced_notification_service.cpp125 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in GetClientBundleName() local
126 if (bundleManager != nullptr) { in GetClientBundleName()
127 bundle = bundleManager->GetBundleNameByUid(callingUid); in GetClientBundleName()
237 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in PrepareNotificationRequest() local
239 if (bundleManager != nullptr) { in PrepareNotificationRequest()
240 …uid = bundleManager->GetDefaultUidByBundleName(request->GetOwnerBundleName(), request->GetOwnerUse… in PrepareNotificationRequest()
394 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in GenerateValidBundleOption() local
395 if (bundleManager != nullptr) { in GenerateValidBundleOption()
401 …int32_t uid = bundleManager->GetDefaultUidByBundleName(bundleOption->GetBundleName(), activeUserId… in GenerateValidBundleOption()
811 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in CancelAsBundle() local
[all …]
Dnotification_preferences.cpp687 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); in CheckApiCompatibility() local
688 if (bundleManager == nullptr) { in CheckApiCompatibility()
691 return bundleManager->CheckApiCompatibility(bundleOption); in CheckApiCompatibility()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dbundle_manager_helper_test.cpp50 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); variable
51 EXPECT_EQ(bundleManager->GetBundleNameByUid(callingUid), "bundleName");
62 std::shared_ptr<BundleManagerHelper> bundleManager = BundleManagerHelper::GetInstance(); variable
63 EXPECT_TRUE(bundleManager->IsSystemApp(callingUid));
Dadvanced_notification_service_test.cpp3239 std::shared_ptr<BundleManagerHelper> bundleManager = nullptr; variable
/base/customization/enterprise_device_management/services/edm/src/
Denterprise_device_mgr_ability.cpp347 auto bundleManager = GetBundleMgr(); in GetAllPermissionsByAdmin() local
351 …ret = bundleManager->GetBundleInfo(bundleInfoName, AppExecFwk::BundleFlag::GET_BUNDLE_WITH_REQUEST… in GetAllPermissionsByAdmin()
493 auto bundleManager = GetBundleMgr(); in EnableAdmin() local
494 if (!bundleManager) { in EnableAdmin()
500 …if (!bundleManager->QueryExtensionAbilityInfos(want, AppExecFwk::ExtensionAbilityType::ENTERPRISE_… in EnableAdmin()
667 auto bundleManager = GetBundleMgr(); in CheckCallingUid() local
669 if (bundleManager->GetNameForUid(uid, callingBundleName) != ERR_OK) { in CheckCallingUid()
/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_js/
DWallpaper.test.js19 import bundleManager from "@ohos.bundle.bundleManager"
83bundleManager.getBundleInfo(BUNDLE_NAME, bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT, (e) => {