Searched defs:thread (Results 1 - 14 of 14) 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/base/awt/org/apache/harmony/awt/wtk/
H A DShutdownWatchdog.java34 private ShutdownThread thread; field in class:ShutdownWatchdog
74 if (thread == null) {
75 thread = new ShutdownThread();
76 thread.start();
81 if (thread != null) {
82 thread.shutdown();
83 thread = null;
/frameworks/base/core/jni/
H A Dandroid_bluetooth_common.h73 /* protects the thread */
75 pthread_t thread; member in struct:android::event_loop_native_data_t
91 /* flag to indicate if the event loop thread is running */
H A Dandroid_bluetooth_ScoSocket.cpp59 /* Ideally, blocking I/O on a SCO socket would return when another thread
63 * call close() from the same thread that does blocking I/O. This requires the
67 * times out after the BT page timeout (10 seconds currently), so the thread
68 * will die eventually. The fact that the thread can outlive
114 thread_data_t *thread_data; // pointer to thread local data
115 // max 1 thread per sco socket
118 /* thread local data */
121 bool is_accept; // accept (listening) or connect (outgoing) thread
122 int signal_sk; // socket for thread to listen for unblock signal
324 pthread_t thread; local
372 pthread_t thread; local
[all...]
/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
77 * <li> A Service is <b>not</b> a thread. It is not a means itself to do work off
78 * of the main thread (to avoid Application Not Responding errors).
100 * main thread. It is up to the Service to implement these with the appropriate
101 * behavior, such as creating a secondary thread in which it does its work.</p>
208 * to schedule work to be done asynchronously or in another thread, then you
351 * and spawns a thread to do its networking. If its process is killed
447 * IBinder interface returned here may not happen on the main thread
646 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
1384 init(ActivityThread thread, Context instrContext, Context appContext, ComponentName component, IInstrumentationWatcher watcher) argument
[all...]
/frameworks/base/libs/utils/
H A DThreads.cpp137 pthread_t thread; local
138 int result = pthread_create(&thread, &attr,
148 *threadId = (android_thread_id_t)thread; // XXX: this is not portable
180 LOG(LOG_VERBOSE, "thread", "thread exiting\n");
185 * Create and run a new thread.
207 LOG(LOG_WARN, "thread", "WARNING: thread create failed\n");
385 LOG(LOG_WARN, "thread", "WARNING: bad result from unlocking mutex\n");
394 LOG(LOG_WARN, "thread", "WARNIN
[all...]
/frameworks/base/media/libmedia/
H A DAudioRecord.cpp73 // Otherwise the callback thread will never exit.
260 LOGE("AudioRecord::start called from thread");
584 bool AudioRecord::processAudioBuffer(const sp<ClientRecordThread>& thread) argument
628 // Keep this thread going to handle timed events and
H A DAudioTrack.cpp91 // Otherwise the callback thread will never exit.
226 LOGE("Could not create callback thread");
311 LOGE("AudioTrack::start called from thread");
408 // Release AudioTrack callback thread in case it was waiting for new buffers
821 bool AudioTrack::processAudioBuffer(const sp<AudioTrackThread>& thread) argument
903 // Keep this thread going to handle timed events and
/frameworks/base/services/java/com/android/server/am/
H A DProcessRecord.java49 IApplicationThread thread; // the actual proc... may be null only if field in class:ProcessRecord
157 pw.print(prefix); pw.print("thread="); pw.print(thread);
229 thread = _thread;
269 IApplicationThread localThread = thread;
H A DActivityManagerService.java686 * while waiting for their corresponding application thread to get
931 * Runtime statistics collection thread. This object's lock is used to
967 IApplicationThread thread) {
970 + " for thread " + thread.asBinder());
973 mAppThread = thread;
979 + " for thread " + mAppThread.asBinder());
1162 if (r.thread != null) {
1164 r.thread.updateTimeZone();
1799 if (app.thread
966 AppDeathRecipient(ProcessRecord app, int pid, IApplicationThread thread) argument
4689 getLRURecordIndexForAppLocked(IApplicationThread thread) argument
4702 getRecordForAppLocked( IApplicationThread thread) argument
4712 appDiedLocked(ProcessRecord app, int pid, IApplicationThread thread) argument
5453 attachApplicationLocked(IApplicationThread thread, int pid) argument
5672 attachApplication(IApplicationThread thread) argument
8181 newProcessRecordLocked(IApplicationThread thread, ApplicationInfo info, String customProcess) argument
[all...]
/frameworks/base/libs/audioflinger/
H A DAudioFlinger.h246 TrackBase(const wp<ThreadBase>& thread,
382 Track( const wp<ThreadBase>& thread,
460 OutputTrack( const wp<ThreadBase>& thread,
473 wp<ThreadBase>& thread() { return mThread; } function in class:android::AudioFlinger::PlaybackThread::OutputTrack
644 void addOutputTrack(MixerThread* thread);
645 void removeOutputTrack(MixerThread* thread);
690 // record thread
698 RecordTrack(const wp<ThreadBase>& thread,
H A DAudioFlinger.cpp75 // allow less retry attempts on direct output thread.
300 PlaybackThread *thread = checkPlaybackThread_l(output); local
301 if (thread == NULL) {
302 LOGE("unknown output thread");
315 track = thread->createTrack_l(client, streamType, sampleRate, format,
337 PlaybackThread *thread = checkPlaybackThread_l(output); local
338 if (thread == NULL) {
339 LOGW("sampleRate() unknown thread %d", output);
342 return thread->sampleRate();
348 PlaybackThread *thread local
359 PlaybackThread *thread = checkPlaybackThread_l(output); local
370 PlaybackThread *thread = checkPlaybackThread_l(output); local
381 PlaybackThread *thread = checkPlaybackThread_l(output); local
493 PlaybackThread *thread = NULL; local
542 PlaybackThread *thread = checkPlaybackThread_l(output); local
622 sp<ThreadBase> thread; local
2227 addOutputTrack(MixerThread *thread) argument
2244 removeOutputTrack(MixerThread *thread) argument
2276 sp <ThreadBase> thread = outputTracks[i]->thread().promote(); local
2298 TrackBase( const wp<ThreadBase>& thread, const sp<Client>& client, uint32_t sampleRate, int format, int channelCount, int frameCount, uint32_t flags, const sp<IMemory>& sharedBuffer) argument
2450 Track( const wp<ThreadBase>& thread, const sp<Client>& client, int streamType, uint32_t sampleRate, int format, int channelCount, int frameCount, const sp<IMemory>& sharedBuffer) argument
2484 sp<ThreadBase> thread = mThread.promote(); local
2503 sp<ThreadBase> thread = mThread.promote(); local
2594 sp<ThreadBase> thread = mThread.promote(); local
2628 sp<ThreadBase> thread = mThread.promote(); local
2652 sp<ThreadBase> thread = mThread.promote(); local
2670 sp<ThreadBase> thread = mThread.promote(); local
2720 RecordTrack( const wp<ThreadBase>& thread, const sp<Client>& client, uint32_t sampleRate, int format, int channelCount, int frameCount, uint32_t flags) argument
2746 sp<ThreadBase> thread = mThread.promote(); local
2793 sp<ThreadBase> thread = mThread.promote(); local
2804 sp<ThreadBase> thread = mThread.promote(); local
2831 OutputTrack( const wp<ThreadBase>& thread, DuplicatingThread *sourceThread, uint32_t sampleRate, int format, int channelCount, int frameCount) argument
2894 sp<ThreadBase> thread = mThread.promote(); local
2963 sp<ThreadBase> thread = mThread.promote(); local
3154 RecordThread *thread; local
3737 PlaybackThread *thread = NULL; local
3816 DuplicatingThread *thread = new DuplicatingThread(this, thread1, ++mNextThreadId); local
3826 sp <PlaybackThread> thread; local
3859 PlaybackThread *thread = checkPlaybackThread_l(output); local
3874 PlaybackThread *thread = checkPlaybackThread_l(output); local
3894 RecordThread *thread = NULL; local
3958 sp <RecordThread> thread; local
3990 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
4011 PlaybackThread *thread = NULL; local
4021 PlaybackThread *thread = checkPlaybackThread_l(output); local
4033 RecordThread *thread = NULL; local
[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.
118 * pause and resume the rendering thread, and also allow GLSurfaceView to release and recreate
126 * that's running in the rendering thread. You can do this using any
127 * standard Java cross-thread communication mechanism. In addition,
145 * // thread:
270 * Set the renderer associated with this view. Also starts the thread that
446 * from any thread. Must not be called before a renderer has been set.
460 * from any thread. Must not be called before a renderer has been set.
494 * pause the rendering thread
1574 threadExiting(GLThread thread) argument
1592 tryAcquireEglContextLocked(GLThread thread) argument
1609 releaseEglContextLocked(GLThread thread) argument
[all...]

Completed in 6890 milliseconds