/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 688 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument [all...] |
/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 | 126 sp<LooperThread> thread; local 132 thread = mThread; 138 if (thread == NULL && !runningLocally) { 142 if (thread != NULL) { 143 thread->requestExit(); 148 if (!runningLocally && !thread->isCurrentThread()) { 149 // If not running locally and this thread _is_ the looper thread, 151 thread->requestExitAndWait();
|
/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();
|
H A D | DatabaseStatementTest.java | 287 StatementTestThread thread = new StatementTestThread(mDatabase, statement); 288 thread.start(); 290 thread.join();
|
/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/support/volley/src/com/android/volley/ |
H A D | VolleyLog.java | 56 * calling thread ID and method name. 81 * A simple event log with records containing a name, thread ID, and timestamp. 91 public final long thread; field in class:VolleyLog.MarkerLog.Marker 94 public Marker(String name, long thread, long time) { argument 96 this.thread = thread; 130 d("(+%-4d) [%2d] %s", (thisTime - prevTime), marker.thread, marker.name);
|
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.cpp | 115 // allow less retry attempts on direct output thread. 132 // minimum sleep time for the mixer thread loop when tracks are active but in underrun 134 // maximum divider applied to the active sleep time in the mixer thread loop 471 PlaybackThread *thread = checkPlaybackThread_l(output); local 473 if (thread == NULL) { 474 ALOGE("unknown output thread"); 484 // output thread and move it here. 505 track = thread->createTrack_l(client, streamType, sampleRate, format, 508 // move effect chain to this output thread if an effect on same session was waiting 511 Mutex::Autolock _dl(thread 550 PlaybackThread *thread = checkPlaybackThread_l(output); local 561 PlaybackThread *thread = checkPlaybackThread_l(output); local 572 PlaybackThread *thread = checkPlaybackThread_l(output); local 583 PlaybackThread *thread = checkPlaybackThread_l(output); local 596 PlaybackThread *thread = checkPlaybackThread_l(output); local 784 PlaybackThread *thread = NULL; local 835 PlaybackThread *thread = checkPlaybackThread_l(output); local 887 sp<RecordThread> thread = mRecordThreads.valueAt(i); local 918 sp<ThreadBase> thread; local 1122 sp<PlaybackThread> thread; local 1398 sp<ThreadBase> thread = mThread.promote(); local 4057 addOutputTrack(MixerThread *thread) argument 4076 removeOutputTrack(MixerThread *thread) argument 4109 sp<ThreadBase> thread = outputTracks[i]->thread().promote(); local 4140 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument 4314 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags) argument 4389 sp<ThreadBase> thread = mThread.promote(); local 4580 sp<ThreadBase> thread = mThread.promote(); local 4622 sp<ThreadBase> thread = mThread.promote(); local 4657 sp<ThreadBase> thread = mThread.promote(); local 4680 sp<ThreadBase> thread = mThread.promote(); local 4727 sp<ThreadBase> thread = mThread.promote(); local 4854 create( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument 4872 TimedTrack( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument 5368 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, int sessionId) argument 5438 sp<ThreadBase> thread = mThread.promote(); local 5449 sp<ThreadBase> thread = mThread.promote(); local 5555 sp<ThreadBase> thread = mThread.promote(); local 5624 sp<ThreadBase> thread = mThread.promote(); local 5894 RecordThread *thread; local 6449 sp<ThreadBase> thread = mThread.promote(); local 6930 PlaybackThread *thread = primaryPlaybackThread_l(); local 6937 PlaybackThread *thread = primaryPlaybackThread_l(); local 6952 PlaybackThread *thread = NULL; local 7050 DuplicatingThread *thread = new DuplicatingThread(this, thread1, id); local 7067 sp<PlaybackThread> thread; local 7105 PlaybackThread *thread = checkPlaybackThread_l(output); local 7120 PlaybackThread *thread = checkPlaybackThread_l(output); local 7140 RecordThread *thread = NULL; local 7222 sp<RecordThread> thread; local 7253 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local 7373 PlaybackThread *thread = checkPlaybackThread_l(output); local 7391 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local 7402 PlaybackThread *thread = primaryPlaybackThread_l(); local 7623 ThreadBase *thread = checkRecordThread_l(io); local 8157 EffectModule(ThreadBase *thread, const wp<AudioFlinger::EffectChain>& chain, effect_descriptor_t *desc, int id, int sessionId) argument 8201 sp<ThreadBase> thread = mThread.promote(); local 8301 sp<ThreadBase> thread = mThread.promote(); local 8408 sp<ThreadBase> thread = mThread.promote(); local 8543 sp<ThreadBase> thread = mThread.promote(); local 8579 sp<ThreadBase> thread = mThread.promote(); local 8968 sp<ThreadBase> thread = mEffect->thread().promote(); local 9005 sp<ThreadBase> thread = mEffect->thread().promote(); local 9026 sp<ThreadBase> thread = mEffect->thread().promote(); local 9182 EffectChain(ThreadBase *thread, int sessionId) argument 9248 sp<ThreadBase> thread = mThread.promote(); local 9257 clearInputBuffer_l(sp<ThreadBase> thread) argument 9267 sp<ThreadBase> thread = mThread.promote(); local 9315 sp<ThreadBase> thread = mThread.promote(); local [all...] |
H A D | AudioFlinger.h | 386 TrackBase(ThreadBase *thread, 536 PMDeathRecipient(const wp<ThreadBase>& thread) : mThread(thread) {} argument 703 // Parameter sequence by client: binder thread calling setParameters(): 728 // These fields are written and read by thread itself without lock or barrier, 731 // Because of the absence of a lock or barrier, any other thread that reads 734 bool mStandby; // Whether thread is currently in standby. 777 Track( PlaybackThread *thread, 859 // written by Track::mute() called by binder thread(s), without a mutex or barrier. 860 // read by Track::isMuted() called by playback thread, als 1008 const wp<ThreadBase>& thread() const { return mThread; } function in class:android::AudioFlinger::PlaybackThread::OutputTrack [all...] |
/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 | 71 public void register(Context context, Looper thread, boolean externalStorage) { argument 72 register(context, thread, null, externalStorage); 75 public void register(Context context, Looper thread, UserHandle user, argument 81 if (thread == null) { 92 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 216 * The thread that invokes {@link AbstractThreadedSyncAdapter#onPerformSync}. It also acquires 218 * this thread in order to cancel the sync. 305 * thread than the sync thread an 330 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 | CountryDetectorService.java | 172 Thread thread = new Thread(this, "CountryDetectorService"); 173 thread.start();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | IconLoader.java | 83 HandlerThread thread = new HandlerThread("Cat Icon Loader"); 84 thread.start(); 85 return new IconLoader(thread.getLooper(), fh);
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | SSLSocketTest.java | 333 * a different thread was sitting in a blocking read or write. 435 android.util.Log.d("SSLSocketTest", "testMultithreadedFetch() started thread #" + i); 441 android.util.Log.d("SSLSocketTest", "testMultithreadedFetch() joined thread #" + i); 841 Thread thread = new Thread() { 856 thread.start(); 859 thread.join(10000); 871 Thread thread = new Thread() { 884 thread.start(); 895 thread.join(5000);
|
/frameworks/base/core/java/android/hardware/ |
H A D | SystemSensorManager.java | 41 /* The thread and the sensor list are global to the process 42 * but the actual thread is spawned on demand */ 77 Thread thread = new Thread(runnable, SensorThread.class.getName()); 78 thread.start(); 84 mThread = thread; 97 // it's held in the main thread at least until we 104 //Log.d(TAG, "entering main sensor thread"); 133 // we have no more listeners or polling failed, terminate the thread 156 //Log.d(TAG, "exiting main sensor thread"); 332 // if the list is not empty, start our main thread [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLSurfaceView.java | 51 * <li>Renders on a dedicated thread to decouple rendering performance from the 52 * UI thread. 124 * pause and resume the rendering thread, and also allow GLSurfaceView to release and recreate 132 * that's running in the rendering thread. You can do this using any 133 * standard Java cross-thread communication mechanism. In addition, 151 * // thread: 321 * Set the renderer associated with this view. Also starts the thread that 498 * from any thread. Must not be called before a renderer has been set. 512 * from any thread. Must not be called before a renderer has been set. 546 * pause the rendering thread 1803 threadExiting(GLThread thread) argument 1821 tryAcquireEglContextLocked(GLThread thread) argument 1845 releaseEglContextLocked(GLThread thread) argument [all...] |