USF Helper: Add conversion for missing USF sensors.
Bug: 156014529
Test: USF unit tests & compile on various platforms.
Change-Id: Id0a513bed1d9e477f48b0262637cda2b20d44389
diff --git a/platform/usf/usf_helper.cc b/platform/usf/usf_helper.cc
index 3bf9336..35c44c6 100644
--- a/platform/usf/usf_helper.cc
+++ b/platform/usf/usf_helper.cc
@@ -261,6 +261,15 @@
case usf::UsfMsgSensorType_kUsfSensorAmbientLight:
*chreSensorType = CHRE_SENSOR_TYPE_LIGHT;
break;
+ case usf::UsfMsgSensorType_kUsfSensorMotionDetect:
+ *chreSensorType = CHRE_SENSOR_TYPE_INSTANT_MOTION_DETECT;
+ break;
+ case usf::UsfMsgSensorType_kUsfSensorStationaryDetect:
+ *chreSensorType = CHRE_SENSOR_TYPE_STATIONARY_DETECT;
+ break;
+ case usf::UsfMsgSensorType_kUsfSensorStepDetector:
+ *chreSensorType = CHRE_SENSOR_TYPE_STEP_DETECT;
+ break;
default:
// Don't print anything as USF exposes sensor types CHRE doesn't care
// about (e.g. Camera Vsync, and color)