diff options
Diffstat (limited to 'services/audioflinger/FastThreadState.cpp')
-rw-r--r-- | services/audioflinger/FastThreadState.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/services/audioflinger/FastThreadState.cpp b/services/audioflinger/FastThreadState.cpp index e6cf85c..ad5f31f 100644 --- a/services/audioflinger/FastThreadState.cpp +++ b/services/audioflinger/FastThreadState.cpp @@ -29,4 +29,16 @@ FastThreadState::~FastThreadState() { } +// static +const char *FastThreadState::commandToString(FastThreadState::Command command) +{ + switch (command) { + case FastThreadState::INITIAL: return "INITIAL"; + case FastThreadState::HOT_IDLE: return "HOT_IDLE"; + case FastThreadState::COLD_IDLE: return "COLD_IDLE"; + case FastThreadState::EXIT: return "EXIT"; + } + return NULL; +} + } // namespace android |