Home
last modified time | relevance | path

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

1234

/packages/modules/Bluetooth/system/common/test/
Dthread_performance_test.cc103 thread_ = thread_new("OsiThreadMessageLoopPerformanceTest thread"); in SetUp()
104 thread_post(thread_, &MessageLoopPerformanceTest::RunThread, this); in SetUp()
111 thread_free(thread_); in TearDown()
112 thread_ = nullptr; in TearDown()
116 thread_t* thread_ = nullptr; member in OsiThreadMessageLoopPerformanceTest
148 thread_ = new std::thread(&MessageLoopPerformanceTest::RunThread, this); in SetUp()
155 thread_->join(); in TearDown()
156 delete thread_; in TearDown()
157 thread_ = nullptr; in TearDown()
161 std::thread* thread_ = nullptr; member in StlThreadMessageLoopPerformanceTest
[all …]
/packages/modules/Bluetooth/system/common/benchmark/
Dthread_performance_benchmark.cc124 thread_ = thread_new("BM_MessageLoopOnOsiThread thread"); in SetUp()
125 thread_post(thread_, &BM_MessageLoop::RunThread, this); in SetUp()
132 thread_free(thread_); in TearDown()
133 thread_ = nullptr; in TearDown()
137 thread_t* thread_ = nullptr; member in BM_MessageLoopOsiThread
171 thread_ = new std::thread(&BM_MessageLoop::RunThread, this); in SetUp()
178 thread_->join(); in TearDown()
179 delete thread_; in TearDown()
180 thread_ = nullptr; in TearDown()
184 std::thread* thread_ = nullptr; member in BM_MessageLoopStlThread
[all …]
/packages/modules/Bluetooth/system/gd/os/
Dhandler_unittest.cc34 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp()
35 handler_ = new Handler(thread_); in SetUp()
39 delete thread_; in TearDown()
43 Thread* thread_; member in bluetooth::os::__anond0580a4a0111::HandlerTest
123 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in ThreadSetUp()
124 handler_ = new Handler(thread_); in ThreadSetUp()
129 delete thread_; in ThreadTearDown()
145 Thread* thread_; member in bluetooth::os::__anond0580a4a0111::HandlerDeathTest
Dhandler.cc30 Handler::Handler(Thread* thread) : tasks_(new std::queue<OnceClosure>()), thread_(thread) { in Handler()
31 event_ = thread_->GetReactor()->NewEvent(); in Handler()
32 reactable_ = thread_->GetReactor()->Register( in Handler()
67 thread_->GetReactor()->Unregister(reactable_); in Clear()
74 thread_->GetReactor()->WaitForUnregisteredReactable(timeout), in WaitUntilStopped()
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
Dalarm_benchmark.cc38 thread_ = std::make_unique<Thread>("timer_benchmark", Thread::Priority::REAL_TIME); in SetUp()
39 handler_ = std::make_unique<Handler>(thread_.get()); in SetUp()
54 thread_->Stop(); in TearDown()
55 thread_ = nullptr; in TearDown()
81 std::unique_ptr<Thread> thread_; member in BM_ReactableAlarm
/packages/modules/Bluetooth/system/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()
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::__anonb17bd4220111::BasicModeDataControllerTest
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
Dsender_test.cc74 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
75 user_handler_ = new os::Handler(thread_); in SetUp()
76 queue_handler_ = new os::Handler(thread_); in SetUp()
90 delete thread_; in TearDown()
93 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::internal::__anonce8c4ac90111::L2capSenderTest
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
/packages/modules/Bluetooth/system/common/
Dmessage_loop_thread.cc51 thread_(nullptr), in MessageLoopThread()
64 if (thread_ != nullptr) { in StartUp()
69 thread_ = new std::thread(&MessageLoopThread::RunThread, this, in StartUp()
103 if (thread_ == nullptr) { in ShutDown()
121 thread_->join(); in ShutDown()
124 delete thread_; in ShutDown()
125 thread_ = nullptr; in ShutDown()
/packages/modules/adb/fdevent/
Dfdevent_test.h50 if (thread_.joinable()) { in ~FdeventTest()
67 thread_ = std::thread([]() { fdevent_loop(); }); in PrepareThread()
73 thread_.join(); in TerminateThread()
76 std::thread thread_; variable
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dasync_manager.cc146 if (std::this_thread::get_id() != thread_.get_id()) { in stopThread()
147 thread_.join(); in stopThread()
190 thread_ = std::thread([this]() { ThreadRoutine(); }); in tryStartThread()
191 if (!thread_.joinable()) { in tryStartThread()
278 std::thread thread_; member in rootcanal::AsyncManager::AsyncFdWatcher
349 if (std::this_thread::get_id() != thread_.get_id()) { in stopThread()
350 thread_.join(); in stopThread()
416 if (thread_.get_id() != std::this_thread::get_id()) { in cancel_task_with_lock_held()
470 thread_ = std::thread([this]() { ThreadRoutine(); }); in tryStartThread()
471 if (!thread_.joinable()) { in tryStartThread()
[all …]
/packages/modules/Bluetooth/system/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::__anon67fc1a3b0111::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::__anon66e7d6200111::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::__anon086815270111::L2capClassicLinkTest
Dfixed_channel_impl_test.cc48 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
49 l2cap_handler_ = new os::Handler(thread_); in SetUp()
55 delete thread_; in TearDown()
58 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::classic::internal::L2capClassicFixedChannelImplTest
95 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
127 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
154 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
187 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
253 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
291 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
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
/packages/modules/Bluetooth/system/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_impl_test.cc51 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
52 l2cap_handler_ = new os::Handler(thread_); in SetUp()
58 delete thread_; in TearDown()
61 os::Thread* thread_ = nullptr; member in bluetooth::l2cap::le::internal::L2capLeFixedChannelImplTest
91 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
119 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
141 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
169 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
219 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
251 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
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
/packages/modules/Bluetooth/system/gd/
Dmodule_unittest.cc40 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp()
46 delete thread_; in TearDown()
50 Thread* thread_; member in bluetooth::__anon2d4c33810111::ModuleTest
227 registry_->Start(&list, thread_); in TEST_F()
245 registry_->Start(&list, thread_); in TEST_F()
263 registry_->Start(&list, thread_); in TEST_F()
286 registry_->Start(&list, thread_); in TEST_F()
295 registry_->Start(&list, thread_); in TEST_F()
/packages/modules/Bluetooth/system/test/headless/
Dhandler.cc31 thread_ = new os::Thread("headless_thread", os::Thread::Priority::NORMAL); in Handler()
32 handler_ = new os::Handler(thread_); in Handler()
39 delete thread_; in ~Handler()

1234