Searched refs:thread (Results 1 - 25 of 32) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DProfile.java26 // 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 DBitmapManager.java33 * 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 DUndemoteOutgoingCallReceiver.java46 final Thread thread = new Thread() {
52 thread.start();
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadUtils.java50 final Thread thread = Thread.currentThread();
54 thread.interrupt();
/packages/apps/Email/src/com/android/email/
H A DEmailConnectivityManager.java66 // 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 DTestLoaderManager.java154 // 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 DNfcJniUtil.h98 pthread_t thread; member in struct:nfc_jni_native_data
/packages/apps/Browser/src/com/android/browser/util/
H A DThreadedCursorAdapter.java93 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 DContactsAsyncHelper.java127 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 DContactsAsyncHelper.java81 /** 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 DDraftCache.java71 * 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 DDownloadReceiver.java50 final HandlerThread thread = new HandlerThread(TAG);
51 thread.start();
52 sAsyncHandler = new Handler(thread.getLooper());
/packages/services/Telephony/src/com/android/phone/
H A DContactsAsyncHelper.java90 /** 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 DSimContacts.java287 ImportAllSimContactsThread thread = new ImportAllSimContactsThread();
299 getString(R.string.cancel), thread);
304 thread.start();
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMnsObexClient.java41 * 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 DSettingsLicenseActivity.java113 // 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 DExchangeService.java606 // 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 Dcom_android_nfc.h136 pthread_t thread; member in struct:nfc_jni_native_data
/packages/apps/Mms/src/com/android/mms/data/
H A DConversation.java83 // 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 DSmsReceiverService.java67 * 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 DTransactionService.java177 // 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 DAvrcp.java170 HandlerThread thread = new HandlerThread("BluetoothAvrcpHandler");
171 thread.start();
172 Looper looper = thread.getLooper();
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
H A DHealthService.java93 HandlerThread thread = new HandlerThread("BluetoothHdpHandler");
94 thread.start();
95 Looper looper = thread.getLooper();
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DAlertService.java1101 HandlerThread thread = new HandlerThread("AlertService",
1103 thread.start();
1105 mServiceLooper = thread.getLooper();
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DAsyncQueryServiceTest.java481 // 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()) {

Completed in 675 milliseconds

12