Android-cuttlefish cvd tool
|
#include "sysdeps.h"
#include "adb.h"
#include <ctype.h>
#include <errno.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <chrono>
#include <condition_variable>
#include <functional>
#include <mutex>
#include <string>
#include <string_view>
#include <thread>
#include <vector>
#include <android-base/errors.h>
#include <android-base/file.h>
#include <android-base/logging.h>
#include <android-base/macros.h>
#include <android-base/parsenetaddress.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <android-base/utf8.h>
#include <diagnose_usb.h>
#include <build/version.h>
#include <platform_tools_version.h>
#include "adb_auth.h"
#include "adb_io.h"
#include "adb_listeners.h"
#include "adb_mdns.h"
#include "adb_unique_fd.h"
#include "adb_utils.h"
#include "socket_spec.h"
#include "sysdeps/chrono.h"
#include "transport.h"
#include <sys/capability.h>
#include <sys/mount.h>
#include <android-base/properties.h>
#include "daemon/logging.h"
Macros | |
#define | TRACE_TAG ADB |
Functions | |
std::string | adb_version () |
uint32_t | calculate_apacket_checksum (const apacket *p) |
std::string | command_to_string (uint32_t cmd) |
std::string | to_string (ConnectionState state) |
apacket * | get_apacket () |
void | put_apacket (apacket *p) |
void | handle_online (atransport *t) |
void | handle_offline (atransport *t) |
void | send_ready (unsigned local, unsigned remote, atransport *t, uint32_t ack_bytes) |
static void | send_close (unsigned local, unsigned remote, atransport *t) |
std::string | get_connection_string () |
void | send_tls_request (atransport *t) |
void | send_connect (atransport *t) |
void | parse_banner (const std::string &banner, atransport *t) |
static void | handle_new_connection (atransport *t, apacket *p) |
void | handle_packet (apacket *p, atransport *t) |
bool | handle_forward_request (const char *service, atransport *transport, int reply_fd) |
bool | handle_forward_request (const char *service, std::function< atransport *(std::string *error)> transport_acquirer, int reply_fd) |
#define TRACE_TAG ADB |
std::string adb_version | ( | ) |
uint32_t calculate_apacket_checksum | ( | const apacket * | p | ) |
std::string command_to_string | ( | uint32_t | cmd | ) |
apacket * get_apacket | ( | ) |
std::string get_connection_string | ( | ) |
bool handle_forward_request | ( | const char * | service, |
atransport * | transport, | ||
int | reply_fd | ||
) |
bool handle_forward_request | ( | const char * | service, |
std::function< atransport *(std::string *error)> | transport_acquirer, | ||
int | reply_fd | ||
) |
|
static |
void handle_offline | ( | atransport * | t | ) |
void handle_online | ( | atransport * | t | ) |
void handle_packet | ( | apacket * | p, |
atransport * | t | ||
) |
void parse_banner | ( | const std::string & | banner, |
atransport * | t | ||
) |
void put_apacket | ( | apacket * | p | ) |
|
static |
void send_connect | ( | atransport * | t | ) |
void send_ready | ( | unsigned | local, |
unsigned | remote, | ||
atransport * | t, | ||
uint32_t | ack_bytes | ||
) |
void send_tls_request | ( | atransport * | t | ) |
std::string to_string | ( | ConnectionState | state | ) |