/foundation/resourceschedule/background_task_mgr/services/test/unittest/ |
H A D | bg_efficiency_resources_mgr_test.cpp | 92 * @tc.desc: apply efficiency resources using ApplyEfficiencyResources function. 98 EXPECT_EQ((int32_t)bgEfficiencyResourcesMgr_->ApplyEfficiencyResources( in HWTEST_F() 104 EXPECT_EQ((int32_t)bgEfficiencyResourcesMgr_->ApplyEfficiencyResources( in HWTEST_F() 107 EXPECT_EQ((int32_t)bgEfficiencyResourcesMgr_->ApplyEfficiencyResources( in HWTEST_F() 112 EXPECT_EQ((int32_t)bgEfficiencyResourcesMgr_->ApplyEfficiencyResources( in HWTEST_F() 117 EXPECT_EQ((int32_t)bgEfficiencyResourcesMgr_->ApplyEfficiencyResources( in HWTEST_F() 120 EXPECT_EQ((int32_t)bgEfficiencyResourcesMgr_->ApplyEfficiencyResources( in HWTEST_F() 123 EXPECT_EQ((int32_t)bgEfficiencyResourcesMgr_->ApplyEfficiencyResources( in HWTEST_F() 130 * @tc.desc: apply and reset resources for process and app respectively using ApplyEfficiencyResources function. 138 EXPECT_EQ((int32_t)bgEfficiencyResourcesMgr_->ApplyEfficiencyResources( in HWTEST_F() [all...] |
/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/include/ |
H A D | efficiency_resources_operation.h | 25 napi_value ApplyEfficiencyResources(napi_env env, napi_callback_info info);
|
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/src/ |
H A D | background_task_mgr_helper.cpp | 85 ErrCode BackgroundTaskMgrHelper::ApplyEfficiencyResources(const EfficiencyResourceInfo &resourceInfo) in ApplyEfficiencyResources() function in OHOS::BackgroundTaskMgr::BackgroundTaskMgrHelper 87 return DelayedSingleton<BackgroundTaskManager>::GetInstance()->ApplyEfficiencyResources(resourceInfo); in ApplyEfficiencyResources()
|
/foundation/resourceschedule/background_task_mgr/frameworks/test/unittest/ |
H A D | bgtask_framework_abnormal_unit_test.cpp | 399 EXPECT_EQ(backgroundTaskMgrProxy.ApplyEfficiencyResources(nullptr), ERR_BGTASK_INVALID_PARAM); in HWTEST_F() 404 EXPECT_EQ(backgroundTaskMgrProxy.ApplyEfficiencyResources(resourceInfo), ERR_BGTASK_PARCELABLE_FAILED); in HWTEST_F() 408 EXPECT_EQ(backgroundTaskMgrProxy.ApplyEfficiencyResources(resourceInfo), ERR_BGTASK_PARCELABLE_FAILED); in HWTEST_F() 412 EXPECT_EQ(backgroundTaskMgrProxy.ApplyEfficiencyResources(resourceInfo), ERR_BGTASK_TRANSACT_FAILED); in HWTEST_F() 416 EXPECT_EQ(backgroundTaskMgrProxy.ApplyEfficiencyResources(resourceInfo), ERR_BGTASK_TRANSACT_FAILED); in HWTEST_F()
|
H A D | bgtask_framework_unit_test.cpp | 269 * @tc.desc: test ApplyEfficiencyResources. 279 EXPECT_EQ(DelayedSingleton<BackgroundTaskManager>::GetInstance()->ApplyEfficiencyResources( in HWTEST_F() 283 EXPECT_NE(DelayedSingleton<BackgroundTaskManager>::GetInstance()->ApplyEfficiencyResources( in HWTEST_F()
|
/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/ |
H A D | efficiency_resources_operation.cpp | 150 napi_value ApplyEfficiencyResources(napi_env env, napi_callback_info info) in ApplyEfficiencyResources() function 156 ErrCode errCode = DelayedSingleton<BackgroundTaskManager>::GetInstance()->ApplyEfficiencyResources(params); in ApplyEfficiencyResources()
|
H A D | init_bgtaskmgr.cpp | 41 DECLARE_NAPI_FUNCTION("applyEfficiencyResources", ApplyEfficiencyResources), in BackgroundTaskMgrInit()
|
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/include/ |
H A D | background_task_mgr_helper.h | 120 static ErrCode ApplyEfficiencyResources(const EfficiencyResourceInfo &resourceInfo);
|
/foundation/resourceschedule/background_task_mgr/frameworks/include/ |
H A D | background_task_manager.h | 152 ErrCode ApplyEfficiencyResources(const EfficiencyResourceInfo &resourceInfo);
|
H A D | ibackground_task_mgr.h | 154 virtual ErrCode ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo) = 0;
|
H A D | background_task_mgr_proxy.h | 146 ErrCode ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo) override;
|
/foundation/resourceschedule/background_task_mgr/interfaces/kits/cj/background_task_mgr/ |
H A D | background_task_mgr_ffi.cpp | 89 return DelayedSingleton<BackgroundTaskManager>::GetInstance()->ApplyEfficiencyResources(params); in CJ_ApplyEfficiencyResources()
|
/foundation/resourceschedule/background_task_mgr/services/core/include/ |
H A D | background_task_mgr_service.h | 77 ErrCode ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo) override;
|
/foundation/resourceschedule/background_task_mgr/frameworks/src/ |
H A D | background_task_manager.cpp | 184 ErrCode BackgroundTaskManager::ApplyEfficiencyResources(const EfficiencyResourceInfo &resourceInfo) in ApplyEfficiencyResources() function in OHOS::BackgroundTaskMgr::BackgroundTaskManager 194 return proxy_->ApplyEfficiencyResources(resourceInfoPtr); in ApplyEfficiencyResources()
|
H A D | background_task_mgr_stub.cpp | 388 ErrCode result = ApplyEfficiencyResources(resourceInfoPtr); in HandleApplyEfficiencyResources()
|
H A D | background_task_mgr_proxy.cpp | 534 ErrCode BackgroundTaskMgrProxy::ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo) in ApplyEfficiencyResources() function in OHOS::BackgroundTaskMgr::BackgroundTaskMgrProxy 544 BGTASK_LOGE("ApplyEfficiencyResources write descriptor failed"); in ApplyEfficiencyResources() 555 BGTASK_LOGE("ApplyEfficiencyResources fail: transact ErrCode=%{public}d", result); in ApplyEfficiencyResources() 559 BGTASK_LOGE("ApplyEfficiencyResources fail: read result failed."); in ApplyEfficiencyResources()
|
/foundation/resourceschedule/background_task_mgr/services/core/src/ |
H A D | background_task_mgr_service.cpp | 238 ErrCode BackgroundTaskMgrService::ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo) in ApplyEfficiencyResources() function in OHOS::BackgroundTaskMgr::BackgroundTaskMgrService 240 return DelayedSingleton<BgEfficiencyResourcesMgr>::GetInstance()->ApplyEfficiencyResources(resourceInfo); in ApplyEfficiencyResources()
|
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/include/ |
H A D | bg_efficiency_resources_mgr.h | 53 ErrCode ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo);
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_subscriber.cpp | 497 BackgroundTaskMgr::BackgroundTaskMgrHelper::ApplyEfficiencyResources(resourceInfo); in DoBackgroundOperation()
|
H A D | medialibrary_data_manager.cpp | 398 BackgroundTaskMgr::BackgroundTaskMgrHelper::ApplyEfficiencyResources(resourceInfo); in InitResourceInfo()
|
/foundation/resourceschedule/background_task_mgr/interfaces/test/unittest/bgtask_manager_client_test/ |
H A D | bgtask_client_unit_test.cpp | 333 * @tc.desc: test ApplyEfficiencyResources interface. 340 EXPECT_NE(BackgroundTaskMgrHelper::ApplyEfficiencyResources(resourceInfo), ERR_OK); in HWTEST_F()
|
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/src/ |
H A D | bg_efficiency_resources_mgr.cpp | 274 BGTASK_LOGE("ApplyEfficiencyResources connect to app mgr service failed");
in IsServiceExtensionType() 292 ErrCode BgEfficiencyResourcesMgr::ApplyEfficiencyResources(
in ApplyEfficiencyResources() function in OHOS::BackgroundTaskMgr::BgEfficiencyResourcesMgr 295 HitraceScoped traceScoped(HITRACE_TAG_OHOS, "BgEfficiencyResourcesMgr::ApplyEfficiencyResources");
in ApplyEfficiencyResources()
|