Home
last modified time | relevance | path

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

/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dbg_transient_task_mgr_test.cpp96 ret = DelayedSingleton<BgTransientTaskMgr>::GetInstance()->UnsubscribeBackgroundTask(subscriber->GetImpl()); in HWTEST_F()
109 auto ret = DelayedSingleton<BgTransientTaskMgr>::GetInstance()->UnsubscribeBackgroundTask(subscriber->GetImpl()); in HWTEST_F()
121 auto ret = DelayedSingleton<BgTransientTaskMgr>::GetInstance()->UnsubscribeBackgroundTask(nullptr); in HWTEST_F()
H A Dbgtask_manager_unit_test.cpp371 * @tc.desc: test UnsubscribeBackgroundTask.
377 EXPECT_EQ(bgTransientTaskMgr_->UnsubscribeBackgroundTask(nullptr), ERR_BGTASK_INVALID_PARAM); in HWTEST_F()
381 EXPECT_EQ(bgTransientTaskMgr_->UnsubscribeBackgroundTask(subscirberProxy1), ERR_BGTASK_INVALID_PARAM); in HWTEST_F()
384 EXPECT_EQ(bgTransientTaskMgr_->UnsubscribeBackgroundTask(subscirberProxy2), ERR_OK); in HWTEST_F()
387 EXPECT_EQ(bgTransientTaskMgr_->UnsubscribeBackgroundTask(subscirberProxy2), ERR_OK); in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/src/
H A Dbackground_task_mgr_helper.cpp54 ErrCode BackgroundTaskMgrHelper::UnsubscribeBackgroundTask(const BackgroundTaskSubscriber &subscriber) in UnsubscribeBackgroundTask() function in OHOS::BackgroundTaskMgr::BackgroundTaskMgrHelper
56 return DelayedSingleton<BackgroundTaskManager>::GetInstance()->UnsubscribeBackgroundTask(subscriber); in UnsubscribeBackgroundTask()
/foundation/resourceschedule/background_task_mgr/frameworks/test/unittest/
H A Dbgtask_framework_abnormal_unit_test.cpp287 EXPECT_EQ(backgroundTaskMgrProxy.UnsubscribeBackgroundTask(nullptr), ERR_BGTASK_PARCELABLE_FAILED); in HWTEST_F()
293 EXPECT_EQ(backgroundTaskMgrProxy.UnsubscribeBackgroundTask(subscribe), ERR_BGTASK_PARCELABLE_FAILED); in HWTEST_F()
297 EXPECT_EQ(backgroundTaskMgrProxy.UnsubscribeBackgroundTask(subscribe), ERR_BGTASK_PARCELABLE_FAILED); in HWTEST_F()
301 EXPECT_EQ(backgroundTaskMgrProxy.UnsubscribeBackgroundTask(subscribe), ERR_BGTASK_TRANSACT_FAILED); in HWTEST_F()
305 EXPECT_EQ(backgroundTaskMgrProxy.UnsubscribeBackgroundTask(subscribe), ERR_BGTASK_TRANSACT_FAILED); in HWTEST_F()
H A Dbgtask_framework_unit_test.cpp222 EXPECT_EQ(DelayedSingleton<BackgroundTaskManager>::GetInstance()->UnsubscribeBackgroundTask(taskSubscriber), in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/include/
H A Dbackground_task_mgr_helper.h75 static ErrCode UnsubscribeBackgroundTask(const BackgroundTaskSubscriber &subscriber);
/foundation/resourceschedule/background_task_mgr/services/test/unittest/bgtask_manager_abnormal_unit_test/
H A Dbgtask_manager_abnormal_unit_test.cpp76 EXPECT_EQ(BackgroundTaskMgrService_->UnsubscribeBackgroundTask(nullptr), ERR_BGTASK_PERMISSION_DENIED); in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/frameworks/include/
H A Dbackground_task_manager.h116 ErrCode UnsubscribeBackgroundTask(const BackgroundTaskSubscriber &subscriber);
H A Dibackground_task_mgr.h118 virtual ErrCode UnsubscribeBackgroundTask(const sptr<IBackgroundTaskSubscriber> &subscriber) = 0;
H A Dbackground_task_mgr_proxy.h110 ErrCode UnsubscribeBackgroundTask(const sptr<IBackgroundTaskSubscriber>& subscriber) override;
/foundation/resourceschedule/device_standby/plugins/message_listener/src/
H A Dbackground_task_listener.cpp47 if (BackgroundTaskMgrHelper::UnsubscribeBackgroundTask(*bgTaskListenerImpl_) != OHOS::ERR_OK) { in StopListener()
48 STANDBYSERVICE_LOGE("UnsubscribeBackgroundTask failed"); in StopListener()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/include/
H A Dsched_controller.h52 void UnsubscribeBackgroundTask();
/foundation/resourceschedule/background_task_mgr/services/core/include/
H A Dbackground_task_mgr_service.h72 ErrCode UnsubscribeBackgroundTask(const sptr<IBackgroundTaskSubscriber>& subscriber) override;
/foundation/resourceschedule/background_task_mgr/frameworks/src/
H A Dbackground_task_manager.cpp147 ErrCode BackgroundTaskManager::UnsubscribeBackgroundTask(const BackgroundTaskSubscriber &subscriber) in UnsubscribeBackgroundTask() function in OHOS::BackgroundTaskMgr::BackgroundTaskManager
157 return proxy_->UnsubscribeBackgroundTask(subscriberSptr); in UnsubscribeBackgroundTask()
H A Dbackground_task_mgr_stub.cpp312 ErrCode result = UnsubscribeBackgroundTask(iface_cast<IBackgroundTaskSubscriber>(subscriber)); in HandleUnsubscribeBackgroundTask()
H A Dbackground_task_mgr_proxy.cpp310 ErrCode BackgroundTaskMgrProxy::UnsubscribeBackgroundTask(const sptr<IBackgroundTaskSubscriber>& subscriber) in UnsubscribeBackgroundTask() function in OHOS::BackgroundTaskMgr::BackgroundTaskMgrProxy
313 BGTASK_LOGE("UnsubscribeBackgroundTask subscriber is null"); in UnsubscribeBackgroundTask()
321 BGTASK_LOGE("UnsubscribeBackgroundTask write descriptor failed"); in UnsubscribeBackgroundTask()
325 BGTASK_LOGE("UnsubscribeBackgroundTask write subscriber failed"); in UnsubscribeBackgroundTask()
332 BGTASK_LOGE("UnsubscribeBackgroundTask fail: transact ErrCode=%{public}d", result); in UnsubscribeBackgroundTask()
336 BGTASK_LOGE("UnsubscribeBackgroundTask fail: read result failed."); in UnsubscribeBackgroundTask()
/foundation/resourceschedule/background_task_mgr/services/core/src/
H A Dbackground_task_mgr_service.cpp209 ErrCode BackgroundTaskMgrService::UnsubscribeBackgroundTask(const sptr<IBackgroundTaskSubscriber>& subscriber) in UnsubscribeBackgroundTask() function in OHOS::BackgroundTaskMgr::BackgroundTaskMgrService
212 BGTASK_LOGW("UnsubscribeBackgroundTask not allowed"); in UnsubscribeBackgroundTask()
215 if (DelayedSingleton<BgTransientTaskMgr>::GetInstance()->UnsubscribeBackgroundTask(subscriber) == ERR_OK in UnsubscribeBackgroundTask()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/
H A Dsched_controller.cpp104 UnsubscribeBackgroundTask(); in UnregisterStateObservers()
347 void SchedController::UnsubscribeBackgroundTask() in UnsubscribeBackgroundTask() function in OHOS::ResourceSchedule::SchedController
353 int32_t ret = BackgroundTaskMgrHelper::UnsubscribeBackgroundTask(*backgroundTaskObserver_); in UnsubscribeBackgroundTask()
H A Dcgroup_event_handler.cpp182 SchedController::GetInstance().UnsubscribeBackgroundTask(); in HandleAbilityRemoved()
/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/
H A Dmem_mgr_event_center.cpp273 BackgroundTaskMgr::BackgroundTaskMgrHelper::UnsubscribeBackgroundTask(*bgTaskObserver_); in UnregisterEventObserver()
/foundation/resourceschedule/background_task_mgr/services/transient_task/include/
H A Dbg_transient_task_mgr.h66 ErrCode UnsubscribeBackgroundTask(const sptr<IBackgroundTaskSubscriber>& subscriber);
/foundation/resourceschedule/background_task_mgr/interfaces/test/unittest/bgtask_manager_client_test/
H A Dbgtask_client_unit_test.cpp264 BackgroundTaskMgrHelper::UnsubscribeBackgroundTask(*subscriber_); in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/services/transient_task/src/
H A Dbg_transient_task_mgr.cpp575 ErrCode BgTransientTaskMgr::UnsubscribeBackgroundTask(const sptr<IBackgroundTaskSubscriber>& subscriber) in UnsubscribeBackgroundTask() function in OHOS::BackgroundTaskMgr::BgTransientTaskMgr
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_scheduler_service.cpp337 ErrCode ret = BackgroundTaskMgr::BackgroundTaskMgrHelper::UnsubscribeBackgroundTask(*subscriber_); in OnStop()
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dability_manager_service.cpp447 int ret = BackgroundTaskMgrHelper::UnsubscribeBackgroundTask(*bgtaskObserver_); in OnStop()

Completed in 43 milliseconds