Home
last modified time | relevance | path

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

/system/bt/gd/l2cap/internal/
Ddynamic_channel_allocator_test.cc42 channel_allocator_ = std::make_unique<DynamicChannelAllocator>(mock_classic_link_, handler_); in SetUp()
46 channel_allocator_.reset(); in TearDown()
58 std::unique_ptr<DynamicChannelAllocator> channel_allocator_; member in bluetooth::l2cap::internal::L2capClassicDynamicChannelAllocatorTest
63 EXPECT_FALSE(channel_allocator_->IsPsmUsed(psm)); in TEST_F()
69 auto channel = channel_allocator_->AllocateChannel(psm, remote_cid); in TEST_F()
71 EXPECT_TRUE(channel_allocator_->IsPsmUsed(psm)); in TEST_F()
72 EXPECT_EQ(channel, channel_allocator_->FindChannelByCid(local_cid)); in TEST_F()
73 ASSERT_NO_FATAL_FAILURE(channel_allocator_->FreeChannel(local_cid)); in TEST_F()
74 EXPECT_FALSE(channel_allocator_->IsPsmUsed(psm)); in TEST_F()
80 Cid reserved = channel_allocator_->ReserveChannel(); in TEST_F()
[all …]
Dfixed_channel_allocator_test.cc45 channel_allocator_ = in SetUp()
50 channel_allocator_.reset(); in TearDown()
62 std::unique_ptr<FixedChannelAllocator<MockFixedChannelImpl, MockLink>> channel_allocator_; member in bluetooth::l2cap::internal::L2capFixedChannelAllocatorTest
67 EXPECT_FALSE(channel_allocator_->IsChannelAllocated(cid)); in TEST_F()
72 auto channel = channel_allocator_->AllocateChannel(cid); in TEST_F()
73 EXPECT_TRUE(channel_allocator_->IsChannelAllocated(cid)); in TEST_F()
74 EXPECT_EQ(channel, channel_allocator_->FindChannel(cid)); in TEST_F()
75 ASSERT_NO_FATAL_FAILURE(channel_allocator_->FreeChannel(cid)); in TEST_F()
76 EXPECT_FALSE(channel_allocator_->IsChannelAllocated(cid)); in TEST_F()
Ddynamic_channel_allocator_fuzz_test.cc52 channel_allocator_ = std::make_unique<DynamicChannelAllocator>(mock_classic_link_, handler_); in SetUp()
56 channel_allocator_.reset(); in TearDown()
69 EXPECT_FALSE(channel_allocator_->IsPsmUsed(psm)); in TestPrecondition()
76 std::unique_ptr<DynamicChannelAllocator> channel_allocator_; member in bluetooth::l2cap::internal::L2capClassicDynamicChannelAllocatorFuzzTest
/system/bt/gd/l2cap/le/internal/
Dsignalling_manager.cc42 …dynamic_service_manager_(dynamic_service_manager), channel_allocator_(channel_allocator), alarm_(h… in LeSignallingManager()
186 if (channel_allocator_->IsPsmUsed(psm)) { in OnConnectionRequest()
302 auto channel = channel_allocator_->FindChannelByCid(cid); in OnDisconnectionRequest()
331 auto channel = channel_allocator_->FindChannelByCid(cid); in OnDisconnectionResponse()
344 auto channel = channel_allocator_->FindChannelByRemoteCid(remote_cid); in OnCredit()
Dsignalling_manager.h156 l2cap::internal::DynamicChannelAllocator* channel_allocator_; variable
/system/bt/gd/l2cap/classic/internal/
Dsignalling_manager.cc57 dynamic_service_manager_(dynamic_service_manager), channel_allocator_(channel_allocator), in ClassicSignallingManager()
284 auto channel = channel_allocator_->FindChannelByCid(cid); in OnConfigurationRequest()
375 auto channel = channel_allocator_->FindChannelByCid(local_cid); in SendInitialConfigRequest()
426 auto channel = channel_allocator_->FindChannelByCid(cid); in negotiate_configuration()
496 auto channel = channel_allocator_->FindChannelByCid(cid); in OnConfigurationResponse()
584 auto channel = channel_allocator_->FindChannelByCid(cid); in OnDisconnectionRequest()
611 auto channel = channel_allocator_->FindChannelByCid(cid); in OnDisconnectionResponse()
862 … auto channel = channel_allocator_->FindChannelByRemoteCid(command_just_sent_.destination_cid_); in on_command_timeout()
Dsignalling_manager.h122 l2cap::internal::DynamicChannelAllocator* channel_allocator_; variable