Home
last modified time | relevance | path

Searched refs:ThreadBase (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DThreadBaseTests.cpp28 static ThreadBase& thread() { in thread()
29 class TestThread : public ThreadBase, public virtual RefBase {}; in thread()
43 TEST(ThreadBase, post) { in TEST() argument
52 TEST(ThreadBase, postDelay) { in TEST() argument
63 TEST(ThreadBase, runSync) { in TEST() argument
76 TEST(ThreadBase, async) { in TEST() argument
89 TEST(ThreadBase, lifecyclePerf) { in TEST() argument
144 TEST(ThreadBase, lifecycle) { in TEST() argument
/frameworks/av/services/audioflinger/
DEffects.h45 EffectModule(ThreadBase *thread,
100 void setThread(const wp<ThreadBase>& thread) in setThread()
102 const wp<ThreadBase>& thread() { return mThread; } in thread()
163 wp<ThreadBase> mThread; // parent thread
164 ThreadBase::type_t mThreadType; // parent thread type
312 EffectChain(const wp<ThreadBase>& wThread, audio_session_t sessionId);
313 EffectChain(ThreadBase *thread, audio_session_t sessionId);
334 ThreadBase *thread,
414 bool isCompatibleWithThread_l(const sp<ThreadBase>& thread) const;
444 void clearInputBuffer_l(const sp<ThreadBase>& thread);
[all …]
DTracks.cpp65 AudioFlinger::ThreadBase::TrackBase::TrackBase( in TrackBase()
66 ThreadBase *thread, in TrackBase()
225 status_t AudioFlinger::ThreadBase::TrackBase::initCheck() const in initCheck()
236 AudioFlinger::ThreadBase::TrackBase::~TrackBase() in ~TrackBase()
262 void AudioFlinger::ThreadBase::TrackBase::releaseBuffer(AudioBufferProvider::Buffer* buffer) in releaseBuffer()
276 status_t AudioFlinger::ThreadBase::TrackBase::setSyncEvent(const sp<SyncEvent>& event) in setSyncEvent()
282 AudioFlinger::ThreadBase::PatchTrackBase::PatchTrackBase(sp<ClientProxy> proxy, in PatchTrackBase()
283 const ThreadBase& thread, in PatchTrackBase()
297 void AudioFlinger::ThreadBase::PatchTrackBase::setPeerTimeout(std::chrono::nanoseconds timeout) { in setPeerTimeout()
582 mServerLatencySupported = thread->type() == ThreadBase::MIXER in Track()
[all …]
DEffects.cpp64 AudioFlinger::EffectModule::EffectModule(ThreadBase *thread, in EffectModule()
110 setOffloaded(thread->type() == ThreadBase::OFFLOAD, thread->id());
189 sp <ThreadBase> thread = mThread.promote(); in updatePolicyState()
566 sp<ThreadBase> thread; in configure()
622 if ((thread->type() == ThreadBase::OFFLOAD) && !isOffloaded()) { in configure()
789 sp<ThreadBase> thread = mThread.promote(); in addEffectToHal_l()
897 sp<ThreadBase> thread = mThread.promote(); in remove_effect_from_hal_l()
1080 return (mThreadType == ThreadBase::OFFLOAD || mThreadType == ThreadBase::DIRECT); in isOffloadedOrDirect()
1220 sp<ThreadBase> thread = mThread.promote(); in setVolumeForOutput_l()
1222 (thread->type() == ThreadBase::OFFLOAD || thread->type() == ThreadBase::DIRECT) && in setVolumeForOutput_l()
[all …]
DThreads.cpp442 const char *AudioFlinger::ThreadBase::threadTypeToString(AudioFlinger::ThreadBase::type_t type) in threadTypeToString()
462 AudioFlinger::ThreadBase::ThreadBase(const sp<AudioFlinger>& audioFlinger, audio_io_handle_t id, in ThreadBase() function in android::AudioFlinger::ThreadBase
482 AudioFlinger::ThreadBase::~ThreadBase() in ~ThreadBase()
497 status_t AudioFlinger::ThreadBase::readyToRun() in readyToRun()
508 void AudioFlinger::ThreadBase::exit() in exit()
532 status_t AudioFlinger::ThreadBase::setParameters(const String8& keyValuePairs) in setParameters()
542 status_t AudioFlinger::ThreadBase::sendConfigEvent_l(sp<ConfigEvent>& event) in sendConfigEvent_l()
569 void AudioFlinger::ThreadBase::sendIoConfigEvent(audio_io_config_event event, pid_t pid, in sendIoConfigEvent()
577 void AudioFlinger::ThreadBase::sendIoConfigEvent_l(audio_io_config_event event, pid_t pid, in sendIoConfigEvent_l()
593 void AudioFlinger::ThreadBase::sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp) in sendPrioConfigEvent()
[all …]
DTrackBase.h57 TrackBase(ThreadBase *thread,
277 const wp<ThreadBase> mThread;
339 PatchTrackBase(sp<ClientProxy> proxy, const ThreadBase& thread,
DThreads.h22 class ThreadBase : public Thread {
39 ThreadBase(const sp<AudioFlinger>& audioFlinger, audio_io_handle_t id,
42 virtual ~ThreadBase();
224 explicit PMDeathRecipient(const wp<ThreadBase>& thread) : mThread(thread) {} in PMDeathRecipient()
233 wp<ThreadBase> mThread;
640 void updatePowerState(sp<ThreadBase> thread, bool force = false);
689 class PlaybackThread : public ThreadBase, public StreamOutHalInterfaceCallback,
770 ThreadBase::acquireWakeLock_l(); in acquireWakeLock_l()
851 return ThreadBase::hasAudioSession_l(sessionId, mTracks); in hasAudioSession_l()
1307 audio_io_handle_t id, audio_devices_t device, ThreadBase::type_t type,
[all …]
DAudioFlinger.cpp773 if (sessions & ThreadBase::EFFECT_SESSION) { in createTrack()
925 ThreadBase *thread = checkThread_l(ioHandle); in sampleRate()
947 ThreadBase *thread = checkThread_l(ioHandle); in frameCount()
960 ThreadBase *thread = checkThread_l(ioHandle); in frameCountHAL()
1459 sp<ThreadBase> thread; in setParameters()
1511 ThreadBase *thread = (ThreadBase *)checkPlaybackThread_l(ioHandle); in getParameters()
1513 thread = (ThreadBase *)checkRecordThread_l(ioHandle); in getParameters()
1515 thread = (ThreadBase *)checkMmapThread_l(ioHandle); in getParameters()
1712 sp<AudioFlinger::ThreadBase> AudioFlinger::getEffectThread_l(audio_session_t sessionId, in getEffectThread_l()
1715 sp<ThreadBase> thread; in getEffectThread_l()
[all …]
DPatchPanel.cpp225 sp<ThreadBase> thread = in createAudioPatch()
251 sp<ThreadBase> thread = mAudioFlinger.openOutput_l( in createAudioPatch()
290 sp<ThreadBase> thread = mAudioFlinger.openInput_l(srcModule, in createAudioPatch()
315 sp<ThreadBase> thread = mAudioFlinger.checkRecordThread_l( in createAudioPatch()
369 sp<ThreadBase> thread = in createAudioPatch()
586 ThreadBase::TrackBase::FrameTime recordFT{}, playFT{}; in getLatencyMs()
657 sp<ThreadBase> thread = mAudioFlinger.checkRecordThread_l(ioHandle); in releaseAudioPatch()
678 sp<ThreadBase> thread = mAudioFlinger.checkPlaybackThread_l(ioHandle); in releaseAudioPatch()
DAudioFlinger.h447 class ThreadBase; variable
448 void dumpToThreadLog_l(const sp<ThreadBase> &thread);
577 if ((sessionType & AudioFlinger::ThreadBase::EFFECT_SESSION) != 0) { in findIoHandleBySessionId_l()
653 ThreadBase *checkThread_l(audio_io_handle_t ioHandle) const;
661 sp<ThreadBase> openInput_l(audio_module_handle_t module,
670 sp<ThreadBase> openOutput_l(audio_module_handle_t module,
715 sp<ThreadBase> getEffectThread_l(audio_session_t sessionId, int effectId);
DMmapTracks.h25 MmapTrack(ThreadBase *thread,
DPlaybackTracks.h324 const wp<ThreadBase>& thread() const { return mThread; } in thread()
/frameworks/base/libs/hwui/thread/
DThreadBase.h30 class ThreadBase : public Thread {
31 PREVENT_COPY_AND_ASSIGN(ThreadBase);
34 ThreadBase() in ThreadBase() function
/frameworks/base/libs/hwui/renderthread/
DRenderThread.h82 class RenderThread : private ThreadBase {
90 WorkQueue& queue() { return ThreadBase::queue(); } in queue()
DRenderThread.cpp139 : ThreadBase() in RenderThread()
/frameworks/base/libs/hwui/hwui/
DAnimatedImageThread.h29 class AnimatedImageThread : private ThreadBase {
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp88 sp<ThreadBase> mUploadThread = nullptr;
118 mUploadThread = new ThreadBase{}; in beginUpload()
225 mUploadThread = new ThreadBase{}; in onInitialize()