Lines Matching full:serial

222                     D("transport %s was kicked. giving up on it.", it->transport->serial.c_str());  in Run()
242 D("attempting to reconnect %s", attempt.transport->serial.c_str()); in Run()
246 D("attempting to reconnect %s failed.", attempt.transport->serial.c_str()); in Run()
249 attempt.transport->serial.c_str()); in Run()
263 D("reconnection to %s succeeded.", attempt.transport->serial.c_str()); in Run()
268 D("cancelling reconnection attempt to %s.", attempt.transport->serial.c_str()); in Run()
291 std::string Connection::Serial() const { in Serial() function in Connection
299 LOG(INFO) << "BlockingConnectionAdapter(" << Serial() << "): destructing"; in ~BlockingConnectionAdapter()
306 LOG(FATAL) << "BlockingConnectionAdapter(" << Serial() << "): started multiple times"; in Start()
312 LOG(INFO) << Serial() << ": write thread spawning"; in Start()
340 LOG(INFO) << Serial() << ": read thread spawning"; in StartReadThread()
344 PLOG(INFO) << Serial() << ": read failed"; in StartReadThread()
359 LOG(INFO) << Serial() << ": Received STLS packet. Stopping read thread."; in StartReadThread()
381 LOG(INFO) << "BlockingConnectionAdapter(" << Serial() << "): not started"; in Reset()
386 LOG(INFO) << "BlockingConnectionAdapter(" << Serial() << "): already stopped"; in Reset()
391 LOG(INFO) << "BlockingConnectionAdapter(" << Serial() << "): resetting"; in Reset()
400 LOG(INFO) << "BlockingConnectionAdapter(" << Serial() << "): not started"; in Stop()
405 LOG(INFO) << "BlockingConnectionAdapter(" << Serial() << "): already stopped"; in Stop()
412 LOG(INFO) << "BlockingConnectionAdapter(" << Serial() << "): stopping"; in Stop()
430 LOG(INFO) << "BlockingConnectionAdapter(" << Serial() << "): stopped"; in Stop()
569 VLOG(TRANSPORT) << dump_packet(t->serial.c_str(), "to remote", p); in send_packet()
576 D("%s: failed to enqueue packet, closing transport", t->serial.c_str()); in send_packet()
739 D("transport: %s deleting", t->serial.c_str()); in fdevent_unregister_transport()
821 D("transport: %s registered", transport->serial.c_str()); in register_transport()
826 D("transport: %s removed", transport->serial.c_str()); in remove_transport()
839 D("transport: %s destroy (attempting reconnection)", t->serial.c_str()); in transport_destroy()
849 D("transport: %s destroy (kicking and closing)", t->serial.c_str()); in transport_destroy()
877 // Contains either a device serial string or a USB device address like "usb:2-6"
888 bool transport_server_owns_device(std::string_view serial) { in transport_server_owns_device() argument
893 return serial.compare(__transport_server_one_device) == 0; in transport_server_owns_device()
896 bool transport_server_owns_device(std::string_view dev_path, std::string_view serial) { in transport_server_owns_device() argument
901 return serial.compare(__transport_server_one_device) == 0 || in transport_server_owns_device()
905 atransport* acquire_one_transport(TransportType type, const char* serial, TransportId transport_id, in acquire_one_transport() argument
913 } else if (serial) { in acquire_one_transport()
914 *error_out = android::base::StringPrintf("device '%s' not found", serial); in acquire_one_transport()
935 } else if (serial) { in acquire_one_transport()
936 if (t->MatchesTarget(serial)) { in acquire_one_transport()
938 *error_out = "more than one device with serial "s + serial; in acquire_one_transport()
1052 LOG(INFO) << "resetting transport " << this << " " << this->serial; in Reset()
1059 LOG(INFO) << "kicking transport " << this << " " << this->serial; in Kick()
1076 D("%s: attach", serial.c_str()); in Attach()
1085 *error = android::base::StringPrintf("transport %s is not detached", serial.c_str()); in Attach()
1103 D("%s: detach", serial.c_str()); in Detach()
1112 *error = android::base::StringPrintf("transport %s is already detached", serial.c_str()); in Detach()
1137 D("%s: remote read: bad header", serial.c_str()); in HandleRead()
1141 VLOG(TRANSPORT) << dump_packet(serial.c_str(), "from remote", p.get()); in HandleRead()
1276 if (!serial.empty()) { in MatchesTarget()
1277 if (target == serial) { in MatchesTarget()
1289 // Parse our |serial| and the given |target| to check if the hostnames and ports match. in MatchesTarget()
1292 if (android::base::ParseNetAddress(serial, &serial_host, &serial_port, nullptr, in MatchesTarget()
1363 device->set_serial(t->serial.c_str()); in transportListToProto()
1397 std::string serial = t->serial; in append_transport() local
1398 if (serial.empty()) { in append_transport()
1399 serial = "(no serial number)"; in append_transport()
1403 *result += serial; in append_transport()
1407 android::base::StringAppendF(result, "%-22s %s", serial.c_str(), in append_transport()
1440 return x->serial < y->serial; in list_transports()
1474 bool validate_transport_list(const std::list<atransport*>& list, const std::string& serial, in validate_transport_list() argument
1477 if (serial == transport->serial) { in validate_transport_list()
1479 VLOG(TRANSPORT) << "socket transport " << transport->serial << " is already in the " in validate_transport_list()
1489 bool register_socket_transport(unique_fd s, std::string serial, int port, int local, in register_socket_transport() argument
1493 t->serial = std::move(serial); in register_socket_transport()
1495 D("transport: %s init'ing for socket %d, on port %d", t->serial.c_str(), s.get(), port); in register_socket_transport()
1503 if (!validate_transport_list(pending_list, t->serial, t, error)) { in register_socket_transport()
1507 if (!validate_transport_list(transport_list, t->serial, t, error)) { in register_socket_transport()
1541 atransport* find_transport(const char* serial) { in find_transport() argument
1546 if (strcmp(serial, t->serial.c_str()) == 0) { in find_transport()
1570 void register_usb_transport(std::shared_ptr<Connection> connection, const char* serial, in register_usb_transport() argument
1573 if (serial) { in register_usb_transport()
1574 t->serial = serial; in register_usb_transport()
1591 void register_usb_transport(usb_handle* usb, const char* serial, const char* devpath, in register_usb_transport() argument
1595 D("transport: %p init'ing for usb_handle %p (sn='%s')", t, usb, serial ? serial : ""); in register_usb_transport()
1597 if (serial) { in register_usb_transport()
1598 t->serial = serial; in register_usb_transport()