Home
last modified time | relevance | path

Searched refs:threadName (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
DThreadFactoryImpl.java32 public Looper buildLooperOnNewThread(String threadName) { in buildLooperOnNewThread() argument
33 HandlerThread handlerThread = new HandlerThread(threadName); in buildLooperOnNewThread()
39 public Handler buildHandlerOnNewThread(String threadName) { in buildHandlerOnNewThread() argument
40 return new Handler(buildLooperOnNewThread(threadName)); in buildHandlerOnNewThread()
44 public Executor buildExecutorOnNewThread(String threadName) { in buildExecutorOnNewThread() argument
45 return buildDelayableExecutorOnNewThread(threadName); in buildExecutorOnNewThread()
49 public DelayableExecutor buildDelayableExecutorOnNewThread(String threadName) { in buildDelayableExecutorOnNewThread() argument
50 HandlerThread handlerThread = new HandlerThread(threadName); in buildDelayableExecutorOnNewThread()
DThreadFactory.java38 Looper buildLooperOnNewThread(String threadName); in buildLooperOnNewThread() argument
46 Handler buildHandlerOnNewThread(String threadName); in buildHandlerOnNewThread() argument
54 Executor buildExecutorOnNewThread(String threadName); in buildExecutorOnNewThread() argument
62 DelayableExecutor buildDelayableExecutorOnNewThread(String threadName); in buildDelayableExecutorOnNewThread() argument
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/
DFakeThreadFactory.java45 public Looper buildLooperOnNewThread(String threadName) { in buildLooperOnNewThread() argument
50 public Handler buildHandlerOnNewThread(String threadName) { in buildHandlerOnNewThread() argument
55 public Executor buildExecutorOnNewThread(String threadName) { in buildExecutorOnNewThread() argument
60 public DelayableExecutor buildDelayableExecutorOnNewThread(String threadName) { in buildDelayableExecutorOnNewThread() argument
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderEndToEndTest.java117 final String threadName = String.format("%s%d", tag, i); in getAverageWorkTime() local
119 assertTrue("Max name length for linux threads is 15", threadName.length() <= 15); in getAverageWorkTime()
120 doWork(work, threadName, workFinishedLatch, threadFinishedLatch); in getAverageWorkTime()
143 .filter((thread) -> thread.threadName.startsWith(tag)) in getAverageWorkTime()
204 String threadName,
220 new Thread(workWrapped, threadName).start();
DLooperStatsTest.java94 assertThat(entry.threadName).isEqualTo("TestThread1"); in testSingleMessageDispatched()
126 assertThat(entry.threadName).isEqualTo("TestThread1"); in testThrewException()
202 assertThat(entry1.threadName).isEqualTo("TestThread1"); in testMultipleMessagesDispatched()
216 assertThat(entry2.threadName).isEqualTo("TestThread1"); in testMultipleMessagesDispatched()
231 assertThat(entry3.threadName).isEqualTo("TestThread2"); in testMultipleMessagesDispatched()
404 assertThat(entry1.threadName).isEqualTo(""); in testMessagesOverSizeCap()
416 assertThat(entry2.threadName).isEqualTo("TestThread1"); in testMessagesOverSizeCap()
DKernelCpuThreadReaderDiffTest.java306 .map(t -> t.threadName) in threadNames()
DKernelCpuThreadReaderTest.java155 assertEquals(threadNames[threadCount], threadCpuUsage.threadName); in checkResults()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReader.java318 final String threadName = getThreadName(threadDirectory); in getThreadCpuUsage() local
335 return new ThreadCpuUsage(threadId, threadName, cpuUsages); in getThreadCpuUsage()
352 final String threadName = ProcStatsUtil.readNullSeparatedFile(threadNamePath.toString()); in getThreadName() local
353 if (threadName == null) { in getThreadName()
356 return threadName; in getThreadName()
551 public final String threadName; field in KernelCpuThreadReader.ThreadCpuUsage
555 public ThreadCpuUsage(int threadId, String threadName, int[] usageTimesMillis) { in ThreadCpuUsage() argument
557 this.threadName = threadName; in ThreadCpuUsage()
DKernelCpuThreadReaderDiff.java176 threadCpuUsage.threadName), in createCpuUsageMap()
201 threadCpuUsage.threadName); in changeToDiffs()
282 ThreadKey(int processId, int threadId, String processName, String threadName) { in ThreadKey() argument
287 this.mThreadNameHash = Objects.hash(threadName); in ThreadKey()
DLooperStats.java364 public final String threadName; field in LooperStats.ExportedEntry
382 this.threadName = entry.handler.getLooper().getThread().getName(); in ExportedEntry()
386 this.threadName = ""; in ExportedEntry()
DTransferPipe.java71 protected TransferPipe(String bufferPrefix, String threadName) throws IOException { in TransferPipe() argument
72 mThread = new Thread(this, threadName); in TransferPipe()
DRuntimeInit.java75 public static void logUncaught(String threadName, String processName, int pid, Throwable e) { in logUncaught() argument
80 message.append("FATAL EXCEPTION: ").append(threadName).append("\n"); in logUncaught()
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DUptimeTimer.java42 UptimeTimer(String threadName) { in UptimeTimer() argument
43 new Thread(this::threadFunc, threadName).start(); in UptimeTimer()
/frameworks/base/services/core/java/com/android/server/pm/
DAbstractStatsBase.java50 protected AbstractStatsBase(String fileName, String threadName, boolean lock) { in AbstractStatsBase() argument
52 mBackgroundThreadName = threadName; in AbstractStatsBase()
/frameworks/native/libs/binder/
DRpcSession.cpp339 char threadName[16];
340 if (0 != pthread_getname_np(pthread_self(), threadName, sizeof(threadName))) {
342 memcpy(threadName, defaultThreadName,
343 std::min<size_t>(sizeof(threadName), strlen(defaultThreadName) + 1));
345 LOG_RPC_DETAIL("Attaching current thread %s to JVM", threadName);
348 args.name = threadName;
353 "Cannot attach thread %s to JVM", threadName);
/frameworks/av/services/camera/libcameraservice/api2/
DCameraOfflineSessionClient.cpp44 String8 threadName; in initialize() local
46 threadName = String8::format("Offline-%s-FrameProc", mCameraIdStr.string()); in initialize()
47 mFrameProcessor->run(threadName.string()); in initialize()
DCameraDeviceClient.cpp130 String8 threadName; in initializeImpl() local
132 threadName = String8::format("CDU-%s-FrameProc", mCameraIdStr.string()); in initializeImpl()
133 mFrameProcessor->run(threadName.string()); in initializeImpl()
/frameworks/libs/net/common/netd/libnetdutils/include/netdutils/
DThreadUtil.h52 setThreadName(handler->threadName().c_str()); in runAndDelete()
/frameworks/base/services/core/java/com/android/server/
DLooperStatsService.java116 .thenComparing(entry -> entry.threadName) in dump()
143 entry.threadName, in dump()
/frameworks/libs/net/common/netd/libnetdutils/
DThreadUtilTest.cpp51 std::string threadName() { return mName; } in threadName() function in android::netdutils::__anon398172850111::NoopRun
/frameworks/base/core/jni/include/android_runtime/
DAndroidRuntime.h148 const char* threadName,
/frameworks/base/core/jni/
DAndroidRuntime.cpp1365 static int javaAttachThread(const char* threadName, JNIEnv** pEnv) in javaAttachThread() argument
1375 args.name = (char*) threadName; in javaAttachThread()
1380 ALOGI("NOTE: attach of thread '%s' failed\n", threadName); in javaAttachThread()
1439 const char* threadName, in javaCreateThreadEtc() argument
1447 LOG_ALWAYS_FATAL_IF(threadName == nullptr, "threadName not provided to javaCreateThreadEtc"); in javaCreateThreadEtc()
1451 args[2] = (void*) strdup(threadName); // javaThreadShell must free in javaCreateThreadEtc()
1454 threadName, threadPriority, threadStackSize, threadId); in javaCreateThreadEtc()
/frameworks/av/services/camera/libcameraservice/api1/
DCamera2Client.cpp139 String8 threadName; in initializeImpl() local
142 threadName = String8::format("C2-%d-StreamProc", in initializeImpl()
146 threadName = String8::format("C2-%d-FrameProc", in initializeImpl()
148 mFrameProcessor->run(threadName.string()); in initializeImpl()
151 threadName = String8::format("C2-%d-CaptureSeq", in initializeImpl()
153 mCaptureSequencer->run(threadName.string()); in initializeImpl()
156 threadName = String8::format("C2-%d-JpegProc", in initializeImpl()
158 mJpegProcessor->run(threadName.string()); in initializeImpl()
162 threadName = String8::format("C2-%d-ZslProc", in initializeImpl()
164 mZslProcessor->run(threadName.string()); in initializeImpl()
[all …]
/frameworks/base/tools/lock_agent/java/com/android/lock_checker/
DOnThreadLockChecker.java121 OrderData(int tid, String threadName, AnnotatedStackTraceElement[] stack) { in OrderData() argument
123 this.mThreadName = threadName; in OrderData()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupReporter.java60 static void onNewThread(String threadName) { in onNewThread() argument
62 Slog.d(TAG, "Spinning thread " + threadName); in onNewThread()

12