Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 221) sorted by relevance

123456789

/aosp14/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp230 thread.queue().post([&thread, trimLevel]() { thread.trimMemory(trimLevel); }); in trimMemory()
239 thread.queue().post([&thread, trimLevel]() { thread.trimCaches(trimLevel); }); in trimCaches()
246 thread.queue().post([&thread]() { in purgeCaches()
319 thread.queue().runSync([&]() { in dumpGraphicsMemory()
331 thread.queue().runSync([&]() { thread.getMemoryUsage(cpuUsage, gpuUsage); }); in getMemoryUsage()
422 thread.queue().post([&thread, window, request = std::move(request)] { in copySurfaceInto()
458 if (gettid() == thread.getTid()) { in copyHWBitmapInto()
462 return thread.queue().runSync( in copyHWBitmapInto()
469 if (gettid() == thread.getTid()) { in copyImageInto()
473 return thread.queue().runSync( in copyImageInto()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
H A DSysUIConcurrencyModule.java59 HandlerThread thread = new HandlerThread("SysUiBg", in provideBgLooper() local
61 thread.start(); in provideBgLooper()
64 return thread.getLooper(); in provideBgLooper()
74 thread.start(); in provideBroadcastRunningLooper()
77 return thread.getLooper(); in provideBroadcastRunningLooper()
85 HandlerThread thread = new HandlerThread("SysUiLng", in provideLongRunningLooper() local
87 thread.start(); in provideLongRunningLooper()
90 return thread.getLooper(); in provideLongRunningLooper()
224 HandlerThread thread = new HandlerThread("TimeTick"); in provideTimeTickHandler() local
225 thread.start(); in provideTimeTickHandler()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/docs/
H A Dthreading.md14 | (^post to shell thread) | (^post to main thread)
24 - SysUI main thread (standard main thread)
27 - This falls back to the SysUI main thread otherwise
31 - This is also the UI thread for almost all UI created by the Shell
36 thread)
39 - This thread runs with `THREAD_PRIORITY_BACKGROUND` priority
51 To get the SysUI main thread, you can use the `@Main` annotation.
58 thread, and this reduces the likelihood that components will intiailize on the wrong thread
61 - If the Shell main thread is not a separate thread, this will cause a deadlock
65 the main Shell thread manually
[all …]
/aosp14/system/core/fs_mgr/tests/
H A Dfile_wait_test.cpp56 std::thread thread([this] { in TEST_F() local
61 thread.join(); in TEST_F()
65 std::thread thread([this] { in TEST_F() local
70 thread.join(); in TEST_F()
80 std::thread thread([this] { in TEST_F() local
85 thread.join(); in TEST_F()
/aosp14/system/core/debuggerd/libdebuggerd/
H A Dtombstone_proto_to_text.cpp86 thread.name().c_str(), process_name); in print_thread_header()
88 if (thread.tagged_addr_ctrl() != -1) { in print_thread_header()
92 if (thread.pac_enabled_keys() != -1) { in print_thread_header()
142 for (const auto& reg : thread.registers()) { in print_thread_registers()
195 if (!thread.backtrace_note().empty()) { in print_thread_backtrace()
207 for (const auto& mem : thread.memory_dump()) { in print_thread_memory_dump()
253 print_thread_header(callback, tombstone, thread, false); in print_thread()
256 print_thread_memory_dump(callback, tombstone, thread); in print_thread()
390 const Thread& thread) { in print_main_thread() argument
391 print_thread_header(callback, tombstone, thread, true); in print_main_thread()
[all …]
H A Dtombstone.cpp86 const ThreadInfo& thread = threads[pid]; in engrave_tombstone_ucontext() local
87 if (!iterate_tids(pid, [&threads, &thread, &target_tid](pid_t tid) { in engrave_tombstone_ucontext()
92 .uid = thread.uid, in engrave_tombstone_ucontext()
94 .pid = thread.pid, in engrave_tombstone_ucontext()
95 .command_line = thread.command_line, in engrave_tombstone_ucontext()
97 .tagged_addr_ctrl = thread.tagged_addr_ctrl, in engrave_tombstone_ucontext()
98 .pac_enabled_keys = thread.pac_enabled_keys, in engrave_tombstone_ucontext()
H A Dbacktrace.cpp62 const ThreadInfo& thread) { in dump_backtrace_thread() argument
67 _LOG(&log, logtype::BACKTRACE, "\n\"%s\" sysTid=%d\n", thread.thread_name.c_str(), thread.tid); in dump_backtrace_thread()
70 if (!unwinder->Unwind(thread.registers.get(), data)) { in dump_backtrace_thread()
71 _LOG(&log, logtype::THREAD, "Unwind failed: tid = %d: Error %s\n", thread.tid, in dump_backtrace_thread()
H A Dtombstone_proto.cpp371 *thread.add_registers() = r; in dump_registers()
406 *thread.add_memory_dump() = std::move(dump); in dump_registers()
414 BacktraceFrame* f = thread.add_current_backtrace(); in dump_thread_backtrace()
423 auto backtrace_note = thread.mutable_backtrace_note(); in dump_thread_backtrace()
439 Thread thread; in dump_thread() local
441 thread.set_id(thread_info.tid); in dump_thread()
442 thread.set_name(thread_info.thread_name); in dump_thread()
459 dump_thread_backtrace(data.frames, thread); in dump_thread()
464 threads[thread_info.tid] = thread; in dump_thread()
697 const ThreadInfo& thread = threads.at(main_thread.pid); in engrave_tombstone_proto() local
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/database/sqlite/
H A DSQLiteConnectionPoolTest.java74 HandlerThread thread = new HandlerThread("test-close-idle-connections-thread"); in testCloseIdleConnections() local
75 Log.i(TAG, "Starting " + thread.getName()); in testCloseIdleConnections()
76 thread.start(); in testCloseIdleConnections()
78 pool.setupIdleConnectionHandler(thread.getLooper(), 100, null); in testCloseIdleConnections()
91 thread.quit(); in testCloseIdleConnections()
96 HandlerThread thread = new HandlerThread("test-close-idle-connections-thread"); in testNonprimaryConnectionPoolRecycling() local
97 thread.start(); in testNonprimaryConnectionPoolRecycling()
101 pool.setupIdleConnectionHandler(thread.getLooper(), 1, onIdleConnectionTimeout); in testNonprimaryConnectionPoolRecycling()
/aosp14/system/core/libutils/
H A DProcessCallStack_fuzz.cpp36 std::vector<std::thread> threads = std::vector<std::thread>(); in spawnThreads()
45 std::thread th = std::thread(loop); in spawnThreads()
68 for (auto& thread : threads) { in spawnThreads() local
69 thread.join(); in spawnThreads()
H A DCallStack_test.cpp51 std::thread thread([&tid, &done]() { ThreadBusyWait(&tid, &done); }); in TEST() local
60 thread.join(); in TEST()
/aosp14/frameworks/base/telephony/common/com/google/android/mms/util/
H A DPduCache.java107 HashSet<Uri> thread = mThreads.get(threadId); in put() local
108 if (thread == null) { in put()
109 thread = new HashSet<Uri>(); in put()
110 mThreads.put(threadId, thread); in put()
117 thread.add(finalKey); in put()
238 HashSet<Uri> thread = mThreads.get(entry.getThreadId()); in removeFromThreads() local
239 if (thread != null) { in removeFromThreads()
240 thread.remove(key); in removeFromThreads()
249 HashSet<Uri> thread = mThreads.remove(threadId); in purgeByThreadId() local
250 if (thread != null) { in purgeByThreadId()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/transport/
H A DBackupTransportClientTest.java85 Thread thread = new Thread(() -> { in testTransportDirName_completesLater_returnsName() local
94 thread.start(); in testTransportDirName_completesLater_returnsName()
103 thread.join(); in testTransportDirName_completesLater_returnsName()
111 Thread thread = new Thread(() -> { in testTransportDirName_canceledBeforeCompletion_throwsException() local
119 thread.start(); in testTransportDirName_canceledBeforeCompletion_throwsException()
128 thread.join(); in testTransportDirName_canceledBeforeCompletion_throwsException()
167 Thread thread = new Thread(() -> { in testFinishBackup_completesLater_returnsStatus() local
176 thread.start(); in testFinishBackup_completesLater_returnsStatus()
185 thread.join(); in testFinishBackup_completesLater_returnsStatus()
202 thread.start(); in testFinishBackup_canceledBeforeCompletion_returnsError()
[all …]
H A DTransportStatusCallbackTest.java54 Thread thread = new Thread(() -> { in testGetOperationStatus_completeOperation_returnsStatus() local
58 thread.start(); in testGetOperationStatus_completeOperation_returnsStatus()
62 thread.join(); in testGetOperationStatus_completeOperation_returnsStatus()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/
H A DContentQueryMapTest.java54 LooperThread thread = new LooperThread() { in testContentQueryMap() local
99 thread.start(); in testContentQueryMap()
100 thread.join(); in testContentQueryMap()
101 if (thread.mError != null) throw thread.mError; in testContentQueryMap()
102 assertTrue(thread.mSuccess); in testContentQueryMap()
/aosp14/system/core/init/
H A Dueventd_test.cpp55 std::vector<std::thread> threads; in WriteFromMultipleThreads()
57 threads.emplace_back(std::thread(make_thread_function(file, parameter))); in WriteFromMultipleThreads()
60 for (auto& thread : threads) { in WriteFromMultipleThreads() local
61 thread.join(); in WriteFromMultipleThreads()
186 std::vector<std::thread> threads; in TEST()
188 [&]() { return std::thread(thread_function); }); in TEST()
192 for (auto& thread : threads) { in TEST() local
193 thread.join(); in TEST()
/aosp14/system/core/debuggerd/
H A Dcrash_dump.cpp492 for (pid_t thread : threads) { in main() local
494 if (thread == pseudothread_tid) { in main()
499 bool fatal = thread == g_target_thread; in main()
505 info.tid = thread; in main()
507 info.thread_name = get_thread_name(thread); in main()
516 ptrace(PTRACE_DETACH, thread, 0, 0); in main()
538 if (thread == g_target_thread) { in main()
550 ptrace(PTRACE_DETACH, thread, 0, 0); in main()
555 thread_info[thread] = std::move(info); in main()
585 for (const auto& [tid, thread] : thread_info) { in main()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerIntegrationTest.java140 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
146 factory.thread.join(3000); in testOpenProxyFileDescriptor()
147 assertEquals(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
152 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
158 Thread thread = null; field in StorageManagerIntegrationTest.MyThreadFactory
162 thread = new Thread(r); in newThread()
163 return thread; in newThread()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DUncaughtExceptionPreHandlerManager.kt53 fun handleUncaughtException(thread: Thread?, throwable: Throwable?) {
56 handler.uncaughtException(thread, throwable)
67 override fun uncaughtException(thread: Thread?, throwable: Throwable?) {
68 handleUncaughtException(thread, throwable)
/aosp14/frameworks/base/libs/hwui/hwui/
H A DAnimatedImageThread.cpp26 sp<AnimatedImageThread> thread = sp<AnimatedImageThread>::make(); in getInstance() local
27 thread->start("AnimatedImageThread"); in getInstance()
28 return thread; in getInstance()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/install/
H A DRequestThrottleTest.kt55 val thread = startThread { request.schedule() } regex
57 thread.joinForTest()
82 val thread = startThread { request.schedule() } regex
84 thread.joinForTest()
201 val thread = startThread { handler.timeAdvance() } regex
205 thread.joinForTest()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DViewRootSurfaceCallbackTest.java62 final HandlerThread thread = new HandlerThread(TAG); in testCallingTidOfSurfaceCallback() local
63 thread.start(); in testCallingTidOfSurfaceCallback()
64 thread.getThreadHandler().runWithScissors(() -> { in testCallingTidOfSurfaceCallback()
70 final int attachedTid = thread.getThreadId(); in testCallingTidOfSurfaceCallback()
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaOpenGLPipeline.cpp46 SkiaOpenGLPipeline::SkiaOpenGLPipeline(RenderThread& thread) in SkiaOpenGLPipeline() argument
47 : SkiaPipeline(thread), mEglManager(thread.eglManager()) { in SkiaOpenGLPipeline()
48 thread.renderState().registerContextCallback(this); in SkiaOpenGLPipeline()
281 void SkiaOpenGLPipeline::invokeFunctor(const RenderThread& thread, Functor* functor) { in invokeFunctor() argument
283 if (thread.eglManager().hasEglContext()) { in invokeFunctor()
291 thread.getGrContext()->resetContext(); in invokeFunctor()
/aosp14/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseLockTest.java95 Thread thread = new DatabaseFairnessThread(); in startDatabaseFairnessThread() local
96 thread.start(); in startDatabaseFairnessThread()
152 Thread thread = new DatabaseLatencyThread(); in startDatabaseLatencyThread() local
153 thread.start(); in startDatabaseLatencyThread()
/aosp14/system/core/debuggerd/handler/
H A Ddebuggerd_fallback.cpp66 ThreadInfo thread; in debuggerd_fallback_trace() local
67 thread.pid = getpid(); in debuggerd_fallback_trace()
68 thread.tid = gettid(); in debuggerd_fallback_trace()
69 thread.thread_name = get_thread_name(gettid()); in debuggerd_fallback_trace()
70 thread.registers.reset( in debuggerd_fallback_trace()
80 dump_backtrace_thread(output_fd, &unwinder, thread); in debuggerd_fallback_trace()

123456789