Home
last modified time | relevance | path

Searched refs:IsStrategyEnabled (Results 1 - 11 of 11) sorted by relevance

/foundation/resourceschedule/device_standby/interfaces/innerkits/src/
H A Dstandby_service_client.cpp165 ErrCode StandbyServiceClient::IsStrategyEnabled(const std::string& strategyName, bool& isEnabled) in IsStrategyEnabled() function in OHOS::DevStandbyMgr::StandbyServiceClient
172 return standbyServiceProxy_->IsStrategyEnabled(strategyName, isEnabled); in IsStrategyEnabled()
H A Dstandby_service_proxy.cpp349 ErrCode StandbyServiceProxy::IsStrategyEnabled(const std::string& strategyName, bool& enabled) in IsStrategyEnabled() function in OHOS::DevStandbyMgr::StandbyServiceProxy
355 STANDBYSERVICE_LOGW("IsStrategyEnabled write descriptor failed"); in IsStrategyEnabled()
359 STANDBYSERVICE_LOGW("IsStrategyEnabled write parameter failed"); in IsStrategyEnabled()
366 STANDBYSERVICE_LOGW("IsStrategyEnabled fail: transact ErrCode=%{public}d", result); in IsStrategyEnabled()
370 STANDBYSERVICE_LOGW("IsStrategyEnabled fail: read result failed."); in IsStrategyEnabled()
374 STANDBYSERVICE_LOGW("IsStrategyEnabled failed"); in IsStrategyEnabled()
378 STANDBYSERVICE_LOGW("IsStrategyEnabled fail: read result failed."); in IsStrategyEnabled()
/foundation/resourceschedule/device_standby/interfaces/innerkits/include/
H A Dstandby_service_client.h117 ErrCode IsStrategyEnabled(const std::string& strategyName, bool& isEnabled);
H A Dstandby_service_proxy.h119 ErrCode IsStrategyEnabled(const std::string& strategyName, bool& enabled) override;
/foundation/resourceschedule/device_standby/frameworks/include/
H A Distandby_service.h117 virtual ErrCode IsStrategyEnabled(const std::string& strategyName, bool& isEnabled) = 0;
/foundation/resourceschedule/device_standby/services/core/include/
H A Dstandby_service.h60 ErrCode IsStrategyEnabled(const std::string& strategyName, bool& isEnabled) override;
H A Dstandby_service_impl.h113 ErrCode IsStrategyEnabled(const std::string& strategyName, bool& isEnabled);
/foundation/resourceschedule/device_standby/services/core/src/
H A Dstandby_service.cpp298 ErrCode StandbyService::IsStrategyEnabled(const std::string& strategyName, bool& isEnabled) in IsStrategyEnabled() function in OHOS::DevStandbyMgr::StandbyService
304 return StandbyServiceImpl::GetInstance()->IsStrategyEnabled(strategyName, isEnabled); in IsStrategyEnabled()
H A Dstandby_service_impl.cpp917 ErrCode StandbyServiceImpl::IsStrategyEnabled(const std::string& strategyName, bool& isStandby) in IsStrategyEnabled() function in OHOS::DevStandbyMgr::StandbyServiceImpl
923 STANDBYSERVICE_LOGD("start IsStrategyEnabled"); in IsStrategyEnabled()
/foundation/resourceschedule/device_standby/interfaces/innerkits/test/unittest/
H A Dstandby_client_unit_test.cpp228 * @tc.desc: test IsStrategyEnabled.
236 EXPECT_EQ(StandbyServiceClient::GetInstance().IsStrategyEnabled(strategyName, isEnabled), ERR_OK); in HWTEST_F()
241 * @tc.desc: test IsStrategyEnabled.
254 * @tc.desc: test IsStrategyEnabled.
/foundation/resourceschedule/device_standby/services/test/unittest/
H A Dstandby_service_unit_test.cpp1109 * @tc.desc: test IsStrategyEnabled.
1118 EXPECT_EQ(StandbyService::GetInstance()->IsStrategyEnabled(strategyName, isEnabled), ERR_OK); in HWTEST_F()
1121 EXPECT_EQ(StandbyService::GetInstance()->IsStrategyEnabled(strategyName, isEnabled), ERR_STANDBY_SYS_NOT_READY); in HWTEST_F()

Completed in 9 milliseconds