/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | ThreadFactoryImpl.java | 32 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()
|
D | ThreadFactory.java | 38 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/ |
D | FakeThreadFactory.java | 45 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/ |
D | KernelCpuThreadReaderEndToEndTest.java | 123 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();
|
D | LooperStatsTest.java | 99 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()
|
D | KernelCpuThreadReaderDiffTest.java | 312 .map(t -> t.threadName) in threadNames()
|
D | KernelCpuThreadReaderTest.java | 162 assertEquals(threadNames[threadCount], threadCpuUsage.threadName); in checkResults()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuThreadReader.java | 319 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()
|
D | KernelCpuThreadReaderDiff.java | 176 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()
|
D | LooperStats.java | 365 public final String threadName; field in LooperStats.ExportedEntry 383 this.threadName = entry.handler.getLooper().getThread().getName(); in ExportedEntry() 387 this.threadName = ""; in ExportedEntry()
|
D | TransferPipe.java | 71 protected TransferPipe(String bufferPrefix, String threadName) throws IOException { in TransferPipe() argument 72 mThread = new Thread(this, threadName); in TransferPipe()
|
D | RuntimeInit.java | 87 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/ |
D | SimpleViewCapture.kt | 5 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/ |
D | UptimeTimer.java | 41 UptimeTimer(String threadName) { in UptimeTimer() argument 42 mHandlerThread = new HandlerThread(threadName); in UptimeTimer()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | AbstractStatsBase.java | 50 protected AbstractStatsBase(String fileName, String threadName, boolean lock) { in AbstractStatsBase() argument 52 mBackgroundThreadName = threadName; in AbstractStatsBase()
|
/frameworks/native/libs/binder/ |
D | RpcSession.cpp | 378 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/ |
D | AndroidRuntime.h | 148 const char* threadName,
|
/frameworks/base/services/core/java/com/android/server/ |
D | LooperStatsService.java | 116 .thenComparing(entry -> entry.threadName) in dump() 143 entry.threadName, in dump()
|
/frameworks/base/core/jni/ |
D | AndroidRuntime.cpp | 1372 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/ |
D | CameraOfflineSessionClient.cpp | 50 std::string threadName = fmt::sprintf("Offline-%s-FrameProc", mCameraIdStr.c_str()); in initialize() local 51 res = mFrameProcessor->run(threadName.c_str()); in initialize()
|
D | CameraDeviceClient.cpp | 140 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/ |
D | OnThreadLockChecker.java | 121 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/ |
D | KeyValueBackupReporter.java | 60 static void onNewThread(String threadName) { in onNewThread() argument 62 Slog.d(TAG, "Spinning thread " + threadName); in onNewThread()
|
/frameworks/av/services/camera/libcameraservice/api1/ |
D | Camera2Client.cpp | 147 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/ |
D | AccessibilityController.java | 2378 String processName, String threadName, Set<String> ignoreStackEntries) { in log() argument 2384 args.arg3 = threadName; in log()
|