/system/core/adb/ |
D | transport.cpp | 143 if(read_packet(fd, t->serial, &p)){ in transport_socket_events() 144 D("%s: failed to read packet from transport socket on fd %d", t->serial, fd); in transport_socket_events() 176 if(write_packet(t->transport_socket, t->serial, &p)){ in send_packet() 199 … (t->serial != nullptr ? t->serial : "transport"))); in read_transport_thread() 201 t->serial, t->fd, t->sync_token + 1); in read_transport_thread() 207 if(write_packet(t->fd, t->serial, &p)) { in read_transport_thread() 209 D("%s: failed to write SYNC packet", t->serial); in read_transport_thread() 213 D("%s: data pump started", t->serial); in read_transport_thread() 219 t->serial); in read_transport_thread() 220 if(write_packet(t->fd, t->serial, &p)){ in read_transport_thread() [all …]
|
D | console.cpp | 57 static int adb_get_emulator_console_port(const char* serial) { in adb_get_emulator_console_port() argument 58 if (serial) { in adb_get_emulator_console_port() 61 return (sscanf(serial, "emulator-%d", &port) == 1) ? port : -1; in adb_get_emulator_console_port() 94 static int connect_to_console(const char* serial) { in connect_to_console() argument 95 int port = adb_get_emulator_console_port(serial); in connect_to_console() 110 int adb_send_emulator_command(int argc, const char** argv, const char* serial) { in adb_send_emulator_command() argument 111 int fd = connect_to_console(serial); in adb_send_emulator_command()
|
D | adb_client.h | 40 void adb_set_transport(TransportType type, const char* _Nullable serial); 43 void adb_get_transport(TransportType* _Nullable type, const char* _Nullable* _Nullable serial); 55 const char* _Nullable serial); 63 const char* _Nullable serial);
|
D | commandline.cpp | 59 static int install_app(TransportType t, const char* serial, int argc, const char** argv); 60 static int install_multiple_app(TransportType t, const char* serial, int argc, const char** argv); 61 static int uninstall_app(TransportType t, const char* serial, int argc, const char** argv); 62 static int install_app_legacy(TransportType t, const char* serial, int argc, const char** argv); 63 static int uninstall_app_legacy(TransportType t, const char* serial, int argc, const char** argv); 1046 static bool wait_for_device(const char* service, TransportType t, const char* serial) { in wait_for_device() argument 1079 std::string cmd = format_host_command(android::base::Join(components, "-").c_str(), t, serial); in wait_for_device() 1123 const char* serial; in adb_root() local 1124 adb_get_transport(&type, &serial); in adb_root() 1125 return wait_for_device("wait-for-any", type, serial); in adb_root() [all …]
|
D | services.cpp | 368 std::string serial; member 380 const char* serial = sinfo->serial.length() ? sinfo->serial.c_str() : NULL; in wait_for_state() local 381 atransport* t = acquire_one_transport(sinfo->transport_type, serial, &is_ambiguous, &error); in wait_for_state() 414 std::string serial; in connect_device() local 417 if (!android::base::ParseNetAddress(address, &host, &port, &serial, response)) { in connect_device() 425 serial.c_str(), error.c_str()); in connect_device() 429 D("client: connected %s remote on fd %d", serial.c_str(), fd); in connect_device() 438 int ret = register_socket_transport(fd, serial.c_str(), port, 0); in connect_device() 441 *response = android::base::StringPrintf("already connected to %s", serial.c_str()); in connect_device() 443 *response = android::base::StringPrintf("connected to %s", serial.c_str()); in connect_device() [all …]
|
D | adb_client.cpp | 47 void adb_set_transport(TransportType type, const char* serial) in adb_set_transport() argument 50 __adb_serial = serial; in adb_set_transport() 53 void adb_get_transport(TransportType* type, const char** serial) { in adb_get_transport() argument 57 if (serial) { in adb_get_transport() 58 *serial = __adb_serial; in adb_get_transport() 311 std::string format_host_command(const char* command, TransportType type, const char* serial) { in format_host_command() argument 312 if (serial) { in format_host_command() 313 return android::base::StringPrintf("host-serial:%s:%s", serial, command); in format_host_command()
|
D | transport.h | 85 char* serial = nullptr; variable 153 atransport* acquire_one_transport(TransportType type, const char* serial, 160 atransport* find_transport(const char* serial); 163 void register_usb_transport(usb_handle* h, const char* serial, 167 int register_socket_transport(int s, const char* serial, int port, int local);
|
D | transport_test.cpp | 166 std::string serial = "foo"; in TEST() local 173 t.serial = &serial[0]; in TEST() 183 EXPECT_TRUE(t.MatchesTarget(serial)); in TEST() 197 std::string serial = "100.100.100.100:5555"; in TEST() local 200 t.serial = &serial[0]; in TEST()
|
D | adb.cpp | 398 p->msg.arg0, p->msg.arg1, s->peer->id, p->msg.arg1, t->serial); in handle_packet() 424 p->msg.arg1, t->serial, s->peer->transport->serial); in handle_packet() 895 int handle_forward_request(const char* service, TransportType type, const char* serial, int reply_f… in handle_forward_request() argument 949 atransport* transport = acquire_one_transport(type, serial, nullptr, &error_msg); in handle_forward_request() 1002 const char* serial, int reply_fd, asocket* s) { in handle_host_request() argument 1034 serial = service; in handle_host_request() 1038 atransport* t = acquire_one_transport(type, serial, nullptr, &error); in handle_host_request() 1062 atransport* t = acquire_one_transport(type, serial, nullptr, &error); in handle_host_request() 1079 std::string serial; in handle_host_request() local 1083 if (!android::base::ParseNetAddress(address, &host, &port, &serial, &error)) { in handle_host_request() [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 | 169 asocket *host_service_to_socket(const char* name, const char *serial); 179 int handle_forward_request(const char* service, TransportType type, const char* serial, int reply_f… 252 int handle_host_request(const char* service, TransportType type, const char* serial, int reply_fd, …
|
D | usb_osx.cpp | 136 char serial[256]; in AndroidInterfaceAdded() local 260 serial[i] = buffer[i + 1]; in AndroidInterfaceAdded() 261 serial[i] = 0; in AndroidInterfaceAdded() 271 vendor, product, serial); in AndroidInterfaceAdded() 273 devpath = serial; in AndroidInterfaceAdded() 290 VLOG(USB) << "Add usb device " << serial; in AndroidInterfaceAdded() 292 register_usb_transport(handle_p, serial, devpath.c_str(), 1); in AndroidInterfaceAdded()
|
D | transport_local.cpp | 119 std::string serial = android::base::StringPrintf("emulator-%d", console_port); in local_connect_arbitrary_ports() local 120 if (register_socket_transport(fd, serial.c_str(), adb_port, 1) == 0) { in local_connect_arbitrary_ports() 268 std::string serial = android::base::StringPrintf("host-%d", fd); in qemu_socket_thread() local 269 register_socket_transport(fd, serial.c_str(), port, 1); in qemu_socket_thread()
|
D | usb_linux.cpp | 555 std::string serial; in register_device() local 556 if (!android::base::ReadFileToString(serial_path, &serial)) { in register_device() 561 serial = ""; in register_device() 563 serial = android::base::Trim(serial); in register_device() 571 register_usb_transport(done_usb, serial.c_str(), dev_path, done_usb->writeable); in register_device()
|
D | sockets.cpp | 438 static asocket* create_host_service_socket(const char* name, const char* serial) { in create_host_service_socket() argument 441 s = host_service_to_socket(name, serial); in create_host_service_socket() 654 char* serial = nullptr; in smart_socket_enqueue() local 709 serial = service; in smart_socket_enqueue() 733 if (handle_host_request(service, type, serial, s->peer->fd, s) == 0) { in smart_socket_enqueue() 748 s2 = create_host_service_socket(service, serial); in smart_socket_enqueue()
|
D | adb_listeners.cpp | 151 l->transport->serial ? l->transport->serial : "(reverse)", in format_listeners()
|
D | socket_test.cpp | 278 void VerifySkipHostSerial(const std::string& serial, const char* expected) { in VerifySkipHostSerial() argument 279 const char* result = internal::skip_host_serial(serial.c_str()); in VerifySkipHostSerial()
|
/system/vold/ |
D | Ext4Crypt.h | 29 bool e4crypt_vold_create_user_key(userid_t user_id, int serial, bool ephemeral); 31 bool e4crypt_add_user_key_auth(userid_t user_id, int serial, const char* token, 35 bool e4crypt_unlock_user_key(userid_t user_id, int serial, const char* token, const char* secret); 38 bool e4crypt_prepare_user_storage(const char* volume_uuid, userid_t user_id, int serial, int flags);
|
D | Ext4Crypt.cpp | 492 bool e4crypt_vold_create_user_key(userid_t user_id, int serial, bool ephemeral) { in e4crypt_vold_create_user_key() argument 493 LOG(DEBUG) << "e4crypt_vold_create_user_key for " << user_id << " serial " << serial; in e4crypt_vold_create_user_key() 500 << " serial " << serial; in e4crypt_vold_create_user_key() 592 bool e4crypt_add_user_key_auth(userid_t user_id, int serial, const char* token_hex, in e4crypt_add_user_key_auth() argument 594 LOG(DEBUG) << "e4crypt_add_user_key_auth " << user_id << " serial=" << serial in e4crypt_add_user_key_auth() 631 bool e4crypt_unlock_user_key(userid_t user_id, int serial, const char* token_hex, in e4crypt_unlock_user_key() argument 633 LOG(DEBUG) << "e4crypt_unlock_user_key " << user_id << " serial=" << serial in e4crypt_unlock_user_key() 681 bool e4crypt_prepare_user_storage(const char* volume_uuid, userid_t user_id, int serial, in e4crypt_prepare_user_storage() argument 684 << ", user " << user_id << ", serial " << serial << ", flags " << flags; in e4crypt_prepare_user_storage()
|
/system/core/liblog/ |
D | log_is_loggable.c | 51 uint32_t serial; member 58 && __system_property_serial(cache->pinfo) != cache->serial; in check_cache() 74 cache->serial = __system_property_serial(cache->pinfo); in refresh_cache() 258 static uint32_t serial; in __android_log_is_debuggable() local 272 if (current_serial != serial) { in __android_log_is_debuggable() 277 serial = current_serial; in __android_log_is_debuggable() 294 uint32_t serial; member 316 if (current_serial != self->serial) { in do_cache2() 322 self->serial = current_serial; in do_cache2()
|
/system/core/fastboot/ |
D | fastboot.cpp | 73 static const char* serial = nullptr; variable 208 return match_fastboot_with_serial(info, serial); in match_fastboot() 213 std::string serial = info->serial_number; in list_devices_callback() local 215 serial = UsbNoPermissionsShortHelpText(); in list_devices_callback() 217 if (!serial[0]) { in list_devices_callback() 218 serial = "????????????"; in list_devices_callback() 222 printf("%s\tfastboot", serial.c_str()); in list_devices_callback() 224 printf("%-22s fastboot", serial.c_str()); in list_devices_callback() 252 if (serial != nullptr) { in open_device() 255 if (android::base::StartsWith(serial, "tcp:")) { in open_device() [all …]
|
/system/core/include/system/ |
D | radio.h | 139 char serial[RADIO_STRING_LEN_MAX]; /* serial number (for subscription services) */ member 155 char serial[RADIO_STRING_LEN_MAX]; member
|
/system/tpm/trunks/ftdi/ |
D | mpsse.h | 186 const char* serial); 194 const char* serial,
|
D | mpsse.c | 95 const char* serial) { in Open() argument 97 serial, 0); in Open() 124 const char* serial, in OpenIndex() argument 148 if (!ftdi_usb_open_desc_index(&mpsse->ftdi, vid, pid, description, serial, in OpenIndex()
|
/system/sepolicy/ |
D | binderservicedomain.te | 9 # Allow dumpsys to work from adb shell or the serial console
|