Home
last modified time | relevance | path

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

/frameworks/av/services/audioflinger/fastpath/
DFastMixerState.cpp25 FastMixerState::FastMixerState() : FastThreadState() in FastMixerState() function in android::FastMixerState
34 unsigned FastMixerState::sMaxFastTracks = kDefaultFastTracks;
37 pthread_once_t FastMixerState::sMaxFastTracksOnce = PTHREAD_ONCE_INIT;
40 const char *FastMixerState::commandToString(Command command) in commandToString()
47 case FastMixerState::MIX: return "MIX"; in commandToString()
48 case FastMixerState::WRITE: return "WRITE"; in commandToString()
49 case FastMixerState::MIX_WRITE: return "MIX_WRITE"; in commandToString()
55 void FastMixerState::sMaxFastTracksInit() in sMaxFastTracksInit()
DFastMixer.cpp49 /*static*/ const FastMixerState FastMixer::sInitial;
99 mPreIdle = *(const FastMixerState *)mCurrent; in onIdle()
112 switch ((FastMixerState::Command) command) { in isSubClassCommand()
113 case FastMixerState::MIX: in isSubClassCommand()
114 case FastMixerState::WRITE: in isSubClassCommand()
115 case FastMixerState::MIX_WRITE: in isSubClassCommand()
123 const FastMixerState * const current = (const FastMixerState *) mCurrent; in updateMixerTrack()
195 const FastMixerState * const current = (const FastMixerState *) mCurrent; in onStateChange()
196 const FastMixerState * const previous = (const FastMixerState *) mPrevious; in onStateChange()
331 const FastMixerState * const current = (const FastMixerState *) mCurrent; in onWork()
[all …]
DFastMixer.h31 using FastMixerStateQueue = StateQueue<FastMixerState>;
69 static const FastMixerState sInitial;
71 FastMixerState mPreIdle; // copy of state before we went into idle
72 int mGenerations[FastMixerState::kMaxFastTracks]{};
DFastMixerState.h65 struct FastMixerState : FastThreadState { struct
66 FastMixerState();
104 static_assert(!std::is_polymorphic_v<FastMixerState>);
DFastMixerDumpState.cpp48 if (mCommand == FastMixerState::INITIAL) { in dump()
59 FastMixerState::commandToString(mCommand), mWriteSequence, mFramesWritten, in dump()
163 FastMixerState::sMaxFastTracks, trackMask); in dump()
165 for (uint32_t i = 0; i < FastMixerState::sMaxFastTracks; ++i, trackMask >>= 1) { in dump()
DFastMixerDumpState.h76 FastTrackDump mTracks[FastMixerState::kMaxFastTracks];
DAndroid.bp44 "FastMixerState.cpp",
DStateQueue.cpp182 template class StateQueue<FastMixerState>;
/frameworks/av/services/audioflinger/
DThreads.cpp2161 mFastTrackAvailMask(((1 << FastMixerState::sMaxFastTracks) - 1) & ~1), in PlaybackThread()
2998 ALOG_ASSERT(0 < index && index < (int)FastMixerState::sMaxFastTracks); in removeTrack_l()
5189 FastMixerState *state = sq->begin(); in MixerThread()
5213 state->mCommand = FastMixerState::COLD_IDLE; in MixerThread()
5269 FastMixerState *state = sq->begin(); in ~MixerThread()
5270 if (state->mCommand == FastMixerState::COLD_IDLE) { in ~MixerThread()
5276 state->mCommand = FastMixerState::EXIT; in ~MixerThread()
5333 FastMixerState *state = sq->begin(); in threadLoop_write()
5334 if (state->mCommand != FastMixerState::MIX_WRITE && in threadLoop_write()
5336 if (state->mCommand == FastMixerState::COLD_IDLE) { in threadLoop_write()
[all …]
DThreads.h1675 ALOG_ASSERT(fastIndex < FastMixerState::sMaxFastTracks); in getFastTrackUnderruns()
DTracks.cpp826 ALOG_ASSERT(0 < i && i < (int)FastMixerState::sMaxFastTracks); in Track()