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

12

/packages/apps/Camera2/src/com/android/camera/async/
H A DHandlerFactory.java27 * @param lifetime The lifetime of the associated handler's thread.
28 * @param threadName The name to assign to the created thread.
29 * @return A handler backed by a new thread.
32 final HandlerThread thread = new HandlerThread(threadName);
33 thread.start();
38 thread.quitSafely();
42 return new Handler(thread.getLooper());
46 * @param lifetime The lifetime of the associated handler's thread.
47 * @param threadName The name to assign to the created thread.
48 * @param javaThreadPriority The Java thread priorit
[all...]
/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/Messaging/src/com/android/messaging/mmslib/util/
H A DPduCache.java104 HashSet<Uri> thread = mThreads.get(threadId);
105 if (thread == null) {
106 thread = new HashSet<Uri>();
107 mThreads.put(threadId, thread);
114 thread.add(finalKey);
233 HashSet<Uri> thread = mThreads.get(entry.getThreadId());
234 if (thread != null) {
235 thread.remove(key);
241 Log.v(TAG, "Purge cache in thread: " + threadId);
244 HashSet<Uri> thread
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DExecutorUtils.java55 Thread thread = new Thread(runnable, TAG);
56 thread.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
58 public void uncaughtException(Thread thread, Throwable ex) {
62 return thread;
/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/services/Telecomm/src/com/android/server/telecom/
H A DAsyncRingtonePlayer.java32 * Plays the default ringtone. Uses {@link Ringtone} in a separate thread so that this class can be
33 * used from the main thread.
36 // Message codes used with the ringtone thread.
44 /** Handler running on the ringtone thread. */
47 /** The current ringtone. Only used by the ringtone thread. */
72 * Posts a message to the ringtone-thread handler. Creates the handler if specified by the
93 * Creates a new ringtone Handler running in its own thread.
98 HandlerThread thread = new HandlerThread("ringtone-player");
99 thread.start();
101 return new Handler(thread
[all...]
H A DContactsAsyncHelper.java63 /** Handler run on a worker thread to load photo asynchronously. */
223 // notify the thread to begin working
229 HandlerThread thread = new HandlerThread("ContactsAsyncWorker");
230 thread.start();
231 mThreadHandler = new WorkerHandler(thread.getLooper());
H A DDtmfLocalTonePlayer.java49 * thread.
54 /** Handler running on the tonegenerator thread. */
156 * Posts a message to the tonegenerator-thread handler. Creates the handler if the handler
176 * Creates a new tonegenerator Handler running in its own thread.
181 HandlerThread thread = new HandlerThread("tonegenerator-dtmf");
182 thread.start();
184 return new Handler(thread.getLooper()) {
208 // the tonegenerator thread.
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadUtils.java50 final Thread thread = Thread.currentThread();
54 thread.interrupt();
/packages/apps/Messaging/src/com/android/messaging/
H A DBugleApplication.java164 // Called from thread started in FactoryImpl.register() (i.e. not run in tests)
184 public void uncaughtException(final Thread thread, final Throwable ex) { argument
185 final boolean background = getMainLooper().getThread() != thread;
187 LogUtil.e(TAG, "Uncaught exception in background thread " + thread, ex);
194 sSystemUncaughtExceptionHandler.uncaughtException(thread, ex);
198 sSystemUncaughtExceptionHandler.uncaughtException(thread, ex);
/packages/apps/Email/provider_src/com/android/email/
H A DEmailConnectivityManager.java65 // The thread waiting for connectivity
86 Thread thread= mWaitThread;
87 if (thread != null) {
88 thread.interrupt();
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DAddWifiNetworkTask.java70 HandlerThread thread = new HandlerThread("Timeout thread",
72 thread.start();
73 Looper looper = thread.getLooper();
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
H A DTestLoaderManager.java105 // We want to wait for each loader using a separate thread, so that we can
125 for (Thread thread : waitThreads) {
127 thread.join();
/packages/apps/Nfc/nci/jni/
H A DNfcJniUtil.h98 pthread_t thread; member in struct:nfc_jni_native_data
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
H A DAvrcpControllerService.java71 HandlerThread thread = new HandlerThread("BluetoothAvrcpHandler");
72 thread.start();
73 Looper looper = thread.getLooper();
H A DAvrcp.java172 HandlerThread thread = new HandlerThread("BluetoothAvrcpHandler");
173 thread.start();
174 Looper looper = thread.getLooper();
/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.java82 /** Handler run on a worker thread to load photo asynchronously. */
203 HandlerThread thread = new HandlerThread("ContactsAsyncWorker");
204 thread.start();
205 sThreadHandler = new WorkerHandler(thread.getLooper());
251 // notify the thread to begin working
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadReceiver.java51 final HandlerThread thread = new HandlerThread("DownloadReceiver");
52 thread.start();
53 sAsyncHandler = new Handler(thread.getLooper());
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMnsObexClient.java40 * The Message Notification Service class runs its own message handler thread,
44 * from this thread.
79 HandlerThread thread = new HandlerThread("BluetoothMnsObexClient");
80 thread.start();
83 Looper looper = thread.getLooper();
157 /* should shutdown handler thread first to make sure
161 // Shut down the thread
188 * this thread as Handler.
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAsyncRingtonePlayer.java21 * <p>Plays the alarm ringtone. Uses {@link Ringtone} in a separate thread so that this class can be
22 * used from the main thread. Consequently, problems controlling the ringtone do not cause ANRs in
23 * the main thread of the application.</p>
49 // Message codes used with the ringtone thread.
54 /** Handler running on the ringtone thread. */
80 * Posts a message to the ringtone-thread handler.
101 * Creates a new ringtone Handler running in its own thread.
104 final HandlerThread thread = new HandlerThread("ringtone-player");
105 thread.start();
107 return new Handler(thread
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DAdvertiseManager.java84 HandlerThread thread = new HandlerThread("BluetoothAdvertiseManager");
85 thread.start();
86 mHandler = new ClientHandler(thread.getLooper());
133 // the mClientHandler thread will be blocked till timeout.
/packages/services/Telephony/src/com/android/phone/
H A DSimContacts.java289 ImportAllSimContactsThread thread = new ImportAllSimContactsThread();
301 getString(R.string.cancel), thread);
306 thread.start();
/packages/apps/Nfc/nxp/jni/
H A Dcom_android_nfc.h136 pthread_t thread; member in struct:nfc_jni_native_data

Completed in 1693 milliseconds

12