Home
last modified time | relevance | path

Searched refs:serial (Results 1 – 18 of 18) sorted by relevance

/system/core/adb/
Dtransport.c93 D("%s: run_transport_disconnects\n", t->serial); in run_transport_disconnects()
209 if(read_packet(fd, t->serial, &p)){ in transport_socket_events()
210 D("%s: failed to read packet from transport socket on fd %d\n", t->serial, fd); in transport_socket_events()
242 if(write_packet(t->transport_socket, t->serial, &p)){ in send_packet()
266 t->serial, t->fd, t->sync_token + 1); in output_thread()
272 if(write_packet(t->fd, t->serial, &p)) { in output_thread()
274 D("%s: failed to write SYNC packet\n", t->serial); in output_thread()
278 D("%s: data pump started\n", t->serial); in output_thread()
284 t->serial); in output_thread()
285 if(write_packet(t->fd, t->serial, &p)){ in output_thread()
[all …]
Dadb_client.c22 void adb_set_transport(transport_type type, const char* serial) in adb_set_transport() argument
25 __adb_serial = serial; in adb_set_transport()
40 const char* serial = __adb_serial; in adb_get_emulator_console_port() local
43 if (serial == NULL) { in adb_get_emulator_console_port()
61 if (serial != NULL) { /* more than one emulator listed */ in adb_get_emulator_console_port()
65 serial = p; in adb_get_emulator_console_port()
72 if (serial == NULL) in adb_get_emulator_console_port()
76 if (memcmp(serial, LOCAL_CLIENT_PREFIX, sizeof(LOCAL_CLIENT_PREFIX)-1) != 0) in adb_get_emulator_console_port()
80 serial += sizeof(LOCAL_CLIENT_PREFIX)-1; in adb_get_emulator_console_port()
81 port = strtol(serial, NULL, 10); in adb_get_emulator_console_port()
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);
374 …ommand(char* buffer, size_t buflen, const char* command, transport_type ttype, const char* serial) in format_host_command() argument
376 if (serial) { in format_host_command()
377 snprintf(buffer, buflen, "host-serial:%s:%s", serial, command); in format_host_command()
466 static void status_window(transport_type ttype, const char* serial) in status_window() argument
482 format_host_command(command, sizeof command, "get-state", ttype, serial); in status_window()
623 static int send_shellcommand(transport_type transport, char* serial, char* buf) in send_shellcommand() argument
633 do_cmd(transport, serial, "wait-for-device", 0); in send_shellcommand()
[all …]
Dservices.c401 char* serial; member
412 atransport *t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &err); in wait_for_state()
419 if (sinfo->serial) in wait_for_state()
420 free(sinfo->serial); in wait_for_state()
431 char serial[100]; in connect_device() local
450 snprintf(serial, sizeof(serial), "%s:%d", hostbuf, port); in connect_device()
462 ret = register_socket_transport(fd, serial, port, 0); in connect_device()
465 snprintf(buffer, buffer_size, "already connected to %s", serial); in connect_device()
467 snprintf(buffer, buffer_size, "connected to %s", serial); in connect_device()
546 asocket* host_service_to_socket(const char* name, const char *serial) in host_service_to_socket() argument
[all …]
Dusb_libusb.c56 char serial[128]; member
327 register_device(struct usb_handle *uh, const char *serial) in register_device() argument
330 uh, serial); in register_device()
336 strcpy(usb->serial, uh->serial); in register_device()
350 register_usb_transport(usb, serial, NULL, 1); in register_device()
383 char serial[256] = {0}; in check_device() local
475 memset(serial, 0, sizeof(serial)); in check_device()
519 serial[j - 1] = buffer[j]; in check_device()
521 serial[j - 1] = '\0'; in check_device()
526 if (register_device(&uh, serial) == 0) { in check_device()
Dadb.h192 char *serial; member
275 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char **error…
292 int register_socket_transport(int s, const char *serial, int port, int local);
298 void register_usb_transport(usb_handle *h, const char *serial, const char *devpath, unsigned writea…
303 atransport *find_transport(const char *serial);
310 asocket *host_service_to_socket(const char* name, const char *serial);
487 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s…
DSERVICES.TXT45 host:transport:<serial-number>
47 <serial-number>. After the OKAY response, every client request will
67 host-serial:<serial-number>:<request>
68 This is a special form of query, where the 'host-serial:<serial-number>:'
74 A variant of host-serial used to target the single USB device connected
78 A variant of host-serial used to target the single emulator instance
90 Returns the serial number of the corresponding device/emulator.
91 Note that emulator serial numbers are of the form "emulator-5554"
104 host-serial/host-usb/host-local/host prefixes as described previously
141 <serial> " " <local> " " <remote> "\n"
[all …]
Dadb.c752 int serial_len = strlen(l->transport->serial); in format_listener()
756 l->transport->serial, l->local_name, l->connect_to); in format_listener()
1390 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) in handle_host_request() argument
1420 serial = service; in handle_host_request()
1423 transport = acquire_one_transport(CS_ANY, type, serial, &error_string); in handle_host_request()
1454 char* serial = service + 11; in handle_host_request() local
1455 if (serial[0] == 0) { in handle_host_request()
1461 if (!strchr(serial, ':')) { in handle_host_request()
1462 snprintf(hostbuf, sizeof(hostbuf) - 1, "%s:5555", serial); in handle_host_request()
1463 serial = hostbuf; in handle_host_request()
[all …]
Dusb_osx.c132 char serial[256]; in AndroidInterfaceAdded() local
246 serial[i] = buffer[i + 1]; in AndroidInterfaceAdded()
247 serial[i] = 0; in AndroidInterfaceAdded()
256 serial); in AndroidInterfaceAdded()
267 register_usb_transport(handle, (serial[0] ? serial : NULL), devpath, 1); in AndroidInterfaceAdded()
Dadb_client.h26 void adb_set_transport(transport_type type, const char* serial);
Dusb_linux.c566 char serial[256]; in register_device() local
614 serial[0] = 0; in register_device()
615 memset(serial, 0, sizeof(serial)); in register_device()
657 serial[i - 1] = __le16_to_cpu(buffer[i]); in register_device()
658 serial[i - 1] = 0; in register_device()
672 register_usb_transport(usb, serial, devpath, usb->writeable); in register_device()
Dsockets.c442 static asocket *create_host_service_socket(const char *name, const char* serial) in create_host_service_socket() argument
446 s = host_service_to_socket(name, serial); in create_host_service_socket()
660 char* serial = NULL; in smart_socket_enqueue() local
714 serial = service; in smart_socket_enqueue()
738 if(handle_host_request(service, ttype, serial, s->peer->fd, s) == 0) { in smart_socket_enqueue()
753 s2 = create_host_service_socket(service, serial); in smart_socket_enqueue()
/system/core/toolbox/
Dwatchprops.c62 unsigned *serial; in update_watchlist() local
65 serial = hashmapGet(watchlist, name); in update_watchlist()
66 if (!serial) { in update_watchlist()
71 if (*serial != tmp) { in update_watchlist()
72 *serial = tmp; in update_watchlist()
80 unsigned serial = 0; in watchprops_main() local
91 serial = __system_property_wait_any(serial); in watchprops_main()
Dlsusb.c170 char *mfg_name, *product_name, *serial; in lsusb_device_added() local
176 serial = usb_device_get_serial(dev); in lsusb_device_added()
179 mfg_name, product_name, serial); in lsusb_device_added()
183 free(serial); in lsusb_device_added()
/system/core/fastboot/
Dfastboot.c71 static const char *serial = 0; variable
240 return match_fastboot_with_serial(info, serial); in match_fastboot()
246 char* serial = info->serial_number; in list_devices_callback() local
248 serial = "no permissions"; // like "adb devices" in list_devices_callback()
250 if (!serial[0]) { in list_devices_callback()
251 serial = "????????????"; in list_devices_callback()
255 printf("%s\tfastboot\n", serial); in list_devices_callback()
257 printf("%-22s fastboot\n", serial); in list_devices_callback()
259 printf("%-22s fastboot %s\n", serial, info->device_path); in list_devices_callback()
902 serial = getenv("ANDROID_SERIAL"); in main()
[all …]
Dfastboot_protocol.txt163 serialno Product serial number
/system/extras/fatblock/
Dfat.h53 uint32_t serial; member
Dfs.c202 bs->serial = 0x42424242; in fs_init()