diff options
| author | Ethan Chen <intervigil@gmail.com> | 2018-06-14 23:32:50 -0700 |
|---|---|---|
| committer | Bruno Martins <bgcngm@gmail.com> | 2018-06-15 11:51:24 +0200 |
| commit | 21c71ae5a6f5bfdd2f5aae2b82bf6fc411ecc22a (patch) | |
| tree | b50753ee06c0cd1e3652d2f5e8c727bf38525249 | |
| parent | cfd7b999dd3f3566ae5b728d4e83af9b058e7b92 (diff) | |
| download | android_hardware_lineage_interfaces-21c71ae5a6f5bfdd2f5aae2b82bf6fc411ecc22a.tar.gz android_hardware_lineage_interfaces-21c71ae5a6f5bfdd2f5aae2b82bf6fc411ecc22a.tar.bz2 android_hardware_lineage_interfaces-21c71ae5a6f5bfdd2f5aae2b82bf6fc411ecc22a.zip | |
livedisplay: Move Color::check function to implementation
Change-Id: Ic28b6770a634720b43e59b2f6a5c2e2f0a40901d
| -rw-r--r-- | livedisplay/1.0/default/include/Color.h | 5 | ||||
| -rw-r--r-- | livedisplay/1.0/default/src/Color.cpp | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/livedisplay/1.0/default/include/Color.h b/livedisplay/1.0/default/include/Color.h index 91d2ca2..58b6bbf 100644 --- a/livedisplay/1.0/default/include/Color.h +++ b/livedisplay/1.0/default/include/Color.h @@ -78,9 +78,8 @@ class Color : public IColor { uint32_t mFeatures; bool mConnected; - bool check(Feature f) { - return connect() && (mFeatures & (uint32_t)f); - } + bool check(Feature f); + void error(const char* msg = NULL); void addFeature(Feature f) { diff --git a/livedisplay/1.0/default/src/Color.cpp b/livedisplay/1.0/default/src/Color.cpp index b586e39..54fab09 100644 --- a/livedisplay/1.0/default/src/Color.cpp +++ b/livedisplay/1.0/default/src/Color.cpp @@ -81,6 +81,10 @@ void Color::reset() { mConnected = false; } +bool Color::check(Feature f) { + return connect() && (mFeatures & (uint32_t)f); +} + void Color::error(const char* msg) { if (msg != NULL) { LOG(ERROR) << msg; |
