Searched defs:thread (Results 1 - 25 of 34) 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/renderthread/
H A DDrawFrameTask.cpp41 void DrawFrameTask::setContext(RenderThread* thread, CanvasContext* context, argument
43 mRenderThread = thread;
H A DEglManager.cpp88 EglManager::EglManager(RenderThread& thread) argument
89 : mRenderThread(thread)
H A DRenderProxy.cpp60 CREATE_BRIDGE4(createContext, RenderThread* thread, bool translucent, argument
62 return new CanvasContext(*args->thread, args->translucent,
72 args->thread = &mRenderThread;
249 // the render thread.
253 CREATE_BRIDGE2(invokeFunctor, RenderThread* thread, Functor* functor) { argument
254 CanvasContext::invokeFunctor(*args->thread, args->functor);
260 RenderThread& thread = RenderThread::getInstance(); local
262 args->thread = &thread;
270 thread
358 CREATE_BRIDGE2(trimMemory, RenderThread* thread, int level) argument
366 RenderThread& thread = RenderThread::getInstance(); local
428 CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread, int fd, int dumpFlags) argument
463 CREATE_BRIDGE2(dumpGraphicsMemory, int fd, RenderThread* thread) argument
491 CREATE_BRIDGE4(setTextureAtlas, RenderThread* thread, GraphicBuffer* buffer, int64_t* map, size_t size) argument
508 CREATE_BRIDGE2(setProcessStatsBuffer, RenderThread* thread, int fd) argument
628 CREATE_BRIDGE3(copySurfaceInto, RenderThread* thread, Surface* surface, SkBitmap* bitmap) argument
643 CREATE_BRIDGE2(prepareToDraw, RenderThread* thread, SkBitmap* bitmap) argument
693 RenderThread& thread = RenderThread::getInstance(); local
[all...]
H A DCanvasContext.cpp64 CanvasContext::CanvasContext(RenderThread& thread, bool translucent, argument
66 : mRenderThread(thread)
67 , mEglManager(thread.eglManager())
70 , mJankTracker(thread.mainDisplayInfo())
321 // as we will just end up fighting the UI thread.
646 void CanvasContext::invokeFunctor(RenderThread& thread, Functor* functor) { argument
649 if (thread.eglManager().hasEglContext()) {
653 thread.renderState().invokeFunctor(functor, mode, nullptr);
738 void CanvasContext::trimMemory(RenderThread& thread, int level) { argument
740 if (!thread
762 setTextureAtlas(RenderThread& thread, const sp<GraphicBuffer>& buffer, int64_t* map, size_t mapSize) argument
[all...]
/frameworks/base/libs/hwui/thread/
H A DTaskManager.cpp37 // we do want to limit ourselves to 1 worker thread on dual-core devices.
67 sp<WorkerThread> thread; local
71 thread = mThreads[i];
76 return thread->addTask(wrapper);
/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 * However if there is no sync in progress then a thread will be spawned and {@link #onPerformSync}
34 * will be invoked on that thread.
44 * A sync is cancelled by issuing a {@link Thread#interrupt()} on the syncing thread. <strong>Either
138 * at the same time, each in their own thread. This must be consistent with the setting
234 * The thread that invokes {@link AbstractThreadedSyncAdapter#onPerformSync}. It also acquires
236 * this thread in order to cancel the sync.
341 * thread than the sync thread and so you must consider the multi-threaded implications
359 * thread tha
366 onSyncCanceled(Thread thread) argument
[all...]
/frameworks/volley/src/main/java/com/android/volley/
H A DVolleyLog.java81 * calling thread ID and method name.
106 * A simple event log with records containing a name, thread ID, and timestamp.
116 public final long thread; field in class:VolleyLog.MarkerLog.Marker
119 public Marker(String name, long thread, long time) { argument
121 this.thread = thread;
155 d("(+%-4d) [%2d] %s", (thisTime - prevTime), marker.thread, marker.name);
/frameworks/av/media/libstagefright/foundation/
H A DALooper.cpp133 sp<LooperThread> thread; local
139 thread = mThread;
145 if (thread == NULL && !runningLocally) {
149 if (thread != NULL) {
150 thread->requestExit();
159 if (!runningLocally && !thread->isCurrentThread()) {
160 // If not running locally and this thread _is_ the looper thread,
162 thread->requestExitAndWait();
/frameworks/av/services/audioflinger/
H A DPatchPanel.cpp264 sp<ThreadBase> thread = local
266 newPatch->mPlaybackThread = (MixerThread *)thread.get();
267 if (thread == 0) {
268 ALOGW("createAudioPatch() cannot get playback thread");
332 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
334 if (thread == 0) {
340 status = thread->sendCreateAudioPatchConfigEvent(patch, &halHandle);
381 sp<ThreadBase> thread = local
383 if (thread == 0) {
389 if (thread
611 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
638 sp<ThreadBase> thread = local
[all...]
H A DPlaybackTracks.h25 Track( PlaybackThread *thread,
114 // FIXME parameters not needed, could get them from the thread
150 // access these three variables only when holding thread lock.
171 bool mFlushHwPending; // track requests for thread flush
185 OutputTrack(PlaybackThread *thread,
201 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
145 wp<ThreadBase> mThread; // parent thread
241 // There can be any number of EffectChain objects per output mixer thread (PlaybackThread).
252 EffectChain(ThreadBase *thread, audio_session_t sessionId);
343 // isCompatibleWithThread_l() must be called with thread->mLock held
344 bool isCompatibleWithThread_l(const sp<ThreadBase>& thread) const;
373 void clearInputBuffer_l(sp<ThreadBase> thread);
[all...]
H A DTracks.cpp67 ThreadBase *thread,
80 mThread(thread),
100 mThreadIoHandle(thread->id())
139 const sp<MemoryDealer> roHeap(thread->readOnlyHeap());
154 mBufferMemory = thread->pipeMemory();
279 // will be freed from the main thread once all pending buffers have
335 PlaybackThread *thread,
348 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount,
358 mMainBuffer(thread->mixBuffer()),
391 mName = thread
66 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, audio_session_t sessionId, int clientUid, bool isOut, alloc_type alloc, track_type type) argument
334 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, void *buffer, const sp<IMemory>& sharedBuffer, audio_session_t sessionId, int uid, audio_output_flags_t flags, track_type type) argument
449 sp<ThreadBase> thread = mThread.promote(); local
635 sp<ThreadBase> thread = mThread.promote(); local
712 sp<ThreadBase> thread = mThread.promote(); local
744 sp<ThreadBase> thread = mThread.promote(); local
775 sp<ThreadBase> thread = mThread.promote(); local
863 sp<ThreadBase> thread = mThread.promote(); local
880 sp<ThreadBase> thread = mThread.promote(); local
893 sp<ThreadBase> thread = mThread.promote(); local
1064 sp<ThreadBase> thread = mThread.promote(); local
1274 sp<ThreadBase> thread = mThread.promote(); local
1471 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, audio_session_t sessionId, int uid, audio_input_flags_t flags, track_type type) argument
1558 sp<ThreadBase> thread = mThread.promote(); local
1569 sp<ThreadBase> thread = mThread.promote(); local
1589 sp<ThreadBase> thread = mThread.promote(); local
[all...]
/frameworks/base/core/java/android/app/
H A DService.java49 * thread of their hosting process. This means that, if your service is going
51 * networking) operations, it should spawn its own thread in which to do that
55 * as a standard implementation of Service that has its own thread where it
84 * <li> A Service is <b>not</b> a thread. It is not a means itself to do work off
85 * of the main thread (to avoid Application Not Responding errors).
107 * main thread. It is up to the Service to implement these with the appropriate
108 * behavior, such as creating a secondary thread in which it does its work.</p>
235 * to schedule work to be done asynchronously or in another thread, then you
404 * and spawns a thread to do its networking. If its process is killed
486 * service's main thread
759 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DRenderState.cpp27 RenderState::RenderState(renderthread::RenderThread& thread) argument
28 : mRenderThread(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.cpp562 MyThread* thread = new MyThread(mST); local
563 sp<Thread> threadBase(thread);
567 thread->run("MyThread");
572 thread->bufferDequeued();
573 thread->requestExitAndWait();
/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
78 (thread == null) ? BackgroundThread.getHandler() : new Handler(thread));
/frameworks/base/services/core/java/com/android/server/
H A DWatchdog.java53 // Set this to true to have the watchdog record kernel thread stacks when it fires
81 /* This handler will be used to post message back onto the main thread */
119 // to do a context switch to check the thread. Note that we
201 * there is a binder thread available to process in coming IPCs to make sure other processes
225 // Initialize handler checkers for each common thread we want to check. Note
226 // that we are not currently checking the background thread, since it can
230 // The shared foreground thread is the main checker. It is where we
233 "foreground thread", DEFAULT_TIMEOUT);
235 // Add checker for main thread. We only do a quick check since there
236 // can be UI running on the thread
291 addThread(Handler thread) argument
295 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/java/com/android/server/connectivity/
H A DNetworkDiagnostics.java123 Thread thread; field in class:NetworkDiagnostics.Measurement
227 measurement.thread = new Thread(new IcmpCheck(target, measurement));
239 measurement.thread = new Thread(new IcmpCheck(source, target, measurement));
249 measurement.thread = new Thread(new DnsUdpCheck(target, measurement));
260 measurement.thread.start();
263 measurement.thread.start();
266 measurement.thread.start();
/frameworks/base/services/core/jni/
H A Dcom_android_server_tv_TvInputHal.cpp537 sp<BufferProducerThread> thread; local
543 ALOGE("capture thread not existing.");
546 thread = connection.mThread;
548 thread->onCaptured(seq, succeeded);
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c113 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe
541 // create thread to read from file
542 pthread_t thread; local
543 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL);
546 // give thread a head start so that the pipe is initially filled
602 // wait for reader thread to exit
603 ok = pthread_join(thread, (void **) NULL);
H A Dplaybq.cpp113 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe
541 // create thread to read from file
542 pthread_t thread; local
543 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL);
546 // give thread a head start so that the pipe is initially filled
602 // wait for reader thread to exit
603 ok = pthread_join(thread, (void **) NULL);

Completed in 552 milliseconds

12