template <>
class NaturalSyncClientImpl
Defined at line 161 of file fidling/gen/src/power/system-activity-governor/fake/fidl/test.sagcontrol/cpp/fidl/test.sagcontrol/cpp/natural_messaging.h
Public Methods
::fidl::Result< ::test_sagcontrol::State::Set> Set (const ::fidl::Request< ::test_sagcontrol::State::Set> & request)
Sets the power elements to specific states supported by SAG.
The initial state of SAG is (2, 0). Boot complete logic is ignored in this protocol.
In SystemActivityGovernorState, omitting specifying a power element's state will preserve
its existing state.
::fidl::Result< ::test_sagcontrol::State::Get> Get ()
Return immediately with the current state of SAG.
::fidl::Result< ::test_sagcontrol::State::SetBootComplete> SetBootComplete ()
Inform the Fake SAG to pass through the call and also change state.
::fidl::Result< ::test_sagcontrol::State::Watch> Watch ()
On a given connection, the first call will return immediately with SAG's
current state. Subsequent `Watch` requests will only
return if and only if a `test.sagcontrol.State.Set` call sends a request and SAG's
state has changed to the requested supported state.
For example, if the current state of SAG is (1, 0), the first
`Watch` will return (1, 0). If a `test.sagcontrol.State.Set`
call sends a request to change state to (2, 1), the next `Watch`
will return when the SAG's state has fully transitioned to (2, 1),
any intermediate transient state (in this example, (2, 0),
will not be returned.
Clients should use this to synchronize SAG states.