class Inspector

Defined at line 407 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)

static

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

std::unique_ptr<Inspector> & Singleton ()

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

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

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

void Inspector (async_dispatcher_t * dispatcher)

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

Inspector methods

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

void ~Inspector ()

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

void RecordHealthOk ()

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

void RecordUnhealthy (const std::string & health_message)

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

void RecordDetectionFailureToConnect ()

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

void RecordDetectionFailureOther ()

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

void RecordDetectionFailureUnsupported ()

Defined at line 750 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 755 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 766 of file ../../src/media/audio/services/device_registry/inspector.cc

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

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

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

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

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

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

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

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

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

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