From 1761cfac39d5ee17f2e4f8eef485c38a08624533 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Wed, 13 Feb 2019 17:44:08 -0500 Subject: Public API for statically accessing global list of window views Android Studio's UI inspection tool needs access to the currently displayed window(s) via publicly-accessible APIs given only a classloader -- it does not have any activity or app Context. Bug: 124516440 Test: atest WindowInspectorTest Change-Id: I960165813c260ac8f8e17cc163fabf65b1417480 --- api/current.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index 2a3ad4dd38e9..0424a725e555 100644 --- a/api/current.txt +++ b/api/current.txt @@ -53987,6 +53987,10 @@ package android.view.inspector { ctor public PropertyReader.PropertyTypeMismatchException(int, @NonNull String, @NonNull String); } + public final class WindowInspector { + method @NonNull public static java.util.List getGlobalWindowViews(); + } + } package android.view.textclassifier { -- cgit v1.2.3-59-g8ed1b