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

Commit e5b20b19 authored by Shrikar Amirisetty's avatar Shrikar Amirisetty Committed by Android (Google) Code Review
Browse files

Merge "Added resolution to SubscribeOptions." into main

parents 28bd9939 8eb3a333
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;
}