/system/core/fastbootd/ |
D | transport.c | 32 return thandle->transport->write(thandle, buffer, len); in transport_handle_write() 37 thandle->transport->close(thandle); in transport_handle_close() 64 ret = thandle->transport->read(thandle, buffer + n, len - n); in transport_handle_download() 95 ret = thandle->transport->read(thandle, buffer, COMMAND_BUF_SIZE); in transport_data_thread() 115 struct transport *transport = arg; in transport_connect_thread() local 116 while (!transport->stopped) { in transport_connect_thread() 122 thandle = transport->connect(transport); in transport_connect_thread() 128 thandle->transport = transport; in transport_connect_thread() 141 void transport_register(struct transport *transport) in transport_register() argument 149 pthread_create(&thread, &attr, transport_connect_thread, transport); in transport_register()
|
D | transport.h | 23 struct transport *transport; member 28 struct transport { struct 33 struct transport_handle *(*connect)(struct transport *transport); argument 37 void transport_register(struct transport *transport); argument
|
D | transport_socket.c | 51 struct transport transport; member 68 struct transport_handle *socket_connect(struct transport *transport) in socket_connect() argument 71 …uct socket_transport *socket_transport = container_of(transport, struct socket_transport, transpor… in socket_connect() 140 socket_transport->transport.connect = socket_connect; in transport_socket_init() 141 socket_transport->transport.close = socket_close; in transport_socket_init() 142 socket_transport->transport.read = socket_read; in transport_socket_init() 143 socket_transport->transport.write = socket_write; in transport_socket_init() 151 transport_register(&socket_transport->transport); in transport_socket_init()
|
D | usb_linux_client.c | 58 struct transport transport; member 217 struct transport *t = thandle->transport; in usb_write() 218 struct usb_transport *usb_transport = container_of(t, struct usb_transport, transport); in usb_write() 233 struct transport *t = thandle->transport; in usb_read() 234 struct usb_transport *usb_transport = container_of(t, struct usb_transport, transport); in usb_read() 249 struct transport *t = thandle->transport; in usb_close() 250 struct usb_transport *usb_transport = container_of(t, struct usb_transport, transport); in usb_close() 270 struct transport_handle *usb_connect(struct transport *transport) in usb_connect() argument 274 struct usb_transport *usb_transport = container_of(transport, struct usb_transport, transport); in usb_connect() 295 usb_transport->transport.connect = usb_connect; in usb_init() [all …]
|
D | Android.mk | 37 transport.c \
|
/system/core/adb/ |
D | adb.c | 635 if (p->msg.arg0 == 0 && s->peer && s->peer->transport != t) { in handle_packet() 637 p->msg.arg1, t->serial, s->peer->transport->serial); in handle_packet() 713 s->transport = l->transport; in listener_event_func() 739 if (l->transport) { in free_listener() 740 remove_transport_disconnect(l->transport, &l->disconnect); in free_listener() 797 int serial_len = strlen(l->transport->serial); in format_listener() 801 l->transport->serial, l->local_name, l->connect_to); in format_listener() 833 static int remove_listener(const char *local_name, atransport* transport) in remove_listener() argument 839 listener_disconnect(l, l->transport); in remove_listener() 854 listener_disconnect(l, l->transport); in remove_all_listeners() [all …]
|
D | sockets.c | 136 if(s->transport == t || (s->peer && s->peer->transport == t)) { in close_all_sockets() 501 send_packet(p, s->transport); in remote_socket_enqueue() 513 send_packet(p, s->transport); in remote_socket_ready() 526 send_packet(p, s->transport); in remote_socket_shutdown() 540 remove_transport_disconnect( s->transport, &((aremotesocket*)s)->disconnect ); in remote_socket_close() 554 remove_transport_disconnect( s->transport, &((aremotesocket*)s)->disconnect ); in remote_socket_disconnect() 577 s->transport = t; in create_remote_socket() 601 send_packet(p, s->transport); in connect_to_remote() 830 if (s->transport == NULL) { in smart_socket_enqueue() 832 s->transport = acquire_one_transport (CS_ANY, in smart_socket_enqueue() [all …]
|
D | Android.mk | 54 transport.c \ 104 transport.c \ 141 transport.c \
|
D | commandline.c | 46 int install_app(transport_type transport, char* serial, int argc, char** argv); 47 int install_multiple_app(transport_type transport, char* serial, int argc, char** argv); 48 int uninstall_app(transport_type transport, char* serial, int argc, char** argv); 798 static int send_shellcommand(transport_type transport, char* serial, char* buf) in send_shellcommand() argument 808 do_cmd(transport, serial, "wait-for-device", 0); in send_shellcommand() 819 static int logcat(transport_type transport, char* serial, int argc, char **argv) in logcat() argument 845 send_shellcommand(transport, serial, buf); in logcat() 1833 static int pm_command(transport_type transport, char* serial, in pm_command() argument 1847 send_shellcommand(transport, serial, buf); in pm_command() 1851 int uninstall_app(transport_type transport, char* serial, int argc, char** argv) in uninstall_app() argument [all …]
|
D | OVERVIEW.TXT | 114 For example, the case of the 'host:transport:<serialnumber>' request, 124 An ADB transport models a connection between the ADB server and one device 132 In theory, it should be possible to write a local transport that proxies 136 Each transport can carry one or more multiplexed streams between clients 138 unexpected transport disconnections (e.g. when a device is physically
|
D | transport.c | 523 atransport *transport; member 587 t = m.transport; in transport_registration_func() 689 static void register_transport(atransport *transport) in register_transport() argument 692 m.transport = transport; in register_transport() 694 D("transport: %s registered\n", transport->serial); in register_transport() 700 static void remove_transport(atransport *transport) in remove_transport() argument 703 m.transport = transport; in remove_transport() 705 D("transport: %s removed\n", transport->serial); in remove_transport()
|
D | services.c | 482 transport_type transport; member 494 atransport *t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &err); in wait_for_state() 643 sinfo->transport = kTransportLocal; in host_service_to_socket() 646 sinfo->transport = kTransportUsb; in host_service_to_socket() 649 sinfo->transport = kTransportAny; in host_service_to_socket()
|
D | SERVICES.TXT | 45 host:transport:<serial-number> 51 host:transport-usb 56 host:transport-local 61 host:transport-any 62 Another host:transport variant. Ask to switch the connection to 151 All the queries below assumed that you already switched the transport
|
D | adb.h | 139 atransport *transport; member 236 atransport *transport; member
|
D | protocol.txt | 27 The transport layer deals in "messages", which consist of a 24 byte
|