|
Android-cuttlefish cvd tool
|
#include <chrono>#include <fstream>#include <memory>#include <mutex>#include <queue>#include <string>#include <thread>#include <vector>#include "absl/log/log.h"#include "absl/strings/match.h"#include "absl/strings/str_split.h"#include "gflags/gflags.h"#include "grpcpp/ext/proto_server_reflection_plugin.h"#include "grpcpp/health_check_service_interface.h"#include "grpcpp/server.h"#include "grpcpp/server_builder.h"#include "grpcpp/server_context.h"#include "cuttlefish/common/libs/fs/shared_buf.h"#include "cuttlefish/common/libs/fs/shared_fd.h"#include "cuttlefish/host/commands/gnss_grpc_proxy/gnss_grpc_proxy.grpc.pb.h"#include "cuttlefish/host/libs/config/logging.h"
Classes | |
| class | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp}::GnssGrpcProxyServiceImpl |
Namespaces | |
| namespace | cuttlefish |
| namespace | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp} |
Functions | |
| DEFINE_int32 (gnss_in_fd, -1, "File descriptor for the gnss's input channel") | |
| DEFINE_int32 (gnss_out_fd, -1, "File descriptor for the gnss's output channel") | |
| DEFINE_int32 (fixed_location_in_fd, -1, "File descriptor for the fixed location input channel") | |
| DEFINE_int32 (fixed_location_out_fd, -1, "File descriptor for the fixed location output channel") | |
| DEFINE_int32 (gnss_grpc_port, -1, "Service port for gnss grpc") | |
| DEFINE_string (gnss_grpc_socket, "", "Service socket path for gnss grpc") | |
| DEFINE_string (gnss_file_path, "", "gnss raw measurement file path for gnss grpc") | |
| DEFINE_string (fixed_location_file_path, "", "fixed location file path for gnss grpc") | |
| std::string | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp}::GenerateGpsLine (const std::string &dataPoint) |
| void | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp}::RunServer () |
| int | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp}::Main (int argc, char **argv) |
| int | main (int argc, char **argv) |
Variables | |
| constexpr char | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp}::CMD_GET_LOCATION [] = "CMD_GET_LOCATION" |
| constexpr char | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp}::CMD_GET_RAWMEASUREMENT [] = "CMD_GET_RAWMEASUREMENT" |
| constexpr char | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp}::END_OF_MSG_MARK [] = "\n\n\n\n" |
| constexpr uint32_t | cuttlefish::anonymous_namespace{gnss_grpc_proxy.cpp}::GNSS_SERIAL_BUFFER_SIZE = 4096 |
| DEFINE_int32 | ( | fixed_location_in_fd | , |
| - | 1, | ||
| "File descriptor for the fixed location input channel" | |||
| ) |
| DEFINE_int32 | ( | fixed_location_out_fd | , |
| - | 1, | ||
| "File descriptor for the fixed location output channel" | |||
| ) |
| DEFINE_int32 | ( | gnss_grpc_port | , |
| - | 1, | ||
| "Service port for gnss grpc" | |||
| ) |
| DEFINE_int32 | ( | gnss_in_fd | , |
| - | 1, | ||
| "File descriptor for the gnss's input channel" | |||
| ) |
| DEFINE_int32 | ( | gnss_out_fd | , |
| - | 1, | ||
| "File descriptor for the gnss's output channel" | |||
| ) |
| DEFINE_string | ( | fixed_location_file_path | , |
| "" | , | ||
| "fixed location file path for gnss grpc" | |||
| ) |
| DEFINE_string | ( | gnss_file_path | , |
| "" | , | ||
| "gnss raw measurement file path for gnss grpc" | |||
| ) |
| DEFINE_string | ( | gnss_grpc_socket | , |
| "" | , | ||
| "Service socket path for gnss grpc" | |||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |