Home
last modified time | relevance | path

Searched refs:channels_ (Results 1 – 5 of 5) sorted by relevance

/system/bt/gd/l2cap/internal/
Dfixed_channel_allocator.h55 …auto elem = channels_.try_emplace(cid, std::make_shared<FixedChannelImplType>(cid, link_, l2cap_ha… in AllocateChannel()
64 channels_.erase(cid); in FreeChannel()
68 return channels_.find(cid) != channels_.end(); in IsChannelAllocated()
73 return channels_.find(cid)->second; in FindChannel()
77 return channels_.size(); in NumberOfChannels()
81 for (auto& elem : channels_) { in OnAclDisconnected()
88 for (auto& elem : channels_) { in GetRefCount()
100 std::unordered_map<Cid, std::shared_ptr<FixedChannelImplType>> channels_; variable
Ddynamic_channel_allocator.cc44channels_.try_emplace(cid, std::make_shared<DynamicChannelImpl>(psm, cid, remote_cid, link_, l2cap… in AllocateChannel()
59 auto elem = channels_.try_emplace( in AllocateReservedChannel()
89 channels_.erase(cid); in FreeChannel()
93 for (const auto& channel : channels_) { in IsPsmUsed()
102 if (channels_.find(cid) == channels_.end()) { in FindChannelByCid()
106 return channels_.find(cid)->second; in FindChannelByCid()
110 for (auto& channel : channels_) { in FindChannelByRemoteCid()
119 return channels_.size(); in NumberOfChannels()
123 for (auto& elem : channels_) { in OnAclDisconnected()
Ddynamic_channel_allocator.h81 std::unordered_map<Cid, std::shared_ptr<DynamicChannelImpl>> channels_; variable
/system/bt/main/shim/
Dl2c_api.cc133 if (channels_.count(cid_token) == 0) { in Disconnect()
136 channels_[cid_token]->Close(); in Disconnect()
148 for (const auto& device : channels_) { in on_unregistered()
158 channels_[cid_token]->GetQueueUpEnd()->UnregisterDequeue(); in on_channel_close()
159 channels_.erase(cid_token); in on_channel_close()
166 if (channel_service_ == nullptr && channels_.empty()) { in on_channel_close()
216 channels_[cid_token] = std::move(channel); in on_channel_open()
220 auto channel = channels_.find(cid_token); in on_incoming_data()
221 if (channel == channels_.end()) { in on_incoming_data()
257 auto channel = channels_.find(cid); in GetRemoteCid()
[all …]
/system/bt/gd/l2cap/classic/internal/
Ddumpsys_helper.cc36 …for (auto it = channel_allocator.channels_.cbegin(); it != channel_allocator.channels_.cend(); ++i… in DumpActiveDynamicChannels()
52 …for (auto it = channel_allocator.channels_.cbegin(); it != channel_allocator.channels_.cend(); ++i… in DumpActiveFixedChannels()