Searched refs:StandbyServiceClient (Results 1 - 9 of 9) sorted by relevance
/foundation/resourceschedule/device_standby/interfaces/innerkits/src/ |
H A D | standby_service_client.cpp | 28 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 D | standby_client_unit_test.cpp | 53 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 D | mock_standby_client_unit_test.cpp | 50 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 D | standby_service_client.h | 38 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 D | standby_napi_module.cpp | 81 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 D | work_conn_manager.cpp | 174 DevStandbyMgr::StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(false, in StopWork() 222 DevStandbyMgr::StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(true, in WriteStartWorkEvent()
|
H A D | work_scheduler_service.cpp | 333 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 D | device_standby_plugin.cpp | 76 DevStandbyMgr::StandbyServiceClient::GetInstance().HandleEvent( in DispatchResource()
|
/foundation/resourceschedule/work_scheduler/services/test/src/ |
H A D | workschedulerservice_test.cpp | 51 ErrCode StandbyServiceClient::SubscribeStandbyCallback(const sptr<IStandbyServiceSubscriber>& subscriber)
in SubscribeStandbyCallback()
|
Completed in 7 milliseconds