Searched defs:threads (Results 1 - 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
H A DOldThreadGroupTest.java105 private boolean inListOfThreads(Thread[] threads) { argument
106 for (int i = 0; i < threads.length; i++) {
107 if (Thread.currentThread() == threads[i]) {
121 assertTrue("Current thread must be in enumeration of threads",
133 // start some the threads and see how the count changes
142 Thread.sleep(500); // starting threads isn't instant!
152 // kill the threads and count 'em again
156 Thread.sleep(500); // killing threads isn't instant
337 // Give the threads a chance to die.
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DSamplingProfiler.java89 * The {@code ThreadSet} that identifies which threads to sample.
104 * The threads currently known to the profiler for detecting
110 * Map of currently active threads to their identifiers. When
111 * threads disappear they are removed and only referenced by their
112 * identifiers to prevent retaining garbage threads.
134 * specified depth from the threads specified by the specified
147 * @param threadSet The thread set specifies which threads to
148 * sample. In a general purpose program, all threads typically
177 * A ThreadSet specifies the set of threads to sample.
181 * Returns an array containing the threads t
185 public Thread[] threads(); method in interface:SamplingProfiler.ThreadSet
195 newArrayThreadSet(Thread... threads) argument
204 private final Thread[] threads; field in class:SamplingProfiler.ArrayThreadSet
205 ArrayThreadSet(Thread... threads) argument
211 public Thread[] threads() { method in class:SamplingProfiler.ArrayThreadSet
231 private Thread[] threads; field in class:SamplingProfiler.ThreadGroupThreadSet
252 public Thread[] threads() { method in class:SamplingProfiler.ThreadGroupThreadSet
[all...]
/libcore/libart/src/main/java/java/lang/
H A DThreadGroup.java27 * {@code ThreadGroup} is a means of organizing threads into a hierarchical structure.
45 * Weak references to the threads in this group.
51 * View of the threads.
54 private final Iterable<Thread> threads = CollectionUtils.dereferenceIterable(threadRefs, true); field in class:ThreadGroup
125 for (Thread thread : threads) {
195 * to destroy a {@code ThreadGroup} that has no threads in it. Any daemon
196 * {@code ThreadGroup} is destroyed automatically when it becomes empty (no threads
201 * threads.
211 if (threads.iterator().hasNext()) {
213 "Thread group still contains threads
266 enumerate(Thread[] threads) argument
283 enumerate(Thread[] threads, boolean recurse) argument
[all...]
H A DThread.java46 * {@link ThreadGroup}. The runtime keeps its own threads in the system thread
355 * threads or attach threads created externally.
495 * receiver - and subgroups - into the array <code>threads</code> passed as
499 * @param threads
503 public static int enumerate(Thread[] threads) { argument
505 return thread.getThreadGroup().enumerate(threads);
509 * Returns a map of all the currently live threads to their stack traces.
514 // Find out how many live threads we have. Allocate a bit more
517 Thread[] threads
[all...]
/libcore/libdvm/src/main/java/java/lang/
H A DThreadGroup.java27 * {@code ThreadGroup} is a means of organizing threads into a hierarchical structure.
45 * Weak references to the threads in this group.
51 * View of the threads.
54 private final Iterable<Thread> threads = CollectionUtils.dereferenceIterable(threadRefs, true); field in class:ThreadGroup
125 for (Thread thread : threads) {
195 * to destroy a {@code ThreadGroup} that has no threads in it. Any daemon
196 * {@code ThreadGroup} is destroyed automatically when it becomes empty (no threads
201 * threads.
211 if (threads.iterator().hasNext()) {
213 "Thread group still contains threads
266 enumerate(Thread[] threads) argument
283 enumerate(Thread[] threads, boolean recurse) argument
[all...]
H A DThread.java46 * {@link ThreadGroup}. The runtime keeps its own threads in the system thread
350 * threads or attach threads created externally.
494 * receiver - and subgroups - into the array <code>threads</code> passed as
498 * @param threads
502 public static int enumerate(Thread[] threads) { argument
504 return thread.getThreadGroup().enumerate(threads);
508 * Returns a map of all the currently live threads to their stack traces.
513 // Find out how many live threads we have. Allocate a bit more
516 Thread[] threads
[all...]

Completed in 173 milliseconds