/system/core/fastbootd/ |
H A D | transport.h | 23 struct transport *transport; member in struct:transport_handle 28 struct transport { struct 33 struct transport_handle *(*connect)(struct transport *transport); 37 void transport_register(struct transport *transport);
|
H A D | transport.c | 26 #include "transport.h" 32 return thandle->transport->write(thandle, buffer, len); 37 thandle->transport->close(thandle); 64 ret = thandle->transport->read(thandle, buffer + n, len - n); 66 D(WARN, "transport read failed, ret=%zd %s", ret, strerror(-ret)); 95 ret = thandle->transport->read(thandle, buffer, COMMAND_BUF_SIZE); 115 struct transport *transport = arg; local 116 while (!transport->stopped) { 122 thandle = transport 141 transport_register(struct transport *transport) argument [all...] |
H A D | transport_socket.c | 39 #include "transport.h" 51 struct transport transport; member in struct:socket_transport 68 struct transport_handle *socket_connect(struct transport *transport) argument 71 struct socket_transport *socket_transport = container_of(transport, struct socket_transport, transport); 140 socket_transport->transport.connect = socket_connect; 141 socket_transport->transport.close = socket_close; 142 socket_transport->transport [all...] |
H A D | usb_linux_client.c | 32 #include "transport.h" 58 struct transport transport; member in struct:usb_transport 217 struct transport *t = thandle->transport; 218 struct usb_transport *usb_transport = container_of(t, struct usb_transport, transport); 233 struct transport *t = thandle->transport; 234 struct usb_transport *usb_transport = container_of(t, struct usb_transport, transport); 249 struct transport * 270 usb_connect(struct transport *transport) argument [all...] |
H A D | Android.mk | 37 transport.c \
|
/system/core/adb/ |
H A D | adb.c | 109 { "transport", TRACE_TRANSPORT }, 615 D("Invalid A_OKAY(%d,%d), expected A_OKAY(%d,%d) on transport %s\n", 633 * socket has a peer on the same transport. 635 if (p->msg.arg0 == 0 && s->peer && s->peer->transport != t) { 636 D("Invalid A_CLSE(0, %u) from transport %s, expected transport %s\n", 637 p->msg.arg1, t->serial, s->peer->transport->serial); 713 s->transport = l->transport; 739 if (l->transport) { 833 remove_listener(const char *local_name, atransport* transport) argument 866 install_listener(const char *local_name, const char *connect_to, atransport* transport, int no_rebind) argument 1479 atransport *transport; local 1557 atransport *transport = NULL; local [all...] |
H A D | Android.mk | 54 transport.c \ 104 transport.c \ 154 transport.c \
|
H A D | sockets.c | 136 if(s->transport == t || (s->peer && s->peer->transport == t)) { 485 /* a Remote socket is used to send/receive data to/from a given transport object 486 ** it needs to be closed when the transport is forcibly destroyed by the user 501 send_packet(p, s->transport); 513 send_packet(p, s->transport); 526 send_packet(p, s->transport); 540 remove_transport_disconnect( s->transport, &((aremotesocket*)s)->disconnect ); 554 remove_transport_disconnect( s->transport, &((aremotesocket*)s)->disconnect ); 558 /* Create an asocket to exchange packets with a remote service through transport [all...] |
H A D | commandline.c | 47 int install_app(transport_type transport, char* serial, int argc, char** argv); 48 int install_multiple_app(transport_type transport, char* serial, int argc, char** argv); 49 int uninstall_app(transport_type transport, char* serial, int argc, char** argv); 156 " adb jdwp - list PIDs of processes hosting a JDWP transport\n" 230 " 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp\n" 802 static int send_shellcommand(transport_type transport, char* serial, char* buf) argument 812 do_cmd(transport, serial, "wait-for-device", 0); 823 static int logcat(transport_type transport, char* serial, int argc, char **argv) argument 849 send_shellcommand(transport, serial, buf); 1842 static int pm_command(transport_type transport, cha argument 1860 uninstall_app(transport_type transport, char* serial, int argc, char** argv) argument 1878 delete_file(transport_type transport, char* serial, char* filename) argument 1903 install_app(transport_type transport, char* serial, int argc, char** argv) argument 1956 install_multiple_app(transport_type transport, char* serial, int argc, char** argv) argument [all...] |
H A D | transport.c | 210 D("%s: failed to read packet from transport socket on fd %d\n", t->serial, fd); 243 fatal_errno("cannot enqueue packet on transport socket"); 247 /* The transport is opened by transport_register_func before 252 ** of transport IO failure, the output thread will post a 255 ** The transport will not actually be closed until both 256 ** threads exit, but the input thread will kick the transport 265 D("%s: starting transport output thread on fd %d, SYNC online (%d)\n", 283 D("%s: received remote packet, sending to transport\n", 287 D("%s: failed to write apacket to transport\n", t->serial); 291 D("%s: remote read failed for transport\ 523 atransport *transport; member in struct:tmsg 689 register_transport(atransport *transport) argument 700 remove_transport(atransport *transport) argument [all...] |
H A D | adb.h | 23 #include "transport.h" /* readx(), writex() */ 139 atransport *transport; member in struct:asocket 144 ** will be called whenever a transport is disconnected (e.g. by the user) 146 ** transport (e.g. remote sockets, listeners, etc...) 157 /* a transport object models the connection to a remote device or emulator 158 ** there is one transport per connected device/emulator. a "local transport" 159 ** connects through TCP (for the emulator), while a "usb transport" through 162 ** note that kTransportHost doesn't really correspond to a real transport 204 int adb_port; // Use for emulators (local transport) 236 atransport *transport; member in struct:alistener [all...] |
H A D | services.c | 484 transport_type transport; member in struct:state_info 496 atransport *t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &err); 645 sinfo->transport = kTransportLocal; 648 sinfo->transport = kTransportUsb; 651 sinfo->transport = kTransportAny;
|