| /external/droiddriver/src/io/appium/droiddriver/helpers/ |
| BaseDroidDriverTest.java | 26 import java.lang.Thread.UncaughtExceptionHandler; 51 Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() { 53 public void uncaughtException(Thread thread, Throwable ex) {
|
| /external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/ |
| NonBlockingThreadPool.h | 37 // a walk starting thread index t and calculate num_threads - 1 subsequent 39 // repetitions (effectively getting a presudo-random permutation of thread 78 // Worker thread of this pool, push onto the thread's queue. 82 // A free-standing thread (or worker of another pool), push onto a random 89 // Schedule is called from a thread that is neither main thread nor a worker 90 // thread of this pool. Then, execution of w directly or indirectly 115 typedef typename Environment::EnvThread Thread; 121 int thread_id; // Worker thread index in pool [all...] |
| /external/guava/guava-tests/test/com/google/common/collect/ |
| SynchronizedDequeTest.java | 45 assertTrue(Thread.holdsLock(mutex)); 51 assertTrue(Thread.holdsLock(mutex)); 57 assertTrue(Thread.holdsLock(mutex)); 63 assertTrue(Thread.holdsLock(mutex)); 69 assertTrue(Thread.holdsLock(mutex)); 76 assertFalse(Thread.holdsLock(mutex)); 82 assertTrue(Thread.holdsLock(mutex)); 88 assertTrue(Thread.holdsLock(mutex)); 94 assertTrue(Thread.holdsLock(mutex)); 100 assertTrue(Thread.holdsLock(mutex)) [all...] |
| SynchronizedMapTest.java | 62 assertTrue(Thread.holdsLock(mutex)); 67 assertTrue(Thread.holdsLock(mutex)); 72 assertTrue(Thread.holdsLock(mutex)); 77 assertTrue(Thread.holdsLock(mutex)); 82 assertTrue(Thread.holdsLock(mutex)); 87 assertTrue(Thread.holdsLock(mutex)); 92 assertTrue(Thread.holdsLock(mutex)); 97 assertTrue(Thread.holdsLock(mutex)); 102 assertTrue(Thread.holdsLock(mutex)); 107 assertTrue(Thread.holdsLock(mutex)) [all...] |
| SynchronizedMultimapTest.java | 84 assertTrue(Thread.holdsLock(mutex)); 89 assertTrue(Thread.holdsLock(mutex)); 94 assertTrue(Thread.holdsLock(mutex)); 99 assertTrue(Thread.holdsLock(mutex)); 104 assertTrue(Thread.holdsLock(mutex)); 109 assertTrue(Thread.holdsLock(mutex)); 114 assertTrue(Thread.holdsLock(mutex)); 120 assertTrue(Thread.holdsLock(mutex)); 125 assertTrue(Thread.holdsLock(mutex)); 131 assertTrue(Thread.holdsLock(mutex)) [all...] |
| /external/guava/guava-tests/test/com/google/common/util/concurrent/ |
| FuturesTransformAsyncFunctionTest.java | 125 // Set the result in a separate thread since this test runs the function 126 // (which will block) in the same thread. 127 new Thread() {
|
| /external/guice/core/src/com/google/inject/internal/ |
| SingletonScope.java | 51 * This is significantly harder as all the dependencies in a thread at runtime 121 * ConstructionContext is not thread-safe, so each call should be synchronized. 139 // this thread now owns creation of an instance 144 // different thread to never be resolved, just a warning 153 // detection within the same thread; they are not real instances to cache 159 // guarantee thread-safety for instance and proxies initialization 181 // potential deadlock detected, creation lock is not taken by this thread 183 // guarantee thread-safety for instance and proxies initialization 186 Map<Thread, InternalContext> globalInternalContext = 188 InternalContext internalContext = globalInternalContext.get(Thread.currentThread()) 263 threadById.put(thread.getId(), thread); local [all...] |
| /external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
| PeriodFormatterData.java | 52 // Thread.dumpStack(); 520 Thread.dumpStack();
|
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
| PeriodFormatterData.java | 50 // Thread.dumpStack(); 518 Thread.dumpStack();
|
| /external/javassist/src/main/javassist/util/ |
| HotSwapper.java | 52 * is used only for inter-thread communication. 209 new Thread() { 211 System.err.print("Exception in thread \"HotSwap\" ");
|
| /external/libmojo/base/android/java/src/org/chromium/base/library_loader/ |
| ModernLinker.java | 73 assert Thread.holdsLock(mLock); 77 // constructor because the instance is constructed on the UI thread. 162 assert Thread.holdsLock(mLock); 175 // Restore the thread's interrupt status. 176 Thread.currentThread().interrupt(); 191 * thread with a non-null value. 307 assert Thread.holdsLock(mLock);
|
| /external/mockwebserver/src/test/java/com/google/mockwebserver/ |
| MockWebServerTest.java | 149 new Thread() { 152 Thread.sleep(1000);
|
| /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
| ConnectionPool.java | 80 * A background thread is used to cleanup expired connections. There will be, at most, a single 81 * thread running per connection pool. We use a thread pool executor because it can shrink to 172 assert (Thread.holdsLock(this)); 187 assert (Thread.holdsLock(this)); 199 assert (Thread.holdsLock(this)); 204 notifyAll(); // Awake the cleanup thread: we may have exceeded the idle connection limit.
|
| /external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/ |
| WebSocketWriter.java | 41 * This class is partially thread safe. Only a single "main" thread should be sending messages via 44 * wire with frames from the "main" sending thread. 117 assert Thread.holdsLock(this); 175 assert Thread.holdsLock(this); 214 assert Thread.holdsLock(this);
|
| /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
| ShadowSQLiteConnectionTest.java | 147 Thread.currentThread().interrupt(); 151 Thread.interrupted();
|
| /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
| ShadowLooper.java | 25 * (on this thread) later. {@code Runnable}s that are scheduled to run immediately can be 37 // "switch" the thread that the main looper is associated with. 38 private static Map<Thread, Looper> loopingLoopers = Collections.synchronizedMap(new WeakHashMap<Thread, Looper>()); 52 throw new IllegalStateException("you should only be calling this from the main thread!"); 80 loopingLoopers.put(Thread.currentThread(), realObject); 92 return getLooperForThread(Thread.currentThread()); 115 if (realObject == Looper.getMainLooper()) throw new RuntimeException("Main thread not allowed to quit"); 147 public static Looper getLooperForThread(Thread thread) { [all...] |
| /external/swiftshader/src/Common/ |
| Thread.hpp | 50 class Thread 53 Thread(void (*threadFunction)(void *parameters), void *parameters); 55 ~Thread(); 95 friend class Thread; 128 inline void Thread::yield() 139 inline void Thread::sleep(int milliseconds) 148 inline Thread::LocalStorageKey Thread::allocateLocalStorageKey() 159 inline void Thread::freeLocalStorageKey(LocalStorageKey key) 168 inline void *Thread::allocateLocalStorage(LocalStorageKey key, size_t size [all...] |
| /external/v8/src/base/platform/ |
| platform.h | 116 // Returns the accumulated user time for thread. This routine 423 // Thread 425 // Thread objects are used for creating and running threads. When the start() 426 // method is called the new thread starts running the run() method in the new 427 // thread. The Thread object should not be deallocated before the thread has 430 class V8_BASE_EXPORT Thread { 432 // Opaque data type for thread-local storage keys. 449 // Create new thread [all...] |
| /frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
| ListTouchManyTest.java | 116 Thread.sleep((long)(ViewConfiguration.getLongPressTimeout() * 1.25f));
|
| /frameworks/base/core/tests/utiltests/src/android/util/ |
| MemoryIntArrayTest.java | 264 new Thread() {
|
| /frameworks/base/media/java/android/media/ |
| AsyncPlayer.java | 30 * Plays a series of audio URIs, but does all the hard work on another thread 31 * so that any slowness with preparing or loading doesn't block the calling thread. 80 private final class Thread extends java.lang.Thread { 81 Thread() { 131 private Thread mThread; 218 // a thread that ends up doing nothing. 233 mThread = new Thread(); 244 * thread is starting or running. You're going to need the WAKE_LOCK permission if you're
|
| /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
| MediaAudioManagerTest.java | 52 new Thread() { 156 java.lang.Thread.sleep(WAIT_FOR_AUDIOFOCUS_LOSS_MS); 239 java.lang.Thread.sleep(WAIT_FOR_AUDIOFOCUS_LOSS_MS);
|
| /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/services/tests/servicestests/src/com/android/server/ |
| WatchdogDiagnosticsTest.java | 35 private static class TestThread1 extends Thread { 65 private static class TestThread2 extends Thread { 110 // Start the second thread, ensure it grabs heldLock2. 113 Thread.yield(); 116 // Start the first thread, ensure it made progress. 119 Thread.yield(); 123 while (thread1.getState() == Thread.State.RUNNABLE) { 124 Thread.yield(); 126 while (thread2.getState() == Thread.State.RUNNABLE) { 127 Thread.yield() [all...] |