/packages/modules/Bluetooth/system/common/test/ |
D | thread_performance_test.cc | 103 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/ |
D | thread_performance_benchmark.cc | 124 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/ |
D | handler_unittest.cc | 34 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
|
D | handler.cc | 30 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()
|
D | thread_benchmark.cc | 63 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
|
D | alarm_benchmark.cc | 38 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/ |
D | dynamic_channel_impl_test.cc | 47 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()
|
D | basic_mode_channel_data_controller_test.cc | 54 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
|
D | fixed_channel_allocator_test.cc | 39 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
|
D | dynamic_channel_allocator_fuzz_test.cc | 46 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
|
D | sender_test.cc | 74 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
|
D | dynamic_channel_allocator_test.cc | 37 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/ |
D | message_loop_thread.cc | 51 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/ |
D | fdevent_test.h | 50 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/ |
D | async_manager.cc | 146 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/ |
D | signalling_manager_test.cc | 47 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
|
D | dynamic_channel_service_manager_test.cc | 47 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
|
D | link_test.cc | 75 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
|
D | fixed_channel_impl_test.cc | 48 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()
|
D | fixed_channel_service_manager_test.cc | 48 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/ |
D | dynamic_channel_service_manager_test.cc | 46 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
|
D | fixed_channel_impl_test.cc | 51 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()
|
D | fixed_channel_service_manager_test.cc | 48 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/ |
D | module_unittest.cc | 40 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/ |
D | handler.cc | 31 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()
|