class DeviceImpl

Defined at line 31 of file ../../src/camera/bin/device/device_impl.h

Represents a physical camera device, and serves multiple clients of the camera3.Device protocol.

Public Methods

async_dispatcher_t * dispatcher ()

Defined at line 50 of file ../../src/camera/bin/device/device_impl.h

fpromise::promise<std::unique_ptr<DeviceImpl>, zx_status_t> Create (async_dispatcher_t * dispatcher, fpromise::executor & executor, fuchsia::camera2::hal::ControllerHandle controller, fuchsia::sysmem2::AllocatorHandle allocator, fuchsia::ui::policy::DeviceListenerRegistryHandle registry, zx::event bad_state_event)

Creates a DeviceImpl using the given |controller|.

References to |dispatcher|, |executor|, and |context| may be retained by the instance so the

caller must ensure these outlive the returned DeviceImpl.

Defined at line 83 of file ../../src/camera/bin/device/device_impl.cc

promise<std::unique_ptr<DeviceImpl>, zx_status_t> Create (async_dispatcher_t * dispatcher, fuchsia::camera::ControlSyncPtr control, fuchsia::sysmem2::AllocatorPtr allocator, zx::event bad_state_event)

Creates a DeviceImpl using the given |controller|.

References to |dispatcher|, |executor|, and |context| may be retained by the instance so the

caller must ensure these outlive the returned DeviceImpl.

Defined at line 57 of file ../../src/camera/bin/usb_device/device_impl.cc

void DeviceImpl (async_dispatcher_t * dispatcher, fpromise::executor & executor, fuchsia::sysmem2::AllocatorHandle allocator, zx::event bad_state_event)

Defined at line 73 of file ../../src/camera/bin/device/device_impl.cc

void ~DeviceImpl ()

Defined at line 81 of file ../../src/camera/bin/device/device_impl.cc

void DeviceImpl (async_dispatcher_t * dispatcher, fuchsia::camera::ControlSyncPtr control, fuchsia::sysmem2::AllocatorPtr allocator, zx::event bad_state_event)

Defined at line 44 of file ../../src/camera/bin/usb_device/device_impl.cc

fidl::InterfaceRequestHandler<fuchsia::camera3::Device> GetHandler ()

Returns a service handler for use with a service directory.

Defined at line 156 of file ../../src/camera/bin/device/device_impl.cc

Friends

class Client