Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 43) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfile.java42 Thread thread; field in Profile.WatchEntry
77 public synchronized void addWatchEntry(Thread thread, int cycleTime) { in addWatchEntry() argument
79 e.thread = thread; in addWatchEntry()
87 public synchronized void removeWatchEntry(Thread thread) { in removeWatchEntry() argument
89 if (mList.get(i).thread == thread) { in removeWatchEntry()
112 Thread thread = entry.thread; in processList() local
126 Thread thread = entry.thread; in sampleStack() local
127 StackTraceElement[] stack = thread.getStackTrace(); in sampleStack()
139 private WatchEntry findEntry(Thread thread) { in findEntry() argument
142 if (entry.thread == thread) return entry; in findEntry()
/packages/apps/Camera2/src/com/android/camera/async/
DHandlerFactory.java32 final HandlerThread thread = new HandlerThread(threadName); in create() local
33 thread.start(); in create()
38 thread.quitSafely(); in create()
42 return new Handler(thread.getLooper()); in create()
52 final HandlerThread thread = new HandlerThread(threadName); in create() local
53 thread.start(); in create()
54 thread.setPriority(javaThreadPriority); in create()
59 thread.quitSafely(); in create()
63 return new Handler(thread.getLooper()); in create()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadJobService.java67 final DownloadThread thread; in onStartJob() local
69 thread = new DownloadThread(this, params, info); in onStartJob()
70 mActiveThreads.put(id, thread); in onStartJob()
72 thread.start(); in onStartJob()
81 final DownloadThread thread; in onStopJob() local
83 thread = mActiveThreads.removeReturnOld(id); in onStopJob()
85 if (thread != null) { in onStopJob()
88 thread.requestShutdown(); in onStopJob()
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
DPduCache.java104 HashSet<Uri> thread = mThreads.get(threadId); in put() local
105 if (thread == null) { in put()
106 thread = new HashSet<Uri>(); in put()
107 mThreads.put(threadId, thread); in put()
114 thread.add(finalKey); in put()
233 HashSet<Uri> thread = mThreads.get(entry.getThreadId()); in removeFromThreads() local
234 if (thread != null) { in removeFromThreads()
235 thread.remove(key); in removeFromThreads()
244 HashSet<Uri> thread = mThreads.remove(threadId); in purgeByThreadId() local
245 if (thread != null) { in purgeByThreadId()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DNamedThreadFactory.java40 final Thread thread = mDefaultThreadFactory.newThread(runnable); in newThread() local
41 thread.setName(mPrefix + mCount.getAndIncrement()); in newThread()
42 return thread; in newThread()
45 public boolean namedWithPrefix(Thread thread) { in namedWithPrefix() argument
46 return thread.getName().startsWith(mPrefix); in namedWithPrefix()
/packages/apps/Gallery/src/com/android/camera/
DBitmapManager.java183 Thread thread = Thread.currentThread(); in decodeFileDescriptor() local
184 if (!canThreadDecoding(thread)) { in decodeFileDescriptor()
185 Log.d(TAG, "Thread " + thread + " is not allowed to decode."); in decodeFileDescriptor()
189 setDecodingOptions(thread, options); in decodeFileDescriptor()
192 removeDecodingOptions(thread); in decodeFileDescriptor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DExecutorUtils.java55 Thread thread = new Thread(runnable, TAG); in newThread() local
56 thread.setUncaughtExceptionHandler(new UncaughtExceptionHandler() { in newThread()
58 public void uncaughtException(Thread thread, Throwable ex) { in newThread()
62 return thread; in newThread()
/packages/apps/Messaging/src/com/android/messaging/
DBugleApplication.java184 public void uncaughtException(final Thread thread, final Throwable ex) { in uncaughtException() argument
185 final boolean background = getMainLooper().getThread() != thread; in uncaughtException()
187 LogUtil.e(TAG, "Uncaught exception in background thread " + thread, ex); in uncaughtException()
194 sSystemUncaughtExceptionHandler.uncaughtException(thread, ex); in uncaughtException()
198 sSystemUncaughtExceptionHandler.uncaughtException(thread, ex); in uncaughtException()
/packages/services/Telecomm/src/com/android/server/telecom/
DDtmfLocalTonePlayer.java173 HandlerThread thread = new HandlerThread("tonegenerator-dtmf"); in getNewHandler() local
174 thread.start(); in getNewHandler()
176 return new Handler(thread.getLooper()) { in getNewHandler()
DAsyncRingtonePlayer.java91 HandlerThread thread = new HandlerThread("ringtone-player"); in getNewHandler() local
92 thread.start(); in getNewHandler()
94 return new Handler(thread.getLooper()) { in getNewHandler()
DContactsAsyncHelper.java237 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); in ensureAsyncHandlerStarted() local
238 thread.start(); in ensureAsyncHandlerStarted()
239 mThreadHandler = new WorkerHandler(thread.getLooper()); in ensureAsyncHandlerStarted()
/packages/apps/Email/provider_src/com/android/email/
DEmailConnectivityManager.java86 Thread thread= mWaitThread; in stopWait() local
87 if (thread != null) { in stopWait()
88 thread.interrupt(); in stopWait()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAddWifiNetworkTask.java74 HandlerThread thread = new HandlerThread("Timeout thread", in AddWifiNetworkTask() local
76 thread.start(); in AddWifiNetworkTask()
77 Looper looper = thread.getLooper(); in AddWifiNetworkTask()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DContactsAsyncHelper.java205 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); in ContactsAsyncHelper() local
206 thread.start(); in ContactsAsyncHelper()
207 sThreadHandler = new WorkerHandler(thread.getLooper()); in ContactsAsyncHelper()
/packages/apps/Calendar/src/com/android/calendar/
DContactsAsyncHelper.java127 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); in ContactsAsyncHelper() local
128 thread.start(); in ContactsAsyncHelper()
129 sThreadHandler = new WorkerHandler(thread.getLooper()); in ContactsAsyncHelper()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadUtils.java50 final Thread thread = Thread.currentThread(); in dump() local
54 thread.interrupt(); in dump()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DTestLoaderManager.java125 for (Thread thread : waitThreads) { in waitForLoaders()
127 thread.join(); in waitForLoaders()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java131 final HandlerThread thread = new HandlerThread("ringtone-player"); in getNewHandler() local
132 thread.start(); in getNewHandler()
134 return new Handler(thread.getLooper()) { in getNewHandler()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseManager.java84 HandlerThread thread = new HandlerThread("BluetoothAdvertiseManager"); in start() local
85 thread.start(); in start()
86 mHandler = new ClientHandler(thread.getLooper()); in start()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java83 HandlerThread thread = new HandlerThread("BluetoothMnsObexClient"); in BluetoothMnsObexClient() local
84 thread.start(); in BluetoothMnsObexClient()
87 Looper looper = thread.getLooper(); in BluetoothMnsObexClient()
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java304 ImportAllSimContactsThread thread = new ImportAllSimContactsThread(); in onOptionsItemSelected() local
316 getString(R.string.cancel), thread); in onOptionsItemSelected()
321 thread.start(); in onOptionsItemSelected()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java139 HandlerThread thread = new HandlerThread("PackageInstallerThread", in onCreate() local
141 thread.start(); in onCreate()
143 mServiceHandler = new ServiceHandler(thread.getLooper()); in onCreate()
/packages/apps/Nfc/nci/jni/
DNfcJniUtil.h98 pthread_t thread; member
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java1218 final Cursor thread = mContentResolver.query(
1221 if (thread != null) {
1223 if (thread.moveToFirst()) {
1226 return thread.getString(RECIPIENT_IDS);
1229 thread.close();
/packages/apps/Calendar/tests/src/com/android/calendar/
DAsyncQueryServiceTest.java482 HandlerThread thread = new HandlerThread("TestAsyncQueryService"); in TestAsyncQueryService() local
483 thread.start(); in TestAsyncQueryService()
484 super.setTestHandler(new Handler(thread.getLooper()) { in TestAsyncQueryService()

12