Home
last modified time | relevance | path

Searched refs:apacket (Results 1 – 12 of 12) sorted by relevance

/system/core/adb/
Dsocket.h26 struct apacket;
69 apacket* pkt_first;
70 apacket* pkt_last;
78 int (*enqueue)(asocket* s, apacket* pkt);
Dadb.h71 struct apacket struct
73 apacket *next; argument
82 uint32_t calculate_apacket_checksum(const apacket* packet); argument
126 void print_packet(const char *label, apacket *p);
133 void handle_packet(apacket *p, atransport *t);
172 apacket *get_apacket(void);
173 void put_apacket(apacket *p);
Dtransport.h74 int (*read_from_remote)(apacket* p, atransport* t) = nullptr;
77 void SetWriteFunction(int (*write_func)(apacket*, atransport*)) { write_func_ = write_func; } in SetWriteFunction() argument
80 int Write(apacket* p);
169 int (*write_func_)(apacket*, atransport*) = nullptr;
225 bool check_header(apacket* p, atransport* t);
226 bool check_data(apacket* p);
231 void send_packet(apacket* p, atransport* t);
Dtransport_usb.cpp51 static int UsbReadPayload(usb_handle* h, apacket* p) { in UsbReadPayload()
69 static int remote_read(apacket* p, atransport* t) { in remote_read()
113 static int remote_read(apacket *p, atransport *t) in remote_read()
141 static int remote_write(apacket *p, atransport *t) in remote_write()
Dtransport.cpp68 static std::string dump_packet(const char* name, const char* func, apacket* p) { in dump_packet()
104 static int read_packet(int fd, const char* name, apacket** ppacket) { in read_packet()
112 int len = sizeof(apacket*); in read_packet()
128 static int write_packet(int fd, const char* name, apacket** ppacket) { in write_packet()
137 int len = sizeof(apacket*); in write_packet()
155 apacket* p = 0; in transport_socket_events()
164 void send_packet(apacket* p, atransport* t) { in send_packet()
194 apacket* p; in read_transport_thread()
259 apacket* p; in write_transport_thread()
367 static int device_tracker_enqueue(asocket* socket, apacket* p) { in device_tracker_enqueue()
[all …]
Dsockets.cpp125 static int local_socket_enqueue(asocket* s, apacket* p) { in local_socket_enqueue()
187 apacket *p, *n; in local_socket_destroy()
258 apacket* p; in local_socket_event_func()
308 apacket* p = get_apacket(); in local_socket_event_func()
448 static int remote_socket_enqueue(asocket* s, apacket* p) { in remote_socket_enqueue()
460 apacket* p = get_apacket(); in remote_socket_ready()
470 apacket* p = get_apacket(); in remote_socket_shutdown()
517 apacket* p = get_apacket(); in connect_to_remote()
657 static int smart_socket_enqueue(asocket* s, apacket* p) { in smart_socket_enqueue()
Dadb.cpp107 uint32_t calculate_apacket_checksum(const apacket* p) { in calculate_apacket_checksum()
119 apacket* get_apacket(void) in get_apacket()
121 apacket* p = reinterpret_cast<apacket*>(malloc(sizeof(apacket))); in get_apacket()
126 memset(p, 0, sizeof(apacket) - MAX_PAYLOAD); in get_apacket()
130 void put_apacket(apacket *p) in put_apacket()
156 void print_packet(const char *label, apacket *p) in print_packet()
198 apacket *p = get_apacket(); in send_ready()
208 apacket *p = get_apacket(); in send_close()
241 apacket* cp = get_apacket(); in send_connect()
322 static void handle_new_connection(atransport* t, apacket* p) { in handle_new_connection()
[all …]
Djdwp_service.cpp473 static int jdwp_socket_enqueue(asocket* s, apacket* p) { in jdwp_socket_enqueue()
489 apacket* p = get_apacket(); in jdwp_socket_ready()
531 apacket* p = get_apacket(); in jdwp_process_list_updated()
563 apacket* p = get_apacket(); in jdwp_tracker_ready()
570 static int jdwp_tracker_enqueue(asocket* s, apacket* p) { in jdwp_tracker_enqueue()
Dtransport_local.cpp63 static int remote_read(apacket *p, atransport *t) in remote_read()
88 static int remote_write(apacket *p, atransport *t) in remote_write()
Dadbd_auth.cpp212 apacket* p = get_apacket(); in send_auth_request()
Dadb_auth_host.cpp448 apacket* p = get_apacket(); in send_auth_publickey()
468 apacket* p = get_apacket(); in send_auth_response()
Dsocket_test.cpp117 apacket* p = get_apacket(); in CloseWithPacketThreadFunc()