aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Stange <stange@google.com>2019-05-06 18:56:42 -0400
committerAnthony Stange <stange@google.com>2019-05-06 18:59:28 -0400
commita313366b5a7d3574dec74c5685d5bd46b8938832 (patch)
tree516d1a4c6f1cd34357eb55cb925c5b194de40654
parent3126f6c04b3d19c977b7151da310d1a402bd6f98 (diff)
downloadchre-a313366b5a7d3574dec74c5685d5bd46b8938832.tar.gz
Ensure CHRE_SLPI_UIMG_ENABLED removes uimg code
Modify smgr's power_control_manager_base to properly stub out sns_pm.h when UIMG is disabled since that file won't be available when uimg support isn't available. Bug: 131912580 Test: compile Change-Id: I9e9a2d5fd168176d741858cb824feed2f9337ffe
-rw-r--r--platform/slpi/smgr/include/chre/target_platform/power_control_manager_base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/slpi/smgr/include/chre/target_platform/power_control_manager_base.h b/platform/slpi/smgr/include/chre/target_platform/power_control_manager_base.h
index 738b1829..55e91498 100644
--- a/platform/slpi/smgr/include/chre/target_platform/power_control_manager_base.h
+++ b/platform/slpi/smgr/include/chre/target_platform/power_control_manager_base.h
@@ -20,7 +20,9 @@
extern "C" {
#include "qurt.h"
+#ifdef CHRE_SLPI_UIMG_ENABLED
#include "sns_pm.h"
+#endif // CHRE_SLPI_UIMG_ENABLED
} // extern "C"
@@ -41,8 +43,10 @@ class PowerControlManagerBase {
bool voteBigImage(bool bigImage);
protected:
+#ifdef CHRE_SLPI_UIMG_ENABLED
//! Client handle for the subscription to the power manager
sns_pm_handle_t mClientHandle = nullptr;
+#endif // CHRE_SLPI_UIMG_ENABLED
//! Set to true if the host is awake, false if asleep.
bool mHostIsAwake = true;