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

12

/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/libs/hwui/thread/
H A DTaskManager.cpp62 sp<WorkerThread> thread; local
66 thread = mThreads[i];
71 return thread->addTask(wrapper);
/frameworks/av/media/libstagefright/foundation/
H A DALooper.cpp130 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/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
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...]
/frameworks/volley/src/com/android/volley/
H A DVolleyLog.java76 * 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/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
690 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument
[all...]
H A DInstrumentation.java101 * {@link #start} to begin the instrumentation thread, which will then
104 * <p>If you do not need your own thread -- that is you are writing your
117 * Create and start a new thread in which to run instrumentation. This new
118 * thread will call to {@link #onStart} where you can implement the
130 * Method where the instrumentation thread enters execution. This allows
131 * you to run your instrumentation code in a separate thread than the
312 * Schedule a callback for when the application's main thread goes idle
315 * @param recipient Called the next time the thread's message queue is
325 * from the main application thread -- use {@link #start} to execute
326 * instrumentation in its own thread
1607 init(ActivityThread thread, Context instrContext, Context appContext, ComponentName component, IInstrumentationWatcher watcher, IUiAutomationConnection uiAutomationConnection) argument
[all...]
/frameworks/base/core/java/com/android/internal/content/
H A DPackageMonitor.java68 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 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.cpp535 MyThread* thread = new MyThread(mST); local
536 sp<Thread> threadBase(thread);
540 thread->run();
545 thread->bufferDequeued();
546 thread->requestExitAndWait();
/frameworks/av/services/audioflinger/
H A DPlaybackTracks.h25 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 DEffects.h44 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
H A DEffects.cpp56 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 DThreads.h104 PMDeathRecipient(const wp<ThreadBase>& thread) : mThread(thread) {} argument
279 // Parameter sequence by client: binder thread calling setParameters():
305 // These fields are written and read by thread itself without lock or barrier,
308 // Because of the absence of a lock or barrier, any other thread that reads
311 bool mStandby; // Whether thread is currently in standby.
348 // retry count before removing active track in case of underrun on offloaded thread:
484 // suspend count, > 0 means suspended. While suspended, the thread continues to pull from
594 // Bit 0 is reset by the async callback thread calling resetWriteBlocked(). Out of sequence
601 // Bit 0 is reset by the async callback thread callin
[all...]
H A DTracks.cpp63 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 DAudioFlinger.cpp478 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,
517 // move effect chain to this output thread if an effect on same session was waiting
520 Mutex::Autolock _dl(thread->mLock);
522 moveEffectChain_l(lSessionId, effectThread, thread, true);
528 if (thread->isValidSyncEvent(mPendingSyncEvents[i])) {
562 PlaybackThread *thread local
573 PlaybackThread *thread = checkPlaybackThread_l(output); local
584 PlaybackThread *thread = checkPlaybackThread_l(output); local
595 PlaybackThread *thread = checkPlaybackThread_l(output); local
608 PlaybackThread *thread = checkPlaybackThread_l(output); local
796 PlaybackThread *thread = NULL; local
847 PlaybackThread *thread = checkPlaybackThread_l(output); local
900 sp<RecordThread> thread = mRecordThreads.valueAt(i); local
931 sp<ThreadBase> thread; local
1137 sp<PlaybackThread> thread; local
1241 RecordThread *thread; local
1413 PlaybackThread *thread = primaryPlaybackThread_l(); local
1420 PlaybackThread *thread = primaryPlaybackThread_l(); local
1452 PlaybackThread *thread = NULL; local
1568 DuplicatingThread *thread = new DuplicatingThread(this, thread1, id); local
1585 sp<PlaybackThread> thread; local
1641 PlaybackThread *thread = checkPlaybackThread_l(output); local
1656 PlaybackThread *thread = checkPlaybackThread_l(output); local
1676 RecordThread *thread = NULL; local
1819 sp<RecordThread> thread; local
1850 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
1982 PlaybackThread *thread = checkPlaybackThread_l(output); local
2000 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
2011 PlaybackThread *thread = primaryPlaybackThread_l(); local
2231 ThreadBase *thread = checkRecordThread_l(io); local
[all...]
/frameworks/base/services/java/com/android/server/
H A DWatchdog.java58 // Set this to true to have the watchdog record kernel thread stacks when it fires
79 /* This handler will be used to post message back onto the main thread */
120 // to do a context switch to check the thread. Note that we
215 // Initialize handler checkers for each common thread we want to check. Note
216 // that we are not currently checking the background thread, since it can
220 // The shared foreground thread is the main checker. It is where we
223 "foreground thread", DEFAULT_TIMEOUT);
225 // Add checker for main thread. We only do a quick check since there
226 // can be UI running on the thread.
228 "main thread", DEFAULT_TIMEOU
280 addThread(Handler thread, String name) argument
284 addThread(Handler thread, String name, long timeoutMillis) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp105 // Otherwise the callback thread will never exit.
580 // keep them from going away if another thread re-creates the track during obtainBuffer()
695 nsecs_t AudioRecord::processAudioBuffer(const sp<AudioRecordThread>& thread) argument
882 // Keep this thread going to handle timed events and
942 // callback thread or sync event hasn't changed
H A DAudioTrack.cpp146 // Otherwise the callback thread will never exit.
1126 // keep them from going away if another thread re-creates the track during obtainBuffer()
1331 nsecs_t AudioTrack::processAudioBuffer(const sp<AudioTrackThread>& thread) argument
1333 // Currently the AudioTrack thread is not created if there are no callbacks.
1334 // Would it ever make sense to run the thread, even without callbacks?
1601 // Keep this thread going to handle timed events and
/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/wilhelm/tests/sandbox/
H A Dplaybq.c113 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe
468 // create thread to read from file
469 pthread_t thread; local
470 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL);
473 // give thread a head start so that the pipe is initially filled
H A Dplaybq.cpp113 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe
468 // create thread to read from file
469 pthread_t thread; local
470 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL);
473 // give thread a head start so that the pipe is initially filled
/frameworks/base/services/java/com/android/server/am/
H A DProcessRecord.java58 IApplicationThread thread; // the actual proc... may be null only if field in class:ProcessRecord
212 pw.print(prefix); pw.print("thread="); pw.println(thread);
386 if (thread == null) {
408 thread = _thread;
412 thread = null;
455 if (deathRecipient != null && thread != null) {
456 thread.asBinder().unlinkToDeath(deathRecipient, 0);
/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
1814 threadExiting(GLThread thread) argument
1832 tryAcquireEglContextLocked(GLThread thread) argument
1856 releaseEglContextLocked(GLThread thread) argument
[all...]

Completed in 700 milliseconds

12