Home
last modified time | relevance | path

Searched refs:Role (Results 1 – 25 of 36) sorted by relevance

12

/system/core/adb/pairing_connection/
Dpairing_connection.cpp73 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/
Dle_acl_connection.h34 AddressWithType local_address, AddressWithType remote_address, Role role);
45 virtual Role GetRole() const { in GetRole()
69 Role role_;
Dconnection_management_callbacks.h51 virtual void OnRoleDiscoveryComplete(Role current_role) = 0;
76 virtual void OnRoleChange(Role new_role) = 0;
Dclassic_impl.h195 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()
Dle_acl_connection.cc88 … AddressWithType local_address, AddressWithType remote_address, Role role) in LeAclConnection()
Dclassic_acl_connection.cc83 void OnRoleDiscoveryComplete(Role current_role) override { in OnRoleDiscoveryComplete()
116 void OnRoleChange(Role new_role) override { in OnRoleChange()
/system/core/adb/pairing_auth/
Dpairing_auth.cpp43 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/
Dtls_connection.cpp38 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/
Dtls_connection.h36 enum class Role { enum
113 static std::unique_ptr<TlsConnection> Create(Role role, std::string_view cert,
/system/core/adb/tls/tests/
Dtls_connection_test.cpp214 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/
Dlink_options.h43 hci::Role GetRole() const;
Dlink_options.cc32 hci::Role LinkOptions::GetRole() const { in GetRole()
/system/bt/gd/l2cap/le/internal/
Dlink_mock.h41 MOCK_METHOD(hci::Role, GetRole, (), (override));
Dfixed_channel_impl.h46 virtual hci::Role GetRole() const;
Dfixed_channel_impl.cc31 hci::Role FixedChannelImpl::GetRole() const { in GetRole()
Dlink.h64 inline virtual hci::Role GetRole() { in GetRole()
/system/bt/gd/security/
Dinitial_informations.h74 hci::Role my_role;
Dpairing_handler_le_unittest.cc135 .my_role = hci::Role::MASTER,
272 .my_role = hci::Role::MASTER,
311 .my_role = hci::Role::SLAVE,
/system/bt/gd/hci/
Dacl_manager_test.cc496 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 …]
Dacl_manager.h96 virtual void SwitchRole(Address address, Role role);
/system/bt/gd/l2cap/classic/internal/
Dlink.h165 void OnRoleDiscoveryComplete(hci::Role current_role) override;
176 void OnRoleChange(hci::Role new_role) override;
Dlink.cc354 void Link::OnRoleDiscoveryComplete(hci::Role current_role) { in OnRoleDiscoveryComplete()
387 void Link::OnRoleChange(hci::Role new_role) { in OnRoleChange()
/system/bt/gd/security/test/
Dpairing_handler_le_pair_test.cc168 .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/
Dziptool.cpp47 enum Role { enum
52 static Role role;
/system/bt/gd/hci/facade/
Dle_acl_manager_facade.cc238 Role::MASTER, in OnLeConnectSuccess()
254 …reason, 0, Role::MASTER, address.GetAddressType(), address.GetAddress(), 0, 0, 0, ClockAccuracy::P… in OnLeConnectFail()

12