/frameworks/base/core/java/com/android/internal/view/ |
H A D | WindowManagerPolicyThread.java | 22 * Static storage of the thread running the window manager policy, to 29 public static void set(Thread thread, Looper looper) { argument 30 mThread = thread;
|
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | ContentQueryMapTest.java | 34 /** Helper class to run test code in a new thread with a Looper. */ 54 LooperThread thread = new LooperThread() { 99 thread.start(); 100 thread.join(); 101 if (thread.mError != null) throw thread.mError; 102 assertTrue(thread.mSuccess);
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpServer.java | 36 Thread thread = new Thread(this, "MtpServer"); 37 thread.start();
|
/frameworks/base/core/java/android/app/ |
H A D | IntentService.java | 31 * thread, and stops itself when it runs out of work. 34 * from an application's main thread. The IntentService class exists to 37 * will receive the Intents, launch a worker thread, and stop the service as 40 * <p>All requests are handled on a single worker thread -- they may take as 73 * @param name Used to name the worker thread, important only for debugging. 107 HandlerThread thread = new HandlerThread("IntentService[" + mName + "]"); 108 thread.start(); 110 mServiceLooper = thread.getLooper(); 150 * This method is invoked on the worker thread with a request to process. 152 * worker thread tha [all...] |
H A D | Service.java | 45 * thread of their hosting process. This means that, if your service is going 47 * networking) operations, it should spawn its own thread in which to do that 51 * as a standard implementation of Service that has its own thread where it 80 * <li> A Service is <b>not</b> a thread. It is not a means itself to do work off 81 * of the main thread (to avoid Application Not Responding errors). 103 * main thread. It is up to the Service to implement these with the appropriate 104 * behavior, such as creating a secondary thread in which it does its work.</p> 223 * to schedule work to be done asynchronously or in another thread, then you 366 * and spawns a thread to do its networking. If its process is killed 427 * service's main thread 690 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.cpp | 478 PlaybackThread *thread = checkPlaybackThread_l(output); local 480 if (thread == NULL) { 481 ALOGE("no playback thread found for output handle %d", output); 493 // output thread and move it here. 514 track = thread->createTrack_l(client, streamType, sampleRate, format, 519 // move effect chain to this output thread if an effect on same session was waiting 522 Mutex::Autolock _dl(thread->mLock); 524 moveEffectChain_l(lSessionId, effectThread, thread, true); 530 if (thread->isValidSyncEvent(mPendingSyncEvents[i])) { 564 PlaybackThread *thread local 575 PlaybackThread *thread = checkPlaybackThread_l(output); local 586 PlaybackThread *thread = checkPlaybackThread_l(output); local 597 PlaybackThread *thread = checkPlaybackThread_l(output); local 610 PlaybackThread *thread = checkPlaybackThread_l(output); local 798 PlaybackThread *thread = NULL; local 849 PlaybackThread *thread = checkPlaybackThread_l(output); local 902 sp<RecordThread> thread = mRecordThreads.valueAt(i); local 933 sp<ThreadBase> thread; local 1139 sp<PlaybackThread> thread; local 1243 RecordThread *thread; local 1415 PlaybackThread *thread = primaryPlaybackThread_l(); local 1422 PlaybackThread *thread = primaryPlaybackThread_l(); local 1454 PlaybackThread *thread = NULL; local 1570 DuplicatingThread *thread = new DuplicatingThread(this, thread1, id); local 1587 sp<PlaybackThread> thread; local 1643 PlaybackThread *thread = checkPlaybackThread_l(output); local 1658 PlaybackThread *thread = checkPlaybackThread_l(output); local 1678 RecordThread *thread = NULL; local 1821 sp<RecordThread> thread; local 1852 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local 1984 PlaybackThread *thread = checkPlaybackThread_l(output); local 2002 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local 2013 PlaybackThread *thread = primaryPlaybackThread_l(); local 2233 ThreadBase *thread = checkRecordThread_l(io); local [all...] |
H A D | Tracks.cpp | 63 ThreadBase *thread, 74 mThread(thread), 232 // will be freed from the main thread once all pending buffers have 320 PlaybackThread *thread, 331 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, sharedBuffer, 338 mMainBuffer(thread->mixBuffer()), 359 mName = thread->getTrackName_l(channelMask, sessionId); 367 ALOG_ASSERT(thread->mFastTrackAvailMask != 0); 368 int i = __builtin_ctz(thread->mFastTrackAvailMask); 376 mObservedUnderruns = thread 62 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int clientUid, bool isOut) argument 319 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int uid, IAudioFlinger::track_flags_t flags) argument 411 sp<ThreadBase> thread = mThread.promote(); local 574 sp<ThreadBase> thread = mThread.promote(); local 636 sp<ThreadBase> thread = mThread.promote(); local 664 sp<ThreadBase> thread = mThread.promote(); local 695 sp<ThreadBase> thread = mThread.promote(); local 765 sp<ThreadBase> thread = mThread.promote(); local 783 sp<ThreadBase> thread = mThread.promote(); local 811 sp<ThreadBase> thread = mThread.promote(); local 961 sp<ThreadBase> thread = mThread.promote(); local 972 create( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int uid) argument 991 TimedTrack( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int uid) argument 1564 sp<ThreadBase> thread = mThread.promote(); local 1640 sp<ThreadBase> thread = mThread.promote(); local 1752 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, int sessionId, int uid) argument 1797 sp<ThreadBase> thread = mThread.promote(); local 1808 sp<ThreadBase> thread = mThread.promote(); local 1822 sp<ThreadBase> thread = mThread.promote(); local [all...] |
H A D | Effects.cpp | 56 AudioFlinger::EffectModule::EffectModule(ThreadBase *thread, argument 62 mThread(thread), mChain(chain), mId(id), mSessionId(sessionId), 75 mStatus = EffectCreate(&desc->uuid, sessionId, thread->id(), &mEffectInterface); 197 sp<ThreadBase> thread = mThread.promote(); local 198 if (thread != 0) { 199 thread->disconnectEffect(keep, handle, unpinIfLast); 307 sp<ThreadBase> thread; local 316 thread = mThread.promote(); 317 if (thread == 0) { 323 channelMask = thread 457 sp<ThreadBase> thread = mThread.promote(); local 503 sp<ThreadBase> thread = mThread.promote(); local 958 sp<ThreadBase> thread = mEffect->thread().promote(); local 1016 sp<ThreadBase> thread = mEffect->thread().promote(); local 1042 sp<ThreadBase> thread = mEffect->thread().promote(); local 1203 EffectChain(ThreadBase *thread, int sessionId) argument 1270 sp<ThreadBase> thread = mThread.promote(); local 1279 clearInputBuffer_l(sp<ThreadBase> thread) argument 1287 sp<ThreadBase> thread = mThread.promote(); local 1336 sp<ThreadBase> thread = mThread.promote(); local [all...] |
H A D | RecordTracks.h | 25 RecordTrack(RecordThread *thread,
|
H A D | PlaybackTracks.h | 25 Track( PlaybackThread *thread, 105 // FIXME parameters not needed, could get them from the thread 161 static sp<TimedTrack> create(PlaybackThread *thread, 205 TimedTrack(PlaybackThread *thread, 256 OutputTrack(PlaybackThread *thread, 272 const wp<ThreadBase>& thread() const { return mThread; } function in class:OutputTrack
|
H A D | Effects.h | 44 EffectModule(ThreadBase *thread, 92 void setThread(const wp<ThreadBase>& thread) { mThread = thread; } argument 93 const wp<ThreadBase>& thread() { return mThread; } function in class:EffectModule 140 wp<ThreadBase> mThread; // parent thread 234 // There can be any number of EffectChain objects per output mixer thread (PlaybackThread). 243 EffectChain(ThreadBase *thread, int sessionId); 346 void clearInputBuffer_l(sp<ThreadBase> thread); 348 wp<ThreadBase> mThread; // parent mixer thread
|
/frameworks/opt/mms/src/java/com/google/android/mms/util/ |
H A D | PduCache.java | 104 HashSet<Uri> thread = mThreads.get(threadId); 105 if (thread == null) { 106 thread = new HashSet<Uri>(); 107 mThreads.put(threadId, thread); 114 thread.add(finalKey); 232 HashSet<Uri> thread = mThreads.get(entry.getThreadId()); 233 if (thread != null) { 234 thread.remove(key); 240 Log.v(TAG, "Purge cache in thread: " + threadId); 243 HashSet<Uri> thread [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ALooper.cpp | 130 sp<LooperThread> thread; local 136 thread = mThread; 142 if (thread == NULL && !runningLocally) { 146 if (thread != NULL) { 147 thread->requestExit(); 152 if (!runningLocally && !thread->isCurrentThread()) { 153 // If not running locally and this thread _is_ the looper thread, 155 thread->requestExitAndWait();
|
/frameworks/base/libs/hwui/thread/ |
H A D | TaskManager.cpp | 62 sp<WorkerThread> thread; local 66 thread = mThreads[i]; 71 return thread->addTask(wrapper);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseLockTest.java | 66 * same database at the same time with the same prioritization, neither thread 90 * This function is to create the second thread for testLockFairness() test. 93 Thread thread = new DatabaseFairnessThread(); 94 thread.start(); 147 * This function is to create the second thread for testLockLatency() test. 150 Thread thread = new DatabaseLatencyThread(); 151 thread.start();
|
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
H A D | HandlerThread_Delegate.java | 44 for (HandlerThread thread : list) { 45 thread.quit(); 57 // record the thread so that it can be quit() on clean up.
|
/frameworks/volley/src/com/android/volley/ |
H A D | VolleyLog.java | 76 * calling thread ID and method name. 101 * A simple event log with records containing a name, thread ID, and timestamp. 111 public final long thread; field in class:VolleyLog.MarkerLog.Marker 114 public Marker(String name, long thread, long time) { argument 116 this.thread = thread; 150 d("(+%-4d) [%2d] %s", (thisTime - prevTime), marker.thread, marker.name);
|
/frameworks/base/core/java/android/widget/ |
H A D | Filter.java | 104 HandlerThread thread = new HandlerThread( 106 thread.start(); 107 mThreadHandler = new RequestHandler(thread.getLooper()); 128 * <p>Invoked in a worker thread to filter the data according to the 132 * will then be published in the UI thread through 149 * <p>Invoked in the UI thread to publish the filtering results in the 211 * <p>Worker thread handler. When a new filtering request is posted from 265 * handled in the UI thread.</p> 270 * UI thread. The processing involves calling
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 173 sp<EventThread> thread; member in class:TouchEvents 177 thread = new EventThread(); 178 thread->run("EventThread", PRIORITY_URGENT_DISPLAY); 182 *x = thread->x; 183 *y = thread->y; 184 return thread->down;
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | PackageHelperTests.java | 92 Thread thread = new Thread(r1); 95 thread.start();
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | PackageMonitor.java | 68 public void register(Context context, Looper thread, boolean externalStorage) { argument 69 register(context, thread, null, externalStorage); 72 public void register(Context context, Looper thread, UserHandle user, argument 78 if (thread == null) { 81 mRegisteredHandler = new Handler(thread);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
H A D | LocationBasedCountryDetectorTest.java | 211 // Wait for query thread ending 234 // There is no way to stop the thread, let's test it could be stopped, after get country 236 // Wait for query thread ending 313 // Wait for query thread ending 336 // Wait for query thread ending 358 private void waitForThreadEnding(Thread thread) { argument 360 thread.join(5000); 375 Thread thread = detector.getQueryThread(); 376 assertTrue(thread != null); 377 return thread; [all...] |
/frameworks/base/core/java/android/content/ |
H A D | AbstractThreadedSyncAdapter.java | 30 * An abstract implementation of a SyncAdapter that spawns a thread to invoke a sync operation. 33 * When a startSync() is received and there is no sync operation in progress then a thread 34 * will be started to run the operation and {@link #onPerformSync} will be invoked on that thread. 35 * If a cancelSync() is received that matches an existing sync operation then the thread 36 * that is running that sync operation will be interrupted, which will indicate to the thread 125 * at the same time, each in their own thread. This must be consistent with the setting 221 * The thread that invokes {@link AbstractThreadedSyncAdapter#onPerformSync}. It also acquires 223 * this thread in order to cancel the sync. 310 * thread than the sync thread an 335 onSyncCanceled(Thread thread) argument [all...] |
H A D | AsyncQueryHandler.java | 83 // which will make the first access on the main thread a lot faster. 129 HandlerThread thread = new HandlerThread("AsyncQueryWorker"); 130 thread.start(); 132 sLooper = thread.getLooper();
|
/frameworks/base/services/java/com/android/server/ |
H A D | NetworkTimeUpdateService.java | 72 // NTP lookup is done on this thread and handler 116 HandlerThread thread = new HandlerThread(TAG); 117 thread.start(); 118 mHandler = new MyHandler(thread.getLooper()); 119 // Check the network time on the new thread
|