Merge "Make UiAutomation#takeScreenshot(Window) public"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c52d2582be
@@ -7051,6 +7051,7 @@ package android.app {
|
||||
method public void setRunAsMonkey(boolean);
|
||||
method public void setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo);
|
||||
method public android.graphics.Bitmap takeScreenshot();
|
||||
method @Nullable public android.graphics.Bitmap takeScreenshot(@NonNull android.view.Window);
|
||||
method public void waitForIdle(long, long) throws java.util.concurrent.TimeoutException;
|
||||
field public static final int FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES = 1; // 0x1
|
||||
field public static final int FLAG_DONT_USE_ACCESSIBILITY = 2; // 0x2
|
||||
|
||||
@@ -439,7 +439,6 @@ package android.app {
|
||||
method @Deprecated public boolean revokeRuntimePermission(String, String, android.os.UserHandle);
|
||||
method public void syncInputTransactions();
|
||||
method public void syncInputTransactions(boolean);
|
||||
method @Nullable public android.graphics.Bitmap takeScreenshot(@NonNull android.view.Window);
|
||||
field @NonNull public static final java.util.Set<java.lang.String> ALL_PERMISSIONS;
|
||||
}
|
||||
|
||||
|
||||
@@ -1068,10 +1068,7 @@ public final class UiAutomation {
|
||||
* @param window Window to take a screenshot of
|
||||
*
|
||||
* @return The screenshot bitmap on success, null otherwise.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
@Nullable
|
||||
public Bitmap takeScreenshot(@NonNull Window window) {
|
||||
if (window == null) {
|
||||
|
||||
Reference in New Issue
Block a user