/system/core/adb/pairing_connection/ |
D | pairing_connection.cpp | 73 enum class Role { enum 78 explicit PairingConnectionCtx(Role role, const Data& pswd, const PeerInfo& peer_info, 125 static PairingAuthPtr CreatePairingAuthPtr(Role role, const Data& pswd); 135 Role role_; 153 PairingConnectionCtx::PairingConnectionCtx(Role role, const Data& pswd, const PeerInfo& peer_info, in PairingConnectionCtx() 169 role_ == Role::Server ? tls::TlsConnection::Role::Server in SetupTlsConnection() 170 : tls::TlsConnection::Role::Client, in SetupTlsConnection() 439 PairingAuthPtr PairingConnectionCtx::CreatePairingAuthPtr(Role role, const Data& pswd) { in CreatePairingAuthPtr() 441 case Role::Client: in CreatePairingAuthPtr() 444 case Role::Server: in CreatePairingAuthPtr() [all …]
|
/system/bt/gd/hci/acl_manager/ |
D | le_acl_connection.h | 34 AddressWithType local_address, AddressWithType remote_address, Role role); 45 virtual Role GetRole() const { in GetRole() 69 Role role_;
|
D | connection_management_callbacks.h | 51 virtual void OnRoleDiscoveryComplete(Role current_role) = 0; 76 virtual void OnRoleChange(Role new_role) = 0;
|
D | classic_impl.h | 195 Role current_role = Role::MASTER; in on_connection_complete() 202 current_role = Role::SLAVE; in on_connection_complete() 304 void switch_role(Address address, Role role) { in switch_role() 409 Role new_role = role_change_view.GetNewRole(); in on_role_change()
|
D | le_acl_connection.cc | 88 … AddressWithType local_address, AddressWithType remote_address, Role role) in LeAclConnection()
|
D | classic_acl_connection.cc | 83 void OnRoleDiscoveryComplete(Role current_role) override { in OnRoleDiscoveryComplete() 116 void OnRoleChange(Role new_role) override { in OnRoleChange()
|
/system/core/adb/pairing_auth/ |
D | pairing_auth.cpp | 43 enum class Role { enum 48 explicit PairingAuthCtx(Role role, const Data& pswd); 83 Role role_; 88 PairingAuthCtx::PairingAuthCtx(Role role, const Data& pswd) : role_(role) { in PairingAuthCtx() 99 case Role::Client: in PairingAuthCtx() 106 case Role::Server: in PairingAuthCtx() 211 auto* ret = new PairingAuthCtx(PairingAuthCtx::Role::Server, std::move(p)); in pairing_auth_server_new() 220 auto* ret = new PairingAuthCtx(PairingAuthCtx::Role::Client, std::move(p)); in pairing_auth_client_new()
|
/system/core/adb/tls/ |
D | tls_connection.cpp | 38 explicit TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key, 64 const char* RoleToString() { return role_ == Role::Server ? kServerRoleStr : kClientRoleStr; } in RoleToString() 66 Role role_; 83 TlsConnectionImpl::TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key, in TlsConnectionImpl() 173 CHECK(role_ == Role::Server); in SetClientCAList() 272 case Role::Server: in DoHandshake() 275 case Role::Client: in DoHandshake() 287 if (client_verify_post_handshake_ && role_ == Role::Client) { in DoHandshake() 361 std::unique_ptr<TlsConnection> TlsConnection::Create(TlsConnection::Role role, in Create()
|
/system/core/adb/tls/include/adb/tls/ |
D | tls_connection.h | 36 enum class Role { enum 113 static std::unique_ptr<TlsConnection> Create(Role role, std::string_view cert,
|
/system/core/adb/tls/tests/ |
D | tls_connection_test.cpp | 214 server_ = TlsConnection::Create(TlsConnection::Role::Server, kTestRsa2048ServerCert, in SetUp() 216 client_ = TlsConnection::Create(TlsConnection::Role::Client, kTestRsa2048ClientCert, in SetUp() 266 server_ = TlsConnection::Create(TlsConnection::Role::Server, "", in TEST_F() 272 server_ = TlsConnection::Create(TlsConnection::Role::Server, kTestRsa2048ServerCert, in TEST_F() 278 client_ = TlsConnection::Create(TlsConnection::Role::Client, "", in TEST_F() 284 client_ = TlsConnection::Create(TlsConnection::Role::Client, kTestRsa2048ClientCert, in TEST_F()
|
/system/bt/gd/l2cap/le/ |
D | link_options.h | 43 hci::Role GetRole() const;
|
D | link_options.cc | 32 hci::Role LinkOptions::GetRole() const { in GetRole()
|
/system/bt/gd/l2cap/le/internal/ |
D | link_mock.h | 41 MOCK_METHOD(hci::Role, GetRole, (), (override));
|
D | fixed_channel_impl.h | 46 virtual hci::Role GetRole() const;
|
D | fixed_channel_impl.cc | 31 hci::Role FixedChannelImpl::GetRole() const { in GetRole()
|
D | link.h | 64 inline virtual hci::Role GetRole() { in GetRole()
|
/system/bt/gd/security/ |
D | initial_informations.h | 74 hci::Role my_role;
|
D | pairing_handler_le_unittest.cc | 135 .my_role = hci::Role::MASTER, 272 .my_role = hci::Role::MASTER, 311 .my_role = hci::Role::SLAVE,
|
/system/bt/gd/hci/ |
D | acl_manager_test.cc | 496 MOCK_METHOD1(OnRoleDiscoveryComplete, void(Role current_role)); 507 MOCK_METHOD1(OnRoleChange, void(Role new_role)); 597 Role::SLAVE, in SetUp() 667 …ErrorCode::CONNECTION_REJECTED_LIMITED_RESOURCES, 0x123, Role::SLAVE, AddressType::PUBLIC_DEVICE_A… in TEST_F() 698 Role::SLAVE, in TEST_F() 857 acl_manager_->SwitchRole(connection_->GetAddress(), Role::SLAVE); in TEST_F() 862 ASSERT_EQ(command_view.GetRole(), Role::SLAVE); in TEST_F() 864 EXPECT_CALL(mock_connection_management_callbacks_, OnRoleChange(Role::SLAVE)); in TEST_F() 865 …comingEvent(RoleChangeBuilder::Create(ErrorCode::SUCCESS, connection_->GetAddress(), Role::SLAVE)); in TEST_F() 1015 EXPECT_CALL(mock_connection_management_callbacks_, OnRoleDiscoveryComplete(Role::MASTER)); in TEST_F() [all …]
|
D | acl_manager.h | 96 virtual void SwitchRole(Address address, Role role);
|
/system/bt/gd/l2cap/classic/internal/ |
D | link.h | 165 void OnRoleDiscoveryComplete(hci::Role current_role) override; 176 void OnRoleChange(hci::Role new_role) override;
|
D | link.cc | 354 void Link::OnRoleDiscoveryComplete(hci::Role current_role) { in OnRoleDiscoveryComplete() 387 void Link::OnRoleChange(hci::Role new_role) { in OnRoleChange()
|
/system/bt/gd/security/test/ |
D | pairing_handler_le_pair_test.cc | 168 .my_role = hci::Role::MASTER, in SetUp() 190 .my_role = hci::Role::SLAVE, in SetUp() 339 .my_role = hci::Role::MASTER, in TEST_F() 359 .my_role = hci::Role::SLAVE, in TEST_F()
|
/system/libziparchive/ |
D | ziptool.cpp | 47 enum Role { enum 52 static Role role;
|
/system/bt/gd/hci/facade/ |
D | le_acl_manager_facade.cc | 238 Role::MASTER, in OnLeConnectSuccess() 254 …reason, 0, Role::MASTER, address.GetAddressType(), address.GetAddress(), 0, 0, 0, ClockAccuracy::P… in OnLeConnectFail()
|