/system/core/adb/ |
D | socket_spec_test.cpp | 24 std::string hostname, error, serial; in TEST() local 26 EXPECT_TRUE(parse_tcp_socket_spec("tcp:5037", &hostname, &port, &serial, &error)); in TEST() 29 EXPECT_EQ("", serial); in TEST() 32 EXPECT_FALSE(parse_tcp_socket_spec("tcp:", &hostname, &port, &serial, &error)); in TEST() 33 EXPECT_FALSE(parse_tcp_socket_spec("tcp:-1", &hostname, &port, &serial, &error)); in TEST() 34 EXPECT_FALSE(parse_tcp_socket_spec("tcp:65536", &hostname, &port, &serial, &error)); in TEST() 36 EXPECT_TRUE(parse_tcp_socket_spec("tcp:localhost:1234", &hostname, &port, &serial, &error)); in TEST() 39 EXPECT_EQ("localhost:1234", serial); in TEST() 41 EXPECT_FALSE(parse_tcp_socket_spec("tcp:localhost", &hostname, &port, &serial, &error)); in TEST() 42 EXPECT_FALSE(parse_tcp_socket_spec("tcp:localhost:", &hostname, &port, &serial, &error)); in TEST() [all …]
|
D | adb.bash | 27 local where i cur serial 30 serial="${ANDROID_SERIAL:-none}" 47 serial=${cur} 78 _adb_cmd_install "$serial" $i 81 _adb_cmd_sideload "$serial" $i 84 _adb_cmd_pull "$serial" $i 87 _adb_cmd_push "$serial" $i 96 _adb_cmd_shell "$serial" $i 99 _adb_cmd_uninstall "$serial" $i 110 local serial i cur where [all …]
|
D | socket_test.cpp | 314 std::string_view serial, command; \ 315 bool result = internal::parse_host_service(&serial, &command, service); \ 322 std::string_view serial, command; \ 323 bool result = internal::parse_host_service(&serial, &command, service); \ 325 EXPECT_EQ(std::string(expected_serial), std::string(serial)); \ 336 std::string serial = protocol + "foo"; in TEST() local 337 VerifyParseHostService(serial + ":bar", serial, "bar"); in TEST() 338 VerifyParseHostService(serial + " :bar:baz", serial, "bar:baz"); in TEST() 343 std::string serial = protocol + "foo:123"; in TEST() local 344 VerifyParseHostService(serial + ":bar", serial, "bar"); in TEST() [all …]
|
D | test_adb.py | 103 def adb_connect(unittest, serial): argument 109 output = subprocess.check_output(["adb", "connect", serial]) 111 "connected to {}".format(serial).encode("utf8")) 117 subprocess.Popen(["adb", "disconnect", serial], 362 serial = "emulator-{}".format(port - 1) 366 "-s", serial, "get-state"], 372 "error: device '{}' not found".format(serial).encode("utf8")) 383 "-s", serial, "wait-for-device"]) 385 "-s", serial, "get-state"]) 400 serial = "localhost:{}".format(port) [all …]
|
D | transport.cpp | 195 D("transport %s was kicked. giving up on it.", it->transport->serial.c_str()); in Run() 216 D("attempting to reconnect %s", attempt.transport->serial.c_str()); in Run() 220 D("attempting to reconnect %s failed.", attempt.transport->serial.c_str()); in Run() 223 attempt.transport->serial.c_str()); in Run() 237 D("reconnection to %s succeeded.", attempt.transport->serial.c_str()); in Run() 242 D("cancelling reconnection attempt to %s.", attempt.transport->serial.c_str()); in Run() 440 VLOG(TRANSPORT) << dump_packet(t->serial.c_str(), "to remote", p); in send_packet() 447 D("%s: failed to enqueue packet, closing transport", t->serial.c_str()); in send_packet() 665 D("transport: %s deleting", t->serial.c_str()); in transport_registration_func() 686 D("%s: remote read: bad header", t->serial.c_str()); in transport_registration_func() [all …]
|
D | transport_local.cpp | 92 std::string serial; in tcp_connect() local 94 if (socket_spec_connect(&fd, prefix_addr, &port, &serial, response)) { in tcp_connect() 99 return std::make_tuple(std::move(fd), port, serial); in tcp_connect() 101 return std::make_tuple(unique_fd(), 0, serial); in tcp_connect() 113 std::string serial; in connect_device() local 114 std::tie(fd, port, serial) = tcp_connect(address, response); in connect_device() 122 std::string serial; in connect_device() local 123 std::tie(fd, port, serial) = tcp_connect(address, &response); in connect_device() 137 if (!register_socket_transport(std::move(fd), serial, port, 0, std::move(reconnect), &error)) { in connect_device() 139 *response = android::base::StringPrintf("already connected to %s", serial.c_str()); in connect_device() [all …]
|
D | services.cpp | 98 std::string serial; member 109 const char* serial = sinfo->serial.length() ? sinfo->serial.c_str() : nullptr; in wait_for_state() local 110 atransport* t = acquire_one_transport(sinfo->transport_type, serial, sinfo->transport_id, in wait_for_state() 200 asocket* host_service_to_socket(std::string_view name, std::string_view serial, in host_service_to_socket() argument 213 sinfo->serial = serial; in host_service_to_socket()
|
D | transport_test.cpp | 131 std::string serial = "foo"; in TEST_F() local 138 t.serial = &serial[0]; in TEST_F() 148 EXPECT_TRUE(t.MatchesTarget(serial)); in TEST_F() 162 std::string serial = "100.100.100.100:5555"; in TEST_F() local 165 t.serial = &serial[0]; in TEST_F()
|
D | socket_spec.cpp | 75 std::string* serial, std::string* error) { in parse_tcp_socket_spec() argument 100 if (!android::base::ParseNetAddress(addr, &hostname_value, &port_value, serial, error)) { in parse_tcp_socket_spec() 153 bool socket_spec_connect(unique_fd* fd, std::string_view address, int* port, std::string* serial, in socket_spec_connect() argument 158 if (!parse_tcp_socket_spec(address, &hostname, &port_value, serial, error)) { in socket_spec_connect() 220 if (serial) { in socket_spec_connect() 221 *serial = android::base::StringPrintf("vsock:%u:%d", cid, port_value); in socket_spec_connect() 251 if (serial) { in socket_spec_connect() 252 *serial = address; in socket_spec_connect()
|
D | socket_spec.h | 28 bool socket_spec_connect(unique_fd* fd, std::string_view address, int* port, std::string* serial, 33 std::string* serial, std::string* error);
|
D | sockets.cpp | 600 std::string_view serial; in parse_host_service() local 603 auto consume = [&full_service, &serial, &command](size_t count) { in parse_host_service() 605 if (!serial.empty()) { in parse_host_service() 606 CHECK_EQ(serial.data() + serial.size(), command.data()); in parse_host_service() 609 serial = full_service.substr(0, serial.size() + count); in parse_host_service() 614 auto finish = [out_serial, out_command, &serial, &command] { in parse_host_service() 615 if (serial.empty() || command.empty()) { in parse_host_service() 619 CHECK_EQ(':', serial.back()); in parse_host_service() 620 serial.remove_suffix(1); in parse_host_service() 622 *out_serial = serial; in parse_host_service() [all …]
|
D | transport.h | 271 std::string serial; variable 290 std::string serial_name() const { return !serial.empty() ? serial : "<unknown>"; } in serial_name() 378 atransport* acquire_one_transport(TransportType type, const char* serial, TransportId transport_id, 392 atransport* find_transport(const char* serial); 397 void register_usb_transport(usb_handle* h, const char* serial, 404 bool register_socket_transport(unique_fd s, std::string serial, int port, int local,
|
D | adb.cpp | 400 p->msg.arg1, s->peer->id, p->msg.arg1, t->serial.c_str()); in handle_packet() 427 t->serial.c_str(), s->peer->transport->serial.c_str()); in handle_packet() 1029 const char* serial, TransportId transport_id, int reply_fd, in handle_host_request() argument 1059 serial = serial_storage.c_str(); in handle_host_request() 1084 serial = serial_storage.c_str(); in handle_host_request() 1089 atransport* t = acquire_one_transport(type, serial, transport_id, nullptr, &error); in handle_host_request() 1134 atransport* t = acquire_one_transport(type, serial, transport_id, nullptr, &error); in handle_host_request() 1163 std::string serial; in handle_host_request() local 1168 serial = address; in handle_host_request() 1169 } else if (!android::base::ParseNetAddress(address, &host, &port, &serial, &error)) { in handle_host_request() [all …]
|
D | SERVICES.TXT | 41 host:transport:<serial-number> 43 <serial-number>. After the OKAY response, every client request will 63 host-serial:<serial-number>:<request> 64 This is a special form of query, where the 'host-serial:<serial-number>:' 70 A variant of host-serial used to target the single USB device connected 74 A variant of host-serial used to target the single emulator instance 86 Returns the serial number of the corresponding device/emulator. 87 Note that emulator serial numbers are of the form "emulator-5554" 100 host-serial/host-usb/host-local/host prefixes as described previously 137 <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()
|
/system/core/fastboot/ |
D | fastboot.bash | 27 local where i cur serial 30 serial="${ANDROID_SERIAL:-none}" 47 serial=${cur} 84 _fastboot_cmd_flash "$serial" $i 93 _fastboot_cmd_update "$serial" $i 104 local serial i cur 107 serial=$1 120 local serial i cur 122 serial=$1
|
/system/core/adb/client/ |
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 unique_fd fd(connect_to_console(serial)); in adb_send_emulator_command()
|
D | adb_client.h | 51 void adb_set_transport(TransportType type, const char* _Nullable serial, TransportId transport_id); 52 void adb_get_transport(TransportType* _Nullable type, const char* _Nullable* _Nullable serial, 63 const char* _Nullable serial);
|
D | usb_osx.cpp | 148 char serial[256]; in AndroidInterfaceAdded() local 277 serial[i] = buffer[i + 1]; in AndroidInterfaceAdded() 278 serial[i] = 0; in AndroidInterfaceAdded() 288 vendor, product, serial); in AndroidInterfaceAdded() 290 devpath = serial; in AndroidInterfaceAdded() 307 VLOG(USB) << "Add usb device " << serial; in AndroidInterfaceAdded() 308 LOG(INFO) << "reported max packet size for " << serial << " is " << handle->max_packet_size; in AndroidInterfaceAdded() 310 register_usb_transport(reinterpret_cast<::usb_handle*>(handle_p), serial, devpath.c_str(), in AndroidInterfaceAdded()
|
D | adb_client.cpp | 56 void adb_set_transport(TransportType type, const char* serial, TransportId transport_id) { in adb_set_transport() argument 58 __adb_serial = serial; in adb_set_transport() 62 void adb_get_transport(TransportType* type, const char** serial, TransportId* transport_id) { in adb_get_transport() argument 64 if (serial) *serial = __adb_serial; in adb_get_transport()
|
/system/vold/ |
D | FsCrypt.h | 24 bool fscrypt_vold_create_user_key(userid_t user_id, int serial, bool ephemeral); 26 bool fscrypt_add_user_key_auth(userid_t user_id, int serial, const std::string& token, 30 bool fscrypt_unlock_user_key(userid_t user_id, int serial, const std::string& token, 34 bool fscrypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_id, int serial,
|
/system/extras/toolchain-extras/ |
D | profile-extras.cpp | 43 uint32_t serial = 0; in property_watch_loop() local 52 serial = __system_property_wait_any(serial); in property_watch_loop()
|
/system/core/liblog/ |
D | properties.cpp | 52 uint32_t serial; member 61 return cache->pinfo && __system_property_serial(cache->pinfo) != cache->serial; in check_cache() 76 cache->cache.serial = __system_property_serial(cache->cache.pinfo); in refresh_cache() 278 static uint32_t serial; in __android_log_is_debuggable() local 292 if (current_serial != serial) { in __android_log_is_debuggable() 297 serial = current_serial; in __android_log_is_debuggable() 314 uint32_t serial; member 334 if (current_serial != self->serial) { in do_cache2_char() 340 self->serial = current_serial; in do_cache2_char() 425 cache->cache.serial = __system_property_serial(cache->cache.pinfo); in refresh_cache_property() [all …]
|
/system/core/adb/daemon/ |
D | transport_qemu.cpp | 99 std::string serial = android::base::StringPrintf("host-%d", fd.get()); in qemu_socket_thread() local 101 register_socket_transport(std::move(fd), std::move(serial), port, 1, in qemu_socket_thread()
|
/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
|