Home
last modified time | relevance | path

Searched refs:threadName (Results 1 – 25 of 26) 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.java123 final String threadName = String.format("%s%d", tag, i); in getAverageWorkTime() local
125 assertTrue("Max name length for linux threads is 15", threadName.length() <= 15); in getAverageWorkTime()
126 doWork(work, threadName, workFinishedLatch, threadFinishedLatch); in getAverageWorkTime()
149 .filter((thread) -> thread.threadName.startsWith(tag)) in getAverageWorkTime()
210 String threadName,
226 new Thread(workWrapped, threadName).start();
DLooperStatsTest.java99 assertThat(entry.threadName).isEqualTo("TestThread1"); in testSingleMessageDispatched()
131 assertThat(entry.threadName).isEqualTo("TestThread1"); in testThrewException()
207 assertThat(entry1.threadName).isEqualTo("TestThread1"); in testMultipleMessagesDispatched()
221 assertThat(entry2.threadName).isEqualTo("TestThread1"); in testMultipleMessagesDispatched()
236 assertThat(entry3.threadName).isEqualTo("TestThread2"); in testMultipleMessagesDispatched()
409 assertThat(entry1.threadName).isEqualTo(""); in testMessagesOverSizeCap()
421 assertThat(entry2.threadName).isEqualTo("TestThread1"); in testMessagesOverSizeCap()
DKernelCpuThreadReaderDiffTest.java312 .map(t -> t.threadName) in threadNames()
DKernelCpuThreadReaderTest.java162 assertEquals(threadNames[threadCount], threadCpuUsage.threadName); in checkResults()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReader.java319 final String threadName = getThreadName(threadDirectory); in getThreadCpuUsage() local
336 return new ThreadCpuUsage(threadId, threadName, cpuUsages); in getThreadCpuUsage()
353 final String threadName = ProcStatsUtil.readNullSeparatedFile(threadNamePath.toString()); in getThreadName() local
354 if (threadName == null) { in getThreadName()
357 return threadName; in getThreadName()
552 public final String threadName; field in KernelCpuThreadReader.ThreadCpuUsage
556 public ThreadCpuUsage(int threadId, String threadName, int[] usageTimesMillis) { in ThreadCpuUsage() argument
558 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.java365 public final String threadName; field in LooperStats.ExportedEntry
383 this.threadName = entry.handler.getLooper().getThread().getName(); in ExportedEntry()
387 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.java87 public static void logUncaught(String threadName, String processName, int pid, Throwable e) { in logUncaught() argument
92 message.append("FATAL EXCEPTION: ").append(threadName).append("\n"); in logUncaught()
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/
DSimpleViewCapture.kt5 open class SimpleViewCapture(threadName: String) : ViewCapture(DEFAULT_MEMORY_SIZE, DEFAULT_INIT_PO…
6 createAndStartNewLooperExecutor(threadName, Process.THREAD_PRIORITY_FOREGROUND))
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DUptimeTimer.java41 UptimeTimer(String threadName) { in UptimeTimer() argument
42 mHandlerThread = new HandlerThread(threadName); 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.cpp378 char threadName[16];
379 if (0 != pthread_getname_np(pthread_self(), threadName, sizeof(threadName))) {
381 memcpy(threadName, defaultThreadName,
382 std::min<size_t>(sizeof(threadName), strlen(defaultThreadName) + 1));
384 LOG_RPC_DETAIL("Attaching current thread %s to JVM", threadName);
387 args.name = threadName;
392 "Cannot attach thread %s to JVM", threadName);
/frameworks/base/core/jni/include/android_runtime/
DAndroidRuntime.h148 const char* threadName,
/frameworks/base/services/core/java/com/android/server/
DLooperStatsService.java116 .thenComparing(entry -> entry.threadName) in dump()
143 entry.threadName, in dump()
/frameworks/base/core/jni/
DAndroidRuntime.cpp1372 static int javaAttachThread(const char* threadName, JNIEnv** pEnv) in javaAttachThread() argument
1382 args.name = (char*) threadName; in javaAttachThread()
1387 ALOGI("NOTE: attach of thread '%s' failed\n", threadName); in javaAttachThread()
1446 const char* threadName, in javaCreateThreadEtc() argument
1454 LOG_ALWAYS_FATAL_IF(threadName == nullptr, "threadName not provided to javaCreateThreadEtc"); in javaCreateThreadEtc()
1458 args[2] = (void*) strdup(threadName); // javaThreadShell must free in javaCreateThreadEtc()
1461 threadName, threadPriority, threadStackSize, threadId); in javaCreateThreadEtc()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraOfflineSessionClient.cpp50 std::string threadName = fmt::sprintf("Offline-%s-FrameProc", mCameraIdStr.c_str()); in initialize() local
51 res = mFrameProcessor->run(threadName.c_str()); in initialize()
DCameraDeviceClient.cpp140 std::string threadName = std::string("CDU-") + mCameraIdStr + "-FrameProc"; in initializeImpl() local
141 res = mFrameProcessor->run(threadName.c_str()); in initializeImpl()
/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()
/frameworks/av/services/camera/libcameraservice/api1/
DCamera2Client.cpp147 std::string threadName = std::string("C2-") + std::to_string(mCameraId); in initializeImpl() local
149 res = mFrameProcessor->run((threadName + "-FrameProc").c_str()); in initializeImpl()
157 res = mCaptureSequencer->run((threadName + "-CaptureSeq").c_str()); in initializeImpl()
165 res = mJpegProcessor->run((threadName + "-JpegProc").c_str()); in initializeImpl()
173 res = mZslProcessor->run((threadName + "-ZslProc").c_str()); in initializeImpl()
181 res = mCallbackProcessor->run((threadName + "-CallbkProc").c_str()); in initializeImpl()
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java2378 String processName, String threadName, Set<String> ignoreStackEntries) { in log() argument
2384 args.arg3 = threadName; in log()

12