/system/core/adb/ |
D | transport.cpp | 144 if (read_packet(fd, t->serial, &p)) { in transport_socket_events() 145 D("%s: failed to read packet from transport socket on fd %d", t->serial, fd); in transport_socket_events() 162 if (write_packet(t->transport_socket, t->serial, &p)) { in send_packet() 185 android::base::StringPrintf("<-%s", (t->serial != nullptr ? t->serial : "transport"))); in read_transport_thread() 186 D("%s: starting read_transport thread on fd %d, SYNC online (%d)", t->serial, t->fd, in read_transport_thread() 193 if (write_packet(t->fd, t->serial, &p)) { in read_transport_thread() 195 D("%s: failed to write SYNC packet", t->serial); in read_transport_thread() 199 D("%s: data pump started", t->serial); in read_transport_thread() 207 D("%s: remote read failed for transport", t->serial); in read_transport_thread() 213 D("%s: received remote packet, sending to transport", t->serial); 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 | transport_local.cpp | 111 std::string serial; in connect_device() local 114 if (!android::base::ParseNetAddress(address, &host, &port, &serial, response)) { in connect_device() 122 serial.c_str(), error.c_str()); in connect_device() 126 D("client: connected %s remote on fd %d", serial.c_str(), fd); in connect_device() 135 int ret = register_socket_transport(fd, serial.c_str(), port, 0); in connect_device() 138 *response = android::base::StringPrintf("already connected to %s", serial.c_str()); in connect_device() 140 *response = android::base::StringPrintf("connected to %s", serial.c_str()); in connect_device() 167 std::string serial = getEmulatorSerialString(console_port); in local_connect_arbitrary_ports() local 168 if (register_socket_transport(fd, serial.c_str(), adb_port, 1) == 0) { in local_connect_arbitrary_ports() 272 std::string serial = android::base::StringPrintf("host-%d", fd); in server_socket_thread() local [all …]
|
D | transport_test.cpp | 145 std::string serial = "foo"; in TEST() local 152 t.serial = &serial[0]; in TEST() 162 EXPECT_TRUE(t.MatchesTarget(serial)); in TEST() 176 std::string serial = "100.100.100.100:5555"; in TEST() local 179 t.serial = &serial[0]; in TEST()
|
D | adb_client.h | 41 void adb_set_transport(TransportType type, const char* _Nullable serial); 51 const char* _Nullable serial); 59 const char* _Nullable serial);
|
D | commandline.cpp | 65 static int install_app(TransportType t, const char* serial, int argc, const char** argv); 66 static int install_multiple_app(TransportType t, const char* serial, int argc, const char** argv); 67 static int uninstall_app(TransportType t, const char* serial, int argc, const char** argv); 68 static int install_app_legacy(TransportType t, const char* serial, int argc, const char** argv); 69 static int uninstall_app_legacy(TransportType t, const char* serial, int argc, const char** argv); 1017 static bool wait_for_device(const char* service, TransportType t, const char* serial) { in wait_for_device() argument 1050 std::string cmd = format_host_command(android::base::Join(components, "-").c_str(), t, serial); in wait_for_device() 1096 int send_shell_command(TransportType transport_type, const char* serial, const std::string& command, in send_shell_command() argument 1128 if (!wait_for_device("wait-for-device", transport_type, serial)) { in send_shell_command() 1142 static int logcat(TransportType transport, const char* serial, int argc, const char** argv) { in logcat() argument [all …]
|
D | transport.h | 93 char* serial = nullptr; variable 184 atransport* acquire_one_transport(TransportType type, const char* serial, 192 atransport* find_transport(const char* serial); 195 void register_usb_transport(usb_handle* h, const char* serial, 202 int register_socket_transport(int s, const char* serial, int port, int local);
|
D | bugreport.cpp | 198 int Bugreport::DoIt(TransportType transport_type, const char* serial, int argc, const char** argv) { in DoIt() argument 204 … int status = SendShellCommand(transport_type, serial, "bugreportz -v", false, &version_callback); in DoIt() 217 return SendShellCommand(transport_type, serial, "bugreport", false); in DoIt() 268 return SendShellCommand(transport_type, serial, bugz_command, false, &bugz_callback); in DoIt() 277 int Bugreport::SendShellCommand(TransportType transport_type, const char* serial, in SendShellCommand() argument 280 return send_shell_command(transport_type, serial, command, disable_shell_protocol, callback); in SendShellCommand()
|
D | adb.cpp | 428 p->msg.arg0, p->msg.arg1, s->peer->id, p->msg.arg1, t->serial); in handle_packet() 455 p->msg.arg1, t->serial, s->peer->transport->serial); in handle_packet() 924 int handle_forward_request(const char* service, TransportType type, const char* serial, int reply_f… in handle_forward_request() argument 978 atransport* transport = acquire_one_transport(type, serial, nullptr, &error_msg); in handle_forward_request() 1038 const char* serial, int reply_fd, asocket* s) { in handle_host_request() argument 1070 serial = service; in handle_host_request() 1074 atransport* t = acquire_one_transport(type, serial, nullptr, &error); in handle_host_request() 1103 if (transport->serial) { in handle_host_request() 1104 response += transport->serial; in handle_host_request() 1123 atransport* t = acquire_one_transport(type, serial, nullptr, &error); in handle_host_request() [all …]
|
D | bugreport.h | 32 int DoIt(TransportType transport_type, const char* serial, int argc, const char** argv); 38 TransportType transport_type, const char* serial, const std::string& command,
|
D | services.cpp | 340 std::string serial; member 352 const char* serial = sinfo->serial.length() ? sinfo->serial.c_str() : NULL; in wait_for_state() local 353 atransport* t = acquire_one_transport(sinfo->transport_type, serial, &is_ambiguous, &error); in wait_for_state() 444 asocket* host_service_to_socket(const char* name, const char* serial) { in host_service_to_socket() argument 456 if (serial) sinfo->serial = serial; in host_service_to_socket()
|
D | adb_client.cpp | 49 void adb_set_transport(TransportType type, const char* serial) { in adb_set_transport() argument 51 __adb_serial = serial; in adb_set_transport() 288 std::string format_host_command(const char* command, TransportType type, const char* serial) { in format_host_command() argument 289 if (serial) { in format_host_command() 290 return android::base::StringPrintf("host-serial:%s:%s", serial, command); in format_host_command()
|
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_listeners_test.cpp | 30 static bool listener_is_installed(const std::string& serial, const std::string& source, in listener_is_installed() argument 36 (serial.empty() || info[0] == serial) && in listener_is_installed()
|
D | adb.h | 152 asocket *host_service_to_socket(const char* name, const char *serial); 162 int handle_forward_request(const char* service, TransportType type, const char* serial, int reply_f… 219 int handle_host_request(const char* service, TransportType type, const char* serial, int reply_fd, …
|
/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 | 511 bool e4crypt_vold_create_user_key(userid_t user_id, int serial, bool ephemeral) { in e4crypt_vold_create_user_key() argument 512 LOG(DEBUG) << "e4crypt_vold_create_user_key for " << user_id << " serial " << serial; in e4crypt_vold_create_user_key() 519 << " serial " << serial; in e4crypt_vold_create_user_key() 628 bool e4crypt_add_user_key_auth(userid_t user_id, int serial, const char* token_hex, in e4crypt_add_user_key_auth() argument 630 LOG(DEBUG) << "e4crypt_add_user_key_auth " << user_id << " serial=" << serial in e4crypt_add_user_key_auth() 668 bool e4crypt_unlock_user_key(userid_t user_id, int serial, const char* token_hex, in e4crypt_unlock_user_key() argument 670 LOG(DEBUG) << "e4crypt_unlock_user_key " << user_id << " serial=" << serial in e4crypt_unlock_user_key() 719 bool e4crypt_prepare_user_storage(const char* volume_uuid, userid_t user_id, int serial, in e4crypt_prepare_user_storage() argument 722 << ", user " << user_id << ", serial " << serial << ", flags " << flags; in e4crypt_prepare_user_storage()
|
/system/core/liblog/ |
D | properties.c | 51 uint32_t serial; member 60 return cache->pinfo && __system_property_serial(cache->pinfo) != cache->serial; in check_cache() 75 cache->cache.serial = __system_property_serial(cache->cache.pinfo); in refresh_cache() 281 static uint32_t serial; in __android_log_is_debuggable() local 295 if (current_serial != serial) { in __android_log_is_debuggable() 300 serial = current_serial; in __android_log_is_debuggable() 317 uint32_t serial; member 338 if (current_serial != self->serial) { in do_cache2_char() 344 self->serial = current_serial; in do_cache2_char() 434 cache->cache.serial = __system_property_serial(cache->cache.pinfo); in refresh_cache_property() [all …]
|
/system/tools/hidl/ |
D | Method.cpp | 41 size_t serial, in fillImplementation() argument 45 mSerial = serial; in fillImplementation() 110 void Method::setSerialId(size_t serial) { in setSerialId() argument 112 mSerial = serial; in setSerialId()
|
D | Method.h | 71 void setSerialId(size_t serial); 77 size_t serial,
|
/system/core/adb/client/ |
D | usb_osx.cpp | 141 char serial[256]; in AndroidInterfaceAdded() local 270 serial[i] = buffer[i + 1]; in AndroidInterfaceAdded() 271 serial[i] = 0; in AndroidInterfaceAdded() 281 vendor, product, serial); in AndroidInterfaceAdded() 283 devpath = serial; in AndroidInterfaceAdded() 300 VLOG(USB) << "Add usb device " << serial; in AndroidInterfaceAdded() 302 register_usb_transport(reinterpret_cast<::usb_handle*>(handle_p), serial, devpath.c_str(), in AndroidInterfaceAdded()
|
D | usb_linux.cpp | 558 std::string serial; in register_device() local 559 if (!android::base::ReadFileToString(serial_path, &serial)) { in register_device() 564 serial = ""; in register_device() 566 serial = android::base::Trim(serial); in register_device() 574 register_usb_transport(done_usb, serial.c_str(), dev_path, done_usb->writeable); in register_device()
|
/system/core/fastboot/ |
D | fastboot.cpp | 76 static const char* serial = nullptr; variable 215 return match_fastboot_with_serial(info, serial); in match_fastboot() 220 std::string serial = info->serial_number; in list_devices_callback() local 222 serial = UsbNoPermissionsShortHelpText(); in list_devices_callback() 224 if (!serial[0]) { in list_devices_callback() 225 serial = "????????????"; in list_devices_callback() 229 printf("%s\tfastboot", serial.c_str()); in list_devices_callback() 231 printf("%-22s fastboot", serial.c_str()); in list_devices_callback() 259 if (serial != nullptr) { in open_device() 262 if (android::base::StartsWith(serial, "tcp:")) { in open_device() [all …]
|
/system/extras/tools/ |
D | graph_lockdep_chains | 96 --serial | -s) 106 --serial=*)
|
/system/core/libsystem/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
|