/system/core/toolbox/ |
H A D | watchprops.c | 20 unsigned serial; member in struct:pwatch 43 unsigned serial = pa->serial; local 51 watchlist[n].serial = watchlist[n].pi->serial; 56 __futex_wait(&pa->serial, serial, 0); 57 } while(pa->serial == serial); 61 watchlist[count].serial [all...] |
/system/core/adb/ |
H A D | adb_client.h | 26 void adb_set_transport(transport_type type, const char* serial); 39 * is zero, or more than one emulator connected (or if you use -s <serial> 40 * with a <serial> that does not designate an emulator)
|
H A D | adb_client.c | 21 void adb_set_transport(transport_type type, const char* serial) argument 24 __adb_serial = serial; 34 const char* serial = __adb_serial; local 37 if (serial == NULL) { 55 if (serial != NULL) { /* more than one emulator listed */ 59 serial = p; 66 if (serial == NULL) 70 if (memcmp(serial, LOCAL_CLIENT_PREFIX, sizeof(LOCAL_CLIENT_PREFIX)-1) != 0) 74 serial += sizeof(LOCAL_CLIENT_PREFIX)-1; 75 port = strtol(serial, NUL [all...] |
H A D | commandline.c | 46 static int do_cmd(transport_type ttype, char* serial, char *cmd, ...); 51 int install_app(transport_type transport, char* serial, int argc, char** argv); 52 int uninstall_app(transport_type transport, char* serial, int argc, char** argv); 93 " -s <serial number> - directs command to the USB device or emulator with\n" 94 " the given serial number. Overrides ANDROID_SERIAL\n" 151 " adb get-serialno - prints: <serial-number>\n" 177 " ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.\n" 315 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_type ttype, const char* serial) argument 317 if (serial) { 318 snprintf(buffer, buflen, "host-serial 330 status_window(transport_type ttype, const char* serial) argument 487 send_shellcommand(transport_type transport, char* serial, char* buf) argument 508 logcat(transport_type transport, char* serial, int argc, char **argv) argument 690 char* serial = NULL; local 1102 do_cmd(transport_type ttype, char* serial, char *cmd, ...) argument 1173 pm_command(transport_type transport, char* serial, int argc, char** argv) argument 1194 uninstall_app(transport_type transport, char* serial, int argc, char** argv) argument 1212 delete_file(transport_type transport, char* serial, char* filename) argument 1226 install_app(transport_type transport, char* serial, int argc, char** argv) argument [all...] |
H A D | transport.c | 82 D("run_transport_disconnects: %p (%s)\n", t, t->serial ? t->serial : "unknown" ); 577 if (t->serial) 578 free(t->serial); 716 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char** error_out) argument 734 /* check for matching serial number */ 735 if (serial) { 736 if (t->serial && !strcmp(serial, t->serial)) { 824 const char* serial = t->serial; local 857 register_socket_transport(int s, const char *serial, int port, int local) argument 873 find_transport(const char *serial) argument 927 register_usb_transport(usb_handle *usb, const char *serial, unsigned writeable) argument [all...] |
H A D | adb.h | 184 char *serial; member in struct:atransport 256 ** If serial is non-NULL then only the device with that serial will be chosen. 259 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char **error_out); 276 void register_socket_transport(int s, const char *serial, int port, int local); 282 void register_usb_transport(usb_handle *h, const char *serial, unsigned writeable); 287 atransport *find_transport(const char *serial); 294 asocket *host_service_to_socket(const char* name, const char *serial); 412 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
|
H A D | usb_libusb.c | 56 char serial[128]; member in struct:usb_handle 327 register_device(struct usb_handle *uh, const char *serial) argument 330 uh, serial); 336 strcpy(usb->serial, uh->serial); 350 register_usb_transport(usb, serial, 1); 383 char serial[256] = {0}; local 474 // read the device's serial number 475 memset(serial, 0, sizeof(serial)); [all...] |
H A D | adb.c | 984 char serial[100]; local 1002 snprintf(serial, sizeof(serial), "%s:%d", hostbuf, port); 1003 if (find_transport(serial)) { 1004 snprintf(buffer, buffer_size, "already connected to %s", serial); 1017 register_socket_transport(fd, serial, port, 0); 1018 snprintf(buffer, buffer_size, "connected to %s", serial); 1077 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) argument 1091 // "transport:" is used for switching transport with a specified serial number 1107 serial 1153 char* serial = service + 11; local [all...] |
H A D | services.c | 433 char* serial; member in struct:state_info 444 atransport *t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &err); 451 if (sinfo->serial) 452 free(sinfo->serial); 460 asocket* host_service_to_socket(const char* name, const char *serial) argument 467 if (serial) 468 sinfo->serial = strdup(serial); 470 sinfo->serial = NULL;
|
H A D | usb_osx.c | 131 char serial[256]; local 234 // skip first word, and copy the rest to the serial string, 238 serial[i] = buffer[i + 1]; 239 serial[i] = 0; 247 DBG("INFO: Found vid=%04x pid=%04x serial=%s\n", vendor, product, 248 serial); 259 register_usb_transport(handle, (serial[0] ? serial : NULL), 1);
|
H A D | usb_linux.c | 541 char serial[256]; local 588 /* read the device's serial number */ 589 serial[0] = 0; 590 memset(serial, 0, sizeof(serial)); 627 // skip first word, and copy the rest to the serial string, changing shorts to bytes. 630 serial[i - 1] = buffer[i]; 631 serial[i - 1] = 0; 645 register_usb_transport(usb, serial, usb->writeable);
|
H A D | sockets.c | 405 static asocket *create_host_service_socket(const char *name, const char* serial) argument 409 s = host_service_to_socket(name, serial); 574 char* serial = NULL; local 620 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) { 622 service += strlen("host-serial:"); 624 // serial number should follow "host:" 628 serial = service; 652 if(handle_host_request(service, ttype, serial, s->peer->fd, s) == 0) { 667 s2 = create_host_service_socket(service, serial); [all...] |
/system/core/init/ |
H A D | property_service.c | 183 pi->serial = pi->serial | 1; 185 pi->serial = (len << 24) | ((pi->serial + 1) & 0xffffff); 186 __futex_wake(&pi->serial, INT32_MAX); 305 pa->serial++; 306 __futex_wake(&pa->serial, INT32_MAX); 312 pi->serial = (valuelen << 24); 320 pa->serial++; 321 __futex_wake(&pa->serial, INT32_MA [all...] |
/system/core/fastboot/ |
H A D | fastboot.c | 54 static const char *serial = 0; variable 163 // require matching serial number if a serial number is specified 165 if (serial && strcmp(serial, info->serial_number) != 0) return -1; 172 char* serial = info->serial_number; local 174 serial = "no permissions"; // like "adb devices" 176 if (!serial[0]) { 177 serial = "????????????"; 180 printf("%s\tfastboot\n", serial); [all...] |