/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | 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) { argument 79 e.thread = thread; 87 removeWatchEntry(Thread thread) argument 139 findEntry(Thread thread) argument [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/Dialer/src/com/android/dialer/interactions/ |
H A D | UndemoteOutgoingCallReceiver.java | 46 final Thread thread = new Thread() { 52 thread.start();
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadUtils.java | 50 final Thread thread = Thread.currentThread(); 54 thread.interrupt();
|
/packages/apps/Email/src/com/android/email/ |
H A D | EmailConnectivityManager.java | 66 // The thread waiting for connectivity 87 Thread thread= mWaitThread; 88 if (thread != null) { 89 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/Nfc/nci/jni/ |
H A D | NfcJniUtil.h | 98 pthread_t thread; member in struct:nfc_jni_native_data
|
/packages/apps/Browser/src/com/android/browser/util/ |
H A D | ThreadedCursorAdapter.java | 93 HandlerThread thread = new HandlerThread("threaded_adapter_" + this, 95 thread.start(); 96 mLoadHandler = new Handler(thread.getLooper()) {
|
/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/InCallUI/src/com/android/incallui/ |
H A D | ContactsAsyncHelper.java | 81 /** Handler run on a worker thread to load photo asynchronously. */ 274 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); 275 thread.start(); 276 sThreadHandler = new WorkerHandler(thread.getLooper()); 322 // notify the thread to begin working
|
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | DraftCache.java | 71 * Dispatches work to a thread and returns immediately. 78 Thread thread = new Thread(new Runnable() { 84 thread.setPriority(Thread.MIN_PRIORITY); 85 thread.start(); 157 /** Updates the has-draft status of a particular thread on 193 /** Returns true if the given thread ID has a draft associated
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadReceiver.java | 50 final HandlerThread thread = new HandlerThread(TAG); 51 thread.start(); 52 sAsyncHandler = new Handler(thread.getLooper());
|
/packages/services/Telephony/src/com/android/phone/ |
H A D | ContactsAsyncHelper.java | 90 /** Handler run on a worker thread to load photo asynchronously. */ 305 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); 306 thread.start(); 307 sThreadHandler = new WorkerHandler(thread.getLooper()); 353 // notify the thread to begin working
|
H A D | SimContacts.java | 287 ImportAllSimContactsThread thread = new ImportAllSimContactsThread(); 299 getString(R.string.cancel), thread); 304 thread.start();
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMnsObexClient.java | 41 * The Message Notification Service class runs its own message handler thread, 45 * from this thread. 76 HandlerThread thread = new HandlerThread("BluetoothMnsObexClient"); 77 thread.start(); 78 Looper looper = thread.getLooper(); 155 /* should shutdown handler thread first to make sure 159 // Shut down the thread 201 * this thread as Handler.
|
/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/Exchange/src/com/android/exchange/ |
H A D | ExchangeService.java | 606 // Interrupt the thread so that it can stop 607 Thread thread = svc.mThread; 608 if (thread != null) { 609 thread.setName(thread.getName() + " (Stopped)"); 610 thread.interrupt();
|
/packages/apps/Nfc/nxp/jni/ |
H A D | com_android_nfc.h | 136 pthread_t thread; member in struct:nfc_jni_native_data
|
/packages/apps/Mms/src/com/android/mms/data/ |
H A D | Conversation.java | 83 // The thread ID of this conversation. Can be zero in the case of a 85 // types and we have not hit the database yet to create a thread. 140 * Find the conversation matching the provided thread ID. 249 // it's a thread id for a conversation 344 * work is dispatched to a background thread. This function should 345 * always be called from the UI thread. 392 LogTag.debug("markAsRead: update read/seen for thread uri: " + 400 // canceling the notification of the thread that was just marked read. 413 * can mark messages as read. Only call this function on the UI thread. 443 * Return the Uri for all messages in the given thread I [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
H A D | SmsReceiverService.java | 67 * This service essentially plays the role of a "worker thread", allowing us to store 69 * main thread that SmsReceiver runs on. 117 // Start up the thread running the service. Note that we create a 118 // separate thread because the service normally runs in the process's 119 // main thread, which we don't want to block. 120 HandlerThread thread = new HandlerThread(TAG, Process.THREAD_PRIORITY_BACKGROUND); 121 thread.start(); 123 mServiceLooper = thread.getLooper(); 385 // Called off of the UI thread so ok to block. 403 // Called off of the UI thread s [all...] |
H A D | TransactionService.java | 177 // Start up the thread running the service. Note that we create a 178 // separate thread because the service normally runs in the process's 179 // main thread, which we don't want to block. 180 HandlerThread thread = new HandlerThread("TransactionService"); 181 thread.start(); 183 mServiceLooper = thread.getLooper(); 469 // We're already in a non-UI thread called from
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
H A D | Avrcp.java | 170 HandlerThread thread = new HandlerThread("BluetoothAvrcpHandler"); 171 thread.start(); 172 Looper looper = thread.getLooper();
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
H A D | HealthService.java | 93 HandlerThread thread = new HandlerThread("BluetoothHdpHandler"); 94 thread.start(); 95 Looper looper = thread.getLooper();
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertService.java | 1101 HandlerThread thread = new HandlerThread("AlertService", 1103 thread.start(); 1105 mServiceLooper = thread.getLooper();
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | AsyncQueryServiceTest.java | 481 // run in a separate thread but call the same code 482 HandlerThread thread = new HandlerThread("TestAsyncQueryService"); 483 thread.start(); 484 super.setTestHandler(new Handler(thread.getLooper()) {
|