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
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user