Android-cuttlefish cvd tool
|
#include <string>
#include <vector>
#include <android-base/logging.h>
#include <gflags/gflags.h>
#include "cuttlefish/common/libs/transport/channel_sharedfd.h"
#include "cuttlefish/common/libs/utils/device_type.h"
#include "cuttlefish/host/commands/sensors_simulator/sensors_hal_proxy.h"
#include "cuttlefish/host/commands/sensors_simulator/sensors_simulator.h"
#include "cuttlefish/host/libs/config/logging.h"
Namespaces | |
namespace | cuttlefish |
namespace | cuttlefish::sensors |
namespace | cuttlefish::sensors::anonymous_namespace{main.cpp} |
Functions | |
DEFINE_int32 (sensors_in_fd, -1, "Sensors virtio-console from host to guest") | |
DEFINE_int32 (sensors_out_fd, -1, "Sensors virtio-console from guest to host") | |
DEFINE_int32 (webrtc_fd, -1, "A file descriptor to communicate with webrtc") | |
DEFINE_int32 (kernel_events_fd, -1, "A pipe for monitoring events based on messages " "written to the kernel log. This is used by " "SensorsHalProxy to monitor for device reboots.") | |
DEFINE_int32 (device_type, 0, "The form factor of the Cuttlefish instance.") | |
Result< void > | cuttlefish::sensors::anonymous_namespace{main.cpp}::ProcessWebrtcRequest (transport::SharedFdChannel &channel, SensorsSimulator &sensors_simulator) |
int | cuttlefish::sensors::anonymous_namespace{main.cpp}::SensorsSimulatorMain (int argc, char **argv) |
int | main (int argc, char *argv[]) |
Variables | |
static constexpr char | cuttlefish::sensors::anonymous_namespace{main.cpp}::kReqMisFormatted [] = "The request is mis-formatted." |
static constexpr char | cuttlefish::sensors::anonymous_namespace{main.cpp}::kFdNotOpen [] = "Unable to connect: " |
DEFINE_int32 | ( | device_type | , |
0 | , | ||
"The form factor of the Cuttlefish instance." | |||
) |
DEFINE_int32 | ( | kernel_events_fd | , |
- | 1, | ||
"A pipe for monitoring events based on messages " "written to the kernel log. This is used by " "SensorsHalProxy to monitor for device reboots." | |||
) |
DEFINE_int32 | ( | sensors_in_fd | , |
- | 1, | ||
"Sensors virtio-console from host to guest" | |||
) |
DEFINE_int32 | ( | sensors_out_fd | , |
- | 1, | ||
"Sensors virtio-console from guest to host" | |||
) |
DEFINE_int32 | ( | webrtc_fd | , |
- | 1, | ||
"A file descriptor to communicate with webrtc" | |||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |