Home
last modified time | relevance | path

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

/system/bt/gd/l2cap/le/
Dfacade.cc85 if (service_helper->second->channel_ == nullptr) { in CloseDynamicChannel()
88 auto address = service_helper->second->channel_->GetDevice().GetAddress(); in CloseDynamicChannel()
94 service_helper->second->channel_->Close(); in CloseDynamicChannel()
144 if (channel_ != nullptr) { in ~L2capDynamicChannelHelper()
145 channel_->GetQueueUpEnd()->UnregisterDequeue(); in ~L2capDynamicChannelHelper()
146 channel_ = nullptr; in ~L2capDynamicChannelHelper()
155 …if (!channel_open_cv_.wait_for(lock, std::chrono::seconds(2), [this] { return channel_ != nullptr;… in Connect()
173 channel_ = std::move(channel); in on_connection_open()
176 channel_->RegisterOnCloseCallback( in on_connection_open()
178 channel_->GetQueueUpEnd()->RegisterDequeue( in on_connection_open()
[all …]
/system/bt/gd/l2cap/classic/
Dfacade.cc150 channel_->GetQueueUpEnd()->UnregisterDequeue(); in ~L2capDynamicChannelHelper()
151 channel_ = nullptr; in ~L2capDynamicChannelHelper()
167 …if (!channel_open_cv_.wait_for(lock, std::chrono::seconds(2), [this] { return channel_ != nullptr;… in Connect()
173 if (channel_ == nullptr) { in Disconnect()
175 …if (!channel_open_cv_.wait_for(lock, std::chrono::seconds(2), [this] { return channel_ != nullptr;… in Disconnect()
180 channel_->Close(); in Disconnect()
193 channel_ = std::move(channel); in on_connection_open()
194 …enqueue_buffer_ = std::make_unique<os::EnqueueBuffer<BasePacketBuilder>>(channel_->GetQueueUpEnd()… in on_connection_open()
197 channel_->RegisterOnCloseCallback( in on_connection_open()
200 channel_->GetQueueUpEnd()->RegisterDequeue( in on_connection_open()
[all …]
/system/bt/gd/security/channel/
Dsecurity_manager_channel_unittest.cc226 channel_ = new FakeSecurityManagerChannel(handler_, hci_layer_); in SetUp()
227 channel_->SetChannelListener(callback_); in SetUp()
228 security_interface_ = new FakeSecurityInterface(handler_, channel_); in SetUp()
229 channel_->SetSecurityInterface(security_interface_); in SetUp()
233 channel_->SetChannelListener(nullptr); in TearDown()
238 delete channel_; in TearDown()
252 SecurityManagerChannel* channel_ = nullptr; member in bluetooth::security::channel::__anon855c6ade0111::SecurityManagerChannelTest
274 channel_->SendCommand(std::move(packet)); in TEST_F()
290 channel_->SendCommand(std::move(packet)); in TEST_F()
323 channel_->SendCommand(std::move(packet)); in TEST_F()
[all …]
/system/bt/gd/shim/
Dl2cap.cc86 channel_(std::move(channel)), in ConnectionInterface()
90 address_(channel_->GetDevice().GetAddress()), in ConnectionInterface()
92channel_->RegisterOnCloseCallback(handler_->BindOnceOn(this, &ConnectionInterface::OnConnectionClo… in ConnectionInterface()
93 channel_->GetQueueUpEnd()->RegisterDequeue( in ConnectionInterface()
103 …std::unique_ptr<packet::PacketView<packet::kLittleEndian>> packet = channel_->GetQueueUpEnd()->Try… in OnReadReady()
123 channel_->GetQueueUpEnd()->UnregisterEnqueue(); in WriteReady()
134 channel_->GetQueueUpEnd()->RegisterEnqueue( in Write()
141 channel_->GetQueueUpEnd()->UnregisterDequeue(); in Close()
145 channel_->Close(); in Close()
155 channel_->GetQueueUpEnd()->UnregisterDequeue(); in OnConnectionClosed()
[all …]
/system/bt/gd/security/internal/
Dsecurity_manager_impl.cc381 if (storage.channel_->GetDevice() == device) { in FindStoredLeChannel()
390 if (it->channel_->GetDevice() == device) { in EraseStoredLeChannel()
405 std::unique_ptr<l2cap::le::FixedChannel>& channel = stored_chan->channel_; in OnSmpCommandLe()
438 stored_chan->channel_->Acquire(); in OnSmpCommandLe()
492 auto& channel = stored_channel.channel_; in OnConnectionOpenLe()
509 auto& channel = stored_channel->channel_; in ConnectionIsReadyStartPairing()
512 stored_channel->channel_->Acquire(); in ConnectionIsReadyStartPairing()
561 stored_chan->channel_->GetQueueUpEnd()->UnregisterDequeue(); in OnConnectionClosedLe()
608 stored_chan->channel_->Release(); in OnPairingFinished()
Dsecurity_manager_impl.h48 std::unique_ptr<l2cap::le::FixedChannel> channel_; member
66 stored_chan.channel_->GetQueueUpEnd()->UnregisterDequeue(); in ~SecurityManagerImpl()
/system/bt/gd/security/pairing/
Dclassic_pairing_handler_unittest.cc133 channel_ = new FakeSecurityManagerChannel(handler_, hci_layer_); in SetUp()
135 pairing_handler_ = new pairing::ClassicPairingHandler(channel_, security_record_, handler_, in SetUp()
139 channel_->SetChannelListener(channel_callback_); in SetUp()
140 security_interface_ = new FakeSecurityInterface(handler_, channel_); in SetUp()
141 channel_->SetSecurityInterface(security_interface_); in SetUp()
145 channel_->SetChannelListener(nullptr); in TearDown()
149 delete channel_; in TearDown()
197 channel::SecurityManagerChannel* channel_ = nullptr; member in bluetooth::security::channel::__anoned5ad9ed0111::ClassicPairingHandlerTest