/system/core/adb/ |
D | transport.cpp | 87 D("%s: run_transport_disconnects\n", t->serial); in run_transport_disconnects() 195 if(read_packet(fd, t->serial, &p)){ in transport_socket_events() 196 D("%s: failed to read packet from transport socket on fd %d\n", t->serial, fd); in transport_socket_events() 228 if(write_packet(t->transport_socket, t->serial, &p)){ in send_packet() 252 t->serial, t->fd, t->sync_token + 1); in output_thread() 258 if(write_packet(t->fd, t->serial, &p)) { in output_thread() 260 D("%s: failed to write SYNC packet\n", t->serial); in output_thread() 264 D("%s: data pump started\n", t->serial); in output_thread() 270 t->serial); in output_thread() 271 if(write_packet(t->fd, t->serial, &p)){ in output_thread() [all …]
|
D | transport.h | 33 const char* serial, std::string* error_out); 45 atransport* find_transport(const char* serial); 47 void register_usb_transport(usb_handle* h, const char* serial, 51 int register_socket_transport(int s, const char* serial, int port, int local);
|
D | commandline.cpp | 50 static int install_app(transport_type t, const char* serial, int argc, const char** argv); 51 static int install_multiple_app(transport_type t, const char* serial, int argc, const char** argv); 52 static int uninstall_app(transport_type t, const char* serial, int argc, const char** argv); 435 static std::string format_host_command(const char* command, transport_type type, const char* serial… in format_host_command() argument 436 if (serial) { in format_host_command() 437 return android::base::StringPrintf("host-serial:%s:%s", serial, command); in format_host_command() 677 static bool wait_for_device(const char* service, transport_type t, const char* serial) { in wait_for_device() argument 690 std::string cmd = format_host_command(service, t, serial); in wait_for_device() 701 static int send_shell_command(transport_type transport_type, const char* serial, in send_shell_command() argument 712 wait_for_device("wait-for-device", transport_type, serial); in send_shell_command() [all …]
|
D | adb.cpp | 485 p->msg.arg0, p->msg.arg1, s->peer->id, p->msg.arg1, t->serial); in handle_packet() 506 p->msg.arg1, t->serial, s->peer->transport->serial); in handle_packet() 699 int handle_forward_request(const char* service, transport_type ttype, char* serial, int reply_fd) in handle_forward_request() argument 760 transport = acquire_one_transport(CS_ANY, ttype, serial, &error_msg); in handle_forward_request() 799 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) in handle_host_request() argument 826 serial = service; in handle_host_request() 830 transport = acquire_one_transport(CS_ANY, type, serial, &error_msg); in handle_host_request() 859 char* serial = service + 11; in handle_host_request() local 860 if (serial[0] == 0) { in handle_host_request() 866 if (!strchr(serial, ':')) { in handle_host_request() [all …]
|
D | services.cpp | 518 char* serial; member 529 … atransport* t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &error_msg); in wait_for_state() 536 if (sinfo->serial) in wait_for_state() 537 free(sinfo->serial); in wait_for_state() 562 std::string serial = android::base::StringPrintf("%s:%d", hostname.c_str(), port); in connect_device() local 575 int ret = register_socket_transport(fd, serial.c_str(), port, 0); in connect_device() 578 *response = android::base::StringPrintf("already connected to %s", serial.c_str()); in connect_device() 580 *response = android::base::StringPrintf("connected to %s", serial.c_str()); in connect_device() 648 asocket* host_service_to_socket(const char* name, const char *serial) in host_service_to_socket() argument 659 if (serial) in host_service_to_socket() [all …]
|
D | SERVICES.TXT | 45 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 …]
|
D | adb.h | 197 char *serial; member 277 asocket *host_service_to_socket(const char* name, const char *serial); 287 int handle_forward_request(const char* service, transport_type ttype, char* serial, int reply_fd); 374 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s…
|
D | usb_osx.cpp | 119 char serial[256]; in AndroidInterfaceAdded() local 243 serial[i] = buffer[i + 1]; in AndroidInterfaceAdded() 244 serial[i] = 0; in AndroidInterfaceAdded() 253 serial); in AndroidInterfaceAdded() 264 register_usb_transport(handle, (serial[0] ? serial : NULL), devpath, 1); in AndroidInterfaceAdded()
|
D | usb_linux.cpp | 634 std::string serial; in register_device() local 635 if (!android::base::ReadFileToString(serial_path, &serial)) { in register_device() 640 serial = ""; in register_device() 642 serial = android::base::Trim(serial); in register_device() 652 register_usb_transport(usb, serial.c_str(), dev_path, usb->writeable); in register_device()
|
D | adb_client.h | 26 void adb_set_transport(transport_type type, const char* serial);
|
D | sockets.cpp | 443 static asocket *create_host_service_socket(const char *name, const char* serial) in create_host_service_socket() argument 447 s = host_service_to_socket(name, serial); in create_host_service_socket() 681 char* serial = NULL; in smart_socket_enqueue() local 735 serial = service; in smart_socket_enqueue() 759 if(handle_host_request(service, ttype, serial, s->peer->fd, s) == 0) { in smart_socket_enqueue() 774 s2 = create_host_service_socket(service, serial); in smart_socket_enqueue()
|
D | adb_client.cpp | 67 void adb_set_transport(transport_type type, const char* serial) in adb_set_transport() argument 70 __adb_serial = serial; in adb_set_transport()
|
D | transport_local.cpp | 109 std::string serial = android::base::StringPrintf("emulator-%d", console_port); in local_connect_arbitrary_ports() local 110 register_socket_transport(fd, serial.c_str(), adb_port, 1); in local_connect_arbitrary_ports()
|
D | adb_listeners.cpp | 158 l->transport->serial, l->local_name, l->connect_to); in format_listeners()
|
/system/core/toolbox/ |
D | watchprops.c | 61 unsigned *serial; in update_watchlist() local 64 serial = hashmapGet(watchlist, name); in update_watchlist() 65 if (!serial) { in update_watchlist() 70 if (*serial != tmp) { in update_watchlist() 71 *serial = tmp; in update_watchlist() 79 unsigned serial; in watchprops_main() local 87 for(serial = 0;;) { in watchprops_main() 88 serial = __system_property_wait_any(serial); in watchprops_main()
|
/system/core/liblog/ |
D | log_is_loggable.c | 28 uint32_t serial; member 34 uint32_t serial; in refresh_cache() local 43 serial = __system_property_serial(cache->pinfo); in refresh_cache() 44 if (serial == cache->serial) { in refresh_cache() 47 cache->serial = serial; in refresh_cache() 100 tag_cache[i].serial = -1; in __android_log_level()
|
/system/core/include/system/ |
D | radio.h | 138 char serial[RADIO_STRING_LEN_MAX]; /* serial number (for subscription services) */ member 154 char serial[RADIO_STRING_LEN_MAX]; member
|
/system/core/fastboot/ |
D | fastboot.cpp | 62 static const char *serial = 0; variable 220 return match_fastboot_with_serial(info, serial); in match_fastboot() 226 const char* serial = info->serial_number; in list_devices_callback() local 228 serial = "no permissions"; // like "adb devices" in list_devices_callback() 230 if (!serial[0]) { in list_devices_callback() 231 serial = "????????????"; in list_devices_callback() 235 printf("%s\tfastboot\n", serial); in list_devices_callback() 237 printf("%-22s fastboot\n", serial); in list_devices_callback() 239 printf("%-22s fastboot %s\n", serial, info->device_path); in list_devices_callback() 1029 serial = getenv("ANDROID_SERIAL"); in main() [all …]
|
D | fastboot_protocol.txt | 163 serialno Product serial number
|