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

Commit 113436f4 authored by Robert Berry's avatar Robert Berry
Browse files

Up limit from 1fps to 3fps for takeScreenshot

Allow AccessibilityService instances to request screenshots more
frequently (up to three screenshots per second). This used to be capped
at one screenshot per second in Android R.

Test: cts
Bug: 188077373

Change-Id: I880e2d922db3ce2bd075efcb02466ea1f4914792
parent 9074d8b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ package android.accessibilityservice {
  }

  public abstract class AccessibilityService extends android.app.Service {
    field public static final int ACCESSIBILITY_TAKE_SCREENSHOT_REQUEST_INTERVAL_TIMES_MS = 1000; // 0x3e8
    field public static final int ACCESSIBILITY_TAKE_SCREENSHOT_REQUEST_INTERVAL_TIMES_MS = 333; // 0x14d
  }

  public class AccessibilityServiceInfo implements android.os.Parcelable {
+1 −1
Original line number Diff line number Diff line
@@ -685,7 +685,7 @@ public abstract class AccessibilityService extends Service {
     * @hide
     */
    @TestApi
    public static final int ACCESSIBILITY_TAKE_SCREENSHOT_REQUEST_INTERVAL_TIMES_MS = 1000;
    public static final int ACCESSIBILITY_TAKE_SCREENSHOT_REQUEST_INTERVAL_TIMES_MS = 333;

    /** @hide */
    public static final String KEY_ACCESSIBILITY_SCREENSHOT_STATUS =