Searched defs:thread (Results 1 - 25 of 33) 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/
H A DDeferredLayerUpdater.cpp27 DeferredLayerUpdater::DeferredLayerUpdater(renderthread::RenderThread& thread, Layer* layer) argument
34 , mRenderThread(thread) {
H A DRenderState.cpp24 RenderState::RenderState(renderthread::RenderThread& thread) argument
25 : mRenderThread(thread)
165 LOG_ALWAYS_FATAL_IF(!pthread_equal(mThreadId, curr), "Wrong thread!");
/frameworks/base/libs/hwui/renderthread/
H A DDrawFrameTask.cpp46 void DrawFrameTask::setContext(RenderThread* thread, CanvasContext* context) { argument
47 mRenderThread = thread;
H A DEglManager.cpp67 EglManager::EglManager(RenderThread& thread) argument
68 : mRenderThread(thread)
H A DCanvasContext.cpp40 CanvasContext::CanvasContext(RenderThread& thread, bool translucent, argument
42 : mRenderThread(thread)
43 , mEglManager(thread.eglManager())
187 // as we will just end up fighting the UI thread.
270 void CanvasContext::invokeFunctor(RenderThread& thread, Functor* functor) { argument
273 if (thread.eglManager().hasEglContext()) {
274 thread.eglManager().requireGlContext();
278 thread.renderState().invokeFunctor(functor, mode, NULL);
344 void CanvasContext::trimMemory(RenderThread& thread, int level) { argument
346 if (!thread
372 setTextureAtlas(RenderThread& thread, const sp<GraphicBuffer>& buffer, int64_t* map, size_t mapSize) argument
[all...]
H A DRenderProxy.cpp55 CREATE_BRIDGE4(createContext, RenderThread* thread, bool translucent, argument
57 return new CanvasContext(*args->thread, args->translucent,
67 args->thread = &mRenderThread;
94 CREATE_BRIDGE2(setFrameInterval, RenderThread* thread, nsecs_t frameIntervalNanos) { argument
95 args->thread->timeLord().setFrameInterval(args->frameIntervalNanos);
101 args->thread = &mRenderThread;
218 // the render thread.
222 CREATE_BRIDGE2(invokeFunctor, RenderThread* thread, Functor* functor) { argument
223 CanvasContext::invokeFunctor(*args->thread, args->functor);
229 RenderThread& thread local
255 CREATE_BRIDGE2(createTextureLayer, RenderThread* thread, CanvasContext* context) argument
326 CREATE_BRIDGE2(timMemory, RenderThread* thread, int level) argument
334 RenderThread& thread = RenderThread::getInstance(); local
397 CREATE_BRIDGE4(setTextureAtlas, RenderThread* thread, GraphicBuffer* buffer, int64_t* map, size_t size) argument
428 RenderThread& thread = RenderThread::getInstance(); local
[all...]
/frameworks/base/libs/hwui/thread/
H A DTaskManager.cpp67 sp<WorkerThread> thread; local
71 thread = mThreads[i];
76 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/av/services/audioflinger/
H A DPatchPanel.cpp232 sp<ThreadBase> thread = local
234 newPatch->mPlaybackThread = (MixerThread *)thread.get();
235 if (thread == 0) {
236 ALOGW("createAudioPatch() cannot get playback thread");
288 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
290 if (thread == 0) {
296 status = thread->sendCreateAudioPatchConfigEvent(patch, &halHandle);
307 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
309 if (thread == 0) {
331 status = thread
358 sp<ThreadBase> thread = local
590 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
604 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
627 sp<ThreadBase> thread = local
[all...]
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
141 wp<ThreadBase> mThread; // parent thread
237 // There can be any number of EffectChain objects per output mixer thread (PlaybackThread).
246 EffectChain(ThreadBase *thread, int sessionId);
358 void clearInputBuffer_l(sp<ThreadBase> thread);
360 void setThread(const sp<ThreadBase>& thread);
362 wp<ThreadBase> mThread; // parent mixer thread
[all...]
H A DPlaybackTracks.h25 Track( PlaybackThread *thread,
109 // FIXME parameters not needed, could get them from the thread
157 bool mFlushHwPending; // track requests for thread flush
167 static sp<TimedTrack> create(PlaybackThread *thread,
210 TimedTrack(PlaybackThread *thread,
261 OutputTrack(PlaybackThread *thread,
277 const wp<ThreadBase>& thread() const { return mThread; } function in class:OutputTrack
/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>
231 * to schedule work to be done asynchronously or in another thread, then you
374 * and spawns a thread to do its networking. If its process is killed
435 * service's main thread
698 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument
[all...]
/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.cpp538 MyThread* thread = new MyThread(mST); local
539 sp<Thread> threadBase(thread);
543 thread->run();
548 thread->bufferDequeued();
549 thread->requestExitAndWait();
/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/core/java/com/android/server/
H A DWatchdog.java54 // Set this to true to have the watchdog record kernel thread stacks when it fires
75 /* This handler will be used to post message back onto the main thread */
113 // to do a context switch to check the thread. Note that we
208 // Initialize handler checkers for each common thread we want to check. Note
209 // that we are not currently checking the background thread, since it can
213 // The shared foreground thread is the main checker. It is where we
216 "foreground thread", DEFAULT_TIMEOUT);
218 // Add checker for main thread. We only do a quick check since there
219 // can be UI running on the thread.
221 "main thread", DEFAULT_TIMEOU
271 addThread(Handler thread) argument
275 addThread(Handler thread, long timeoutMillis) 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/services/core/jni/
H A Dcom_android_server_tv_TvInputHal.cpp540 sp<BufferProducerThread> thread; local
546 ALOGE("capture thread not existing.");
549 thread = connection.mThread;
551 thread->onCaptured(seq, succeeded);
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c131 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe
569 // create thread to read from file
570 pthread_t thread; local
571 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL);
574 // give thread a head start so that the pipe is initially filled
H A Dplaybq.cpp131 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe
569 // create thread to read from file
570 pthread_t thread; local
571 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL);
574 // give thread a head start so that the pipe is initially filled
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessRecord.java61 IApplicationThread thread; // the actual proc... may be null only if field in class:ProcessRecord
239 pw.print(prefix); pw.print("thread="); pw.println(thread);
414 if (thread == null) {
436 thread = _thread;
440 thread = null;
483 if (deathRecipient != null && thread != null) {
484 thread.asBinder().unlinkToDeath(deathRecipient, 0);

Completed in 2473 milliseconds

12