Home
last modified time | relevance | path

Searched refs:peer_info_ (Results 1 – 7 of 7) sorted by relevance

/system/core/adb/pairing_connection/tests/
Dpairing_connection_test.cpp149 PeerInfo peer_info_; member
156 memcpy(&(p->peer_info_), peer_info, sizeof(PeerInfo)); in ResultCallback()
351 ASSERT_EQ(strlen(reinterpret_cast<const char*>(client_waiter.peer_info_.data)), in TEST_F()
353 EXPECT_EQ(memcmp(client_waiter.peer_info_.data, server_info_.data, sizeof(server_info_.data)), in TEST_F()
364 ASSERT_EQ(strlen(reinterpret_cast<const char*>(server_waiter.peer_info_.data)), in TEST_F()
367 memcmp(server_waiter.peer_info_.data, client_info_.data, sizeof(client_info_.data)), in TEST_F()
474 ASSERT_EQ(strlen(reinterpret_cast<const char*>(client_waiter.peer_info_.data)), in TEST_F()
476 EXPECT_EQ(memcmp(client_waiter.peer_info_.data, server_info_.data, in TEST_F()
493 ASSERT_EQ(strlen(reinterpret_cast<const char*>(server_waiter.peer_info_.data)), in TEST_F()
495 EXPECT_EQ(memcmp(server_waiter.peer_info_.data, client_info_.data, sizeof(client_info_.data)), in TEST_F()
Dpairing_client.cpp78 PeerInfo peer_info_; member in adb::pairing::__anonffd5a0040111::PairingClientImpl
102 peer_info_(peer_info), in PairingClientImpl()
173 connection_ = CreatePairingConnection(pswd_, peer_info_, cert_, priv_key_); in StartConnection()
/system/core/adb/client/
Dadb_wifi.cpp42 PeerInfo peer_info_; member
50 memcpy(&(p->peer_info_), peer_info, sizeof(PeerInfo)); in OnResult()
241 if (waiter.peer_info_.type != ADB_DEVICE_GUID) { in adb_wifi_pair_device()
243 response += waiter.peer_info_.type; in adb_wifi_pair_device()
247 std::string device_guid = reinterpret_cast<const char*>(waiter.peer_info_.data); in adb_wifi_pair_device()
/system/core/adb/client/pairing/
Dpairing_client.cpp76 PeerInfo peer_info_; member in adbwifi::pairing::__anon35b3e0a10111::PairingClientImpl
89 : pswd_(pswd), peer_info_(peer_info), cert_(cert), priv_key_(priv_key) { in PairingClientImpl()
140 pairing_connection_client_new(pswd_.data(), pswd_.size(), &peer_info_, cert_.data(), in StartConnection()
/system/core/adb/pairing_connection/
Dpairing_connection.cpp137 PeerInfo peer_info_; member
155 : role_(role), pswd_(pswd), peer_info_(peer_info), cert_(cert), priv_key_(priv_key) { in PairingConnectionCtx()
335 uint8_t* p = reinterpret_cast<uint8_t*>(&peer_info_); in DoExchangePeerInfo()
336 buf.assign(p, p + sizeof(peer_info_)); in DoExchangePeerInfo()
Dpairing_server.cpp126 PeerInfo peer_info_; member
155 : pswd_(pswd), peer_info_(peer_info), cert_(cert), priv_key_(priv_key), port_(port) { in PairingServerCtx()
413 auto connection = CreatePairingConnection(pswd_, peer_info_, cert_, priv_key_); in HandleNewClientConnection()
/system/core/adb/client/pairing/tests/
Dpairing_server.cpp116 PeerInfo peer_info_; member in adbwifi::pairing::__anon7a073c1b0111::PairingServerImpl
135 : pswd_(pswd), peer_info_(peer_info), cert_(cert), priv_key_(priv_key), port_(port) { in PairingServerImpl()
382 auto connection = PairingConnection::create(PairingConnection::Role::Server, pswd_, peer_info_, in handleNewClientConnection()