Home
last modified time | relevance | path

Searched refs:numThread (Results 1 – 2 of 2) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DLeakedThreadStatusChecker.java43 int numThread = Thread.currentThread().getThreadGroup().activeCount(); in postExecutionCheck() local
44 if (numThread == EXPECTED_THREAD_COUNT) { in postExecutionCheck()
48 Thread[] listThreads = new Thread[numThread]; in postExecutionCheck()
54 if (numThread == 2) { in postExecutionCheck()
64 String.format("We have %s threads instead of 1. List: %s", numThread, arrayThread); in postExecutionCheck()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java811 int numThread = this.getThreadGroup().activeCount(); in checkStrayThreads() local
812 if (numThread == EXPECTED_THREAD_COUNT) { in checkStrayThreads()
818 List<Thread> listThreads = getListOfThreadsExcludingForkJoinWorkers(numThread); in checkStrayThreads()
819 numThread = listThreads.size(); in checkStrayThreads()
820 if (numThread == EXPECTED_THREAD_COUNT) { in checkStrayThreads()
827 mCmd.getCommandTracker().getId(), cmd, numThread, EXPECTED_THREAD_COUNT); in checkStrayThreads()
833 HostDataPoint data = new HostDataPoint("numThread", numThread, cmd.toString()); in checkStrayThreads()
842 numThread, listThreads)); in checkStrayThreads()
845 private List<Thread> getListOfThreadsExcludingForkJoinWorkers(int numThread) { in getListOfThreadsExcludingForkJoinWorkers() argument
846 Thread[] listThreads = new Thread[numThread]; in getListOfThreadsExcludingForkJoinWorkers()