/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...] |
H A D | lsusb.c | 170 char *mfg_name, *product_name, *serial; local 176 serial = usb_device_get_serial(dev); 179 mfg_name, product_name, serial); 183 free(serial);
|
/system/core/adb/ |
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 | services.c | 498 char* serial; member in struct:state_info 509 atransport *t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &err); 516 if (sinfo->serial) 517 free(sinfo->serial); 525 asocket* host_service_to_socket(const char* name, const char *serial) argument 532 if (serial) 533 sinfo->serial = strdup(serial); 535 sinfo->serial = NULL;
|
H A D | sockets.c | 442 static asocket *create_host_service_socket(const char *name, const char* serial) argument 446 s = host_service_to_socket(name, serial); 612 skipping over the 'serial' parameter in the ADB protocol, 642 char* serial = NULL; local 688 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) { 690 service += strlen("host-serial:"); 692 // serial number should follow "host:" and could be a host:port string. 696 serial = service; 720 if(handle_host_request(service, ttype, serial, [all...] |
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 | 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 | adb.h | 191 char *serial; member in struct:atransport 263 ** If serial is non-NULL then only the device with that serial will be chosen. 266 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char **error_out); 283 void register_socket_transport(int s, const char *serial, int port, int local); 289 void register_usb_transport(usb_handle *h, const char *serial, unsigned writeable); 294 atransport *find_transport(const char *serial); 301 asocket *host_service_to_socket(const char* name, const char *serial); 465 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
|
H A D | transport.c | 88 D("%s: run_transport_disconnects\n", t->serial); 204 if(read_packet(fd, t->serial, &p)){ 205 D("%s: failed to read packet from transport socket on fd %d\n", t->serial, fd); 237 if(write_packet(t->transport_socket, t->serial, &p)){ 261 t->serial, t->fd, t->sync_token + 1); 267 if(write_packet(t->fd, t->serial, &p)) { 269 D("%s: failed to write SYNC packet\n", t->serial); 273 D("%s: data pump started\n", t->serial); 279 t->serial); 280 if(write_packet(t->fd, t->serial, 741 acquire_one_transport(int state, transport_type ttype, const char* serial, char** error_out) argument 850 const char* serial = t->serial; local 883 register_socket_transport(int s, const char *serial, int port, int local) argument 905 find_transport(const char *serial) argument 959 register_usb_transport(usb_handle *usb, const char *serial, unsigned writeable) argument [all...] |
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)); 629 // skip first word, and copy the rest to the serial string, changing shorts to bytes. 632 serial[i - 1] = __le16_to_cpu(buffer[i]); 633 serial[i - 1] = 0; 647 register_usb_transport(usb, serial, usb->writeable);
|
H A D | adb.c | 1066 char serial[100]; local 1084 snprintf(serial, sizeof(serial), "%s:%d", hostbuf, port); 1085 if (find_transport(serial)) { 1086 snprintf(buffer, buffer_size, "already connected to %s", serial); 1099 register_socket_transport(fd, serial, port, 0); 1100 snprintf(buffer, buffer_size, "connected to %s", serial); 1159 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) argument 1173 // "transport:" is used for switching transport with a specified serial number 1189 serial 1235 char* serial = service + 11; local [all...] |
H A D | commandline.c | 40 static int do_cmd(transport_type ttype, char* serial, char *cmd, ...); 45 int install_app(transport_type transport, char* serial, int argc, char** argv); 46 int uninstall_app(transport_type transport, char* serial, int argc, char** argv); 87 " -s <serial number> - directs command to the USB device or emulator with\n" 88 " the given serial number. Overrides ANDROID_SERIAL\n" 161 " adb get-serialno - prints: <serial-number>\n" 187 " ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.\n" 357 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_type ttype, const char* serial) argument 359 if (serial) { 360 snprintf(buffer, buflen, "host-serial 449 status_window(transport_type ttype, const char* serial) argument 606 send_shellcommand(transport_type transport, char* serial, char* buf) argument 627 logcat(transport_type transport, char* serial, int argc, char **argv) argument 917 char* serial = NULL; local 1369 do_cmd(transport_type ttype, char* serial, char *cmd, ...) argument 1440 pm_command(transport_type transport, char* serial, int argc, char** argv) argument 1461 uninstall_app(transport_type transport, char* serial, int argc, char** argv) argument 1479 delete_file(transport_type transport, char* serial, char* filename) argument 1525 install_app(transport_type transport, char* serial, int argc, char** argv) argument [all...] |
/system/core/fastboot/ |
H A D | fastboot.c | 56 static const char *serial = 0; variable 170 // require matching serial number if a serial number is specified 172 if (serial && strcmp(serial, info->serial_number) != 0) return -1; 179 char* serial = info->serial_number; local 181 serial = "no permissions"; // like "adb devices" 183 if (!serial[0]) { 184 serial = "????????????"; 187 printf("%s\tfastboot\n", serial); [all...] |
/system/extras/fatblock/ |
H A D | fat.h | 53 uint32_t serial; member in struct:fat_boot_sector
|