/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/ |
PluginManagerTest.java | 50 import java.lang.Thread.UncaughtExceptionHandler; 70 mRealExceptionHandler = Thread.getUncaughtExceptionPreHandler(); 126 mPluginExceptionHandler.uncaughtException(Thread.currentThread(), new Throwable()); 132 ArgumentCaptor.forClass(Thread.class).capture(), 141 mPluginExceptionHandler.uncaughtException(Thread.currentThread(), new Throwable()); 147 ArgumentCaptor.forClass(Thread.class).capture(), 170 mPluginExceptionHandler = Thread.getUncaughtExceptionPreHandler(); 172 Thread.setUncaughtExceptionPreHandler(mRealExceptionHandler);
|
/frameworks/base/services/core/java/com/android/server/updates/ |
ConfigUpdateInstallReceiver.java | 60 new Thread() {
|
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 355 Thread.sleep(1000); 410 Thread.sleep((long)(ViewConfiguration.getLongPressTimeout() * 1.5f));
|
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/ |
LowStorageTest.java | 74 new Thread() { 120 Thread.sleep(WAIT_FOR_SYSTEM_UPDATE);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
PipedOutputStreamTest.java | 55 Thread.sleep(1000); 56 Thread.yield(); 74 Thread rt; 100 rt = new Thread(reader = new PReader(out)); 126 rt = new Thread(reader = new PReader(out)); 140 rt = new Thread(reader = new PReader(out)); 153 rt = new Thread(reader = new PReader(out)); 214 rt = new Thread(reader = new PReader(out));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ThreadTest.java | 20 import java.lang.Thread.UncaughtExceptionHandler; 63 Thread parent; 75 Thread.sleep(100); 82 Thread.sleep(500); 86 while (!Thread.currentThread().isInterrupted()) { 89 Thread.sleep(50); 102 public ResSupThread(Thread t) { 120 Thread st, ct, spinner; 123 * java.lang.Thread#Thread(java.lang.Runnable [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
CyclicBarrierTest.java | 46 Thread.yield(); 106 * A 2-party/thread barrier triggers after both threads invoke await 110 Thread t = newStartedThread(new CheckedRunnable() { 132 Thread t1 = new ThreadShouldThrow(InterruptedException.class) { 137 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { 158 Thread t1 = new ThreadShouldThrow(InterruptedException.class) { 163 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { 182 Thread t = newStartedThread(new CheckedRunnable() { 201 Thread t1 = newStartedThread(new CheckedRunnable() { 208 Thread t2 = newStartedThread(new CheckedRunnable() [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
InterruptedStreamTest.java | 40 * Test that interrupting a thread blocked on I/O causes that thread to throw 52 Thread.interrupted(); 61 Thread.interrupted(); // clear interrupted bit 121 Thread thread = interruptMeLater(); local 127 confirmInterrupted(thread); 132 Thread thread = interruptMeLater(); local 138 confirmInterrupted(thread); 143 Thread thread = interruptMeLater(); local 154 Thread thread = interruptMeLater(); local 167 Thread thread = interruptMeLater(); local 180 Thread thread = interruptMeLater(); local 195 Thread thread = new Thread(new Runnable () { local [all...] |
OldPipedOutputStreamTest.java | 53 Thread.sleep(1000); 54 Thread.yield(); 67 + Thread.currentThread().getName() + "): " 79 Thread rt; 117 rt = new Thread(reader = new PReader(out)); 159 rt = new Thread(reader = new PReader(out)); 204 rt = new Thread(reader = new PReader(out)); 234 rt = new Thread(reader = new PReader(out));
|
OldPipedWriterTest.java | 51 Thread.sleep(1000); 52 Thread.yield(); 65 + Thread.currentThread().getName() + "): " 72 Thread readerThread; 96 readerThread = new Thread(reader = new PReader(rd), "Constructor(Reader)"); 139 readerThread = new Thread(reader = new PReader(rd), "connect"); 161 readerThread = new Thread(reader = new PReader(pw), "flush"); 205 readerThread = new Thread(reader = new PReader(pw), "writeCII"); 246 readerThread = new Thread(reader = new PReader(pw), "writeI");
|
/libcore/luni/src/test/java/libcore/java/lang/ |
SystemTest.java | 131 new Thread() { 133 // the last array element alternates between being a Thread and being null. When 134 // it's a Thread it isn't safe for arrayCopy; when its null it is!
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
SelectorTest.java | 58 Thread.currentThread().interrupt(); 62 assertTrue(Thread.currentThread().isInterrupted()); 64 // Clear the interrupted thread state so that it does not interfere with later tests. 65 Thread.interrupted(); 81 Thread thread = new Thread(new Runnable() { local 90 thread.start();
|
/libcore/ojluni/src/main/java/java/io/ |
Console.java | 398 assert Thread.holdsLock(readLock);
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
Exchanger.java | 41 * within pairs. Each thread presents some object on entry to the 42 * {@link #exchange exchange} method, matches with a partner thread, 50 * to swap buffers between threads so that the thread filling the 52 * filled one to the thread emptying the buffer. 86 * new Thread(new FillingLoop()).start(); 87 * new Thread(new EmptyingLoop()).start(); 93 * prior to the {@code exchange()} in each thread 96 * in the other thread. 119 * release waiting thread; 139 * anyway as ThreadLocals, and include in them per-thread inde [all...] |
TimeUnit.java | 362 * Performs a timed {@link Thread#join(long, int) Thread.join} 365 * form required by the {@code Thread.join} method. 367 * @param thread the thread to wait for 372 public void timedJoin(Thread thread, long timeout) 377 thread.join(ms, ns); 382 * Performs a {@link Thread#sleep(long, int) Thread.sleep} usin [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
Striped64.java | 53 * is a power of two. Indexing uses masked per-thread hash codes. 82 * The Thread probe fields maintained via ThreadLocalRandom serve 83 * as per-thread hash codes. We let them remain uninitialized as 89 * the capacity, it is doubled in size unless some other thread 97 * than CPUs, supposing that each thread were bound to a CPU, 109 * doubling the table causes no thread to hash to it under 189 * Returns the probe value for the current thread. 193 return U.getInt(Thread.currentThread(), PROBE); 198 * given thread. 205 U.putInt(Thread.currentThread(), PROBE, probe) [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
ReentrantLock.java | 47 * <p>A {@code ReentrantLock} is <em>owned</em> by the thread last 48 * successfully locking, but not yet unlocking it. A thread invoking 50 * the lock is not owned by another thread. The method will return 51 * immediately if the current thread already owns the lock. This can 58 * thread. Otherwise this lock does not guarantee any particular 64 * fairness of thread scheduling. Thus, one of many threads using a 101 * the same thread. Attempts to exceed this limit result in 131 final Thread current = Thread.currentThread(); 151 if (Thread.currentThread() != getExclusiveOwnerThread() [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
Deflater.java | 565 assert Thread.holdsLock(zsRef);
|
Inflater.java | 397 assert Thread.holdsLock(zsRef);
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
Invoker.java | 41 // thread before it re-directs invocations to the thread pool. This helps 46 // Per-thread object with reference to channel group and a counter for 79 * Binds this thread to the given group 86 * Returns the GroupAndInvokeCount object for this thread. 93 * Returns true if the current thread is in a channel group's thread pool 100 * Returns true if the current thread is in the given channel's thread 117 * Invoke handler without checking the thread identity or number of handler [all...] |
/libcore/ojluni/src/main/java/sun/nio/fs/ |
UnixDirectoryStream.java | 171 assert Thread.holdsLock(this);
|
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
SnepBasicTests.java | 44 new Thread() { 75 new Thread() { 106 new Thread() { 137 new Thread() { 168 new Thread() { 199 new Thread() { 233 new Thread() {
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
RespondViaSmsManager.java | 85 * the main thread. 90 new Thread() {
|
/prebuilts/go/darwin-x86/src/debug/macho/ |
macho.go | 75 LoadCmdUnixThread LoadCmd = 5 // thread+stack 225 // A Thread is a Mach-O thread state command. 226 type Thread struct {
|
/prebuilts/go/linux-x86/src/debug/macho/ |
macho.go | 75 LoadCmdUnixThread LoadCmd = 5 // thread+stack 225 // A Thread is a Mach-O thread state command. 226 type Thread struct {
|