/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
H A D | ThreadingTest.java | 29 public void startThread(Thread thread) { argument 30 thread.start();
|
H A D | FakeSystemFacade.java | 99 public void startThread(Thread thread) { argument 101 thread.start(); 103 mStartedThreads.add(thread);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | SystemFacade.java | 66 * Start a thread. 68 public void startThread(Thread thread); argument
|
H A D | RealSystemFacade.java | 102 public void startThread(Thread thread) { argument 103 thread.start();
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarReceiver.java | 59 * Running this on the main thread has caused ANRs, so we run it on a background 60 * thread and start an "empty service" to encourage the system to keep us alive. 68 RemoveScheduledAlarmsThread thread = new RemoveScheduledAlarmsThread(context, resolver); 69 thread.start(); 73 * Background thread that handles cleanup of scheduled alarms.
|
H A D | CalendarProvider2.java | 247 // Client apps can load more data in a background thread. 349 * thread's handler, indicating that these are requests to send an update 522 // We don't ever unregister this because this thread always wants 524 // thread is killed then the whole process will be killed and the 551 Thread thread = new PostInitializeThread(); 552 thread.start(); 573 * This creates a background thread to check the timezone and update 578 Thread thread = new TimezoneCheckerThread(); 579 thread.start(); 599 * This method runs in a background thread [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | BitmapManager.java | 33 * decoding if another thread wants to cancel it, it calls the function 55 s = "thread state = " + s + ", options = " + mOptions; 69 * Get thread status and create one if specified. 95 * The following three methods are used to keep track of which thread 183 Thread thread = Thread.currentThread(); 184 if (!canThreadDecoding(thread)) { 185 Log.d(TAG, "Thread " + thread + " is not allowed to decode."); 189 setDecodingOptions(thread, options); 192 removeDecodingOptions(thread);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
H A D | ServiceProxy.java | 39 * thread) with a default timeout of 30 seconds (settable) 76 // Run our task on a new thread 135 Thread thread = new Thread(mRunnable); 136 thread.start(); 138 thread.join();
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadUtils.java | 67 final Thread thread = Thread.currentThread(); 70 thread.interrupt();
|
/packages/apps/Email/src/com/android/email/ |
H A D | EmailConnectivityManager.java | 64 // The thread waiting for connectivity 85 Thread thread= mWaitThread; 86 if (thread != null) { 87 thread.interrupt();
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
H A D | TestLoaderManager.java | 154 // We want to wait for each loader using a separate thread, so that we can 174 for (Thread thread : waitThreads) { 176 thread.join();
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | ContactsAsyncHelper.java | 127 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); 128 thread.start(); 129 sThreadHandler = new WorkerHandler(thread.getLooper()); 180 // notify the thread to begin working 220 // notify the thread to begin working
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | SettingsLicenseActivity.java | 113 // Tell the UI thread that we are finished. 169 // Start separate thread to do the actual loading. 170 Thread thread = new Thread(new LicenseFileLoader(fileName, mHandler)); 171 thread.start(); 200 // Begin the loading. This will be done in a separate thread in WebView.
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertService.java | 471 HandlerThread thread = new HandlerThread("AlertService", 473 thread.start(); 475 mServiceLooper = thread.getLooper();
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | SimContacts.java | 287 ImportAllSimContactsThread thread = new ImportAllSimContactsThread(); 299 getString(R.string.cancel), thread); 304 thread.start();
|
H A D | BluetoothHandsfree.java | 244 HandlerThread thread = new HandlerThread("BluetoothHandsfreeHandler"); 245 thread.start(); 246 Looper looper = thread.getLooper(); 263 * A thread that runs in the background waiting for a Sco Server Socket to 339 * A thread that runs in the background waiting for a Sco Socket to 340 * connect.Once the socket is connected, this thread shall be 408 // If this thread has been interrupted, it has been shutdown and 458 // call a message to close this thread and turn off audio 460 // the thread would try to close itself 2940 /** Debug thread t [all...] |
/packages/apps/Nfc/jni/ |
H A D | com_android_nfc.h | 123 pthread_t thread; member in struct:nfc_jni_native_data
|
H A D | com_android_nfc_NativeNfcManager.cpp | 82 * Deferred callback called when client thread must be exited 98 LOGD("Terminating client thread..."); 299 if(pthread_create(&(nat->thread), NULL, nfc_jni_client_thread, nat) != 0)
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
H A D | SmsReceiverService.java | 66 * This service essentially plays the role of a "worker thread", allowing us to store 68 * main thread that SmsReceiver runs on. 114 // Start up the thread running the service. Note that we create a 115 // separate thread because the service normally runs in the process's 116 // main thread, which we don't want to block. 117 HandlerThread thread = new HandlerThread(TAG, Process.THREAD_PRIORITY_BACKGROUND); 118 thread.start(); 120 mServiceLooper = thread.getLooper(); 366 // Called off of the UI thread so ok to block. 383 // Called off of the UI thread s [all...] |
H A D | TransactionService.java | 162 // Start up the thread running the service. Note that we create a 163 // separate thread because the service normally runs in the process's 164 // main thread, which we don't want to block. 165 HandlerThread thread = new HandlerThread("TransactionService"); 166 thread.start(); 168 mServiceLooper = thread.getLooper(); 419 // We're already in a non-UI thread called from
|
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ |
H A D | ApplicationsProvider.java | 181 // Start thread that runs app updates 182 HandlerThread thread = new HandlerThread("ApplicationsProviderUpdater", THREAD_PRIORITY); 183 thread.start(); 184 mHandler = createHandler(thread.getLooper()); 219 * Posts an update to run on the DB update thread.
|
/packages/apps/Exchange/src/com/android/exchange/ |
H A D | ExchangeService.java | 214 // The singleton ExchangeService object, with its thread and stop flag 612 // TODO: Move database work out of UI thread 1332 // Interrupt the thread so that it can stop 1333 Thread thread = svc.mThread; 1334 if (thread != null) { 1335 thread.setName(thread.getName() + " (Stopped)"); 1336 thread.interrupt(); 1493 // Handle alerts in a background thread, as we are typically called from a 1494 // broadcast receiver, and are therefore running in the UI thread [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | AsyncQueryServiceTest.java | 450 // run in a separate thread but call the same code 451 HandlerThread thread = new HandlerThread("TestAsyncQueryService"); 452 thread.start(); 453 super.setTestHandler(new Handler(thread.getLooper()) {
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | DockService.java | 140 HandlerThread thread = new HandlerThread("DockService"); 141 thread.start(); 143 mServiceLooper = thread.getLooper(); 633 // TODO: move to background thread to fix strict mode warnings
|
/packages/apps/Camera/src/com/android/camera/panorama/ |
H A D | PanoramaActivity.java | 291 // from the UI thread. 488 /* This function may be called by some random thread, 492 // after pausing, the GL thread will crash. 495 // Updating the texture should be done in the GL thread which mMosaicView is attached. 611 // do we have to wait for the thread to complete before enabling this? 843 private void runBackgroundThread(Thread thread) { argument 845 thread.start();
|