Home
last modified time | relevance | path

Searched refs:StandbyServiceClient (Results 1 - 9 of 9) sorted by relevance

/foundation/resourceschedule/device_standby/interfaces/innerkits/src/
H A Dstandby_service_client.cpp28 StandbyServiceClient::StandbyServiceClient() {} in StandbyServiceClient() function in OHOS::DevStandbyMgr::StandbyServiceClient
30 StandbyServiceClient::~StandbyServiceClient() {} in ~StandbyServiceClient()
32 StandbyServiceClient& StandbyServiceClient::GetInstance() in GetInstance()
34 static StandbyServiceClient StandbyServiceClient; in GetInstance() local
35 return StandbyServiceClient; in GetInstance()
38 ErrCode StandbyServiceClient
[all...]
/foundation/resourceschedule/device_standby/interfaces/innerkits/test/unittest/
H A Dstandby_client_unit_test.cpp53 EXPECT_NE(StandbyServiceClient::GetInstance().SubscribeStandbyCallback(nullSubscriber), ERR_OK); in HWTEST_F()
54 EXPECT_NE(StandbyServiceClient::GetInstance().SubscribeStandbyCallback(nullSubscriber), ERR_OK); in HWTEST_F()
55 StandbyServiceClient::GetInstance().UnsubscribeStandbyCallback(nullSubscriber); in HWTEST_F()
57 EXPECT_NE(StandbyServiceClient::GetInstance().SubscribeStandbyCallback(subscriber), ERR_OK); in HWTEST_F()
58 StandbyServiceClient::GetInstance().SubscribeStandbyCallback(subscriber); in HWTEST_F()
59 EXPECT_NE(StandbyServiceClient::GetInstance().UnsubscribeStandbyCallback(subscriber), ERR_OK); in HWTEST_F()
60 EXPECT_NE(StandbyServiceClient::GetInstance().UnsubscribeStandbyCallback(subscriber), ERR_OK); in HWTEST_F()
72 EXPECT_NE(StandbyServiceClient::GetInstance().ApplyAllowResource(nullRequest), ERR_OK); in HWTEST_F()
73 EXPECT_NE(StandbyServiceClient::GetInstance().UnapplyAllowResource(nullRequest), ERR_OK); in HWTEST_F()
76 EXPECT_NE(StandbyServiceClient in HWTEST_F()
[all...]
H A Dmock_standby_client_unit_test.cpp50 EXPECT_NE(StandbyServiceClient::GetInstance().SubscribeStandbyCallback(nullSubscriber), ERR_OK); in HWTEST_F()
51 EXPECT_NE(StandbyServiceClient::GetInstance().UnsubscribeStandbyCallback(nullSubscriber), ERR_OK); in HWTEST_F()
53 EXPECT_NE(StandbyServiceClient::GetInstance().ApplyAllowResource(nullRequest), ERR_OK); in HWTEST_F()
54 EXPECT_NE(StandbyServiceClient::GetInstance().UnapplyAllowResource(nullRequest), ERR_OK); in HWTEST_F()
57 EXPECT_NE(StandbyServiceClient::GetInstance().GetAllowList(AllowType::NETWORK, allowInfoList, 0), ERR_OK); in HWTEST_F()
58 EXPECT_NE(StandbyServiceClient::GetInstance().GetAllowList(0, allowInfoList, 0), ERR_OK); in HWTEST_F()
60 EXPECT_NE(StandbyServiceClient::GetInstance().IsDeviceInStandby(isStandby), ERR_OK); in HWTEST_F()
64 EXPECT_NE(StandbyServiceClient::GetInstance().SetNatInterval(type, enable, interval), ERR_OK); in HWTEST_F()
65 StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(false, -1, ""); in HWTEST_F()
67 StandbyServiceClient in HWTEST_F()
[all...]
/foundation/resourceschedule/device_standby/interfaces/innerkits/include/
H A Dstandby_service_client.h38 class StandbyServiceClient { class
40 StandbyServiceClient();
42 virtual ~StandbyServiceClient();
44 static StandbyServiceClient& GetInstance();
169 explicit StandbyServiceDeathRecipient(StandbyServiceClient& standbyServiceClient);
176 StandbyServiceClient& standbyServiceClient_;
/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/
H A Dstandby_napi_module.cpp81 asyncCallbackInfo->errCode = StandbyServiceClient::GetInstance(). in AddInStandbyExecuteCB()
144 asyncCallbackInfo->errCode = StandbyServiceClient::GetInstance().GetAllowList( in AddGetAllowListExecuteCB()
289 ErrCode errCode = StandbyServiceClient::GetInstance().ApplyAllowResource(resourceRequest); in ApplyAllowResource()
300 ErrCode errCode = StandbyServiceClient::GetInstance().UnapplyAllowResource(resourceRequest); in UnapplyAllowResource()
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_conn_manager.cpp174 DevStandbyMgr::StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(false, in StopWork()
222 DevStandbyMgr::StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(true, in WriteStartWorkEvent()
H A Dwork_scheduler_service.cpp333 DevStandbyMgr::StandbyServiceClient::GetInstance().UnsubscribeStandbyCallback(standbyStateObserver_); in OnStop()
1144 DevStandbyMgr::StandbyServiceClient::GetInstance().GetAllowList(DevStandbyMgr::AllowType::WORK_SCHEDULER, in CheckStandbyApplyInfo()
1221 ErrCode ret = DevStandbyMgr::StandbyServiceClient::GetInstance().SubscribeStandbyCallback(standbyStateObserver_); in RegisterStandbyStateObserver()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/device_standby_plugin/src/
H A Ddevice_standby_plugin.cpp76 DevStandbyMgr::StandbyServiceClient::GetInstance().HandleEvent( in DispatchResource()
/foundation/resourceschedule/work_scheduler/services/test/src/
H A Dworkschedulerservice_test.cpp51 ErrCode StandbyServiceClient::SubscribeStandbyCallback(const sptr<IStandbyServiceSubscriber>& subscriber) in SubscribeStandbyCallback()

Completed in 7 milliseconds