Home | History | Annotate | Download | only in adb

Lines Matching defs:port

97     int port = (int) (uintptr_t) cookie;
98 if (port <= 0) {
99 WriteFdFmt(fd, "invalid port %d\n", port);
105 snprintf(value, sizeof(value), "%d", port);
106 property_set("service.adb.tcp.port", value);
107 WriteFdFmt(fd, "restarting in TCP mode port: %d\n", port);
112 property_set("service.adb.tcp.port", "0");
430 int port = atoi(name + 4);
433 ret = socket_loopback_client(port, SOCK_STREAM);
438 ret = socket_network_client(name + 1, port, SOCK_STREAM);
486 int port;
487 if (sscanf(name + 6, "%d", &port) != 1) {
488 port = 0;
490 ret = create_service_thread(restart_tcp_service, (void *) (uintptr_t) port);
552 int port = DEFAULT_ADB_LOCAL_TRANSPORT_PORT;
554 if (sscanf(pieces[1].c_str(), "%d", &port) != 1) {
555 *response = android::base::StringPrintf("bad port number %s", pieces[1].c_str());
561 // but we're actually inserting the default port if necessary.
562 std::string serial = android::base::StringPrintf("%s:%d", hostname.c_str(), port);
564 int fd = socket_network_client_timeout(hostname.c_str(), port, SOCK_STREAM, 10);
567 hostname.c_str(), port);
575 int ret = register_socket_transport(fd, serial.c_str(), port, 0);
587 *response = android::base::StringPrintf("unable to parse '%s' as <console port>,<adb port>",
595 *response = android::base::StringPrintf("Invalid port numbers: %s", port_spec.c_str());
608 *response = android::base::StringPrintf("Emulator already registered on port %d", adb_port);