Home
last modified time | relevance | path

Searched refs:Thread (Results 1 – 25 of 125) sorted by relevance

12345

/system/bt/gd/os/linux_generic/
Dthread.cc35 Thread::Thread(const std::string& name, const Priority priority) in Thread() function in bluetooth::os::Thread
36 : name_(name), reactor_(), running_thread_(&Thread::run, this, priority) {} in Thread()
38 void Thread::run(Priority priority) { in run()
51 Thread::~Thread() { in ~Thread()
55 bool Thread::Stop() { in Stop()
67 bool Thread::IsSameThread() const { in IsSameThread()
71 Reactor* Thread::GetReactor() const { in GetReactor()
75 std::string Thread::GetThreadName() const { in GetThreadName()
79 std::string Thread::ToString() const { in ToString()
Dthread_unittest.cc33 …explicit SampleReactable(Thread* thread) : thread_(thread), fd_(eventfd(0, 0)), is_same_thread_che… in SampleReactable()
52 Thread* thread_;
60 thread = new Thread("test", Thread::Priority::NORMAL); in SetUp()
66 Thread* thread = nullptr;
Dhandler_unittest.cc36 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp()
45 Thread* thread_;
117 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in ThreadSetUp()
139 Thread* thread_;
/system/extras/memory_replay/
DThread.cpp21 Thread::Thread() { in Thread() function in Thread
25 Thread::~Thread() { in ~Thread()
29 void Thread::WaitForReady() { in WaitForReady()
37 void Thread::WaitForPending() { in WaitForPending()
45 void Thread::SetPending() { in SetPending()
52 void Thread::ClearPending() { in ClearPending()
DThreads.h24 class Thread; variable
31 Thread* CreateThread(pid_t tid);
32 Thread* FindThread(pid_t tid);
34 void Finish(Thread* thread);
43 Thread* threads_ = nullptr;
49 Thread* FindEmptyEntry(pid_t tid);
54 friend Thread; variable
DThreads.cpp35 Thread* thread = reinterpret_cast<Thread*>(data); in ThreadRunner()
52 data_size_ = (max_threads_ * sizeof(Thread) + pagesize - 1) & ~(pagesize - 1); in Threads()
53 max_threads_ = data_size_ / sizeof(Thread); in Threads()
61 threads_ = new (memory) Thread[max_threads_]; in Threads()
72 Thread* Threads::CreateThread(pid_t tid) { in CreateThread()
76 Thread* thread = FindEmptyEntry(tid); in CreateThread()
92 Thread* Threads::FindThread(pid_t tid) { in FindThread()
123 Thread* Threads::FindEmptyEntry(pid_t tid) { in FindEmptyEntry()
136 void Threads::Finish(Thread* thread) { in Finish()
DThread.h27 class Thread {
29 Thread();
30 virtual ~Thread();
/system/extras/simpleperf/demo/JavaApi/app/src/main/java/simpleperf/demo/java_api/
DMainActivity.java42 Thread profileThread = createProfileThread(); in onCreate()
47 Thread createProfileThread() { in createProfileThread()
48 Thread thread = new Thread(new Runnable() { in createProfileThread()
58 Thread.sleep(1000); in createProfileThread()
61 Thread.sleep(1000); in createProfileThread()
65 Thread.sleep(1000); in createProfileThread()
78 void createBusyThread(final Thread profileThread) { in createBusyThread()
79 new Thread(new Runnable() { in createBusyThread()
90 Thread.sleep(1); in createBusyThread()
/system/core/libutils/include/utils/
DThread.h41 class Thread : virtual public RefBase
46 explicit Thread(bool canCallJava = true);
47 virtual ~Thread();
95 Thread& operator=(const Thread&);
106 sp<Thread> mHoldSelf;
/system/extras/memory_replay/tests/
DThreadTest.cpp27 typedef std::pair<Thread*, volatile bool*> thread_data_t;
30 Thread thread; in TEST()
38 Thread* thread = thread_data->first; in ThreadWaitForReady()
48 Thread thread; in TEST()
68 Thread* thread = thread_data->first; in ThreadWaitForPending()
78 Thread thread; in TEST()
96 Thread thread; in TEST()
DThreadsTest.cpp28 Thread* thread = threads.CreateThread(900); in TEST()
32 Thread* found_thread = threads.FindThread(900); in TEST()
49 Thread* thread1 = threads.CreateThread(900); in TEST()
53 Thread* thread2 = threads.CreateThread(901); in TEST()
57 Thread* thread3 = threads.CreateThread(902); in TEST()
61 Thread* found_thread1 = threads.FindThread(900); in TEST()
64 Thread* found_thread2 = threads.FindThread(901); in TEST()
67 Thread* found_thread3 = threads.FindThread(902); in TEST()
92 Thread* thread = threads.CreateThread(900); in TEST()
128 Thread* thread = threads.CreateThread(900+i); in TestTooManyThreads()
/system/bt/gd/hal/
Dhci_hal_android_hidl_test.cc25 using ::bluetooth::os::Thread;
34 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp()
42 Thread* thread_;
/system/bt/gd/os/
Dthread.h32 class Thread {
44 Thread(const std::string& name, Priority priority);
47 ~Thread();
49 DISALLOW_COPY_AND_ASSIGN(Thread);
Dthread_benchmark.cc29 using ::bluetooth::os::Thread;
63 thread_ = std::make_unique<Thread>("BM_ReactorThread thread", Thread::Priority::NORMAL); in SetUp()
72 std::unique_ptr<Thread> thread_;
Dqueue_benchmark.cc33 enqueue_thread_ = new Thread("enqueue_thread", Thread::Priority::NORMAL); in SetUp()
35 dequeue_thread_ = new Thread("dequeue_thread", Thread::Priority::NORMAL); in SetUp()
51 Thread* enqueue_thread_;
53 Thread* dequeue_thread_;
/system/bt/gd/
Dstack_manager_unittest.cc28 os::Thread thread{"test_thread", os::Thread::Priority::NORMAL}; in TEST()
52 os::Thread thread{"test_thread", os::Thread::Priority::NORMAL}; in TEST()
Dstack_manager.cc33 using ::bluetooth::os::Thread;
40 void StackManager::StartUp(ModuleList* modules, Thread* stack_thread) { in StartUp()
41 management_thread_ = new Thread("management_thread", Thread::Priority::NORMAL); in StartUp()
67 void StackManager::handle_start_up(ModuleList* modules, Thread* stack_thread, std::promise<void> pr… in handle_start_up()
Dstack_manager.h27 void StartUp(ModuleList *modules, os::Thread* stack_thread);
41 os::Thread* management_thread_ = nullptr;
46 void handle_start_up(ModuleList* modules, os::Thread* stack_thread, std::promise<void> promise);
Dmodule.h138 void Start(ModuleList* modules, ::bluetooth::os::Thread* thread);
141 T* Start(::bluetooth::os::Thread* thread) { in Start()
145 Module* Start(const ModuleFactory* id, ::bluetooth::os::Thread* thread);
153 void set_registry_and_handler(Module* instance, ::bluetooth::os::Thread* thread) const;
195 os::Thread& GetTestThread() { in GetTestThread()
211 os::Thread test_thread{"test_thread", os::Thread::Priority::NORMAL};
/system/bt/gd/common/
Dbidi_queue_unittest.cc27 using ::bluetooth::os::Thread;
36 up_thread_ = new Thread("up_thread", Thread::Priority::NORMAL); in SetUp()
38 down_thread_ = new Thread("down_thread", Thread::Priority::NORMAL); in SetUp()
49 Thread* up_thread_;
51 Thread* down_thread_;
/system/core/libutils/
DThreads.cpp655 Thread::Thread(bool canCallJava) in Thread() function in android::Thread
669 Thread::~Thread() in ~Thread()
673 status_t Thread::readyToRun() in readyToRun()
678 status_t Thread::run(const char* name, int32_t priority, size_t stack) in run()
727 int Thread::_threadLoop(void* user) in _threadLoop()
729 Thread* const self = static_cast<Thread*>(user); in _threadLoop()
731 sp<Thread> strong(self->mHoldSelf); in _threadLoop()
732 wp<Thread> weak(strong); in _threadLoop()
792 void Thread::requestExit() in requestExit()
798 status_t Thread::requestExitAndWait() in requestExitAndWait()
[all …]
/system/bt/gd/l2cap/classic/internal/
Dsignalling_manager_test.cc47 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
57 os::Thread* thread_ = nullptr;
/system/bt/gd/l2cap/internal/
Dfixed_channel_allocator_test.cc39 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
58 os::Thread* thread_{nullptr};
Ddynamic_channel_allocator_fuzz_test.cc46 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp()
72 os::Thread* thread_{nullptr};
/system/extras/simpleperf/demo/CppApi/app/src/main/java/simpleperf/demo/cpp_api/
DMainActivity.java43 new Thread(new Runnable() { in createUpdateViewThread()
48 Thread.sleep(1000); in createUpdateViewThread()

12345