commit | 8eb3a333ec1d2b8afa4a39466296c993feae6676 | [log] [tgz] |
---|---|---|
author | shrikar <shrikar@google.com> | Wed Oct 18 15:38:10 2023 +0000 |
committer | shrikar <shrikar@google.com> | Thu Oct 26 18:34:31 2023 +0000 |
tree | e148a8aacb32928726619af0025b59ee029537f3 | |
parent | 7d21c7df17a63a42938277779117438ba78ff2c0 [diff] |
Added resolution to SubscribeOptions. Design doc: go/precision-filter Bug: 276124296 Test: manual build Change-Id: I3b3fccfec6ae02011b6859bbfdbe6af1a05dabbf
diff --git a/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/current/android/hardware/automotive/vehicle/SubscribeOptions.aidl b/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/current/android/hardware/automotive/vehicle/SubscribeOptions.aidl index 91e7c14..23fc8a9 100644 --- a/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/current/android/hardware/automotive/vehicle/SubscribeOptions.aidl +++ b/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/current/android/hardware/automotive/vehicle/SubscribeOptions.aidl
@@ -37,4 +37,5 @@ int propId; int[] areaIds; float sampleRate; + float resolution = 0.0f; }
diff --git a/automotive/vehicle/aidl/android/hardware/automotive/vehicle/SubscribeOptions.aidl b/automotive/vehicle/aidl/android/hardware/automotive/vehicle/SubscribeOptions.aidl index e68f7e3..1f2fb27 100644 --- a/automotive/vehicle/aidl/android/hardware/automotive/vehicle/SubscribeOptions.aidl +++ b/automotive/vehicle/aidl/android/hardware/automotive/vehicle/SubscribeOptions.aidl
@@ -39,4 +39,14 @@ * This value indicates how many updates per second client wants to receive. */ float sampleRate; + + /** + * Requested resolution of property updates. + * + * This value indicates the resolution at which continuous property updates should be sent to + * the platform. For example, if resolution is 0.01, the subscribed property value should be + * rounded to two decimal places. If the incoming resolution value is not an integer multiple of + * 10, VHAL should return a StatusCode::INVALID_ARG. + */ + float resolution = 0.0f; }