class Inspector

Defined at line 686 of file ../../src/media/audio/services/device_registry/inspector.h

This singleton manages (and owns, from a lifetime mgmt standpoint) Inspect for the entire ADR.

Inspect for core/audio_device_registry contains two sections: Devices and FIDL Servers.

The Devices section contains info on devices that have been detected and presented to clients.

The FIDL Servers section contains info on client instances of the six ADR FIDL protocols.

Public Methods

void Initialize (async_dispatcher_t * dispatcher)

Defined at line 178 of file ../../src/media/audio/services/device_registry/inspector.cc

std::unique_ptr<Inspector> & Singleton ()

Defined at line 689 of file ../../src/media/audio/services/device_registry/inspector.h

std::unique_ptr<inspect::ComponentInspector> & component_inspector ()

Defined at line 690 of file ../../src/media/audio/services/device_registry/inspector.h

void Inspector (async_dispatcher_t * dispatcher)

////////////////////////////////////

Inspector methods

Defined at line 1692 of file ../../src/media/audio/services/device_registry/inspector.cc

void ~Inspector ()

Defined at line 1717 of file ../../src/media/audio/services/device_registry/inspector.cc

void RecordHealthOk ()

Defined at line 1719 of file ../../src/media/audio/services/device_registry/inspector.cc

void RecordUnhealthy (const std::string & health_message)

Defined at line 1724 of file ../../src/media/audio/services/device_registry/inspector.cc

void RecordDetectionFailureToConnect ()

Defined at line 1729 of file ../../src/media/audio/services/device_registry/inspector.cc

void RecordDetectionFailureOther ()

Defined at line 1734 of file ../../src/media/audio/services/device_registry/inspector.cc

void RecordDetectionFailureUnsupported ()

Defined at line 1739 of file ../../src/media/audio/services/device_registry/inspector.cc

std::shared_ptr<DeviceInspectInstance> RecordDeviceInitializing (const std::string & device_name, fuchsia_audio_device::DeviceType device_type, const zx::time & added_at, const std::string & added_by)

Defined at line 1744 of file ../../src/media/audio/services/device_registry/inspector.cc

std::shared_ptr<FidlServerInspectInstance> RecordRegistryInstance (const zx::time & created_at)

Create an Inspect node for the instance (e.g. a child of control_servers_root_ if this is a

Control instance), wrap it in a FidlServerInspectInstance object, and return a shared_ptr to

it. This class (via control_server_instances_ etc.) owns the instance node; the child

FidlServerInspectInstance creates nodes or properties attached to the instance node.

Defined at line 1755 of file ../../src/media/audio/services/device_registry/inspector.cc

std::shared_ptr<FidlServerInspectInstance> RecordObserverInstance (const zx::time & created_at)

Defined at line 1766 of file ../../src/media/audio/services/device_registry/inspector.cc

std::shared_ptr<FidlServerInspectInstance> RecordControlCreatorInstance (const zx::time & created_at)

Defined at line 1777 of file ../../src/media/audio/services/device_registry/inspector.cc

std::shared_ptr<FidlServerInspectInstance> RecordControlInstance (const zx::time & created_at)

Defined at line 1788 of file ../../src/media/audio/services/device_registry/inspector.cc

std::shared_ptr<FidlServerInspectInstance> RecordRingBufferInstance (const zx::time & created_at)

Defined at line 1799 of file ../../src/media/audio/services/device_registry/inspector.cc

std::shared_ptr<FidlServerInspectInstance> RecordPacketStreamInstance (const zx::time & created_at)

Defined at line 1810 of file ../../src/media/audio/services/device_registry/inspector.cc

std::shared_ptr<ProviderInspectInstance> RecordProviderInspectInstance (const zx::time & created_at)

Defined at line 1821 of file ../../src/media/audio/services/device_registry/inspector.cc