HomeSort by relevance Sort by last modified time
    Searched defs:Thread (Results 276 - 300 of 456) sorted by null

<<111213141516171819

  /sdk/eclipse/plugins/com.android.ide.eclipse.hierarchyviewer/src/com/android/ide/eclipse/hierarchyviewer/
HierarchyViewerPlugin.java 75 // because this can be run, in some cases, by a non UI thread, and
79 // in the UI thread.
103 // dialog box only run in UI thread..
133 // populate the UI with current devices (if any) in a thread
134 new Thread() {
  /art/test/924-threads/src/art/
Test924.java 33 // Run the test on its own thread, so we have a known state for the "current" thread.
34 Thread t = new Thread("TestThread") {
49 Thread t1 = Thread.currentThread();
50 Thread t2 = getCurrentThread();
64 Thread t3 = new Thread("Daemon Thread");
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
JSR166TestCase.java 62 * them. These methods are used to clear and check for thread
69 * small amounts of computation (creating a thread, calling a few
306 * harness thread, triggering a test case failure. Only the first
321 * Triggers test case failure if any thread assertions have failed,
322 * by rethrowing, in the test harness thread, any exception recorded
325 * Triggers test case failure if interrupt status is set in the main thread.
344 if (Thread.interrupted())
345 throw new AssertionFailedError("interrupt status set in main thread");
483 * Delays, via Thread.sleep, for the given millisecond delay, but
492 Thread.sleep(millis)
    [all...]
  /libcore/ojluni/src/main/java/java/util/concurrent/
LinkedTransferQueue.java 78 * collections, actions in a thread prior to placing an object into a
82 * the {@code LinkedTransferQueue} in another thread.
98 * requests. When a thread tries to enqueue a data node, but
202 * (hence potentially allowing progress by another thread) to be
228 * pointer links to itself, it indicates that the current thread
259 * per-thread one available, but even ThreadLocalRandom is too
322 * Wait for another thread to match node; instead cancelling if
323 * the current thread was interrupted or the wait timed out. On
334 * interrupt status and generate a thread-local random number
335 * to decide to occasionally perform a Thread.yield. Whil
    [all...]
FutureTask.java 106 /** The thread running the callable; CASed during run() */
107 private volatile Thread runner;
173 Thread t = runner;
258 !U.compareAndSwapObject(this, RUNNER, null, Thread.currentThread()))
299 !U.compareAndSwapObject(this, RUNNER, null, Thread.currentThread()))
335 Thread.yield(); // wait out pending interrupt
345 // Thread.interrupted();
354 volatile Thread thread; field in class:FutureTask.WaitNode
356 WaitNode() { thread = Thread.currentThread();
    [all...]
  /art/test/953-invoke-polymorphic-compiler/src/
Main.java 74 Thread.dumpStack();
79 Thread.dumpStack();
  /development/samples/Vault/tests/src/com/example/android/vault/
EncryptedDocumentTest.java 109 new Thread() {
134 new Thread() {
226 new Thread() {
  /device/google/cuttlefish_common/host/commands/launch/
main.cc 175 // Initialize Virtual USB and start USB management thread.
179 std::thread([this] { Thread(); }).detach();
183 void Thread() {
216 // Start IVServer thread.
218 std::thread([this] { server_.Serve(); }).detach();
240 std::thread([this] { Thread(); }).detach();
244 void Thread() {
  /external/guava/guava-tests/test/com/google/common/collect/
MapMakerTest.java 73 new Thread(new Runnable() {
104 * a black-box test that tries to create lots of different thread-interleavings, and asserts that
155 Thread.yield();
SynchronizedNavigableMapTest.java 69 assertTrue(Thread.holdsLock(mutex));
74 assertTrue(Thread.holdsLock(mutex));
79 assertTrue(Thread.holdsLock(mutex));
84 assertTrue(Thread.holdsLock(mutex));
89 assertTrue(Thread.holdsLock(mutex));
108 assertTrue(Thread.holdsLock(mutex));
113 assertTrue(Thread.holdsLock(mutex));
118 assertTrue(Thread.holdsLock(mutex));
123 assertTrue(Thread.holdsLock(mutex));
128 assertTrue(Thread.holdsLock(mutex))
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
ICUServiceThreadTest.java 87 private static final Random r = new Random(); // this is a multi thread test, can't 'unrandomize'
109 Thread.sleep(time);
114 Thread.sleep(300);
120 static class TestThread extends Thread {
135 Thread.yield();
142 Thread.sleep(delay);
454 // one register and one unregister thread, delay 500ms
456 // one visible id thread, delay 50ms
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
ICUServiceThreadTest.java 84 private static final Random r = new Random(); // this is a multi thread test, can't 'unrandomize'
106 Thread.sleep(time);
111 Thread.sleep(300);
117 static class TestThread extends Thread {
132 Thread.yield();
139 Thread.sleep(delay);
451 // one register and one unregister thread, delay 500ms
453 // one visible id thread, delay 50ms
  /external/libmojo/base/android/java/src/org/chromium/base/library_loader/
LegacyLinker.java 79 assert Thread.holdsLock(mLock);
86 // constructor because instantiation occurs on the UI thread.
158 * received, i.e. when another thread calls useSharedRelros().
201 // Restore the thread's interrupt status.
202 Thread.currentThread().interrupt();
226 * thread with a non-null value.
357 assert Thread.holdsLock(mLock);
387 assert Thread.holdsLock(mLock);
560 * Move activity from the native thread to the main UI thread
    [all...]
  /frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/
ServicesTests.java 137 Thread startServices =
138 new Thread() {
149 Thread.sleep(1000);
165 Thread startServices =
166 new Thread() {
177 Thread.sleep(1000);
208 Thread.sleep((i - 1) * (1 << (i / 5)));
240 Thread.sleep(5000);
256 Thread.sleep(5000);
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
CameraTest.java 85 new Thread() {
91 // Save the looper so that we can terminate this thread
107 * Terminates the message looper thread.
115 // the method. So we need to join the looper thread here.
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
MediaPlayerStateUnitTestTemplate.java 92 terminateMessageLooper(); // Release message looper thread.
104 new Thread() {
110 // Save the looper so that we can terminate this thread
246 Thread.sleep(MediaNames.PAUSE_WAIT_TIME);
489 * Terminates the message looper thread.
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
ReferenceTest.java 136 // wait for the reference queue thread to enqueue the newly-finalized object
137 Thread.yield();
138 Thread.sleep(200);
175 class TestThread extends Thread {
177 // Create the object in a separate thread to ensure it will be
189 Thread t = new TestThread();
288 class TestThread extends Thread {
290 // Create the object in a separate thread to ensure it will be
297 Thread t = new TestThread();
301 Thread.sleep(1000)
    [all...]
  /libcore/jsr166-tests/src/test/java/jsr166/
LockSupportTest.java 118 Thread t = newStartedThread(new CheckedRunnable() {
153 Thread t = newStartedThread(new CheckedRunnable() {
157 Thread.yield();
190 Thread t = newStartedThread(new CheckedRunnable() {
196 } while (! Thread.currentThread().isInterrupted());
229 Thread t = newStartedThread(new CheckedRunnable() {
233 Thread.yield();
234 assertTrue(Thread.currentThread().isInterrupted());
236 assertTrue(Thread.currentThread().isInterrupted());
261 Thread t = newStartedThread(new CheckedRunnable()
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
Profile.java 26 // The Profile class is used to collect profiling information for a thread. It
27 // samples stack traces for a thread periodically. enable() and disable() is
28 // used to enable and disable profiling for the calling thread. The profiling
39 // This is a watchdog entry for one thread.
40 // For every cycleTime period, we dump the stack of the thread.
42 Thread thread; field in class:Profile.WatchEntry
52 // This is a watchdog thread which dumps stacks of other threads periodically.
77 public synchronized void addWatchEntry(Thread thread, int cycleTime)
112 Thread thread = entry.thread; local
126 Thread thread = entry.thread; local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/
BugleApplication.java 50 import java.lang.Thread.UncaughtExceptionHandler;
86 sSystemUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
87 Thread.setDefaultUncaughtExceptionHandler(this);
164 // Called from thread started in FactoryImpl.register() (i.e. not run in tests)
184 public void uncaughtException(final Thread thread, final Throwable ex) {
185 final boolean background = getMainLooper().getThread() != thread;
187 LogUtil.e(TAG, "Uncaught exception in background thread " + thread, ex);
194 sSystemUncaughtExceptionHandler.uncaughtException(thread, ex)
    [all...]
  /packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
SourceLatency.java 96 (new Thread() {
104 Thread.sleep(delay);
113 Thread.sleep(1000);
249 Thread.sleep(2000);
  /packages/services/Telephony/sip/src/com/android/services/telephony/sip/
SipSettings.java 159 new Thread() {
182 new Thread(new Runnable() {
305 // run it on background thread for better UI response
306 new Thread(new Runnable() {
  /prebuilts/go/darwin-x86/src/debug/macho/
macho.go 85 LoadCmdUnixThread LoadCmd = 0x5 // thread+stack
187 // A Thread is a Mach-O thread state command.
188 Thread struct {
  /prebuilts/go/linux-x86/src/debug/macho/
macho.go 85 LoadCmdUnixThread LoadCmd = 0x5 // thread+stack
187 // A Thread is a Mach-O thread state command.
188 Thread struct {
  /sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/discovery/
NdkDiscoveryUpdater.java 106 new Thread() {

Completed in 1203 milliseconds

<<111213141516171819