Searched defs:thread (Results 1 - 19 of 19) sorted by last modified time

/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/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/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/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/base/services/java/com/android/server/am/
H A DActivityManagerService.java814 * Runtime statistics collection thread. This object's lock is used to
853 IApplicationThread thread) {
856 + " for thread " + thread.asBinder());
859 mAppThread = thread;
865 + " for thread " + mAppThread.asBinder());
1061 if (r.thread != null) {
1063 r.thread.updateTimeZone();
1075 if (r.thread != null) {
1077 r.thread
852 AppDeathRecipient(ProcessRecord app, int pid, IApplicationThread thread) argument
2966 getLRURecordIndexForAppLocked(IApplicationThread thread) argument
2978 getRecordForAppLocked( IApplicationThread thread) argument
2988 appDiedLocked(ProcessRecord app, int pid, IApplicationThread thread) argument
4090 attachApplicationLocked(IApplicationThread thread, int pid) argument
4313 attachApplication(IApplicationThread thread) argument
6945 newProcessRecordLocked(IApplicationThread thread, ApplicationInfo info, String customProcess, boolean isolated) argument
[all...]
H A DProcessRecord.java55 IApplicationThread thread; // the actual proc... may be null only if field in class:ProcessRecord
193 pw.print(prefix); pw.print("thread="); pw.println(thread);
333 thread = _thread;
372 if (deathRecipient != null && thread != null) {
373 thread.asBinder().unlinkToDeath(deathRecipient, 0);
/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/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/media/libstagefright/foundation/
H A DALooper.cpp126 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 DAudioFlinger.cpp115 // 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 DAudioFlinger.h386 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 DInstrumentation.java98 * {@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 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...]
/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/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/core/java/com/android/internal/content/
H A DPackageMonitor.java71 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 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/libmedia/
H A DAudioRecord.cpp104 // 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 DAudioTrack.cpp173 // 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

Completed in 1614 milliseconds