summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastThreadState.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-02 15:51:38 -0800
committerGlenn Kasten <gkasten@google.com>2015-03-03 08:52:56 -0800
commitd702a568cb62e5aebe048147350bb3c76f9386ba (patch)
tree507e18b27556b74262a527a7378515fbdcf9b573 /services/audioflinger/FastThreadState.cpp
parentfbdb2aceab7317aa44bc8f301a93eb49e17b2bce (diff)
downloadframeworks_av-d702a568cb62e5aebe048147350bb3c76f9386ba.zip
frameworks_av-d702a568cb62e5aebe048147350bb3c76f9386ba.tar.gz
frameworks_av-d702a568cb62e5aebe048147350bb3c76f9386ba.tar.bz2
Pull out commandToString() from FastMixerDumpState.cpp
to FastThreadState.cpp, FastMixerState.cpp, and FastCaptureState.cpp Change-Id: I872efb211e8a0335c42906367859d3674340e374
Diffstat (limited to 'services/audioflinger/FastThreadState.cpp')
-rw-r--r--services/audioflinger/FastThreadState.cpp12
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