/system/bt/doc/ |
H A D | power_management.md | 8 code via the BTA workqueue thread. 30 through the BTA workqueue thread and the `bta_dm_pm_btm_status` function. Since 32 controller, timers are used to post messages to the BTA workqueue thread as 147 made through the BTA workqueue thread to `bta_dm_pm_btm_cback`, which then 149 responses are also fired as messages through the BTA workqueue thread, which are 159 `tBTA_DM_PM_BTM_STATUS` struct and posts it to the BTA workqueue thread via 163 **Determine if this is running on the workqueue thread or not** 200 sends off an event to the BTA workqueue thread.
|
/system/core/adb/client/ |
H A D | usb_libusb.cpp | 30 #include <thread> 397 auto thread = std::thread([device]() { local 406 thread.detach(); 452 // We're called with the libusb lock taken. Call these on a separate thread outside of this 455 std::call_once(once, []() { std::thread(hotplug_thread).detach(); }); 482 // Spawn a thread for libusb_handle_events. 483 std::thread([]() {
|
H A D | usb_windows.cpp | 34 #include <thread> 52 ability to break a thread out of pipe IO. 103 /// Entry point for thread that polls (every second) for new usb interfaces. 171 D("Created device thread"); 198 // This uses a thread with its own window message pump to get power 204 D("Created power notification thread"); 247 D("Power notification thread exiting"); 251 std::thread(device_poll_thread).detach(); 252 std::thread(_power_notification_thread).detach(); 605 // by another thread [all...] |
/system/core/adb/ |
H A D | transport_local.cpp | 30 #include <thread> 264 /* A worker thread that monitors host connections, and registers a transport for 265 * every new host connection. This thread replaces server_socket_thread on 316 std::thread(server_socket_thread, port).detach(); 393 std::thread(func, port).detach();
|
H A D | adb_io.cpp | 23 #include <thread> 156 // because we'd probably block the main thread where nonblocking IO is
|
H A D | transport_mdns.cpp | 27 #include <thread> 284 std::thread(init_mdns_transport_discovery_thread).detach();
|
/system/extras/simpleperf/ |
H A D | sample_tree.h | 106 const ThreadEntry* thread = GetThreadOfSample(sample); local 109 if (thread != nullptr && (r.sample_type & PERF_SAMPLE_REGS_USER) && 116 if (offline_unwinder_->UnwindCallChain(*thread, regs, r.stack_user_data.data,
|
H A D | cmd_debug_unwind.cpp | 240 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); local 244 if (!offline_unwinder_.UnwindCallChain(*thread, regs, r.stack_user_data.data, 278 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); local 280 const MapEntry* map = thread_tree_.FindMap(thread, ip, false);
|
H A D | SampleDisplayer.h | 69 return android::base::StringPrintf("%d", sample->thread->pid); 74 return android::base::StringPrintf("%d", sample->thread->tid);
|
H A D | cmd_dumprecord.cpp | 170 ThreadEntry* thread = thread_tree.FindThreadOrNew(pid, tid); 171 const MapEntry* map = thread_tree.FindMap(thread, ip);
|
H A D | inplace_sampler_lib.cpp | 58 // Set up timers to send signals for each profiled thread regularly. 59 // Send thread info and map info to simpleperf. 222 // Skip sample thread. 354 pthread_t thread; local 355 if (pthread_create(&thread, &attr, CommunicationThread, nullptr) != 0) {
|
/system/libhwbinder/vts/performance/ |
H A D | Latency.cpp | 130 // create a fifo thread to transact and wait it to finished 134 pthread_t thread; local 143 REQUIRE(!pthread_create(&thread, &attr, threadStart, &thread_arg)); 144 REQUIRE(!pthread_join(thread, &dummy)); 207 // 1. transaction by fifo thread 213 // 2. transaction by other thread
|
/system/core/init/ |
H A D | firmware_handler.cpp | 25 #include <thread>
|
/system/tpm/trunks/ |
H A D | trunksd.cc | 22 #include <base/threading/thread.h> 107 // background thread. 110 CHECK(background_thread.Start()) << "Failed to start background thread.";
|
/system/vold/ |
H A D | VoldNativeService.cpp | 32 #include <thread> 390 std::thread([=]() { 422 std::thread([=]() { 475 std::thread([=]() { 486 std::thread([=]() { 497 std::thread([=]() { 529 // Spawn as thread so init can issue commands back to vold without 531 std::thread(&cryptfs_restart).detach(); 577 // Spawn as thread so init can issue commands back to vold without 579 std::thread( [all...] |
H A D | Benchmark.cpp | 29 #include <thread>
|
/system/core/debuggerd/ |
H A D | debuggerd_test.cpp | 30 #include <thread> 597 // Spawn and detach a thread that spins forever. 599 std::thread thread([&jail, &thread_ready]() { 605 thread.detach(); 777 std::string regex = R"(failed to attach to thread \d+, already traced by )"; 846 std::vector<std::thread> threads; 914 for (std::thread& thread : threads) { 915 thread [all...] |
/system/core/libappfuse/tests/ |
H A D | FuseAppLoopTest.cc | 24 #include <thread> 85 std::thread thread_; 97 thread_ = std::thread([this] { loop_->Start(&callback_); });
|
/system/bt/osi/src/ |
H A D | alarm.cc | 47 #include "osi/include/thread.h" 57 // meet audio deadlines. Use this priority for all audio/timer related thread. 138 // Default alarm callback thread and queue 158 // Registers |queue| for processing alarm callbacks on |thread|. 159 // |queue| may not be NULL. |thread| may not be NULL. 161 thread_t* thread); 342 LOG_ERROR(LOG_TAG, "%s unable to create default alarm callbacks thread.", 359 LOG_ERROR(LOG_TAG, "%s unable to create alarm callback thread.", __func__); 491 // new thread. So we simply set the timer to fire at the largest possible 550 thread_t* thread) { 549 alarm_register_processing_queue(fixed_queue_t* queue, thread_t* thread) argument [all...] |
/system/chre/host/common/ |
H A D | socket_client.cc | 56 LOGE("disconnect() can't be called from a receive thread callback"); 58 // Inform the RX thread that we're requesting a shutdown, breaking it out of 66 // Invalidate the socket (will kick the RX thread out of recv if it's 73 LOGD("Waiting for RX thread to exit"); 110 LOGE("Can't attempt to connect from a receive thread callback"); 127 mRxThread = std::thread([this]() { 145 LOGV("Receive thread started"); 150 LOG_ERROR("Exiting RX thread", errno); 174 LOGV("Exiting receive thread");
|
/system/chre/platform/slpi/ |
H A D | init.cc | 54 // Qualcomm-defined function needed to indicate that the CHRE thread may call 55 // dlopen() (without it, the thread will deadlock when calling dlopen()). Not in 58 extern "C" int HAP_thread_migrate(qurt_thread_t thread); 62 //! Size of the stack for the CHRE thread, in bytes. 65 //! Memory partition where the thread control block (TCB) should be stored, 71 //! The priority to set for the CHRE thread (value between 1-255, with 1 being 76 //! How long we wait (in microseconds) between checks on whether the CHRE thread 80 //! Buffer to use for the CHRE thread's stack. 83 //! QuRT OS handle for the CHRE thread. 86 //! Protects access to thread metadat [all...] |
/system/extras/libperfmgr/tools/ |
H A D | ConfigVerifier.cc | 17 #include <thread>
|
/system/netd/server/dns/ |
H A D | DnsTlsTransport.cpp | 96 // Move remaining operations to a new thread. 98 // 1. onClosed is currently running on a thread that blocks mSocket's destructor 101 // Complete cleanup of a previous reconnect thread, if present. 103 // Joining a thread that is trying to acquire mLock, while holding mLock, 108 mReconnectThread.reset(new std::thread(&DnsTlsTransport::doReconnect, this)); 134 // It's possible that a reconnect thread was spawned and waiting for mLock. 135 // It's safe for that thread to run now because mClosing is true (and mQueries is empty), 138 ALOGV("Waiting for reconnect thread to terminate");
|
/system/tpm/tpm_manager/server/ |
H A D | tpm_manager_service.h | 25 #include <base/threading/thread.h> 46 // This class runs a worker thread and delegates all calls to it. This keeps the 52 // Tasks that run on the worker thread are bound with base::Unretained which is 53 // safe because the thread is owned by this class (so it is guaranteed not to 55 // back to the main thread. 107 // thread with the provided |RequestProtobufType|. When |TaskType| finishes 124 // background worker thread. 129 // background worker thread. 134 // the background worker thread. 146 // background worker thread [all...] |
/system/core/libmemunreachable/tests/ |
H A D | ThreadCapture_test.cpp | 27 #include <thread> 45 // loop until ListThreads only finds the main thread so the next test 121 std::vector<std::thread> threads_;
|