/frameworks/av/include/media/ |
H A D | AudioRecord.h | 75 /* As a convenience, if a callback is supplied, a handler thread 76 * is automatically created with the appropriate priority. This thread 328 void pause(); // suspend thread from execution at next loop boundary 329 void resume(); // allow thread to execute, if not requested to exit 338 bool mPaused; // whether thread is currently paused 342 bool processAudioBuffer(const sp<AudioRecordThread>& thread);
|
H A D | AudioTrack.h | 90 /* As a convenience, if a callback is supplied, a handler thread 91 * is automatically created with the appropriate priority. This thread 150 * threadCanCallJava: Whether callbacks are made from an attached thread and thus can call JNI. 469 void pause(); // suspend thread from execution at next loop boundary 470 void resume(); // allow thread to execute, if not requested to exit 479 bool mPaused; // whether thread is currently paused 483 bool processAudioBuffer(const sp<AudioTrackThread>& thread);
|
/frameworks/av/media/libmedia/ |
H A D | AudioRecord.cpp | 104 // Otherwise the callback thread will never exit. 520 // callback thread or sync event hasn't changed 656 bool AudioRecord::processAudioBuffer(const sp<AudioRecordThread>& thread) argument 718 // Keep this thread going to handle timed events and 773 // callback thread or sync event hasn't changed
|
H A D | AudioTrack.cpp | 173 // Otherwise the callback thread will never exit. 488 // Release AudioTrack callback thread in case it was waiting for new buffers 1194 bool AudioTrack::processAudioBuffer(const sp<AudioTrackThread>& thread) argument 1289 // Keep this thread going to handle timed events and
|
/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/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/app/ |
H A D | ActivityThread.java | 134 * This manages the execution of the main thread in an 2040 // if the thread hasn't started yet, we don't have the handler, so just 2328 * BroadcastReceiver on this thread, or null if none. 4178 // main thread so the main looper is set right. 4243 * network usage on the main event loop / UI thread. 4380 // test thread at this point, and we don't want that racing. 4452 // There is a possible race here. Another thread may try to acquire 4961 ActivityThread thread = new ActivityThread(); 4962 thread.attach(true); 4963 return thread; [all...] |
H A D | Instrumentation.java | 98 * {@link #start} to begin the instrumentation thread, which will then 101 * <p>If you do not need your own thread -- that is you are writing your 114 * Create and start a new thread in which to run instrumentation. This new 115 * thread will call to {@link #onStart} where you can implement the 127 * Method where the instrumentation thread enters execution. This allows 128 * you to run your instrumentation code in a separate thread than the 305 * Schedule a callback for when the application's main thread goes idle 308 * @param recipient Called the next time the thread's message queue is 318 * from the main application thread -- use {@link #start} to execute 319 * instrumentation in its own thread 1598 init(ActivityThread thread, Context instrContext, Context appContext, ComponentName component, IInstrumentationWatcher watcher) argument [all...] |
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/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/core/java/android/database/sqlite/ |
H A D | SQLiteConnectionPool.java | 50 * The connection pool is thread-safe (but the connections themselves are not). 141 * This flag indicates that the connection is needed by the UI thread. 657 // Park the thread until a connection is assigned or the pool is closed. 738 final Thread thread = Thread.currentThread(); 741 msg.append("' has been unable to grant a connection to thread "); 742 msg.append(thread.getId()).append(" (").append(thread.getName()).append(") "); 967 private ConnectionWaiter obtainConnectionWaiterLocked(Thread thread, long startTime, argument 976 waiter.mThread = thread; 1045 + " ms - thread [all...] |
/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/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/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/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/core/tests/coretests/src/android/content/pm/ |
H A D | PackageHelperTests.java | 92 Thread thread = new Thread(r1); 95 thread.start();
|
/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/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
H A D | AccessoryChat.java | 146 Thread thread = new Thread(null, this, "AccessoryChat"); 147 thread.start(); 186 Log.d(TAG, "thread out");
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpServer.java | 36 Thread thread = new Thread(this, "MtpServer"); 37 thread.start();
|
/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...] |