Home
last modified time | relevance | path

Searched refs:ApplyEfficiencyResources (Results 1 - 22 of 22) sorted by relevance

/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dbg_efficiency_resources_mgr_test.cpp92 * @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 Defficiency_resources_operation.h25 napi_value ApplyEfficiencyResources(napi_env env, napi_callback_info info);
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/src/
H A Dbackground_task_mgr_helper.cpp85 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 Dbgtask_framework_abnormal_unit_test.cpp399 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 Dbgtask_framework_unit_test.cpp269 * @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 Defficiency_resources_operation.cpp150 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 Dinit_bgtaskmgr.cpp41 DECLARE_NAPI_FUNCTION("applyEfficiencyResources", ApplyEfficiencyResources), in BackgroundTaskMgrInit()
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/include/
H A Dbackground_task_mgr_helper.h120 static ErrCode ApplyEfficiencyResources(const EfficiencyResourceInfo &resourceInfo);
/foundation/resourceschedule/background_task_mgr/frameworks/include/
H A Dbackground_task_manager.h152 ErrCode ApplyEfficiencyResources(const EfficiencyResourceInfo &resourceInfo);
H A Dibackground_task_mgr.h154 virtual ErrCode ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo) = 0;
H A Dbackground_task_mgr_proxy.h146 ErrCode ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo) override;
/foundation/resourceschedule/background_task_mgr/interfaces/kits/cj/background_task_mgr/
H A Dbackground_task_mgr_ffi.cpp89 return DelayedSingleton<BackgroundTaskManager>::GetInstance()->ApplyEfficiencyResources(params); in CJ_ApplyEfficiencyResources()
/foundation/resourceschedule/background_task_mgr/services/core/include/
H A Dbackground_task_mgr_service.h77 ErrCode ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo) override;
/foundation/resourceschedule/background_task_mgr/frameworks/src/
H A Dbackground_task_manager.cpp184 ErrCode BackgroundTaskManager::ApplyEfficiencyResources(const EfficiencyResourceInfo &resourceInfo) in ApplyEfficiencyResources() function in OHOS::BackgroundTaskMgr::BackgroundTaskManager
194 return proxy_->ApplyEfficiencyResources(resourceInfoPtr); in ApplyEfficiencyResources()
H A Dbackground_task_mgr_stub.cpp388 ErrCode result = ApplyEfficiencyResources(resourceInfoPtr); in HandleApplyEfficiencyResources()
H A Dbackground_task_mgr_proxy.cpp534 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 Dbackground_task_mgr_service.cpp238 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 Dbg_efficiency_resources_mgr.h53 ErrCode ApplyEfficiencyResources(const sptr<EfficiencyResourceInfo> &resourceInfo);
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_subscriber.cpp497 BackgroundTaskMgr::BackgroundTaskMgrHelper::ApplyEfficiencyResources(resourceInfo); in DoBackgroundOperation()
H A Dmedialibrary_data_manager.cpp398 BackgroundTaskMgr::BackgroundTaskMgrHelper::ApplyEfficiencyResources(resourceInfo); in InitResourceInfo()
/foundation/resourceschedule/background_task_mgr/interfaces/test/unittest/bgtask_manager_client_test/
H A Dbgtask_client_unit_test.cpp333 * @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 Dbg_efficiency_resources_mgr.cpp274 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()

Completed in 16 milliseconds