/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 | 117 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();
|
D | LooperStatsTest.java | 94 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()
|
D | KernelCpuThreadReaderDiffTest.java | 306 .map(t -> t.threadName) in threadNames()
|
D | KernelCpuThreadReaderTest.java | 155 assertEquals(threadNames[threadCount], threadCpuUsage.threadName); in checkResults()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuThreadReader.java | 318 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()
|
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 | 364 public final String threadName; field in LooperStats.ExportedEntry 382 this.threadName = entry.handler.getLooper().getThread().getName(); in ExportedEntry() 386 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 | 75 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/ |
D | UptimeTimer.java | 42 UptimeTimer(String threadName) { in UptimeTimer() argument 43 new Thread(this::threadFunc, threadName).start(); 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 | 339 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/ |
D | CameraOfflineSessionClient.cpp | 44 String8 threadName; in initialize() local 46 threadName = String8::format("Offline-%s-FrameProc", mCameraIdStr.string()); in initialize() 47 mFrameProcessor->run(threadName.string()); in initialize()
|
D | CameraDeviceClient.cpp | 130 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/ |
D | ThreadUtil.h | 52 setThreadName(handler->threadName().c_str()); in runAndDelete()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LooperStatsService.java | 116 .thenComparing(entry -> entry.threadName) in dump() 143 entry.threadName, in dump()
|
/frameworks/libs/net/common/netd/libnetdutils/ |
D | ThreadUtilTest.cpp | 51 std::string threadName() { return mName; } in threadName() function in android::netdutils::__anon398172850111::NoopRun
|
/frameworks/base/core/jni/include/android_runtime/ |
D | AndroidRuntime.h | 148 const char* threadName,
|
/frameworks/base/core/jni/ |
D | AndroidRuntime.cpp | 1365 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/ |
D | Camera2Client.cpp | 139 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/ |
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()
|