Lines Matching full:serial
659 // * [tcp:|udp:]<serial>[:<port>]:<command>
660 // * <prefix>:<serial>:<command>
668 std::string_view serial; in parse_host_service() local
670 // Remove |count| bytes from the beginning of command and add them to |serial|. in parse_host_service()
671 auto consume = [&full_service, &serial, &command](size_t count) { in parse_host_service()
673 if (!serial.empty()) { in parse_host_service()
674 CHECK_EQ(serial.data() + serial.size(), command.data()); in parse_host_service()
677 serial = full_service.substr(0, serial.size() + count); in parse_host_service()
681 // Remove the trailing : from serial, and assign the values to the output parameters. in parse_host_service()
682 auto finish = [out_serial, out_command, &serial, &command] { in parse_host_service()
683 if (serial.empty() || command.empty()) { in parse_host_service()
687 CHECK_EQ(':', serial.back()); in parse_host_service()
688 serial.remove_suffix(1); in parse_host_service()
690 *out_serial = serial; in parse_host_service()
728 // Read an IPv6 address. `adb connect` creates the serial number from the canonical in parse_host_service()
786 std::string_view serial; in smart_socket_enqueue() local
826 if (android::base::ConsumePrefix(&service, "host-serial:")) { in smart_socket_enqueue()
827 // serial number should follow "host:" and could be a host:port string. in smart_socket_enqueue()
828 if (!internal::parse_host_service(&serial, &service, service)) { in smart_socket_enqueue()
857 service, type, serial.empty() ? nullptr : std::string(serial).c_str(), transport_id, in smart_socket_enqueue()
879 s2 = host_service_to_socket(service, serial, transport_id); in smart_socket_enqueue()