Android-cuttlefish cvd tool
|
#include <signal.h>
#include <chrono>
#include <ctime>
#include <fstream>
#include <iostream>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
#include <thread>
#include <vector>
#include <android-base/logging.h>
#include <android-base/strings.h>
#include <gflags/gflags.h>
#include <grpc/grpc.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 <grpcpp/server_posix.h>
#include "cuttlefish/common/libs/fs/shared_buf.h"
#include "cuttlefish/common/libs/fs/shared_fd.h"
#include "cuttlefish/common/libs/fs/shared_select.h"
#include "cuttlefish/host/commands/gnss_grpc_proxy/gnss_grpc_proxy.grpc.pb.h"
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
#include "cuttlefish/host/libs/config/logging.h"
Classes | |
class | GnssGrpcProxyServiceImpl |
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 | GenerateGpsLine (const std::string &dataPoint) |
void | RunServer () |
int | main (int argc, char **argv) |
Variables | |
constexpr char | CMD_GET_LOCATION [] = "CMD_GET_LOCATION" |
constexpr char | CMD_GET_RAWMEASUREMENT [] = "CMD_GET_RAWMEASUREMENT" |
constexpr char | END_OF_MSG_MARK [] = "\n\n\n\n" |
constexpr uint32_t | 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" | |||
) |
std::string GenerateGpsLine | ( | const std::string & | dataPoint | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
void RunServer | ( | ) |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |