generic_sensor: Pick sensor based on location in CrOS
Following the mechanism that ARC chooses sensors: https://source.corp.google.com/master-arc-dev/vendor/google_arc/libs/sensor_hub/sensors.cpp;rcl=3907f008bf945792e9b58ef57dd919f0d6153a1f;l=597 Choose the richer set (lid or base) of accelerometer, gyrometer, and magnetometer; prefer the ambient light sensor on the lid than the one on the base. BUG=b:172414302 TEST=unit tests and run on octopus Change-Id: I4c716c927fcb10b93eaa33735bba0ed3933867a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2494523 Commit-Queue: Cheng-Hao Yang <chenghaoyang@chromium.org> Reviewed-by:Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#826181}
Showing
This diff is collapsed.
Please register or sign in to comment