Searched defs:thread (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/core/java/com/android/internal/view/
H A DWindowManagerPolicyThread.java22 * 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/av/media/libstagefright/foundation/
H A DALooper.cpp129 sp<LooperThread> thread; local
135 thread = mThread;
141 if (thread == NULL && !runningLocally) {
145 if (thread != NULL) {
146 thread->requestExit();
151 if (!runningLocally && !thread->isCurrentThread()) {
152 // If not running locally and this thread _is_ the looper thread,
154 thread->requestExitAndWait();
/frameworks/base/core/java/android/content/
H A DAbstractThreadedSyncAdapter.java30 * 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...]
/frameworks/support/volley/src/com/android/volley/
H A DVolleyLog.java56 * 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/base/core/java/android/app/
H A DService.java45 * 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...]
H A DInstrumentation.java97 * {@link #start} to begin the instrumentation thread, which will then
100 * <p>If you do not need your own thread -- that is you are writing your
113 * Create and start a new thread in which to run instrumentation. This new
114 * thread will call to {@link #onStart} where you can implement the
126 * Method where the instrumentation thread enters execution. This allows
127 * you to run your instrumentation code in a separate thread than the
304 * Schedule a callback for when the application's main thread goes idle
307 * @param recipient Called the next time the thread's message queue is
317 * from the main application thread -- use {@link #start} to execute
318 * instrumentation in its own thread
1521 init(ActivityThread thread, Context instrContext, Context appContext, ComponentName component, IInstrumentationWatcher watcher) argument
[all...]
/frameworks/base/core/java/com/android/internal/content/
H A DPackageMonitor.java68 public void register(Context context, Looper thread, boolean externalStorage) { argument
73 if (thread == null) {
84 mRegisteredHandler = new Handler(thread);
/frameworks/base/core/jni/
H A Dandroid_bluetooth_common.h74 /* protects the thread */
76 pthread_t thread; member in struct:android::event_loop_native_data_t
92 /* flag to indicate if the event loop thread is running */
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
H A DLocationBasedCountryDetectorTest.java211 // 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/tests/touchlag/
H A Dtouchlag.cpp173 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/native/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp507 MyThread* thread = new MyThread(mST); local
508 sp<Thread> threadBase(thread);
512 thread->run();
517 thread->bufferDequeued();
518 thread->requestExitAndWait();
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp109 // Otherwise the callback thread will never exit.
292 ALOGE("AudioRecord::start called from thread");
316 // thread blocks in readyToRun()
341 // thread unblocks in readyToRun() and returns NO_ERROR
351 // thread unblocks in readyToRun() and returns NO_INIT
545 // callback thread or sync event hasn't changed
681 bool AudioRecord::processAudioBuffer(const sp<ClientRecordThread>& thread) argument
733 // Keep this thread going to handle timed events and
786 // callback thread or sync event hasn't changed
H A DAudioTrack.cpp167 // Otherwise the callback thread will never exit.
482 // Release AudioTrack callback thread in case it was waiting for new buffers
1188 bool AudioTrack::processAudioBuffer(const sp<AudioTrackThread>& thread) argument
1283 // Keep this thread going to handle timed events and
/frameworks/native/libs/utils/
H A DThreads.cpp64 * Create and run a new thread.
171 pthread_t thread; local
172 int result = pthread_create(&thread, &attr,
186 *threadId = (android_thread_id_t)thread; // XXX: this is not portable
192 static pthread_t android_thread_id_t_to_pthread(android_thread_id_t thread) argument
194 return (pthread_t) thread;
225 ALOG(LOG_VERBOSE, "thread", "thread exiting\n");
230 * Create and run a new thread.
252 ALOG(LOG_WARN, "thread", "WARNIN
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnectionPool.java50 * 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/services/java/com/android/server/am/
H A DProcessRecord.java55 IApplicationThread thread; // the actual proc... may be null only if field in class:ProcessRecord
189 pw.print(prefix); pw.print("thread="); pw.print(thread);
314 thread = _thread;
353 if (deathRecipient != null && thread != null) {
354 thread.asBinder().unlinkToDeath(deathRecipient, 0);
H A DActivityManagerService.java541 * while waiting for their corresponding application thread to get
800 * Runtime statistics collection thread. This object's lock is used to
835 IApplicationThread thread) {
838 + " for thread " + thread.asBinder());
841 mAppThread = thread;
847 + " for thread " + mAppThread.asBinder());
1021 if (r.thread != null) {
1023 r.thread.updateTimeZone();
1035 if (r.thread !
834 AppDeathRecipient(ProcessRecord app, int pid, IApplicationThread thread) argument
2920 getLRURecordIndexForAppLocked(IApplicationThread thread) argument
2932 getRecordForAppLocked( IApplicationThread thread) argument
2942 appDiedLocked(ProcessRecord app, int pid, IApplicationThread thread) argument
3910 attachApplicationLocked(IApplicationThread thread, int pid) argument
4147 attachApplication(IApplicationThread thread) argument
6751 newProcessRecordLocked(IApplicationThread thread, ApplicationInfo info, String customProcess, boolean isolated) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLSurfaceView.java51 * <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...]
/frameworks/av/services/audioflinger/
H A DAudioFlinger.h379 TrackBase(ThreadBase *thread,
472 PMDeathRecipient(const wp<ThreadBase>& thread) : mThread(thread) {} argument
625 // Parameter sequence by client: binder thread calling setParameters():
689 Track( PlaybackThread *thread,
811 static sp<TimedTrack> create(PlaybackThread *thread,
854 TimedTrack(PlaybackThread *thread,
904 OutputTrack(PlaybackThread *thread,
918 const wp<ThreadBase>& thread() const { return mThread; } function in class:android::AudioFlinger::PlaybackThread::OutputTrack
1175 sp<AudioWatchdog> mAudioWatchdog; // non-0 if there is an audio watchdog thread
[all...]
H A DAudioFlinger.cpp121 // allow less retry attempts on direct output thread.
138 // minimum sleep time for the mixer thread loop when tracks are active but in underrun
140 // maximum divider applied to the active sleep time in the mixer thread loop
468 PlaybackThread *thread = checkPlaybackThread_l(output); local
470 if (thread == NULL) {
471 ALOGE("unknown output thread");
481 // output thread and move it here.
502 track = thread->createTrack_l(client, streamType, sampleRate, format,
505 // move effect chain to this output thread if an effect on same session was waiting
508 Mutex::Autolock _dl(thread
547 PlaybackThread *thread = checkPlaybackThread_l(output); local
558 PlaybackThread *thread = checkPlaybackThread_l(output); local
569 PlaybackThread *thread = checkPlaybackThread_l(output); local
580 PlaybackThread *thread = checkPlaybackThread_l(output); local
593 PlaybackThread *thread = checkPlaybackThread_l(output); local
775 PlaybackThread *thread = NULL; local
826 PlaybackThread *thread = checkPlaybackThread_l(output); local
878 sp<RecordThread> thread = mRecordThreads.valueAt(i); local
907 sp<ThreadBase> thread; local
1112 sp<PlaybackThread> thread; local
1364 sp<ThreadBase> thread = mThread.promote(); local
4015 addOutputTrack(MixerThread *thread) argument
4034 removeOutputTrack(MixerThread *thread) argument
4067 sp<ThreadBase> thread = outputTracks[i]->thread().promote(); local
4097 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
4271 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags) argument
4332 sp<ThreadBase> thread = mThread.promote(); local
4351 sp<ThreadBase> thread = mThread.promote(); local
4544 sp<ThreadBase> thread = mThread.promote(); local
4586 sp<ThreadBase> thread = mThread.promote(); local
4621 sp<ThreadBase> thread = mThread.promote(); local
4644 sp<ThreadBase> thread = mThread.promote(); local
4691 sp<ThreadBase> thread = mThread.promote(); local
4818 create( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
4836 TimedTrack( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
5332 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, int sessionId) argument
5358 sp<ThreadBase> thread = mThread.promote(); local
5407 sp<ThreadBase> thread = mThread.promote(); local
5418 sp<ThreadBase> thread = mThread.promote(); local
5511 sp<ThreadBase> thread = mThread.promote(); local
5580 sp<ThreadBase> thread = mThread.promote(); local
5849 RecordThread *thread; local
6760 PlaybackThread *thread = NULL; local
6890 DuplicatingThread *thread = new DuplicatingThread(this, thread1, id); local
6902 sp<PlaybackThread> thread; local
6940 PlaybackThread *thread = checkPlaybackThread_l(output); local
6955 PlaybackThread *thread = checkPlaybackThread_l(output); local
6975 RecordThread *thread = NULL; local
7053 sp<RecordThread> thread; local
7091 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
7220 PlaybackThread *thread = checkPlaybackThread_l(output); local
7238 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
7249 PlaybackThread *thread = primaryPlaybackThread_l(); local
7470 ThreadBase *thread = checkRecordThread_l(io); local
8000 EffectModule(ThreadBase *thread, const wp<AudioFlinger::EffectChain>& chain, effect_descriptor_t *desc, int id, int sessionId) argument
8045 sp<ThreadBase> thread = mThread.promote(); local
8141 sp<ThreadBase> thread = mThread.promote(); local
8248 sp<ThreadBase> thread = mThread.promote(); local
8387 sp<ThreadBase> thread = mThread.promote(); local
8423 sp<ThreadBase> thread = mThread.promote(); local
8790 sp<ThreadBase> thread = mEffect->thread().promote(); local
8827 sp<ThreadBase> thread = mEffect->thread().promote(); local
8849 sp<ThreadBase> thread = mEffect->thread().promote(); local
9005 EffectChain(ThreadBase *thread, int sessionId) argument
9071 sp<ThreadBase> thread = mThread.promote(); local
9080 clearInputBuffer_l(sp<ThreadBase> thread) argument
9090 sp<ThreadBase> thread = mThread.promote(); local
9138 sp<ThreadBase> thread = mThread.promote(); local
[all...]
/frameworks/compile/mclinker/utils/gtest/include/
H A Dgtest.h234 // and Google Test is thread-safe; or 0 otherwise.
2141 // Allows a controller thread to pause execution of newly created
2143 // and destroyed in the controller thread.
2152 // be called from the controller thread.
2155 // Blocks until the controller thread notifies. Must be called from a test
2156 // thread.
2186 extern "C" inline void* ThreadFuncWithCLinkage(void* thread) { argument
2187 static_cast<ThreadWithParamBase*>(thread)->Run();
2198 // ThreadWithParam<int> thread(&ThreadFunc, 5, &thread_can_start);
2215 // The thread ca
[all...]

Completed in 5563 milliseconds