Searched refs:thread (Results 1 - 25 of 81) sorted by relevance

1234

/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/opt/bitmap/src/com/android/bitmap/
H A DNamedThreadFactory.java35 final Thread thread = mDefaultThreadFactory.newThread(runnable);
36 thread.setName(mBaseName + "-" + mCount.getAndIncrement());
37 return thread;
/frameworks/base/core/tests/coretests/src/android/content/
H A DContentQueryMapTest.java34 /** Helper class to run test code in a new thread with a Looper. */
54 LooperThread thread = new LooperThread() {
99 thread.start();
100 thread.join();
101 if (thread.mError != null) throw thread.mError;
102 assertTrue(thread.mSuccess);
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp567 // further sample rate checks are performed by createTrack_l() depending on the thread type
574 // further channel mask checks are performed by createTrack_l() depending on the thread type
581 // further format checks are performed by createTrack_l() depending on the thread type
596 PlaybackThread *thread = checkPlaybackThread_l(output); local
597 if (thread == NULL) {
598 ALOGE("no playback thread found for output handle %d", output);
610 // output thread and move it here.
630 track = thread->createTrack_l(client, streamType, sampleRate, format,
635 // move effect chain to this output thread if an effect on same session was waiting
639 Mutex::Autolock _dl(thread
686 PlaybackThread *thread = checkPlaybackThread_l(output); local
697 PlaybackThread *thread = checkPlaybackThread_l(output); local
708 PlaybackThread *thread = checkPlaybackThread_l(output); local
721 PlaybackThread *thread = checkPlaybackThread_l(output); local
944 PlaybackThread *thread = NULL; local
1001 PlaybackThread *thread = checkPlaybackThread_l(output); local
1063 sp<RecordThread> thread = mRecordThreads.valueAt(i); local
1094 sp<ThreadBase> thread; local
1336 sp<PlaybackThread> thread; local
1484 RecordThread *thread = checkRecordThread_l(input); local
1647 PlaybackThread *thread = primaryPlaybackThread_l(); local
1654 PlaybackThread *thread = primaryPlaybackThread_l(); local
1713 sp<PlaybackThread> thread = mPlaybackThreads.valueAt(i); local
1737 ThreadBase *thread = (ThreadBase *)mPlaybackThreads.valueAt(i).get(); local
1741 ThreadBase *thread = (ThreadBase *)mRecordThreads.valueAt(i).get(); local
1748 setAudioHwSyncForSession_l(PlaybackThread *thread, audio_session_t sessionId) argument
1817 PlaybackThread *thread; local
1859 sp<PlaybackThread> thread = openOutput_l(module, output, config, *devices, address, flags); local
1896 DuplicatingThread *thread = new DuplicatingThread(this, thread1, id, mSystemReady); local
1913 sp<PlaybackThread> thread; local
1964 closeOutputFinish(sp<PlaybackThread> thread) argument
1973 closeOutputInternal_l(sp<PlaybackThread> thread) argument
1983 PlaybackThread *thread = checkPlaybackThread_l(output); local
1998 PlaybackThread *thread = checkPlaybackThread_l(output); local
2025 sp<RecordThread> thread = openInput_l(module, input, config, *devices, address, source, flags); local
2139 sp<RecordThread> thread = new RecordThread(this, local
2167 sp<RecordThread> thread; local
2224 closeInputFinish(sp<RecordThread> thread) argument
2234 closeInputInternal_l(sp<RecordThread> thread) argument
2246 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
2387 PlaybackThread *thread = checkPlaybackThread_l(output); local
2405 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
2419 PlaybackThread *thread = primaryPlaybackThread_l(); local
2640 ThreadBase *thread = checkRecordThread_l(io); local
[all...]
H A DTracks.cpp66 ThreadBase *thread,
80 mThread(thread),
101 mThreadIoHandle(thread->id())
142 const sp<MemoryDealer> roHeap(thread->readOnlyHeap());
157 mBufferMemory = thread->pipeMemory();
282 // will be freed from the main thread once all pending buffers have
375 PlaybackThread *thread,
388 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount,
398 mMainBuffer(thread->mixBuffer()),
428 mName = thread
65 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, int sessionId, int clientUid, IAudioFlinger::track_flags_t flags, bool isOut, alloc_type alloc, track_type type) argument
374 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, int sessionId, int uid, IAudioFlinger::track_flags_t flags, track_type type) argument
486 sp<ThreadBase> thread = mThread.promote(); local
660 sp<ThreadBase> thread = mThread.promote(); local
732 sp<ThreadBase> thread = mThread.promote(); local
761 sp<ThreadBase> thread = mThread.promote(); local
792 sp<ThreadBase> thread = mThread.promote(); local
874 sp<ThreadBase> thread = mThread.promote(); local
892 sp<ThreadBase> thread = mThread.promote(); local
936 sp<ThreadBase> thread = mThread.promote(); local
1084 sp<ThreadBase> thread = mThread.promote(); local
1122 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
1142 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
1773 sp<ThreadBase> thread = mThread.promote(); local
1938 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, int sessionId, int uid, IAudioFlinger::track_flags_t flags, track_type type) argument
2025 sp<ThreadBase> thread = mThread.promote(); local
2036 sp<ThreadBase> thread = mThread.promote(); local
2056 sp<ThreadBase> thread = mThread.promote(); local
[all...]
H A DEffects.cpp58 AudioFlinger::EffectModule::EffectModule(ThreadBase *thread, argument
64 mThread(thread), mChain(chain), mId(id), mSessionId(sessionId),
72 mAudioFlinger(thread->mAudioFlinger)
78 mStatus = EffectCreate(&desc->uuid, sessionId, thread->id(), &mEffectInterface);
203 sp<ThreadBase> thread = mThread.promote(); local
204 if (thread != 0) {
205 Mutex::Autolock _l(thread->mLock);
206 thread->removeEffect_l(this);
321 sp<ThreadBase> thread; local
330 thread
455 sp<ThreadBase> thread = mThread.promote(); local
535 sp<ThreadBase> thread = mThread.promote(); local
1098 sp<ThreadBase> thread = mEffect->thread().promote(); local
1156 sp<ThreadBase> thread = mEffect->thread().promote(); local
1182 sp<ThreadBase> thread = mEffect->thread().promote(); local
1343 EffectChain(ThreadBase *thread, int sessionId) argument
1410 sp<ThreadBase> thread = mThread.promote(); local
1419 clearInputBuffer_l(sp<ThreadBase> thread) argument
1433 sp<ThreadBase> thread = mThread.promote(); local
1482 sp<ThreadBase> thread = mThread.promote(); local
1955 setThread(const sp<ThreadBase>& thread) argument
[all...]
H A DPatchPanel.cpp223 sp<ThreadBase> thread = local
225 newPatch->mPlaybackThread = (MixerThread *)thread.get();
226 if (thread == 0) {
227 ALOGW("createAudioPatch() cannot get playback thread");
278 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
280 if (thread == 0) {
286 status = thread->sendCreateAudioPatchConfigEvent(patch, &halHandle);
327 sp<ThreadBase> thread = local
329 if (thread == 0) {
335 if (thread
553 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
580 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...]
/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp62 CREATE_BRIDGE4(createContext, RenderThread* thread, bool translucent, argument
64 return new CanvasContext(*args->thread, args->translucent,
74 args->thread = &mRenderThread;
237 // the render thread.
241 CREATE_BRIDGE2(invokeFunctor, RenderThread* thread, Functor* functor) { argument
242 CanvasContext::invokeFunctor(*args->thread, args->functor);
248 RenderThread& thread = RenderThread::getInstance(); local
250 args->thread = &thread;
258 thread
274 CREATE_BRIDGE2(createTextureLayer, RenderThread* thread, CanvasContext* context) argument
345 CREATE_BRIDGE2(trimMemory, RenderThread* thread, int level) argument
353 RenderThread& thread = RenderThread::getInstance(); local
409 CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread, int fd, int dumpFlags) argument
442 CREATE_BRIDGE2(dumpGraphicsMemory, int fd, RenderThread* thread) argument
465 CREATE_BRIDGE4(setTextureAtlas, RenderThread* thread, GraphicBuffer* buffer, int64_t* map, size_t size) argument
481 CREATE_BRIDGE2(setProcessStatsBuffer, RenderThread* thread, int fd) argument
509 RenderThread& thread = RenderThread::getInstance(); local
[all...]
H A DCanvasContext.h63 CanvasContext(RenderThread& thread, bool translucent, RenderNode* rootRenderNode,
93 static void trimMemory(RenderThread& thread, int level);
95 static void invokeFunctor(RenderThread& thread, Functor* functor);
101 ANDROID_API static void setTextureAtlas(RenderThread& thread,
H A DCanvasContext.cpp42 CanvasContext::CanvasContext(RenderThread& thread, bool translucent, argument
44 : mRenderThread(thread)
45 , mEglManager(thread.eglManager())
49 , mJankTracker(thread.timeLord().frameIntervalNanos())
210 // as we will just end up fighting the UI thread.
305 void CanvasContext::invokeFunctor(RenderThread& thread, Functor* functor) { argument
308 if (thread.eglManager().hasEglContext()) {
312 thread.renderState().invokeFunctor(functor, mode, nullptr);
378 void CanvasContext::trimMemory(RenderThread& thread, int level) { argument
380 if (!thread
402 setTextureAtlas(RenderThread& thread, const sp<GraphicBuffer>& buffer, int64_t* map, size_t mapSize) argument
[all...]
H A DDrawFrameTask.cpp43 void DrawFrameTask::setContext(RenderThread* thread, CanvasContext* context) { argument
44 mRenderThread = thread;
/frameworks/base/media/java/android/mtp/
H A DMtpServer.java37 Thread thread = new Thread(this, "MtpServer");
38 thread.start();
/frameworks/base/core/java/android/app/
H A DIntentService.java32 * thread, and stops itself when it runs out of work.
35 * from an application's main thread. The IntentService class exists to
38 * will receive the Intents, launch a worker thread, and stop the service as
41 * <p>All requests are handled on a single worker thread -- they may take as
74 * @param name Used to name the worker thread, important only for debugging.
108 HandlerThread thread = new HandlerThread("IntentService[" + mName + "]");
109 thread.start();
111 mServiceLooper = thread.getLooper();
151 * This method is invoked on the worker thread with a request to process.
153 * worker thread tha
[all...]
H A DService.java46 * thread of their hosting process. This means that, if your service is going
48 * networking) operations, it should spawn its own thread in which to do that
52 * as a standard implementation of Service that has its own thread where it
81 * <li> A Service is <b>not</b> a thread. It is not a means itself to do work off
82 * of the main thread (to avoid Application Not Responding errors).
104 * main thread. It is up to the Service to implement these with the appropriate
105 * behavior, such as creating a secondary thread in which it does its work.</p>
232 * to schedule work to be done asynchronously or in another thread, then you
375 * and spawns a thread to do its networking. If its process is killed
436 * service's main thread
700 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
H A DPduCache.java104 HashSet<Uri> thread = mThreads.get(threadId);
105 if (thread == null) {
106 thread = new HashSet<Uri>();
107 mThreads.put(threadId, thread);
114 thread.add(finalKey);
232 HashSet<Uri> thread = mThreads.get(entry.getThreadId());
233 if (thread != null) {
234 thread.remove(key);
240 Log.v(TAG, "Purge cache in thread: " + threadId);
243 HashSet<Uri> thread
[all...]
/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/base/core/tests/coretests/src/android/database/
H A DDatabaseLockTest.java66 * same database at the same time with the same prioritization, neither thread
90 * This function is to create the second thread for testLockFairness() test.
93 Thread thread = new DatabaseFairnessThread();
94 thread.start();
147 * This function is to create the second thread for testLockLatency() test.
150 Thread thread = new DatabaseLatencyThread();
151 thread.start();
/frameworks/base/tools/layoutlib/bridge/src/android/os/
H A DHandlerThread_Delegate.java44 for (HandlerThread thread : list) {
45 thread.quit();
57 // record the thread so that it can be quit() on clean up.
/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/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/widget/
H A DFilter.java104 HandlerThread thread = new HandlerThread(
106 thread.start();
107 mThreadHandler = new RequestHandler(thread.getLooper());
128 * <p>Invoked in a worker thread to filter the data according to the
132 * will then be published in the UI thread through
149 * <p>Invoked in the UI thread to publish the filtering results in the
211 * <p>Worker thread handler. When a new filtering request is posted from
265 * handled in the UI thread.</p>
270 * UI thread. The processing involves calling
/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/core/tests/coretests/src/android/content/pm/
H A DPackageHelperTests.java94 Thread thread = new Thread(r1);
97 thread.start();
/frameworks/base/libs/hwui/
H A DDeferredLayerUpdater.cpp27 DeferredLayerUpdater::DeferredLayerUpdater(renderthread::RenderThread& thread, Layer* layer) argument
34 , mRenderThread(thread) {

Completed in 626 milliseconds

1234