Home
last modified time | relevance | path

Searched refs:FastMixerState (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/services/audioflinger/
DFastMixerState.cpp35 FastMixerState::FastMixerState() : FastThreadState(), in FastMixerState() function in android::FastMixerState
46 FastMixerState::~FastMixerState() in ~FastMixerState()
51 unsigned FastMixerState::sMaxFastTracks = kDefaultFastTracks;
54 pthread_once_t FastMixerState::sMaxFastTracksOnce = PTHREAD_ONCE_INIT;
57 const char *FastMixerState::commandToString(Command command) in commandToString()
64 case FastMixerState::MIX: return "MIX"; in commandToString()
65 case FastMixerState::WRITE: return "WRITE"; in commandToString()
66 case FastMixerState::MIX_WRITE: return "MIX_WRITE"; in commandToString()
72 void FastMixerState::sMaxFastTracksInit() in sMaxFastTracksInit()
DFastMixer.cpp48 /*static*/ const FastMixerState FastMixer::sInitial;
81 for (i = 0; i < FastMixerState::sMaxFastTracks; ++i) { in FastMixer()
116 mPreIdle = *(const FastMixerState *)mCurrent; in onIdle()
129 switch ((FastMixerState::Command) command) { in isSubClassCommand()
130 case FastMixerState::MIX: in isSubClassCommand()
131 case FastMixerState::WRITE: in isSubClassCommand()
132 case FastMixerState::MIX_WRITE: in isSubClassCommand()
143 const FastMixerState * const current = (const FastMixerState *) mCurrent; in onStateChange()
144 const FastMixerState * const previous = (const FastMixerState *) mPrevious; in onStateChange()
195 mMixer = new AudioMixer(frameCount, mSampleRate, FastMixerState::sMaxFastTracks); in onStateChange()
[all …]
DFastMixer.h30 typedef StateQueue<FastMixerState> FastMixerStateQueue;
57 static const FastMixerState sInitial;
59 FastMixerState mPreIdle; // copy of state before we went into idle
60 int mFastTrackNames[FastMixerState::kMaxFastTracks];
62 int mGenerations[FastMixerState::kMaxFastTracks];
DFastMixerState.h53 struct FastMixerState : FastThreadState { struct
54 FastMixerState();
55 /*virtual*/ ~FastMixerState();
DFastMixerDumpState.cpp61 if (mCommand == FastMixerState::INITIAL) { in dump()
72 FastMixerState::commandToString(mCommand), mWriteSequence, mFramesWritten, in dump()
170 FastMixerState::sMaxFastTracks, trackMask); in dump()
172 for (uint32_t i = 0; i < FastMixerState::sMaxFastTracks; ++i, trackMask >>= 1) { in dump()
DStateQueueInstantiations.cpp26 template class StateQueue<FastMixerState>; // typedef FastMixerStateQueue
DFastMixerDumpState.h76 FastTrackDump mTracks[FastMixerState::kMaxFastTracks];
DAndroid.mk74 FastMixerState.cpp \
DThreads.cpp1670 mFastTrackAvailMask(((1 << FastMixerState::sMaxFastTracks) - 1) & ~1), in PlaybackThread()
2227 ALOG_ASSERT(0 < index && index < (int)FastMixerState::sMaxFastTracks); in removeTrack_l()
3713 FastMixerState *state = sq->begin(); in MixerThread()
3727 state->mCommand = FastMixerState::COLD_IDLE; in MixerThread()
3776 FastMixerState *state = sq->begin(); in ~MixerThread()
3777 if (state->mCommand == FastMixerState::COLD_IDLE) { in ~MixerThread()
3783 state->mCommand = FastMixerState::EXIT; in ~MixerThread()
3831 FastMixerState *state = sq->begin(); in threadLoop_write()
3832 if (state->mCommand != FastMixerState::MIX_WRITE && in threadLoop_write()
3834 if (state->mCommand == FastMixerState::COLD_IDLE) { in threadLoop_write()
[all …]
DThreads.h1074 ALOG_ASSERT(fastIndex < FastMixerState::sMaxFastTracks); in getFastTrackUnderruns()
DTracks.cpp442 ALOG_ASSERT(0 < i && i < (int)FastMixerState::sMaxFastTracks); in Track()