/ohos5.0/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() 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 D | standby_client_unit_test.cpp | 55 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 D | mock_standby_client_unit_test.cpp | 50 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 D | standby_service_client.h | 38 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 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()
|
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | work_conn_manager.cpp | 175 DevStandbyMgr::StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(false, in StopWork() 223 DevStandbyMgr::StandbyServiceClient::GetInstance().ReportWorkSchedulerStatus(true, in WriteStartWorkEvent()
|
H A D | work_scheduler_service.cpp | 394 …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 D | libstandby_innerkits.versionscript | 24 *StandbyServiceClient*;
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/plugins/device_standby_plugin/src/ |
H A D | device_standby_plugin.cpp | 74 DevStandbyMgr::StandbyServiceClient::GetInstance().HandleEvent( in DispatchResource()
|
/ohos5.0/base/location/services/location_locator/locator/source/ |
H A D | request_manager.cpp | 507 …DevStandbyMgr::StandbyServiceClient& standbyServiceClient = DevStandbyMgr::StandbyServiceClient::G… in IsStandby()
|
/ohos5.0/base/time/time_service/services/timer/src/ |
H A D | timer_manager.cpp | 1103 …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 D | power_mgr_service.cpp | 1602 …DevStandbyMgr::StandbyServiceClient& standbyServiceClient = DevStandbyMgr::StandbyServiceClient::G… in IsStandby()
|
/ohos5.0/foundation/resourceschedule/work_scheduler/services/test/src/ |
H A D | workschedulerservice_test.cpp | 51 ErrCode StandbyServiceClient::SubscribeStandbyCallback(const sptr<IStandbyServiceSubscriber>& subsc… in SubscribeStandbyCallback()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_data_manager.cpp | 2093 DevStandbyMgr::StandbyServiceClient::GetInstance().SubscribeStandbyCallback(subscriber); in SubscriberPowerConsumptionDetection()
|