Android-cuttlefish cvd tool
Classes | Functions | Variables
cuttlefish::anonymous_namespace{screen_recording.cpp} Namespace Reference

Classes

struct  RecordingFlags
 

Functions

Result< RecordingFlagsParseArgs (std::vector< std::string > args)
 
Result< void > StartStopRecording (const RecordingFlags &flags, std::vector< LocalInstance > &instances)
 
Result< void > ListRecordings (const LocalInstanceGroup &group, std::vector< LocalInstance > &instances)
 

Variables

constexpr char kSummaryHelpText [] = "Record screen contents"
 
constexpr char kDetailedHelpText []
 
constexpr char kScreenRecordingCmd [] = "screen_recording"
 
constexpr char kListSubcmd [] = "list"
 
constexpr char kStartSubcmd [] = "start"
 
constexpr char kStopSubcmd [] = "stop"
 
constexpr int kDefaultWaitForLauncherSeconds = 5
 

Function Documentation

◆ ListRecordings()

Result< void > cuttlefish::anonymous_namespace{screen_recording.cpp}::ListRecordings ( const LocalInstanceGroup group,
std::vector< LocalInstance > &  instances 
)

◆ ParseArgs()

Result< RecordingFlags > cuttlefish::anonymous_namespace{screen_recording.cpp}::ParseArgs ( std::vector< std::string >  args)

◆ StartStopRecording()

Result< void > cuttlefish::anonymous_namespace{screen_recording.cpp}::StartStopRecording ( const RecordingFlags flags,
std::vector< LocalInstance > &  instances 
)

Variable Documentation

◆ kDefaultWaitForLauncherSeconds

constexpr int cuttlefish::anonymous_namespace{screen_recording.cpp}::kDefaultWaitForLauncherSeconds = 5
constexpr

◆ kDetailedHelpText

constexpr char cuttlefish::anonymous_namespace{screen_recording.cpp}::kDetailedHelpText[]
constexpr
Initial value:
=
R"""(
Records screen contents.
Usage:
cvd [--group_name NAME] [--instance_name NAME] screen_recording list
Print the paths to the existing recording files.
cvd [--group_name NAME] [--instance_name NAME] screen_recording start [--timeout SECONDS]
cvd [--group_name NAME] [--instance_name NAME] screen_recording stop [--timeout SECONDS]
Start or Stop a recording.
Options:
--timeout The number of seconds to wait for the instance to respond to a start or stop request.
)"""

◆ kListSubcmd

constexpr char cuttlefish::anonymous_namespace{screen_recording.cpp}::kListSubcmd[] = "list"
constexpr

◆ kScreenRecordingCmd

constexpr char cuttlefish::anonymous_namespace{screen_recording.cpp}::kScreenRecordingCmd[] = "screen_recording"
constexpr

◆ kStartSubcmd

constexpr char cuttlefish::anonymous_namespace{screen_recording.cpp}::kStartSubcmd[] = "start"
constexpr

◆ kStopSubcmd

constexpr char cuttlefish::anonymous_namespace{screen_recording.cpp}::kStopSubcmd[] = "stop"
constexpr

◆ kSummaryHelpText

constexpr char cuttlefish::anonymous_namespace{screen_recording.cpp}::kSummaryHelpText[] = "Record screen contents"
constexpr