Lines Matching refs:service
88 char service[64];
93 snprintf(service, sizeof service, "host:transport:%s", __adb_serial);
113 snprintf(service, sizeof service, "host:%s", transport_type);
115 len = strlen(service);
118 if(writex(fd, tmp, 4) || writex(fd, service, len)) {
170 int _adb_connect(const char *service)
176 D("_adb_connect: %s\n", service);
177 len = strlen(service);
179 strcpy(__adb_error, "service name too long");
190 if (memcmp(service,"host",4) != 0 && switch_socket_transport(fd)) {
194 if(writex(fd, tmp, 4) || writex(fd, service, len)) {
209 int adb_connect(const char *service)
214 D("adb_connect: service %s\n", service);
246 // if fd is -1, then check for "unknown host service",
248 if (strcmp(__adb_error, "unknown host service") != 0)
264 if (!strcmp(service, "host:start-server"))
267 fd = _adb_connect(service);
280 int adb_command(const char *service)
282 int fd = adb_connect(service);
295 char *adb_query(const char *service)
301 D("adb_query: %s\n", service);
302 int fd = adb_connect(service);