/system/bt/gd/os/linux_generic/ |
D | thread.cc | 35 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()
|
D | thread_unittest.cc | 33 …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;
|
D | handler_unittest.cc | 36 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/ |
D | Thread.cpp | 21 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()
|
D | Threads.h | 24 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
|
D | Threads.cpp | 35 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()
|
D | Thread.h | 27 class Thread { 29 Thread(); 30 virtual ~Thread();
|
/system/extras/simpleperf/demo/JavaApi/app/src/main/java/simpleperf/demo/java_api/ |
D | MainActivity.java | 42 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/ |
D | Thread.h | 41 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/ |
D | ThreadTest.cpp | 27 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()
|
D | ThreadsTest.cpp | 28 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/ |
D | hci_hal_android_hidl_test.cc | 25 using ::bluetooth::os::Thread; 34 thread_ = new Thread("test_thread", Thread::Priority::NORMAL); in SetUp() 42 Thread* thread_;
|
/system/bt/gd/os/ |
D | thread.h | 32 class Thread { 44 Thread(const std::string& name, Priority priority); 47 ~Thread(); 49 DISALLOW_COPY_AND_ASSIGN(Thread);
|
D | thread_benchmark.cc | 29 using ::bluetooth::os::Thread; 63 thread_ = std::make_unique<Thread>("BM_ReactorThread thread", Thread::Priority::NORMAL); in SetUp() 72 std::unique_ptr<Thread> thread_;
|
D | queue_benchmark.cc | 33 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/ |
D | stack_manager_unittest.cc | 28 os::Thread thread{"test_thread", os::Thread::Priority::NORMAL}; in TEST() 52 os::Thread thread{"test_thread", os::Thread::Priority::NORMAL}; in TEST()
|
D | stack_manager.cc | 33 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()
|
D | stack_manager.h | 27 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);
|
D | module.h | 138 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/ |
D | bidi_queue_unittest.cc | 27 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/ |
D | Threads.cpp | 655 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/ |
D | signalling_manager_test.cc | 47 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp() 57 os::Thread* thread_ = nullptr;
|
/system/bt/gd/l2cap/internal/ |
D | fixed_channel_allocator_test.cc | 39 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp() 58 os::Thread* thread_{nullptr};
|
D | dynamic_channel_allocator_fuzz_test.cc | 46 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/ |
D | MainActivity.java | 43 new Thread(new Runnable() { in createUpdateViewThread() 48 Thread.sleep(1000); in createUpdateViewThread()
|