Home
last modified time | relevance | path

Searched refs:thread_ (Results 1 – 25 of 68) sorted by relevance

123

/system/bt/common/test/
Dthread_performance_test.cc101 thread_ = thread_new("OsiThreadMessageLoopPerformanceTest thread"); in SetUp()
102 thread_post(thread_, &MessageLoopPerformanceTest::RunThread, this); in SetUp()
109 thread_free(thread_); in TearDown()
110 thread_ = nullptr; in TearDown()
114 thread_t* thread_ = nullptr; member in OsiThreadMessageLoopPerformanceTest
146 thread_ = new std::thread(&MessageLoopPerformanceTest::RunThread, this); in SetUp()
153 thread_->join(); in TearDown()
154 delete thread_; in TearDown()
155 thread_ = nullptr; in TearDown()
159 std::thread* thread_ = nullptr; member in StlThreadMessageLoopPerformanceTest
[all …]
/system/bt/common/benchmark/
Dthread_performance_benchmark.cc118 thread_ = thread_new("BM_MessageLoopOnOsiThread thread"); in SetUp()
119 thread_post(thread_, &BM_MessageLoop::RunThread, this); in SetUp()
126 thread_free(thread_); in TearDown()
127 thread_ = nullptr; in TearDown()
131 thread_t* thread_ = nullptr; member in BM_MessageLoopOsiThread
165 thread_ = new std::thread(&BM_MessageLoop::RunThread, this); in SetUp()
172 thread_->join(); in TearDown()
173 delete thread_; in TearDown()
174 thread_ = nullptr; in TearDown()
178 std::thread* thread_ = nullptr; member in BM_MessageLoopStlThread
[all …]
/system/bt/gd/hal/
Dhci_hal_android_hidl_test.cc34 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp()
38 delete thread_; in TearDown()
42 Thread* thread_; member in bluetooth::hal::__anon88edad510111::HciHalHidlTest
46 fake_registry_.Start<HciHal>(thread_); in TEST_F()
/system/bt/gd/os/linux_generic/
Dhandler_unittest.cc36 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp()
37 handler_ = new Handler(thread_); in SetUp()
41 delete thread_; in TearDown()
45 Thread* thread_; member in bluetooth::os::__anon9a1419ef0111::HandlerTest
117 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in ThreadSetUp()
118 handler_ = new Handler(thread_); in ThreadSetUp()
123 delete thread_; in ThreadTearDown()
139 Thread* thread_; member in bluetooth::os::__anon9a1419ef0111::HandlerDeathTest
Dhandler.cc39 …: tasks_(new std::queue<OnceClosure>()), thread_(thread), fd_(eventfd(0, EFD_SEMAPHORE | EFD_NONBL… in Handler()
41 reactable_ = thread_->GetReactor()->Register( in Handler()
83 thread_->GetReactor()->Unregister(reactable_); in Clear()
89 ASSERT(thread_->GetReactor()->WaitForUnregisteredReactable(timeout)); in WaitUntilStopped()
Dalarm_unittest.cc33 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp()
34 handler_ = new Handler(thread_); in SetUp()
42 delete thread_; in TearDown()
48 Thread* thread_; member in bluetooth::os::__anone9ebacde0111::AlarmTest
Dthread_unittest.cc33 …explicit SampleReactable(Thread* thread) : thread_(thread), fd_(eventfd(0, 0)), is_same_thread_che… in SampleReactable()
42 EXPECT_TRUE(thread_->IsSameThread()); in OnReadReady()
52 Thread* thread_; member in bluetooth::os::__anonb7ed5ea90111::SampleReactable
/system/bt/gd/l2cap/classic/internal/
Dsignalling_manager_test.cc47 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
48 l2cap_handler_ = new os::Handler(thread_); in SetUp()
54 delete thread_; in TearDown()
57 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::classic::internal::__anon1796e9a50111::L2capClassicSignallingManagerTest
Ddynamic_channel_service_manager_test.cc47 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
48 user_handler_ = new os::Handler(thread_); in SetUp()
49 l2cap_handler_ = new os::Handler(thread_); in SetUp()
59 delete thread_; in TearDown()
71 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::classic::internal::__anon97f2e1ca0111::L2capDynamicServiceManagerTest
Dlink_test.cc75 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
76 handler_ = new os::Handler(thread_); in SetUp()
77 signalling_handler_ = new os::Handler(thread_); in SetUp()
94 delete thread_; in TearDown()
97 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::classic::internal::__anon00f1d3110111::L2capClassicLinkTest
Dfixed_channel_service_manager_test.cc48 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
49 user_handler_ = new os::Handler(thread_); in SetUp()
55 delete thread_; in TearDown()
67 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::classic::internal::L2capClassicFixedServiceManagerTest
/system/core/adb/fdevent/
Dfdevent_test.h52 if (thread_.joinable()) { in ~FdeventTest()
82 thread_ = std::thread([]() { fdevent_loop(); }); in PrepareThread()
94 thread_.join(); in TerminateThread()
98 std::thread thread_; variable
/system/bt/gd/os/
Dthread_benchmark.cc63 thread_ = std::make_unique<Thread>("BM_ReactorThread thread", Thread::Priority::NORMAL); in SetUp()
64 handler_ = std::make_unique<Handler>(thread_.get()); in SetUp()
68 thread_->Stop(); in TearDown()
69 thread_ = nullptr; in TearDown()
72 std::unique_ptr<Thread> thread_; member in BM_ReactorThread
/system/bt/gd/l2cap/le/internal/
Ddynamic_channel_service_manager_test.cc46 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
47 user_handler_ = new os::Handler(thread_); in SetUp()
48 l2cap_handler_ = new os::Handler(thread_); in SetUp()
58 delete thread_; in TearDown()
69 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::le::internal::L2capLeDynamicServiceManagerTest
Dfixed_channel_service_manager_test.cc48 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
49 user_handler_ = new os::Handler(thread_); in SetUp()
55 delete thread_; in TearDown()
67 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::le::internal::L2capLeServiceManagerTest
/system/bt/gd/l2cap/internal/
Ddynamic_channel_impl_test.cc47 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
48 l2cap_handler_ = new os::Handler(thread_); in SetUp()
54 delete thread_; in TearDown()
57 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::internal::L2capClassicDynamicChannelImplTest
88 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
113 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
133 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
158 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
Dfixed_channel_allocator_test.cc39 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
40 handler_ = new os::Handler(thread_); in SetUp()
55 delete thread_; in TearDown()
58 os::Thread* thread_{nullptr}; member in bluetooth::l2cap::internal::L2capFixedChannelAllocatorTest
Ddynamic_channel_allocator_fuzz_test.cc46 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
47 handler_ = new os::Handler(thread_); in SetUp()
61 delete thread_; in TearDown()
72 os::Thread* thread_{nullptr}; member in bluetooth::l2cap::internal::L2capClassicDynamicChannelAllocatorFuzzTest
Dscheduler_fifo_test.cc73 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
74 user_handler_ = new os::Handler(thread_); in SetUp()
75 queue_handler_ = new os::Handler(thread_); in SetUp()
87 delete thread_; in TearDown()
90 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::internal::__anon4a5217940111::L2capSchedulerFifoTest
Dbasic_mode_channel_data_controller_test.cc54 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
55 user_handler_ = new os::Handler(thread_); in SetUp()
56 queue_handler_ = new os::Handler(thread_); in SetUp()
64 delete thread_; in TearDown()
67 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::internal::__anon35fc6d8c0111::BasicModeDataControllerTest
Ddynamic_channel_allocator_test.cc37 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
38 handler_ = new os::Handler(thread_); in SetUp()
51 delete thread_; in TearDown()
54 os::Thread* thread_{nullptr}; member in bluetooth::l2cap::internal::L2capClassicDynamicChannelAllocatorTest
Dsender_test.cc73 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
74 user_handler_ = new os::Handler(thread_); in SetUp()
75 queue_handler_ = new os::Handler(thread_); in SetUp()
89 delete thread_; in TearDown()
92 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::internal::__anonaf4061330111::L2capSenderTest
/system/bt/common/
Dmessage_loop_thread.cc35 thread_(nullptr), in MessageLoopThread()
48 if (thread_ != nullptr) { in StartUp()
53 thread_ = new std::thread(&MessageLoopThread::RunThread, this, in StartUp()
86 if (thread_ == nullptr) { in ShutDown()
109 thread_->join(); in ShutDown()
112 delete thread_; in ShutDown()
113 thread_ = nullptr; in ShutDown()
/system/bt/service/ipc/
Dipc_handler_linux.cc35 thread_("IPCHandlerLinux"), in IPCHandlerLinux()
106 if (!thread_.StartWithOptions(options)) { in Run()
112 thread_.task_runner()->PostTask( in Run()
128 thread_.Stop(); in Stop()
177 thread_.Stop(); in ShutDownOnOriginThread()
/system/bt/gd/
Dmodule_unittest.cc35 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp()
41 delete thread_; in TearDown()
45 Thread* thread_; member in bluetooth::__anonb3e8c82b0111::ModuleTest
204 registry_->Start(&list, thread_); in TEST_F()
222 registry_->Start(&list, thread_); in TEST_F()
240 registry_->Start(&list, thread_); in TEST_F()
263 registry_->Start(&list, thread_); in TEST_F()
272 registry_->Start(&list, thread_); in TEST_F()

123