Require consistent getSensorsList

Require that the values returned from getSensorsList do not change
before the entire system reboots. The values must be stable even
across Sensors HAL restarts. This allows for the framework to
automatically re-establish connections if the Sensors HAL crashes.

Bug: 111070257
Test: Compiles
Change-Id: I0e4b7d6ef8f89f6780c6a14d67465fd3692cd482
This commit is contained in:
Brian Stack
2018-10-01 16:06:39 -07:00
committed by Brian Duddie
parent 6f27d8d738
commit 7ff9564b20

View File

@@ -27,6 +27,13 @@ import @2.0::ISensorsCallback;
interface ISensors {
/**
* Enumerate all available (static) sensors.
*
* The SensorInfo for each sensor returned by getSensorsList must be stable
* from the initial call to getSensorsList after a device boot until the
* entire system restarts. The SensorInfo for each sensor must not change
* between subsequent calls to getSensorsList, even across restarts of the
* HAL and its dependencies (for example, the sensor handle for a given
* sensor must not change across HAL restarts).
*/
getSensorsList() generates (vec<SensorInfo> list);