Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8eb3a333 authored by shrikar's avatar shrikar
Browse files

Added resolution to SubscribeOptions.

Design doc: go/precision-filter

Bug: 276124296
Test: manual build
Change-Id: I3b3fccfec6ae02011b6859bbfdbe6af1a05dabbf
parent 7d21c7df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -37,4 +37,5 @@ parcelable SubscribeOptions {
  int propId;
  int[] areaIds;
  float sampleRate;
  float resolution = 0.0f;
}
+10 −0
Original line number Diff line number Diff line
@@ -39,4 +39,14 @@ parcelable SubscribeOptions {
     * 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;
}