Searched refs:serial (Results 1 - 17 of 17) sorted by relevance

/system/core/toolbox/
H A Dwatchprops.c20 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 Dlsusb.c170 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 Dtransport.c88 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,
786 acquire_one_transport(int state, transport_type ttype, const char* serial, char** error_out) argument
921 const char* serial = t->serial; local
985 register_socket_transport(int s, const char *serial, int port, int local) argument
1007 find_transport(const char *serial) argument
1061 register_usb_transport(usb_handle *usb, const char *serial, const char *devpath, unsigned writeable) argument
[all...]
H A Dadb_client.h26 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 Dadb_client.c21 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 Dcommandline.c40 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);
88 " serial number or qualifier. Overrides ANDROID_SERIAL\n"
162 " adb get-serialno - prints: <serial-number>\n"
189 " ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.\n"
359 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_type ttype, const char* serial) argument
361 if (serial) {
362 snprintf(buffer, buflen, "host-serial:%s:%s", serial, comman
451 status_window(transport_type ttype, const char* serial) argument
608 send_shellcommand(transport_type transport, char* serial, char* buf) argument
629 logcat(transport_type transport, char* serial, int argc, char **argv) argument
919 char* serial = NULL; local
1381 do_cmd(transport_type ttype, char* serial, char *cmd, ...) argument
1452 pm_command(transport_type transport, char* serial, int argc, char** argv) argument
1473 uninstall_app(transport_type transport, char* serial, int argc, char** argv) argument
1491 delete_file(transport_type transport, char* serial, char* filename) argument
1537 install_app(transport_type transport, char* serial, int argc, char** argv) argument
[all...]
H A Dadb.h195 char *serial; member in struct:atransport
275 ** If serial is non-NULL then only the device with that serial will be chosen.
278 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char **error_out);
295 void register_socket_transport(int s, const char *serial, int port, int local);
301 void register_usb_transport(usb_handle *h, const char *serial, const char *devpath, unsigned writeable);
306 atransport *find_transport(const char *serial);
313 asocket *host_service_to_socket(const char* name, const char *serial);
489 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
H A Dusb_libusb.c56 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, NULL, 1);
383 char serial[256] = {0}; local
474 // read the device's serial number
475 memset(serial, 0, sizeof(serial));
[all...]
H A Dservices.c498 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 Dadb.c1242 char serial[100]; local
1260 snprintf(serial, sizeof(serial), "%s:%d", hostbuf, port);
1261 if (find_transport(serial)) {
1262 snprintf(buffer, buffer_size, "already connected to %s", serial);
1275 register_socket_transport(fd, serial, port, 0);
1276 snprintf(buffer, buffer_size, "connected to %s", serial);
1335 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) argument
1349 // "transport:" is used for switching transport with a specified serial number
1365 serial
1414 char* serial = service + 11; local
[all...]
H A Dusb_osx.c132 char serial[256]; local
242 // skip first word, and copy the rest to the serial string,
246 serial[i] = buffer[i + 1];
247 serial[i] = 0;
255 DBG("INFO: Found vid=%04x pid=%04x serial=%s\n", vendor, product,
256 serial);
267 register_usb_transport(handle, (serial[0] ? serial : NULL), devpath, 1);
H A Dusb_linux.c566 char serial[256]; local
613 /* read the device's serial number */
614 serial[0] = 0;
615 memset(serial, 0, sizeof(serial));
654 // skip first word, and copy the rest to the serial string, changing shorts to bytes.
657 serial[i - 1] = __le16_to_cpu(buffer[i]);
658 serial[i - 1] = 0;
672 register_usb_transport(usb, serial, devpath, usb->writeable);
H A Dsockets.c442 static asocket *create_host_service_socket(const char *name, const char* serial) argument
446 s = host_service_to_socket(name, serial);
624 skipping over the 'serial' parameter in the ADB protocol,
660 char* serial = NULL; local
706 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) {
708 service += strlen("host-serial:");
710 // serial number should follow "host:" and could be a host:port string.
714 serial = service;
738 if(handle_host_request(service, ttype, serial,
[all...]
/system/core/init/
H A Dproperty_service.c196 pi->serial = pi->serial | 1;
198 pi->serial = (len << 24) | ((pi->serial + 1) & 0xffffff);
199 __futex_wake(&pi->serial, INT32_MAX);
363 pa->serial++;
364 __futex_wake(&pa->serial, INT32_MAX);
370 pi->serial = (valuelen << 24);
378 pa->serial++;
379 __futex_wake(&pa->serial, INT32_MA
[all...]
/system/core/fastboot/
H A Dfastboot.c68 static const char *serial = 0; variable
191 return match_fastboot_with_serial(info, serial);
213 // require matching serial number or device path if requested
223 char* serial = info->serial_number; local
225 serial = "no permissions"; // like "adb devices"
227 if (!serial[0]) {
228 serial = "????????????";
232 printf("%s\tfastboot\n", serial);
234 printf("%-22s fastboot\n", serial);
236 printf("%-22s fastboot %s\n", serial, inf
[all...]
/system/extras/fatblock/
H A Dfat.h53 uint32_t serial; member in struct:fat_boot_sector
H A Dfs.c202 bs->serial = 0x42424242;

Completed in 59 milliseconds