Searched refs:thread (Results 1 - 25 of 93) 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.java36 /** Helper class to run test code in a new thread with a Looper. */
56 LooperThread thread = new LooperThread() {
101 thread.start();
102 thread.join();
103 if (thread.mError != null) throw thread.mError;
104 assertTrue(thread.mSuccess);
/frameworks/base/media/java/android/mtp/
H A DMtpServer.java39 Thread thread = new Thread(this, "MtpServer");
40 thread.start();
/frameworks/base/libs/hwui/
H A DDeviceInfo.cpp23 #include <thread>
/frameworks/base/core/java/android/app/
H A DIntentService.java33 * thread, and stops itself when it runs out of work.
36 * from an application's main thread. The IntentService class exists to
39 * will receive the Intents, launch a worker thread, and stop the service as
42 * <p>All requests are handled on a single worker thread -- they may take as
76 * @param name Used to name the worker thread, important only for debugging.
110 HandlerThread thread = new HandlerThread("IntentService[" + mName + "]");
111 thread.start();
113 mServiceLooper = thread.getLooper();
154 * This method is invoked on the worker thread with a request to process.
156 * worker thread tha
[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/av/services/audioflinger/
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...]
H A DAudioFlinger.cpp614 // further sample rate checks are performed by createTrack_l() depending on the thread type
621 // further channel mask checks are performed by createTrack_l() depending on the thread type
628 // further format checks are performed by createTrack_l() depending on the thread type
643 PlaybackThread *thread = checkPlaybackThread_l(output); local
644 if (thread == NULL) {
645 ALOGE("no playback thread found for output handle %d", output);
661 // output thread and move it here.
681 track = thread->createTrack_l(client, streamType, sampleRate, format,
686 // move effect chain to this output thread if an effect on same session was waiting
690 Mutex::Autolock _dl(thread
737 ThreadBase *thread = checkThread_l(ioHandle); local
748 PlaybackThread *thread = checkPlaybackThread_l(output); local
759 ThreadBase *thread = checkThread_l(ioHandle); local
772 ThreadBase *thread = checkThread_l(ioHandle); local
783 PlaybackThread *thread = checkPlaybackThread_l(output); local
1006 PlaybackThread *thread = NULL; local
1063 PlaybackThread *thread = checkPlaybackThread_l(output); local
1131 sp<RecordThread> thread = mRecordThreads.valueAt(i); local
1162 sp<ThreadBase> thread; local
1405 sp<PlaybackThread> thread; local
1541 RecordThread *thread = checkRecordThread_l(input); local
1706 PlaybackThread *thread = fastPlaybackThread_l(); local
1713 PlaybackThread *thread = fastPlaybackThread_l(); local
1772 sp<PlaybackThread> thread = mPlaybackThreads.valueAt(i); local
1796 ThreadBase *thread = (ThreadBase *)mPlaybackThreads.valueAt(i).get(); local
1800 ThreadBase *thread = (ThreadBase *)mRecordThreads.valueAt(i).get(); local
1807 setAudioHwSyncForSession_l(PlaybackThread *thread, audio_session_t sessionId) argument
1880 PlaybackThread *thread; local
1922 sp<PlaybackThread> thread = openOutput_l(module, output, config, *devices, address, flags); local
1959 DuplicatingThread *thread = new DuplicatingThread(this, thread1, id, mSystemReady); local
1976 sp<PlaybackThread> thread; local
2027 closeOutputFinish(sp<PlaybackThread> thread) argument
2036 closeOutputInternal_l(sp<PlaybackThread> thread) argument
2046 PlaybackThread *thread = checkPlaybackThread_l(output); local
2061 PlaybackThread *thread = checkPlaybackThread_l(output); local
2088 sp<RecordThread> thread = openInput_l(module, input, config, *devices, address, source, flags); local
2212 sp<RecordThread> thread = new RecordThread(this, local
2240 sp<RecordThread> thread; local
2297 closeInputFinish(sp<RecordThread> thread) argument
2307 closeInputInternal_l(sp<RecordThread> thread) argument
2319 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
2460 ThreadBase *thread = NULL; local
2483 PlaybackThread *thread = checkPlaybackThread_l(output); local
2517 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
2531 PlaybackThread *thread = primaryPlaybackThread_l(); local
2545 PlaybackThread *thread = mPlaybackThreads.valueAt(i).get(); local
2771 ThreadBase *thread = checkRecordThread_l(io); 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);
342 sp<ThreadBase> thread; local
351 thread
476 sp<ThreadBase> thread = mThread.promote(); local
564 sp<ThreadBase> thread = mThread.promote(); local
1155 sp<ThreadBase> thread = mEffect->thread().promote(); local
1213 sp<ThreadBase> thread = mEffect->thread().promote(); local
1239 sp<ThreadBase> thread = mEffect->thread().promote(); local
1400 EffectChain(ThreadBase *thread, audio_session_t sessionId) argument
1467 sp<ThreadBase> thread = mThread.promote(); local
1476 clearInputBuffer_l(sp<ThreadBase> thread) argument
1490 sp<ThreadBase> thread = mThread.promote(); local
1543 sp<ThreadBase> thread = mThread.promote(); local
2026 setThread(const sp<ThreadBase>& thread) argument
[all...]
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 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...]
/frameworks/base/libs/hwui/tests/microbench/
H A DFrameBuilderBench.cpp62 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
75 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
78 RenderState& renderState = thread.renderState();
115 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
131 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
136 RenderState& renderState = thread.renderState();
H A DFontBench.cpp28 TestUtils::runOnRenderThread([&state](renderthread::RenderThread& thread) {
/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/libs/hwui/renderthread/
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 DDrawFrameTask.cpp41 void DrawFrameTask::setContext(RenderThread* thread, CanvasContext* context, argument
43 mRenderThread = thread;
/frameworks/base/libs/hwui/tests/unit/
H A DGpuMemoryTrackerTests.cpp42 // current thread can spoof being a GPU thread
45 TestUtils::runOnRenderThread([](RenderThread& thread) {
46 thread.eglManager().destroy();
/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();

Completed in 2208 milliseconds

1234