class UIStateProvider

Defined at line 32 of file ../../src/developer/forensics/feedback/annotations/ui_state_provider.h

Caches the UI activity state and dynamically computes the duration since the last state change

Public Methods

void UIStateProvider (async_dispatcher_t * dispatcher, std::shared_ptr<sys::ServiceDirectory> services, std::unique_ptr<timekeeper::Clock> clock, std::unique_ptr<backoff::Backoff> backoff)

Defined at line 37 of file ../../src/developer/forensics/feedback/annotations/ui_state_provider.cc

std::set<std::string> GetAnnotationKeys ()

Defined at line 127 of file ../../src/developer/forensics/feedback/annotations/ui_state_provider.cc

std::set<std::string> GetKeys ()

Defined at line 134 of file ../../src/developer/forensics/feedback/annotations/ui_state_provider.cc

Annotations Get ()

Returns the duration since the last state change

Defined at line 150 of file ../../src/developer/forensics/feedback/annotations/ui_state_provider.cc

void GetOnUpdate (::fit::function<void (Annotations)> callback)

Sets the most recent UI activity state with |callback|

Defined at line 172 of file ../../src/developer/forensics/feedback/annotations/ui_state_provider.cc

void OnStateChanged (OnStateChangedRequest & request, OnStateChangedCompleter::Sync & completer)

|fidl::Server

<fuchsia

_ui_activity::Listener>|

Defined at line 138 of file ../../src/developer/forensics/feedback/annotations/ui_state_provider.cc

void on_fidl_error (fidl::UnbindInfo error)

|fidl::AsyncEventHandler

<fuchsia

_ui_activity::Provider>|

Defined at line 81 of file ../../src/developer/forensics/feedback/annotations/ui_state_provider.cc