Android-cuttlefish cvd tool
|
#include <memory>
#include <android-base/logging.h>
#include <android-base/parseint.h>
#include <android-base/strings.h>
#include <fruit/fruit.h>
#include <gflags/gflags.h>
#include <libyuv.h>
#include "cuttlefish/common/libs/fs/shared_fd.h"
#include "cuttlefish/common/libs/utils/files.h"
#include "cuttlefish/host/frontend/webrtc/audio_handler.h"
#include "cuttlefish/host/frontend/webrtc/client_server.h"
#include "cuttlefish/host/frontend/webrtc/connection_observer.h"
#include "cuttlefish/host/frontend/webrtc/display_handler.h"
#include "cuttlefish/host/frontend/webrtc/kernel_log_events_handler.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/camera_controller.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/lights_observer.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/local_recorder.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/streamer.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/video_sink.h"
#include "cuttlefish/host/frontend/webrtc/screenshot_handler.h"
#include "cuttlefish/host/frontend/webrtc/webrtc_command_channel.h"
#include "cuttlefish/host/frontend/webrtc/webrtc_commands.pb.h"
#include "cuttlefish/host/libs/audio_connector/server.h"
#include "cuttlefish/host/libs/config/config_constants.h"
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
#include "cuttlefish/host/libs/config/logging.h"
#include "cuttlefish/host/libs/config/openwrt_args.h"
#include "cuttlefish/host/libs/confui/host_mode_ctrl.h"
#include "cuttlefish/host/libs/confui/host_server.h"
#include "cuttlefish/host/libs/input_connector/input_connector.h"
#include "cuttlefish/host/libs/screen_connector/composition_manager.h"
#include "cuttlefish/host/libs/screen_connector/screen_connector.h"
#include "google/rpc/code.pb.h"
#include "google/rpc/status.pb.h"
Classes | |
class | cuttlefish::CfOperatorObserver |
Namespaces | |
namespace | cuttlefish |
Functions | |
DEFINE_bool (multitouch, true, "Whether to send multi-touch or single-touch events") | |
DEFINE_string (touch_fds, "", "A list of fds to listen on for touch connections.") | |
DEFINE_int32 (mouse_fd, -1, "An fd to listen on for mouse connections.") | |
DEFINE_int32 (gamepad_fd, -1, "An fd to listen on for gamepad connections.") | |
DEFINE_int32 (rotary_fd, -1, "An fd to listen on for rotary connections.") | |
DEFINE_int32 (keyboard_fd, -1, "An fd to listen on for keyboard connections.") | |
DEFINE_int32 (switches_fd, -1, "An fd to listen on for switch connections.") | |
DEFINE_int32 (frame_server_fd, -1, "An fd to listen on for frame updates") | |
DEFINE_int32 (kernel_log_events_fd, -1, "An fd to listen on for kernel log events.") | |
DEFINE_int32 (command_fd, -1, "An fd to listen to for control messages") | |
DEFINE_int32 (confui_in_fd, -1, "Confirmation UI virtio-console from host to guest") | |
DEFINE_int32 (confui_out_fd, -1, "Confirmation UI virtio-console from guest to host") | |
DEFINE_string (action_servers, "", "A comma-separated list of server_name:fd pairs, " "where each entry corresponds to one custom action server.") | |
DEFINE_int32 (audio_server_fd, -1, "An fd to listen on for audio frames") | |
DEFINE_int32 (camera_streamer_fd, -1, "An fd to send client camera frames") | |
DEFINE_int32 (sensors_fd, -1, "An fd to communicate with sensors_simulator.") | |
DEFINE_string (client_dir, "webrtc", "Location of the client files") | |
DEFINE_string (group_id, "", "UNUSED - Kept to support webRTC and run_cvd with different " "versions during the migration") | |
std::unique_ptr< AudioServer > | cuttlefish::CreateAudioServer () |
fruit::Component< CustomActionConfigProvider > | cuttlefish::WebRtcComponent () |
fruit::Component< ScreenConnector< DisplayHandler::WebRtcScProcessedFrame >, confui::HostServer, confui::HostVirtualInput > | cuttlefish::CreateConfirmationUIComponent (int *frames_fd, bool *frames_are_rgba, confui::PipeConnectionPair *pipe_io_pair, InputConnector *input_connector) |
Result< void > | cuttlefish::ControlLoop (SharedFD control_socket, DisplayHandler &display_handler, RecordingManager &recording_manager, ScreenshotHandler &screenshot_handler) |
int | cuttlefish::CuttlefishMain () |
int | main (int argc, char **argv) |
Variables | |
constexpr auto | cuttlefish::kOpewnrtWanIpAddressName = "wan_ipaddr" |
constexpr auto | cuttlefish::kTouchscreenPrefix = "display_" |
constexpr auto | cuttlefish::kTouchpadPrefix = "touch_" |
DEFINE_bool | ( | multitouch | , |
true | , | ||
"Whether to send multi-touch or single-touch events" | |||
) |
DEFINE_int32 | ( | audio_server_fd | , |
- | 1, | ||
"An fd to listen on for audio frames" | |||
) |
DEFINE_int32 | ( | camera_streamer_fd | , |
- | 1, | ||
"An fd to send client camera frames" | |||
) |
DEFINE_int32 | ( | command_fd | , |
- | 1, | ||
"An fd to listen to for control messages" | |||
) |
DEFINE_int32 | ( | confui_in_fd | , |
- | 1, | ||
"Confirmation UI virtio-console from host to guest" | |||
) |
DEFINE_int32 | ( | confui_out_fd | , |
- | 1, | ||
"Confirmation UI virtio-console from guest to host" | |||
) |
DEFINE_int32 | ( | frame_server_fd | , |
- | 1, | ||
"An fd to listen on for frame updates" | |||
) |
DEFINE_int32 | ( | gamepad_fd | , |
- | 1, | ||
"An fd to listen on for gamepad connections." | |||
) |
DEFINE_int32 | ( | kernel_log_events_fd | , |
- | 1, | ||
"An fd to listen on for kernel log events." | |||
) |
DEFINE_int32 | ( | keyboard_fd | , |
- | 1, | ||
"An fd to listen on for keyboard connections." | |||
) |
DEFINE_int32 | ( | mouse_fd | , |
- | 1, | ||
"An fd to listen on for mouse connections." | |||
) |
DEFINE_int32 | ( | rotary_fd | , |
- | 1, | ||
"An fd to listen on for rotary connections." | |||
) |
DEFINE_int32 | ( | sensors_fd | , |
- | 1, | ||
"An fd to communicate with sensors_simulator." | |||
) |
DEFINE_int32 | ( | switches_fd | , |
- | 1, | ||
"An fd to listen on for switch connections." | |||
) |
DEFINE_string | ( | action_servers | , |
"" | , | ||
"A comma-separated list of server_name:fd | pairs, | ||
" "where each entry corresponds to one custom action server." | |||
) |
DEFINE_string | ( | client_dir | , |
"webrtc" | , | ||
"Location of the client files" | |||
) |
DEFINE_string | ( | group_id | , |
"" | , | ||
"UNUSED - Kept to support webRTC and run_cvd with different " "versions during the migration" | |||
) |
DEFINE_string | ( | touch_fds | , |
"" | , | ||
"A list of fds to listen on for touch connections." | |||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |