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.cpp49 /*static*/ const FastMixerState FastMixer::sInitial;
85 for (i = 0; i < FastMixerState::sMaxFastTracks; ++i) { in FastMixer()
114 mPreIdle = *(const FastMixerState *)mCurrent; in onIdle()
127 switch ((FastMixerState::Command) command) { in isSubClassCommand()
128 case FastMixerState::MIX: in isSubClassCommand()
129 case FastMixerState::WRITE: in isSubClassCommand()
130 case FastMixerState::MIX_WRITE: in isSubClassCommand()
138 const FastMixerState * const current = (const FastMixerState *) mCurrent; in updateMixerTrack()
208 const FastMixerState * const current = (const FastMixerState *) mCurrent; in onStateChange()
209 const FastMixerState * const previous = (const FastMixerState *) mPrevious; in onStateChange()
[all …]
DFastMixer.h32 typedef StateQueue<FastMixerState> FastMixerStateQueue;
71 static const FastMixerState sInitial;
73 FastMixerState mPreIdle; // copy of state before we went into idle
74 int mGenerations[FastMixerState::kMaxFastTracks];
DFastMixerState.h57 struct FastMixerState : FastThreadState { struct
58 FastMixerState();
59 /*virtual*/ ~FastMixerState();
DFastMixerDumpState.cpp61 if (mCommand == FastMixerState::INITIAL) { in dump()
72 FastMixerState::commandToString(mCommand), mWriteSequence, mFramesWritten, in dump()
176 FastMixerState::sMaxFastTracks, trackMask); in dump()
178 for (uint32_t i = 0; i < FastMixerState::sMaxFastTracks; ++i, trackMask >>= 1) { in dump()
DStateQueueInstantiations.cpp26 template class StateQueue<FastMixerState>; // typedef FastMixerStateQueue
DFastMixerDumpState.h78 FastTrackDump mTracks[FastMixerState::kMaxFastTracks];
DAndroid.bp19 "FastMixerState.cpp",
DThreads.cpp1864 mFastTrackAvailMask(((1 << FastMixerState::sMaxFastTracks) - 1) & ~1), in PlaybackThread()
2593 ALOG_ASSERT(0 < index && index < (int)FastMixerState::sMaxFastTracks); in removeTrack_l()
4447 FastMixerState *state = sq->begin(); in MixerThread()
4468 state->mCommand = FastMixerState::COLD_IDLE; in MixerThread()
4524 FastMixerState *state = sq->begin(); in ~MixerThread()
4525 if (state->mCommand == FastMixerState::COLD_IDLE) { in ~MixerThread()
4531 state->mCommand = FastMixerState::EXIT; in ~MixerThread()
4573 FastMixerState *state = sq->begin(); in threadLoop_write()
4574 if (state->mCommand != FastMixerState::MIX_WRITE && in threadLoop_write()
4576 if (state->mCommand == FastMixerState::COLD_IDLE) { in threadLoop_write()
[all …]
DThreads.h1288 ALOG_ASSERT(fastIndex < FastMixerState::sMaxFastTracks); in getFastTrackUnderruns()
DTracks.cpp582 ALOG_ASSERT(0 < i && i < (int)FastMixerState::sMaxFastTracks); in Track()