/frameworks/base/libs/hwui/tests/unit/ |
H A D | ThreadBaseTests.cpp | 19 #include "thread/ThreadBase.h" 28 static ThreadBase& thread() { 29 class TestThread : public ThreadBase, public virtual RefBase {}; 43 TEST(ThreadBase, post) { 52 TEST(ThreadBase, postDelay) { 63 TEST(ThreadBase, runSync) { 76 TEST(ThreadBase, async) { 89 TEST(ThreadBase, lifecyclePerf) { 144 TEST(ThreadBase, lifecycle) {
|
/frameworks/base/libs/hwui/hwui/ |
H A D | AnimatedImageThread.h | 21 #include "thread/ThreadBase.h" 29 class AnimatedImageThread : private ThreadBase {
|
/frameworks/base/libs/hwui/thread/ |
H A D | ThreadBase.h | 30 class ThreadBase : protected Thread { class in namespace:android::uirenderer 31 PREVENT_COPY_AND_ASSIGN(ThreadBase); 34 ThreadBase() function in class:android::uirenderer::ThreadBase 46 void start(const char* name = "ThreadBase") { Thread::run(name); }
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderThread.h | 25 #include "thread/ThreadBase.h" 34 #include <thread/ThreadBase.h> 73 class RenderThread : private ThreadBase { 80 WorkQueue& queue() { return ThreadBase::queue(); }
|
H A D | RenderThread.cpp | 128 : ThreadBase()
|
/frameworks/av/services/audioflinger/ |
H A D | Effects.h | 27 // AudioFlinger -> ThreadBase -> EffectChain -> EffectModule 28 // AudioHandle -> ThreadBase -> EffectChain -> EffectModule 45 EffectModule(ThreadBase *thread, 98 void setThread(const wp<ThreadBase>& thread) { mThread = thread; } 99 const wp<ThreadBase>& thread() { return mThread; } 152 wp<ThreadBase> mThread; // parent thread 272 EffectChain(const wp<ThreadBase>& wThread, audio_session_t sessionId); 273 EffectChain(ThreadBase *thread, audio_session_t sessionId); 294 ThreadBase *thread, 372 bool isCompatibleWithThread_l(const sp<ThreadBase> [all...] |
H A D | MmapTracks.h | 25 MmapTrack(ThreadBase *thread,
|
H A D | Tracks.cpp | 63 AudioFlinger::ThreadBase::TrackBase::TrackBase( 64 ThreadBase *thread, 234 status_t AudioFlinger::ThreadBase::TrackBase::initCheck() const 245 AudioFlinger::ThreadBase::TrackBase::~TrackBase() 274 void AudioFlinger::ThreadBase::TrackBase::releaseBuffer(AudioBufferProvider::Buffer* buffer) 290 status_t AudioFlinger::ThreadBase::TrackBase::setSyncEvent(const sp<SyncEvent>& event) 372 // Track constructor must be called with AudioFlinger::mLock and ThreadBase::mLock held 494 sp<ThreadBase> thread = mThread.promote(); 716 sp<ThreadBase> thread = mThread.promote(); 799 sp<ThreadBase> threa [all...] |
H A D | TrackBase.h | 62 TrackBase(ThreadBase *thread, 183 const wp<ThreadBase> mThread;
|
H A D | Threads.cpp | 432 // ThreadBase 436 const char *AudioFlinger::ThreadBase::threadTypeToString(AudioFlinger::ThreadBase::type_t type) 500 AudioFlinger::ThreadBase::ThreadBase(const sp<AudioFlinger>& audioFlinger, audio_io_handle_t id, function in class:android::AudioFlinger::ThreadBase 520 AudioFlinger::ThreadBase::~ThreadBase() 533 status_t AudioFlinger::ThreadBase::readyToRun() 544 void AudioFlinger::ThreadBase::exit() 546 ALOGV("ThreadBase [all...] |
H A D | Effects.cpp | 62 AudioFlinger::EffectModule::EffectModule(ThreadBase *thread, 108 setOffloaded(thread->type() == ThreadBase::OFFLOAD, thread->id()); 496 sp<ThreadBase> thread; 712 sp<ThreadBase> thread = mThread.promote(); 810 sp<ThreadBase> thread = mThread.promote(); 1519 sp<ThreadBase> thread = effect->thread().promote(); 1537 if (thread->type() == ThreadBase::OFFLOAD || thread->type() == ThreadBase::MMAP) { 1542 if (thread->type() == ThreadBase::OFFLOAD) { 1578 sp<ThreadBase> threa [all...] |
H A D | PatchPanel.cpp | 264 sp<ThreadBase> thread = 277 sp<ThreadBase> thread = audioflinger->openOutput_l( 314 sp<ThreadBase> thread = audioflinger->openInput_l(srcModule, 334 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( 381 sp<ThreadBase> thread = 613 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( 639 sp<ThreadBase> thread =
|
H A D | Threads.h | 22 class ThreadBase : public Thread { class in inherits:Thread 34 // If you add any values here, also update ThreadBase::threadTypeToString() 39 ThreadBase(const sp<AudioFlinger>& audioFlinger, audio_io_handle_t id, 42 virtual ~ThreadBase(); 225 explicit PMDeathRecipient(const wp<ThreadBase>& thread) : mThread(thread) {} 234 wp<ThreadBase> mThread; 267 // sendConfigEvent_l() must be called with ThreadBase::mLock held 319 // same as getEffectChain() but must be called with ThreadBase mutex locked 326 // ThreadBase mutex before processing the mixer and effects. This guarantees the 390 // checkEffectCompatibility_l() must be called with ThreadBase [all...] |
H A D | AudioFlinger.cpp | 745 if (sessions & ThreadBase::EFFECT_SESSION) { 825 ThreadBase *thread = checkThread_l(ioHandle); 847 ThreadBase *thread = checkThread_l(ioHandle); 860 ThreadBase *thread = checkThread_l(ioHandle); 1279 sp<ThreadBase> thread; 1329 ThreadBase *thread = (ThreadBase *)checkPlaybackThread_l(ioHandle); 1331 thread = (ThreadBase *)checkRecordThread_l(ioHandle); 1333 thread = (ThreadBase *)checkMmapThread_l(ioHandle); 1460 // mClientLock should not be held here because ThreadBase [all...] |
H A D | PlaybackTracks.h | 239 const wp<ThreadBase>& thread() const { return mThread; }
|
H A D | AudioFlinger.h | 594 ThreadBase *checkThread_l(audio_io_handle_t ioHandle) const; 602 sp<ThreadBase> openInput_l(audio_module_handle_t module, 609 sp<ThreadBase> openOutput_l(audio_module_handle_t module, 705 // must be locked after mLock and ThreadBase::mLock if both must be locked
|
/frameworks/base/libs/hwui/tests/microbench/ |
H A D | TaskManagerBench.cpp | 22 #include "thread/ThreadBase.h" 42 class TestThread : public ThreadBase, public virtual RefBase {};
|