Home
last modified time | relevance | path

Searched refs:BundleManagerHelper (Results 1 - 17 of 17) sorted by relevance

/foundation/resourceschedule/device_standby/services/core/include/
H A Dbundle_manager_helper.h39 class BundleManagerHelper { class
40 DECLARE_DELAYED_SINGLETON(BundleManagerHelper);
42 static std::shared_ptr<BundleManagerHelper> GetInstance();
50 BundleManagerHelper(const BundleManagerHelper&) = delete;
51 BundleManagerHelper& operator= (const BundleManagerHelper&) = delete;
52 BundleManagerHelper(BundleManagerHelper&&) = delete;
53 BundleManagerHelper
[all...]
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/
H A Dmock_bundle_manager_helper.cpp32 BundleManagerHelper::BundleManagerHelper() {} in BundleManagerHelper() function in OHOS::BackgroundTaskMgr::BundleManagerHelper
34 BundleManagerHelper::~BundleManagerHelper() {} in ~BundleManagerHelper()
46 bool BundleManagerHelper::GetApplicationInfo(const std::string &appName, const AppExecFwk::ApplicationFlag flag, in GetApplicationInfo()
58 std::string BundleManagerHelper::GetClientBundleName(int32_t uid) in GetClientBundleName()
63 bool BundleManagerHelper::CheckPermission(const std::string &permission) in CheckPermission()
68 bool BundleManagerHelper::IsSystemApp(uint64_t fullTokenId) in IsSystemApp()
76 bool BundleManagerHelper::GetBundleInfo(const std::string &bundleName, const AppExecFwk::BundleFlag flag, in GetBundleInfo()
96 bool BundleManagerHelper
[all...]
/foundation/resourceschedule/device_standby/services/core/src/
H A Dbundle_manager_helper.cpp26 BundleManagerHelper::BundleManagerHelper() in BundleManagerHelper() function in OHOS::DevStandbyMgr::BundleManagerHelper
30 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper()
34 std::shared_ptr<BundleManagerHelper> BundleManagerHelper::GetInstance() in GetInstance()
36 return DelayedSingleton<BundleManagerHelper>::GetInstance(); in GetInstance()
39 std::string WEAK_FUNC BundleManagerHelper::GetClientBundleName(int32_t uid) in GetClientBundleName()
51 bool WEAK_FUNC BundleManagerHelper::GetApplicationInfo(const std::string &appName, const in GetApplicationInfo()
65 bool WEAK_FUNC BundleManagerHelper
[all...]
H A Dstandby_service_impl.cpp484 auto bundleName = BundleManagerHelper::GetInstance()->GetClientBundleName(uid); in GetExemptedResourceType()
514 if (!BundleManagerHelper::GetInstance()->GetApplicationInfo(bundleName, in QueryRunningResourcesApply()
/foundation/resourceschedule/background_task_mgr/services/common/src/
H A Dbundle_manager_helper.cpp35 BundleManagerHelper::BundleManagerHelper() in BundleManagerHelper() function in OHOS::BackgroundTaskMgr::BundleManagerHelper
41 BundleManagerHelper::~BundleManagerHelper() in ~BundleManagerHelper()
47 std::string BundleManagerHelper::GetClientBundleName(int32_t uid) in GetClientBundleName()
59 bool BundleManagerHelper::CheckPermission(const std::string &permission) in CheckPermission()
70 bool BundleManagerHelper::IsSystemApp(uint64_t fullTokenId) in IsSystemApp()
75 bool BundleManagerHelper::GetBundleInfo(const std::string &bundleName, const AppExecFwk::BundleFlag flag, in GetBundleInfo()
88 bool WEAK_FUNC BundleManagerHelper::GetApplicationInfo(const std::string &appName, in GetApplicationInfo()
102 bool BundleManagerHelper
[all...]
/foundation/resourceschedule/device_standby/services/test/unittest/
H A Dstandby_helper_unit_test.cpp68 * @tc.desc: test BundleManagerHelper.
75 BundleManagerHelper::GetInstance()->GetClientBundleName(uid); in HWTEST_F()
77 BundleManagerHelper::GetInstance()->GetApplicationInfo("test", in HWTEST_F()
114 * @tc.desc: test BundleManagerHelper.
120 BundleManagerHelper::GetInstance()->bundleMgr_ = nullptr; in HWTEST_F()
122 BundleManagerHelper::GetInstance()->GetApplicationInfo("", AppExecFwk::ApplicationFlag::GET_BASIC_APPLICATION_INFO, in HWTEST_F()
126 BundleManagerHelper::GetInstance()->GetApplicationInfos(AppExecFwk::ApplicationFlag::GET_BASIC_APPLICATION_INFO, in HWTEST_F()
H A Dstandby_service_unit_test.cpp679 BundleManagerHelper::GetInstance()->GetClientBundleName(0); in HWTEST_F()
680 BundleManagerHelper::GetInstance()->bundleMgr_ = nullptr; in HWTEST_F()
681 BundleManagerHelper::GetInstance()->GetClientBundleName(0); in HWTEST_F()
683 BundleManagerHelper::GetInstance()->GetApplicationInfo(DEFAULT_BUNDLENAME, in HWTEST_F()
685 EXPECT_EQ(BundleManagerHelper::GetInstance()->bundleMgr_, nullptr); in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/services/common/include/
H A Dbundle_manager_helper.h30 class BundleManagerHelper : public DelayedSingleton<BundleManagerHelper> { class
52 DECLARE_DELAYED_SINGLETON(BundleManagerHelper)
/foundation/resourceschedule/device_standby/services/test/unittest/mock/
H A Dmock_standby_helper_unit_test.cpp58 * @tc.desc: test BundleManagerHelper.
65 BundleManagerHelper::GetInstance()->GetClientBundleName(uid); in HWTEST_F()
68 BundleManagerHelper::GetInstance()->GetApplicationInfo("", AppExecFwk::ApplicationFlag::GET_BASIC_APPLICATION_INFO, in HWTEST_F()
72 BundleManagerHelper::GetInstance()->GetApplicationInfos(AppExecFwk::ApplicationFlag::GET_BASIC_APPLICATION_INFO, in HWTEST_F()
H A Dmock_helper.cpp51 bool BundleManagerHelper::GetApplicationInfo(const std::string &appName, const AppExecFwk::ApplicationFlag flag, in GetApplicationInfo()
103 std::string BundleManagerHelper::GetClientBundleName(int32_t uid) in GetClientBundleName()
108 bool BundleManagerHelper::Connect() in Connect()
H A Dmock_connect.cpp32 bool BundleManagerHelper::Connect() in Connect()
/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dbgtask_misc_unit_test.cpp124 * @tc.desc: test BundleManagerHelper class.
130 EXPECT_EQ(BundleManagerHelper::GetInstance()->GetClientBundleName(1), ""); in HWTEST_F()
131 EXPECT_FALSE(BundleManagerHelper::GetInstance()->CheckPermission("permission")); in HWTEST_F()
132 EXPECT_FALSE(BundleManagerHelper::GetInstance()->IsSystemApp(1LLU)); in HWTEST_F()
134 EXPECT_FALSE(BundleManagerHelper::GetInstance()->GetBundleInfo("bundleName", in HWTEST_F()
137 EXPECT_FALSE(BundleManagerHelper::GetInstance()->GetApplicationInfo("bundleName", in HWTEST_F()
139 BundleManagerHelper::GetInstance()->OnRemoteDied(nullptr); in HWTEST_F()
140 BundleManagerHelper::GetInstance()->bundleMgr_ = nullptr; in HWTEST_F()
141 BundleManagerHelper::GetInstance()->OnRemoteDied(nullptr); in HWTEST_F()
147 BundleManagerHelper in HWTEST_F()
[all...]
/foundation/resourceschedule/device_standby/plugins/strategy/src/
H A Dbase_network_strategy.cpp159 if (!BundleManagerHelper::GetInstance()->GetApplicationInfos( in InitNetLimitedAppInfo()
165 if (!BundleManagerHelper::GetInstance()->GetApplicationInfos( in InitNetLimitedAppInfo()
409 bundleName = BundleManagerHelper::GetInstance()->GetClientBundleName(uid); in UpdateBgTaskAppStatus()
553 if (BundleManagerHelper::GetInstance()->CheckIsSystemAppByUid(uid, isSystemApp) && isSystemApp) { in GetAndCreateAppInfo()
H A Drunning_lock_strategy.cpp183 if (!BundleManagerHelper::GetInstance()->GetApplicationInfos( in GetAllAppInfos()
411 bundleName = BundleManagerHelper::GetInstance()->GetClientBundleName(uid); in UpdateBgTaskAppStatus()
505 if (BundleManagerHelper::GetInstance()->CheckIsSystemAppByUid(uid, isSystemApp) && isSystemApp) { in GetAndCreateAppInfo()
/foundation/resourceschedule/background_task_mgr/services/continuous_task/src/
H A Dbg_continuous_task_mgr.cpp392 if (!BundleManagerHelper::GetInstance()->GetBundleInfo(BG_TASK_RES_BUNDLE_NAME, in GetNotificationPrompt()
448 if (!BundleManagerHelper::GetInstance()->GetBundleInfo(bundleName, in SetCachedBundleInfo()
493 !BundleManagerHelper::GetInstance()->IsSystemApp(fullTokenId)) { in CheckBgmodeType()
593 std::string bundleName = BundleManagerHelper::GetInstance()->GetClientBundleName(uid); in StartBackgroundRunningForInner()
633 std::string bundleName = BundleManagerHelper::GetInstance()->GetClientBundleName(callingUid); in StartBackgroundRunning()
641 if (!BundleManagerHelper::GetInstance()->CheckPermission(BGMODE_PERMISSION)) { in StartBackgroundRunning()
654 continuousTaskRecord->isSystem_ = BundleManagerHelper::GetInstance()->IsSystemApp(fullTokenId); in StartBackgroundRunning()
681 if (!BundleManagerHelper::GetInstance()->CheckPermission(BGMODE_PERMISSION)) { in UpdateBackgroundRunning()
1521 if (!BundleManagerHelper::GetInstance()->GetBundleInfo(bundleName, in GetMainAbilityLabel()
1533 if (!BundleManagerHelper in GetMainAbilityLabel()
[all...]
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/src/
H A Dbg_efficiency_resources_mgr.cpp315 if (!BundleManagerHelper::GetInstance()->IsSystemApp(tokenId) && !IsServiceExtensionType(pid)) { in ApplyEfficiencyResources()
515 if (!BundleManagerHelper::GetInstance()->IsSystemApp(tokenId) && !IsServiceExtensionType(pid)) { in ResetAllEfficiencyResources()
574 bundleName = BundleManagerHelper::GetInstance()->GetClientBundleName(uid); in IsCallingInfoLegal()
805 if (!BundleManagerHelper::GetInstance()->GetApplicationInfo(bundleName, in QueryRunningResourcesApply()
/foundation/resourceschedule/background_task_mgr/services/core/src/
H A Dbackground_task_mgr_service.cpp185 if (!CheckCallingToken() && !BundleManagerHelper::GetInstance()->CheckPermission(BGMODE_PERMISSION)) { in GetContinuousTaskApps()

Completed in 15 milliseconds