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
(cherry picked from commit 113436f49f)
This commit is contained in:
Robert Berry
2021-05-19 12:22:11 -04:00
parent 7395d119e6
commit 3aee3791d3
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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 =