/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/ |
ExecutorFactoryTest.java | 30 private List<Thread> mThreadContainer; 39 mThreadContainer = new ArrayList<Thread>(); 43 * Testing the {@link Executor} when called from the executor thread. 50 mThreadContainer.add(Thread.currentThread()); 58 for (Thread thread : mThreadContainer) { 59 assertEquals(Thread.currentThread(), thread); local 64 * Testing the {@link Executor} when called from another thread. 77 mThreadContainer.add(Thread.currentThread()) 101 assertEquals(Thread.currentThread(), thread); local [all...] |
/external/pdfium/core/fpdfdoc/ |
cpdf_action.h | 24 Thread,
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
Threading.cpp | 83 pthread_t Thread; 95 // Construct and execute the thread. 96 if (::pthread_create(&Thread, &Attr, ExecuteOnThread_Dispatch, &Info) != 0) 99 // Wait for the thread and clean up. 100 ::pthread_join(Thread, 0); 133 // on success, this call will wait until the thread finishes executing
|
/external/tensorflow/tensorflow/core/platform/ |
env.h | 36 class Thread; 102 /// The returned file will only be accessed by one thread at a time. 117 /// The returned file will only be accessed by one thread at a time. 231 // TODO(jeff,sanjay): Add back thread/thread-pool support if needed. 241 /// Sleeps/delays the thread for the prescribed number of micro-seconds. 244 /// \brief Returns a new thread that is running fn() and is identified 249 virtual Thread* StartThread(const ThreadOptions& thread_options, 253 // \brief Schedules the given closure on a thread-pool. 258 // \brief Schedules the given closure on a thread-pool after the given numbe [all...] |
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/ |
ServicesTests.java | 52 Thread.sleep((i - 1) * (1 << (i / 5))); 63 Thread.sleep(5000);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
AbstractStatsBase.java | 32 * <li>A background-thread write and a synchronous write 33 * <li>Write-limiting for the background-thread (by default writes are at least 30 minutes apart) 75 new Thread(mBackgroundThreadName) {
|
/libcore/dalvik/src/main/java/dalvik/system/ |
ZygoteHooks.java | 31 * Called by the zygote when starting up. It marks the point when any thread 83 * down to just one thread. 90 Thread.yield();
|
/libcore/ojluni/src/main/java/sun/misc/ |
Resource.java | 92 // Even if a thread has been interrupted when loading resources, 96 boolean isInterrupted = Thread.interrupted(); 103 Thread.interrupted(); 126 Thread.interrupted(); 149 Thread.currentThread().interrupt();
|
/packages/apps/Dialer/java/com/android/dialer/interactions/ |
UndemoteOutgoingCallReceiver.java | 53 new Thread() {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
DownloadUtils.java | 50 final Thread thread = Thread.currentThread(); local 54 thread.interrupt(); 63 Thread.interrupted(); // consume the interrupt signal
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
GcFinalizationTest.java | 96 class Interruptenator extends Thread { 98 Interruptenator(final Thread interruptee) { 101 Interruptenator(final Thread interruptee, 107 Thread.yield(); 115 Thread.yield(); 126 Interruptenator interruptenator = new Interruptenator(Thread.currentThread()); 137 Thread.interrupted(); 142 Interruptenator interruptenator = new Interruptenator(Thread.currentThread()); 153 Thread.interrupted(); 158 Interruptenator interruptenator = new Interruptenator(Thread.currentThread()) [all...] |
/external/valgrind/drd/tests/ |
annotate_smart_pointer.cpp | 6 * - whether or not the methods of the objects pointed at are thread-safe. 8 * - whether or not the smart pointer object itself is thread-safe. 10 * Most smart pointer implementations are not thread-safe 15 * Even for non-thread-safe smart pointers it is possible to have different 75 class Thread 78 Thread() : m_thread(INVALID_HANDLE_VALUE) { } 79 ~Thread() { } 136 class Thread 139 Thread() : m_tid() { } 140 ~Thread() { } [all...] |
/external/webrtc/webrtc/base/ |
thread.cc | 11 #include "webrtc/base/thread.h" 44 Thread* Thread::Current() { 57 // maintaining thread safety using immutability within context of GCD dispatch 78 Thread *ThreadManager::CurrentThread() { 79 return static_cast<Thread *>(pthread_getspecific(key_)); 82 void ThreadManager::SetCurrentThread(Thread *thread) { 83 pthread_setspecific(key_, thread); 100 Thread *ThreadManager::CurrentThread() 127 Thread* thread; member in struct:rtc::ThreadInit 338 AutoThread thread; local [all...] |
/system/core/libutils/ |
Threads.cpp | 21 #include <utils/Thread.h> 49 * Thread wrappers 60 * Create and run a new thread. 152 pthread_t thread; local 153 int result = pthread_create(&thread, &attr, 167 *threadId = (android_thread_id_t)thread; // XXX: this is not portable 173 static pthread_t android_thread_id_t_to_pthread(android_thread_id_t thread) 175 return (pthread_t) thread; 206 ALOG(LOG_VERBOSE, "thread", "thread exiting\n") [all...] |
/art/test/1928-exception-event-exception/src/art/ |
Test1928.java | 35 for (StackTrace.StackFrameData e : StackTrace.GetStackTrace(Thread.currentThread())) { 43 public static void ExceptionEvent(Thread thr, 169 Thread.class, 176 Exceptions.enableExceptionEvent(Thread.currentThread()); 214 Exceptions.disableExceptionEvent(Thread.currentThread());
|
/art/test/1930-monitor-info/src/art/ |
Test1930.java | 60 final Thread t = new Thread(() -> { 65 }, "Test1930 Thread - testLockWait"); 68 // Wait for the other thread to actually start. 70 // Wait for the other thread to go to sleep trying to get the mutex. This might take a (short) 78 Thread.sleep(500); 79 Thread.yield(); 83 System.out.println("other thread doesn't seem to be waiting."); 94 Thread t = new Thread(() -> [all...] |
/art/test/1933-monitor-current-contended/src/art/ |
Test1933.java | 40 for (; mon == null; mon = controller1.getWorkerContendedMonitor()) { Thread.yield(); } 63 System.out.println("current thread is contending for monitor: " +
|
/art/test/1941-dispose-stress/src/art/ |
Test1941.java | 41 public static void notifySingleStep(Thread thr, Executable e, long loc) { 47 while (!Thread.interrupted()) { 57 public static native void setTracingOn(Thread thr, boolean enable); 61 Thread thr = new Thread(() -> { LoopAllocFreeEnv(sem); }, "LoopNative"); 63 // Make sure the other thread is actually started. 67 "notifySingleStep", Thread.class, Executable.class, Long.TYPE), 69 setTracingOn(Thread.currentThread(), true); 75 setTracingOn(Thread.currentThread(), false);
|
/art/test/1950-unprepared-transform/src/ |
Main.java | 56 public static native void setupClassLoadHook(Thread target); 57 public static native void clearClassLoadHook(Thread target); 88 System.out.println("Redefine in ClassLoad on current thread."); 100 System.out.println("Redefine during ClassLoad on another thread."); 104 Thread redef_thread = new Thread(() -> { 108 // This will wait until the otehr thread returns so we need to wake up the other thread 121 // Let the other thread do some stuff. 122 Thread.sleep(5000) [all...] |
/art/test/616-cha-abstract/src/ |
Main.java | 75 // Wait for the other thread to start. 80 // Wake up the other thread. 85 // This is the other thread. 133 // Create another thread that also calls sMain1.foo(). 134 // Try to test suspend and deopt another thread. 135 new Thread() {
|
/art/test/616-cha-interface/src/ |
Main.java | 89 // Wait for the other thread to start. 94 // Wake up the other thread. 99 // This is the other thread. 147 // Create another thread that also calls sMain1.foo(). 148 // Try to test suspend and deopt another thread. 149 new Thread() {
|
/art/test/616-cha-interface-default/src/ |
Main.java | 83 // Wait for the other thread to start. 88 // Wake up the other thread. 93 // This is the other thread. 149 // Create another thread that also calls sMain1.foo(). 150 // Try to test suspend and deopt another thread. 151 new Thread() {
|
/art/test/616-cha-miranda/src/ |
Main.java | 79 // Wait for the other thread to start. 84 // Wake up the other thread. 89 // This is the other thread. 137 // Create another thread that also calls sMain1.foo(). 138 // Try to test suspend and deopt another thread. 139 new Thread() {
|
/art/test/616-cha-regression-proxy-method/src/ |
Main.java | 78 // Wait for the other thread to start. 83 // Wake up the other thread. 107 // Create another thread that calls a proxy method. 108 new Thread() {
|
/art/test/911-get-stack-trace/src/art/ |
AllTraces.java | 30 // Also create an unstarted and a dead thread. 31 RETAIN.add(new Thread("UNSTARTED")); 32 Thread deadThread = new Thread("DEAD"); 42 Thread threads[] = new Thread[N]; 45 Thread t = new Thread("AllTraces Thread " + i) { 54 Thread.yield() [all...] |