Home | History | Annotate | Download | only in adb

Lines Matching defs:transport

91         { "transport", TRACE_TRANSPORT },
442 s->transport = l->transport;
468 if (l->transport) {
469 remove_transport_disconnect(l->transport, &l->disconnect);
509 static int remove_listener(const char *local_name, const char *connect_to, atransport* transport)
516 l->transport && l->transport == transport) {
518 listener_disconnect(l, transport);
526 static int install_listener(const char *local_name, const char *connect_to, atransport* transport)
549 if (l->transport != transport) {
550 remove_transport_disconnect(l->transport, &l->disconnect);
551 l->transport = transport;
552 add_transport_disconnect(l->transport, &l->disconnect);
584 l->transport = transport;
586 if (transport) {
589 add_transport_disconnect(transport, &l->disconnect);
922 /* for the device, start the usb transport if the
924 ** is not set, otherwise start the network transport.
961 atransport *transport = NULL;
973 // "transport:" is used for switching transport with a specified serial number
974 // "transport-usb:" is used for switching transport to the only USB transport
975 // "transport-local:" is used for switching transport to the only local transport
976 // "transport-any:" is used for switching transport to the only transport
977 if (!strncmp(service, "transport", strlen("transport"))) {
981 if (!strncmp(service, "transport-usb", strlen("transport-usb"))) {
983 } else if (!strncmp(service, "transport-local", strlen("transport-local"))) {
985 } else if (!strncmp(service, "transport-any", strlen("transport-any"))) {
987 } else if (!strncmp(service, "transport:", strlen("transport:"))) {
988 service += strlen("transport:");
992 transport = acquire_one_transport(CS_ANY, type, serial, &error_string);
994 if (transport) {
995 s->transport = transport;
1016 // add a new TCP transport
1058 // remove TCP transport
1087 transport = acquire_one_transport(CS_ANY, ttype, serial, NULL);
1088 if (transport && transport->serial) {
1089 out = transport->serial;
1107 atransport *transport;
1124 transport = acquire_one_transport(CS_ANY, ttype, serial, &err);
1125 if (!transport) {
1131 r = install_listener(local, remote, transport);
1133 r = remove_listener(local, remote, transport);
1150 transport = acquire_one_transport(CS_ANY, ttype, serial, NULL);
1151 char *state = connection_state_name(transport);