| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
| ICUResourceBundle.java | 590 Thread.dumpStack(); [all...] |
| /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
| LanguageTestFmwk.java | 80 Thread.dumpStack();
|
| /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
| DiskLruCache.java | 201 assert Thread.holdsLock(this); 254 // Use a single background thread to evict entries. 304 assert (Thread.holdsLock(DiskLruCache.this)); [all...] |
| /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
| ShadowLooperTest.java | 34 // Helper method that starts the thread with the same name as the 43 // Useful class for checking that a thread's loop() has exited. 44 private class QuitThread extends Thread { 83 assertThat(Looper.getMainLooper().getThread()).isSameAs(Thread.currentThread()); 99 assertThat(ShadowLooper.getLooperForThread(Thread.currentThread())).isSameAs(Looper.getMainLooper()); 228 Thread t = new Thread() { 339 Thread t = new Thread(testName.getMethodName()) { 351 RuntimeEnvironment.setMainThread(Thread.currentThread()) [all...] |
| /external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/ |
| MainActivity.java | 90 public class LoggingExceptionHandler implements java.lang.Thread.UncaughtExceptionHandler { 93 public void uncaughtException(Thread thread, Throwable ex) { 187 Thread.setDefaultUncaughtExceptionHandler(new LoggingExceptionHandler()); 232 // Allow network operations on the main thread
|
| /frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
| UiAutomatorTestRunner.java | 38 import java.lang.Thread.UncaughtExceptionHandler; 79 Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() { 81 public void uncaughtException(Thread thread, Throwable ex) {
|
| /frameworks/base/core/java/com/android/server/ |
| BootReceiver.java | 122 // Log boot events in the background to avoid blocking the main thread with I/O 123 new Thread() { 260 // This gets registered with the singleton file observer thread.
|
| /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
| CodecTest.java | 124 Thread.sleep(10000); 126 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); 156 Thread.sleep(MediaNames.WAIT_TIME); 185 Thread.sleep(5000); 188 Thread.sleep(20000); 221 Thread.sleep(5000); 223 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); 350 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); 353 Thread.sleep(1000); 361 Thread.sleep(5000) [all...] |
| /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
| MediaAudioEffectTest.java | [all...] |
| /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
| MediaPlayerPerformance.java | 105 Thread.sleep(SHORT_WAIT); 142 new Thread() { 166 // the method. So we need to join the looper thread here. 194 Thread.sleep(1000); 212 Thread.sleep(MEDIA_STRESS_WAIT_TIME); 248 Thread.sleep(MEDIA_STRESS_WAIT_TIME); 252 Thread.sleep(SHORT_WAIT); 274 Thread.sleep(MEDIA_STRESS_WAIT_TIME); 372 Thread.sleep(10000);
|
| /frameworks/base/services/core/java/com/android/server/audio/ |
| MediaFocusControl.java | 471 final Thread thread = new Thread() { local 489 thread.start(); [all...] |
| /frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
| SurfaceCompositionMeasuringActivity.java | 162 Thread.sleep(500); 200 new Thread() { 573 * A helper that executes a task in the UI thread and waits for its completion.
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
| ThreadGroupTest.java | 27 private Thread.UncaughtExceptionHandler originalThreadDefaultUncaughtExceptionHandler; 31 initialThreadGroup = Thread.currentThread().getThreadGroup(); 42 originalThreadDefaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler(); 44 Thread.setDefaultUncaughtExceptionHandler(testThreadDefaultUncaughtExceptionHandler); 50 Thread.setDefaultUncaughtExceptionHandler(originalThreadDefaultUncaughtExceptionHandler); 80 newGroup.getParent() == Thread.currentThread().getThreadGroup()); 103 Thread t1 = new Thread(tg, new Runnable() { 106 Thread.sleep(5000); 181 Thread noOp = new Thread(testRoot, null, "no-op thread") 512 Thread thread = new Thread(testRoot, null, "suicidal thread") { local 546 Thread thread = new Thread(testRoot, null, "no-op thread"); local 580 Thread thread = new Thread(testRoot, null, "RuntimeException thread") { local 617 Thread thread = new Thread(testRoot, null, "RuntimeException thread") { local 649 Thread thread = new Thread(testRoot, null, "no-op thread") { local 776 private Thread thread; field in class:ThreadGroupTest.TestThreadDefaultUncaughtExceptionHandler [all...] |
| /libcore/jsr166-tests/src/test/java/jsr166/ |
| AbstractQueuedLongSynchronizerTest.java | 132 static final Thread[] NO_THREADS = new Thread[0]; 138 Thread t) { 143 Thread.yield(); 152 Thread... expected) { 153 Collection<Thread> actual = sync.getQueuedThreads(); 158 assertEquals(new HashSet<Thread>(actual), 159 new HashSet<Thread>(Arrays.asList(expected))); 166 Thread... expected) { 168 assertEquals(new HashSet<Thread>(sync.getExclusiveQueuedThreads()) [all...] |
| AbstractQueuedSynchronizerTest.java | 136 static final Thread[] NO_THREADS = new Thread[0]; 141 void waitForQueuedThread(AbstractQueuedSynchronizer sync, Thread t) { 146 Thread.yield(); 155 Thread... expected) { 156 Collection<Thread> actual = sync.getQueuedThreads(); 161 assertEquals(new HashSet<Thread>(actual), 162 new HashSet<Thread>(Arrays.asList(expected))); 169 Thread... expected) { 171 assertEquals(new HashSet<Thread>(sync.getExclusiveQueuedThreads()) [all...] |
| ForkJoinPool8Test.java | 82 Thread.currentThread().interrupt(); 89 Thread.currentThread().interrupt(); 276 final Thread myself = Thread.currentThread(); 283 Thread.interrupted(); 296 Thread.interrupted(); 309 Thread.interrupted(); 319 Thread.interrupted(); 329 Thread.interrupted(); 338 Thread.interrupted() [all...] |
| ForkJoinPoolTest.java | 64 static class MyHandler implements Thread.UncaughtExceptionHandler { 66 public void uncaughtException(Thread t, Throwable e) { 279 final Thread.UncaughtExceptionHandler ueh = 280 new Thread.UncaughtExceptionHandler() { 281 public void uncaughtException(Thread t, Throwable e) { 321 Thread.yield(); 331 Thread.yield(); 581 Thread t = new Thread(new CheckedInterruptedRunnable() { [all...] |
| SemaphoreTest.java | 38 public Collection<Thread> getQueuedThreads() { 41 public boolean hasQueuedThread(Thread t) { 77 void waitForQueuedThread(PublicSemaphore s, Thread t) { 82 Thread.yield(); 96 Thread.yield(); 236 Thread t = newStartedThread(new CheckedRunnable() { 239 Thread.currentThread().interrupt(); 252 Thread.currentThread().interrupt(); 287 Thread t1 = newStartedThread(new CheckedRunnable() { 291 Thread.currentThread().interrupt() [all...] |
| /libcore/luni/src/test/java/libcore/java/nio/channels/ |
| FileIOInterruptTest.java | 94 Thread.interrupted(); 122 Thread streamReaderThread = createAndStartThread("StreamReader", streamReader); 124 // Delay until we can be fairly sure the reader thread is blocking. 130 // Test for expected behavior in the reader thread. 135 // Tidy up the writer thread. 164 Thread streamWriterThread = createAndStartThread("StreamWriter", streamWriter); 166 // Delay until we can be fairly sure the writer thread is blocking. 172 // Test for expected behavior in the writer thread. 177 // Tidy up the reader thread. 228 Thread.currentThread().interrupt() [all...] |
| /libcore/ojluni/src/main/java/java/util/concurrent/ |
| SynchronousQueue.java | 55 * thread, and vice versa. A synchronous queue does not have any 59 * (using any method) unless another thread is trying to remove it; 62 * inserting thread is trying to add to the queue; if there is no such 63 * queued thread then no element is available for removal and 71 * object running in one thread must sync up with an object running 72 * in another thread in order to hand it some information, event, or 102 * contention but Lifo maintains higher thread locality in common 184 * by checking Thread.interrupted. 237 volatile Thread waiter; // to control park/unpark 254 * Tries to match node s to this node, if so, waking up thread [all...] |
| ThreadPoolExecutor.java | 58 * <p>Thread pools address two different problems: they usually 70 * Executors#newCachedThreadPool} (unbounded thread pool, with 71 * automatic thread reclamation), {@link Executors#newFixedThreadPool} 72 * (fixed size thread pool) and {@link 73 * Executors#newSingleThreadExecutor} (single background thread), that 90 * and fewer than corePoolSize threads are running, a new thread is 93 * maximumPoolSize threads running, a new thread will be created only 95 * the same, you create a fixed-size thread pool. By setting 120 * alter the thread's name, thread group, priority, daemon status 623 final Thread thread; field in class:ThreadPoolExecutor.Worker [all...] |
| /libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
| AbstractQueuedLongSynchronizer.java | 164 * Creates and enqueues node for current thread and given mode. 195 node.thread = null; 208 * fails or if status is changed by waiting thread. 215 * Thread to unpark is held in successor, which is normally 228 LockSupport.unpark(s.thread); 313 node.thread = null; 340 pred.thread != null) { 354 * Returns true if thread should block. This is the main signal 359 * @return {@code true} if thread should block 390 * Convenience method to interrupt current thread [all...] |
| AbstractQueuedSynchronizer.java | 73 * waiting thread (if one exists) must also determine whether it can 84 * held with respect to the current thread, method {@link #release} 101 * thread queues. Typical subclasses requiring serializability will 122 * must be internally thread-safe, and should in general be short and 128 * AbstractOwnableSynchronizer} useful to keep track of the thread 140 * <em>enqueue thread if it is not already queued</em>; 141 * <em>possibly block current thread</em>; 146 * <em>unblock the first queued thread</em>; 152 * enqueuing, a newly acquiring thread may <em>barge</em> ahead of 194 * thread, this class does so anyway to make usage easier to monitor 466 volatile Thread thread; field in class:AbstractQueuedSynchronizer.Node [all...] |
| StampedLock.java | 94 * development of thread-safe components. Their use relies on 227 * is done by the primary thread, but helped by any other threads 237 * queue. A thread spin-waits up to SPINS times (where each 240 * still (or becomes) the first waiting thread (which indicates 241 * that some other thread barged and obtained lock), it escalates 312 volatile Thread thread; // non-null while possibly parked field in class:StampedLock.WNode 368 * given time and the current thread has not been interrupted. 376 * @throws InterruptedException if the current thread is interrupted 382 if (!Thread.interrupted()) [all...] |
| /libcore/ojluni/src/main/java/sun/nio/ch/ |
| FileChannelImpl.java | 88 // Thread-safe set of IDs of native threads, for signalling 456 Thread.holdsLock(positionLock); 771 assert !nd.needsPositionLock() || Thread.holdsLock(positionLock); 808 assert !nd.needsPositionLock() || Thread.holdsLock(positionLock); [all...] |