HomeSort by relevance Sort by last modified time
    Searched refs:Thread (Results 201 - 225 of 1369) sorted by null

1 2 3 4 5 6 7 891011>>

  /libcore/luni/src/main/java/java/util/concurrent/
Exchanger.java 14 * within pairs. Each thread presents some object on entry to the
15 * {@link #exchange exchange} method, matches with a partner thread,
23 * to swap buffers between threads so that the thread filling the
25 * filled one to the thread emptying the buffer.
59 * new Thread(new FillingLoop()).start();
60 * new Thread(new EmptyingLoop()).start();
67 * prior to the {@code exchange()} in each thread
70 * in the other thread.
82 * get filled in. If an incoming "occupying" thread sees that the
84 * for another to invoke exchange. That second "fulfilling" thread
    [all...]
Executors.java 45 * Creates a thread pool that reuses a fixed number of threads
49 * they will wait in the queue until a thread is available.
50 * If any thread terminates due to a failure during execution
56 * @return the newly created thread pool
66 * Creates a thread pool that reuses a fixed number of threads
71 * active, they will wait in the queue until a thread is
72 * available. If any thread terminates due to a failure during
80 * @return the newly created thread pool
92 * Creates an Executor that uses a single worker thread operating
94 * thread terminates due to a failure during execution prior t
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
OldAndroidMonitorTest.java 105 private class Interrupter extends Thread {
128 Thread.currentThread().sleep(500);
169 private class Waiter extends Thread {
194 throw new RuntimeException("Thread not interrupted " +
214 throw new RuntimeException("Thread not interrupted " +
234 throw new RuntimeException("Thread not interrupted " +
254 throw new RuntimeException("Thread not interrupted " +
264 private static Thread testThread;
270 testThread = Thread.currentThread();
300 String threadName = Thread.currentThread().getName()
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
TimerTaskTest.java 47 Thread.sleep(200);
97 Thread.sleep(150);
126 Thread.sleep(100);
155 Thread.sleep(50);
222 Thread.sleep(200);
234 Thread.sleep(400);
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/
PolicyQualifierInfoTest.java 30 * Test for thread safety of the PolicyQualifierInfo DER decoder
38 // Number of test iterations performed by each thread
56 // Holder for thread-specific PolicyQualifier DER encodings
81 private class TestWorker1 extends Thread {
114 private class TestWorker2 extends Thread {
151 Thread[] workers = new Thread[workersNumber];
169 Thread[] workers = new Thread[workersNumber];
203 // Init thread specific dat
    [all...]
  /external/chromium/chrome/browser/sync/glue/
ui_model_worker_unittest.cc 8 #include "base/threading/thread.h"
76 FakeSyncapiShutdownTask(base::Thread* syncer_thread,
97 base::Thread* syncer_thread_;
119 base::Thread* core_thread() { return &faux_core_thread_; }
120 base::Thread* syncer_thread() { return &faux_syncer_thread_; }
124 base::Thread faux_syncer_thread_;
125 base::Thread faux_core_thread_;
138 // We are on the UI thread, so run our loop to process the
149 // ("ui_thread" is the thread we are currently executing on)
150 // 1 - simulate the user shutting down the browser, and the ui thread needin
    [all...]
  /frameworks/base/core/java/android/webkit/
DeviceOrientationService.java 78 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName());
86 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName());
137 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName());
169 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName());
185 * Callbacks happen on the thread on which we registered - the WebCore thread.
189 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName());
221 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName());
  /libcore/luni/src/test/java/tests/api/java/util/
TimerTaskTest.java 49 Thread.sleep(200);
99 Thread.sleep(150);
128 Thread.sleep(100);
157 Thread.sleep(50);
224 Thread.sleep(200);
236 Thread.sleep(400);
  /cts/tests/tests/os/src/android/os/cts/
SystemClockTest.java 30 notes = "Test currentThreadTimeMillis(), the sleep() will not affect the thread",
37 Thread.sleep(100);
51 Thread.sleep(100);
73 notes = "Test sleep(long), it is similar to Thread.sleep().",
104 Thread.sleep(100);
VibratorTest.java 90 notes = "Test vibrator with multi thread.",
96 new Thread(new Runnable() {
98 Log.d("*******VibratorTest", "Thread 1");
106 new Thread(new Runnable() {
108 Log.d("*******VibratorTest", "Thread 2");
112 // but it can not verify if the second thread get the precedence.
124 Thread.sleep(10000);
  /dalvik/tests/084-class-init/src/
Main.java 25 Thread.sleep(msec);
72 System.out.println("Fields (main thread): " +
77 static class FieldThread extends Thread {
91 System.out.println("Fields (child thread): " +
96 static class MethodThread extends Thread {
  /external/chromium/chrome/browser/sessions/
base_session_service.h 23 class Thread;
86 // Returns the thread the backend runs on. This returns NULL during testing.
87 base::Thread* backend_thread() const { return backend_thread_; }
149 // Invokes ReadLastSessionCommands with request on the backend thread.
155 // Invokes ReadCurrentSessionCommands with request on the backend thread.
174 // Thread backend tasks are run on, is NULL during testing.
175 base::Thread* backend_thread_;
  /external/chromium/net/base/
network_config_watcher_mac.cc 12 #include "base/threading/thread.h"
29 class NetworkConfigWatcherMacThread : public base::Thread {
35 // base::Thread
53 : base::Thread("NetworkConfigWatcher"),
66 // Disallow IO to make sure NetworkConfigWatcherMacThread's helper thread does
113 // We create this notifier thread because the notification implementation
114 // needs a thread with a CFRunLoop, and there's no guarantee that
116 base::Thread::Options thread_options(MessageLoop::TYPE_UI, 0);
  /external/chromium/third_party/libjingle/source/talk/session/tunnel/
pseudotcpchannel.h 38 class Thread;
53 // torn down, the worker thread is purged.
69 // Signal thread methods
70 PseudoTcpChannel(talk_base::Thread* stream_thread,
93 // Stream thread methods
101 // Multi-thread methods
106 // Signal thread methods
109 // Worker thread methods
123 talk_base::Thread* signal_thread_, * worker_thread_, * stream_thread_;
  /frameworks/base/core/tests/coretests/src/android/widget/
AutoCompleteTextViewCallbacks.java 47 Thread.sleep(WAIT_TIME);
81 Thread.sleep(WAIT_TIME);
99 Thread.sleep(WAIT_TIME);
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
DownloadUtils.java 67 final Thread thread = Thread.currentThread(); local
70 thread.interrupt();
79 Thread.interrupted(); // consume the interrupt signal
  /cts/tests/src/android/os/cts/
TestThread.java 19 * Thread class for executing a Runnable containing assertions in a separate thread.
20 * Uncaught exceptions in the Runnable are rethrown in the context of the the thread
23 public final class TestThread extends Thread {
69 * Wait for the test thread to complete and throw the stored exception if there is one.
71 * @param runTime The time to wait for the test thread to complete.
79 throw new Exception("Thread did not finish within allotted time.");
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
RSBase.java 58 Thread.yield();
  /dalvik/vm/compiler/codegen/x86/
Assemble.cpp 102 Thread *self,
CalloutHelper.h 34 bool dvmUnlockObject(struct Thread* self, struct Object* obj); //OP_MONITOR_EXIT
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyThrottleEvent.java 43 Thread.sleep(mThrottle);
MonkeyWaitEvent.java 40 Thread.sleep(mWaitTime);
  /external/chromium/chrome/browser/chromeos/login/
camera_controller.h 10 #include "base/threading/thread.h"
69 // Thread for camera to work on.
70 scoped_ptr<base::Thread> camera_thread_;
  /external/chromium/chrome/common/
worker_thread_ticker.h 12 #include "base/threading/thread.h"
16 // the context of an arbitrary worker thread.
17 // The timer runs on a separate thread, so it will run even if the current
18 // thread is hung. Similarly, the callbacks will be called on a separate
19 // thread so they won't block the main thread.
79 base::Thread timer_thread_;
  /external/jdiff/src/jdiff/
StreamReader.java 12 class StreamReader extends Thread {
21 /** Method which is called when this thread is started. */

Completed in 2656 milliseconds

1 2 3 4 5 6 7 891011>>