class StreamCycler

Defined at line 24 of file ../../src/camera/bin/camera-gym/stream_cycler.h

This class is responsible for exercising the camera APIs to cycle between the various streams and

configurations reported by a camera.

Public Methods

void set_controller_dispatcher (async_dispatcher_t * dispatcher)

Defined at line 45 of file ../../src/camera/bin/camera-gym/stream_cycler.h

void set_auto_cycle_interval (std::optional<zx::duration> interval)

Defined at line 52 of file ../../src/camera/bin/camera-gym/stream_cycler.h

void ~StreamCycler ()

Defined at line 56 of file ../../src/camera/bin/camera-gym/stream_cycler.cc

fpromise::result<std::unique_ptr<StreamCycler>, zx_status_t> Create (fuchsia::camera3::DeviceWatcherHandle watcher, fuchsia::sysmem2::AllocatorHandle allocator, async_dispatcher_t * dispatcher, bool manual_mode)

Defined at line 58 of file ../../src/camera/bin/camera-gym/stream_cycler.cc

void SetHandlers (AddCollectionHandler on_add_collection, RemoveCollectionHandler on_remove_collection, ShowBufferHandler on_show_buffer, MuteStateHandler on_mute_changed)

Registers handlers that are called when the cycler adds or removes a buffer collection. The

value returned by |on_add_collection| will be subsequently passed to |on_remove_collection|.

Defined at line 81 of file ../../src/camera/bin/camera-gym/stream_cycler.cc

void ExecuteCommand (fuchsia::camera::gym::Command command, CommandStatusHandler handler)

Manual mode entry points:

Defined at line 362 of file ../../src/camera/bin/camera-gym/stream_cycler.cc

Friends

class StreamCyclerTest_CommandSuccessNotify_Test
class StreamCyclerTest_ComplexConfiguration_ManualMode_ExecuteSetCropCommand_Test
class StreamCyclerTest_ComplexConfiguration_ManualMode_ExecuteAddStreamCommand_Test
class StreamCyclerTest_ComplexConfiguration_ManualMode_ExecuteSetConfigCommand_DifferentConfig_Test
class StreamCyclerTest_ComplexConfiguration_ManualMode_ExecuteSetConfigCommand_SameConfig_Test
class StreamCyclerTest_ComplexConfiguration_ManualMode_WatchCurrentConfigurationCallback_Test
class StreamCyclerTest_SimpleConfiguration_ManualMode_ConnectToStream_Test
class CameraGymTest_PendingCollectionId_Test
class CameraGymStreamCyclerTest
class CameraGymTest