Lines Matching refs:service
114 std::string service; in switch_socket_transport() local
116 service += "host:transport:"; in switch_socket_transport()
117 service += __adb_serial; in switch_socket_transport()
134 service += "host:"; in switch_socket_transport()
135 service += transport_type; in switch_socket_transport()
138 if (!SendProtocolString(fd, service)) { in switch_socket_transport()
175 int _adb_connect(const std::string& service, std::string* error) { in _adb_connect() argument
176 D("_adb_connect: %s\n", service.c_str()); in _adb_connect()
177 if (service.empty() || service.size() > 1024) { in _adb_connect()
179 static_cast<int>(service.size())); in _adb_connect()
194 if (memcmp(&service[0],"host",4) != 0 && switch_socket_transport(fd, error)) { in _adb_connect()
198 if(!SendProtocolString(fd, service)) { in _adb_connect()
213 int adb_connect(const std::string& service, std::string* error) { in adb_connect() argument
217 D("adb_connect: service %s\n", service.c_str()); in adb_connect()
270 if (service == "host:start-server") { in adb_connect()
274 fd = _adb_connect(service, error); in adb_connect()
289 int adb_command(const std::string& service, std::string* error) { in adb_command() argument
290 int fd = adb_connect(service, error); in adb_command()
304 bool adb_query(const std::string& service, std::string* result, std::string* error) { in adb_query() argument
305 D("adb_query: %s\n", service.c_str()); in adb_query()
306 int fd = adb_connect(service, error); in adb_query()