Home
last modified time | relevance | path

Searched refs:StandbyServiceClient (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/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()
109 ErrCode StandbyServiceClient::IsDeviceInStandby(bool& isStandby) in IsDeviceInStandby()
129 ErrCode StandbyServiceClient::HandleEvent(const std::shared_ptr<ResData> &resData) in HandleEvent()
199 bool StandbyServiceClient::GetStandbyServiceProxy() in GetStandbyServiceProxy()
233 void StandbyServiceClient::ResetStandbyServiceClient() in ResetStandbyServiceClient()
242 StandbyServiceClient::StandbyServiceDeathRecipient::StandbyServiceDeathRecipient( in StandbyServiceDeathRecipient()
[all …]
/ohos5.0/foundation/resourceschedule/device_standby/interfaces/innerkits/test/unittest/
H A Dstandby_client_unit_test.cpp55 StandbyServiceClient::GetInstance().UnsubscribeStandbyCallback(nullSubscriber);
58 StandbyServiceClient::GetInstance().SubscribeStandbyCallback(subscriber);
72 EXPECT_NE(StandbyServiceClient::GetInstance().ApplyAllowResource(nullRequest), ERR_OK);
73 EXPECT_NE(StandbyServiceClient::GetInstance().UnapplyAllowResource(nullRequest), ERR_OK);
99 StandbyServiceClient::GetInstance().GetAllowList((1 << 6), allowInfoList, 0);
111 EXPECT_EQ(StandbyServiceClient::GetInstance().IsDeviceInStandby(isStandby), ERR_OK);
138 StandbyServiceClient::GetInstance().ResetStandbyServiceClient();
139 StandbyServiceClient::GetInstance().ResetStandbyServiceClient();
140 StandbyServiceClient::GetInstance().GetStandbyServiceProxy();
141 StandbyServiceClient::GetInstance().ResetStandbyServiceClient();
[all …]
H A Dmock_standby_client_unit_test.cpp50 EXPECT_NE(StandbyServiceClient::GetInstance().SubscribeStandbyCallback(nullSubscriber), ERR_OK);
51 … EXPECT_NE(StandbyServiceClient::GetInstance().UnsubscribeStandbyCallback(nullSubscriber), ERR_OK);
53 EXPECT_NE(StandbyServiceClient::GetInstance().ApplyAllowResource(nullRequest), ERR_OK);
54 EXPECT_NE(StandbyServiceClient::GetInstance().UnapplyAllowResource(nullRequest), ERR_OK);
58 EXPECT_NE(StandbyServiceClient::GetInstance().GetAllowList(0, allowInfoList, 0), ERR_OK);
60 EXPECT_NE(StandbyServiceClient::GetInstance().IsDeviceInStandby(isStandby), ERR_OK);
64 EXPECT_NE(StandbyServiceClient::GetInstance().SetNatInterval(type, enable, interval), ERR_OK);
65 StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(false, -1, "");
67 StandbyServiceClient::GetInstance().IsDeviceInStandby(isStandby);
68 StandbyServiceClient::GetInstance().SetNatInterval(type, enable, interval);
[all …]
/ohos5.0/foundation/resourceschedule/device_standby/interfaces/innerkits/include/
H A Dstandby_service_client.h38 class StandbyServiceClient {
40 StandbyServiceClient();
42 virtual ~StandbyServiceClient();
44 static StandbyServiceClient& GetInstance();
169 explicit StandbyServiceDeathRecipient(StandbyServiceClient& standbyServiceClient);
176 StandbyServiceClient& standbyServiceClient_;
/ohos5.0/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()
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_conn_manager.cpp175 DevStandbyMgr::StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(false, in StopWork()
223 DevStandbyMgr::StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(true, in WriteStartWorkEvent()
H A Dwork_scheduler_service.cpp394 …DevStandbyMgr::StandbyServiceClient::GetInstance().UnsubscribeStandbyCallback(standbyStateObserver… in OnStop()
1215 …auto res = DevStandbyMgr::StandbyServiceClient::GetInstance().GetAllowList(DevStandbyMgr::AllowTyp… in InitDeviceStandyWhitelist()
1299 …ErrCode ret = DevStandbyMgr::StandbyServiceClient::GetInstance().SubscribeStandbyCallback(standbyS… in RegisterStandbyStateObserver()
/ohos5.0/foundation/resourceschedule/device_standby/interfaces/innerkits/
H A Dlibstandby_innerkits.versionscript24 *StandbyServiceClient*;
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/plugins/device_standby_plugin/src/
H A Ddevice_standby_plugin.cpp74 DevStandbyMgr::StandbyServiceClient::GetInstance().HandleEvent( in DispatchResource()
/ohos5.0/base/location/services/location_locator/locator/source/
H A Drequest_manager.cpp507 …DevStandbyMgr::StandbyServiceClient& standbyServiceClient = DevStandbyMgr::StandbyServiceClient::G… in IsStandby()
/ohos5.0/base/time/time_service/services/timer/src/
H A Dtimer_manager.cpp1103 …DevStandbyMgr::StandbyServiceClient::GetInstance().GetRestrictList(DevStandbyMgr::AllowType::TIMER, in CheckAllowWhileIdle()
1119 …DevStandbyMgr::StandbyServiceClient::GetInstance().GetRestrictList(DevStandbyMgr::AllowType::TIMER, in CheckAllowWhileIdle()
/ohos5.0/base/powermgr/power_manager/services/native/src/
H A Dpower_mgr_service.cpp1602 …DevStandbyMgr::StandbyServiceClient& standbyServiceClient = DevStandbyMgr::StandbyServiceClient::G… in IsStandby()
/ohos5.0/foundation/resourceschedule/work_scheduler/services/test/src/
H A Dworkschedulerservice_test.cpp51 ErrCode StandbyServiceClient::SubscribeStandbyCallback(const sptr<IStandbyServiceSubscriber>& subsc… in SubscribeStandbyCallback()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_data_manager.cpp2093 DevStandbyMgr::StandbyServiceClient::GetInstance().SubscribeStandbyCallback(subscriber); in SubscriberPowerConsumptionDetection()