| /libcore/luni/src/main/java/java/util/logging/ |
| LogManager.java | 114 * This class is thread safe. It is an error to synchronize on a 187 Runtime.getRuntime().addShutdownHook(new Thread() { 355 Class<?> clazz = Thread.currentThread().getContextClassLoader().loadClass(className);
|
| /libcore/luni/src/test/java/libcore/java/nio/channels/ |
| OldSocketChannelTest.java | 231 * the result of finish will be asserted in multi-thread tests. 293 Thread.currentThread().sleep(1000); 345 static class ServerThread extends Thread {
|
| /libcore/luni/src/test/java/libcore/java/util/concurrent/ |
| CopyOnWriteArrayListTest.java | 185 Thread.yield(); 195 Thread.yield();
|
| /packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
| KeyChainTestActivity.java | 147 log("KeyChain failed as expected on main thread."); 260 Thread.currentThread().interrupt(); 282 Thread.currentThread().interrupt();
|
| /packages/apps/Nfc/src/com/android/nfc/ |
| FireflyRenderThread.java | 41 public class FireflyRenderThread extends Thread { 243 Thread.sleep(Math.max(30 - elapsed, 0));
|
| /sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
| HandleThread.java | 23 * Handle thread status updates. 59 Log.d("ddm-thread", "Now ready: " + client); 76 Log.d("ddm-thread", "handling " + ChunkHandler.name(type)); 94 * Handle a thread creation message. 107 Log.v("ddm-thread", "THCR: " + threadId + " '" + name + "'"); 114 * Handle a thread death message. 120 Log.v("ddm-thread", "THDE: " + threadId); 127 * Handle a thread status update message. 132 * (2b) thread count 133 * Then, for each thread [all...] |
| /sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gldebugger/ |
| MessageQueue.java | 43 Thread thread = null; field in class:MessageQueue 60 thread = new Thread(this); 61 thread.start(); 92 // these should only be accessed from the network thread;
|
| /sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/tasks/ |
| ProgressTaskDialog.java | 63 /** Cancel button has been clicked. Waiting for thread to finish. */
65 /** Close pending. Close button clicked or thread finished but there were some
68 /** Close button clicked or thread finished. The window will automatically close. */
98 * @param taskThread The thread to run the task. Cannot be null.
100 public void open(Thread taskThread) {
181 // The dialog is not disposed, make sure to run all this in the UI thread
211 // The dialog is not disposed, make sure to run all this in the UI thread
277 * This method can be invoked from a non-UI thread.
291 * This method can be invoked from a non-UI thread.
323 * This method can be invoked from a non-UI thread. [all...] |
| /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
| HashtableTest.java | 338 Thread t1 = new Thread() { 354 // terminate the thread 359 // terminate the thread 474 Thread t1 = new Thread() { 620 Thread t1 = new Thread() { 636 // terminate the thread 641 // terminate the thread [all...] |
| VectorTest.java | 420 Thread t1 = new Thread() { 664 Thread t1 = new Thread() { 680 // terminate the thread 685 // terminate the thread [all...] |
| /external/chromium/chrome/browser/ui/views/ |
| shell_dialogs_win.cc | 18 #include "base/threading/thread.h" 374 class ShellDialogThread : public base::Thread { 376 ShellDialogThread() : base::Thread("Chrome_ShellDialogThread") { } 380 // Initializes the COM library on the current thread. 385 // Closes the COM library on the current thread. CoInitialize must 396 // shell dialog modally on its own thread. 408 // Thread dialog is run on. 409 base::Thread* dialog_thread; 413 // and tracks it. Returns the message loop of the thread that the dialog will 420 // on the UI thread after the result of the dialog has been determined 520 base::Thread* thread = new ShellDialogThread; local [all...] |
| /libcore/luni/src/test/java/libcore/java/sql/ |
| OldStatementTest.java | [all...] |
| /libcore/luni/src/test/java/tests/api/java/util/ |
| VectorTest.java | 476 Thread t1 = new Thread() { 681 Thread t1 = new Thread() { 697 // terminate the thread 702 // terminate the thread [all...] |
| /packages/apps/Calendar/tests/src/com/android/calendar/ |
| AsyncQueryServiceTest.java | 450 // run in a separate thread but call the same code 451 HandlerThread thread = new HandlerThread("TestAsyncQueryService"); local 452 thread.start(); 453 super.setTestHandler(new Handler(thread.getLooper()) { 465 Log.d(TAG, "onQueryComplete tid=" + Thread.currentThread().getId()); 484 Log.d(TAG, "onInsertComplete tid=" + Thread.currentThread().getId()); 497 Log.d(TAG, "onUpdateComplete tid=" + Thread.currentThread().getId()); 510 Log.d(TAG, "onDeleteComplete tid=" + Thread.currentThread().getId()); 523 Log.d(TAG, "onBatchComplete tid=" + Thread.currentThread().getId()); 541 Log.d(TAG, "waitForCompletion tid=" + Thread.currentThread().getId()) [all...] |
| /packages/apps/Settings/src/com/android/settings/ |
| RadioInfo.java | 733 Thread ipAddr = new Thread() { 742 Thread hostname = new Thread() { 751 Thread httpClient = new Thread() { [all...] |
| /dalvik/vm/ |
| Jni.cpp | 32 All JNI methods must start by changing their thread status to 34 returning to native code. The switch to "running" triggers a thread 87 The spec says, "Local references are only valid in the thread in which 89 one thread to another." 127 Each Thread/JNIEnv points to an IndirectRefTable. 145 * the Thread that can be altered by other threads (e.g. prev/next pointers). 147 static void computeStackSum(Thread* self) { 161 * thread attachment. Another opportunity exists during JNI_OnLoad. Rather 165 static void checkStackSum(Thread* self) { 198 static inline Thread* self(JNIEnv* env) [all...] |
| /packages/apps/Exchange/src/com/android/exchange/ |
| ExchangeService.java | 214 // The singleton ExchangeService object, with its thread and stop flag 216 private static Thread sServiceThread = null; 612 // TODO: Move database work out of UI thread 1333 Thread thread = svc.mThread; local 1596 Thread thread = new Thread(service, mailboxName + "[" + accountName + "]"); local 2269 Thread thread = service.mThread; local [all...] |
| /external/chromium/base/ |
| message_loop_unittest.cc | 13 #include "base/threading/thread.h" 25 using base::Thread; 844 // Enforce that every tasks are sent before starting to run the main thread 983 Thread worker("RecursiveDenial2_worker"); 984 Thread::Options options; 995 // Let the other thread execute. 1022 // needs to process windows messages on the current thread. 1026 Thread worker("RecursiveSupport2_worker"); 1027 Thread::Options options; 1038 // Let the other thread execute [all...] |
| /frameworks/base/core/java/android/webkit/ |
| WebViewDatabase.java | 180 // Initially true until the background thread completes. 184 new Thread() { 211 // Thread done, notify. 439 // Wait for the background initialization thread to complete and check the 647 if (!Thread.currentThread().equals( 651 + Thread.currentThread().getName()); 662 if (!Thread.currentThread().equals( 666 + Thread.currentThread().getName()); [all...] |
| /frameworks/base/core/tests/coretests/src/android/content/pm/ |
| AppCacheTest.java | 335 Thread.sleep(2*60*1000); 382 Thread.sleep(1000); 432 Thread.sleep(10); 733 Thread.sleep(60*1000); 751 Thread.sleep(60*1000);
|
| /packages/apps/Camera/src/com/android/camera/panorama/ |
| PanoramaActivity.java | 288 // from the UI thread. 499 /* This function may be called by some random thread, 502 // Updating the texture should be done in the GL thread which mMosaicView is attached. 596 runBackgroundThread(new Thread() { 613 // do we have to wait for the thread to complete before enabling this? 732 Thread t = new Thread() { 772 runBackgroundThread(new Thread() { 810 private void runBackgroundThread(Thread thread) { [all...] |
| /packages/apps/VoiceDialer/src/com/android/voicedialer/ |
| CommandRecognizerEngine.java | 195 if (Thread.interrupted()) throw new InterruptedException(); 238 if (Thread.interrupted()) throw new InterruptedException(); 247 if (Thread.interrupted()) throw new InterruptedException(); 321 if (Thread.interrupted()) throw new InterruptedException(); [all...] |
| /dalvik/vm/compiler/ |
| Compiler.cpp | 149 Thread *self = dvmThreadSelf(); 156 * but the compiler thread will only signal once when the queue is 157 * emptied. Furthermore, the compiler thread may have been shutdown 158 * so the blocked thread may never get the wakeup signal. 223 static void crawlDalvikStack(Thread *thread, bool print) 225 void *fp = thread->interpSave.curFrame; 230 LOGD("Crawling tid %d (%s / %p %s)", thread->systemTid, 231 dvmGetThreadStatusStr(thread->status), 232 thread->inJitCodeCache 266 Thread* thread; local [all...] |
| /external/chromium/chrome/browser/history/ |
| history.cc | 5 // The history system runs on a background thread so that potentially slow 8 // that thread. 10 // Main thread History thread 65 // Sends messages from the backend to us on the main thread. This must be a 77 // Send to the history service on the main thread. 84 // Send the backend to the history service on the main thread. 92 // Send the notification on the history thread. 99 // Send the notification to the history service on the main thread. 122 // The history thread is intentionally not a BrowserThread because th 207 base::Thread* thread = thread_; local [all...] |
| /external/chromium/chrome/common/net/ |
| url_fetcher_unittest.cc | 7 #include "base/threading/thread.h" 77 // Creates a URLFetcher, using the program's main thread to do IO. 113 // URLFetcher is designed to run on the main UI thread, but in our tests 114 // we assume that the current thread is the IO thread where the URLFetcher 116 // a UI thread, we dispatch a worker thread to do so. 142 // same thread that CreateFetcher() did. 146 // the main loop returns and this thread subsequently goes out of scope. 241 // thread once it is deleted [all...] |