Loading core/api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -3986,6 +3986,7 @@ package android.window { public static class WindowInfosListenerForTest.WindowInfo { field @NonNull public final android.graphics.Rect bounds; field public final boolean isTrustedOverlay; field @NonNull public final String name; field @NonNull public final android.os.IBinder windowToken; } Loading core/java/android/window/WindowInfosListenerForTest.java +10 −2 Original line number Diff line number Diff line Loading @@ -63,10 +63,17 @@ public class WindowInfosListenerForTest { @NonNull public final Rect bounds; WindowInfo(@NonNull IBinder windowToken, @NonNull String name, @NonNull Rect bounds) { /** * True if the window is a trusted overlay. */ public final boolean isTrustedOverlay; WindowInfo(@NonNull IBinder windowToken, @NonNull String name, @NonNull Rect bounds, int inputConfig) { this.windowToken = windowToken; this.name = name; this.bounds = bounds; this.isTrustedOverlay = (inputConfig & InputConfig.TRUSTED_OVERLAY) != 0; } } Loading Loading @@ -129,7 +136,8 @@ public class WindowInfosListenerForTest { } var bounds = new Rect(handle.frameLeft, handle.frameTop, handle.frameRight, handle.frameBottom); windowInfos.add(new WindowInfo(handle.getWindowToken(), handle.name, bounds)); windowInfos.add(new WindowInfo(handle.getWindowToken(), handle.name, bounds, handle.inputConfig)); } return windowInfos; } Loading Loading
core/api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -3986,6 +3986,7 @@ package android.window { public static class WindowInfosListenerForTest.WindowInfo { field @NonNull public final android.graphics.Rect bounds; field public final boolean isTrustedOverlay; field @NonNull public final String name; field @NonNull public final android.os.IBinder windowToken; } Loading
core/java/android/window/WindowInfosListenerForTest.java +10 −2 Original line number Diff line number Diff line Loading @@ -63,10 +63,17 @@ public class WindowInfosListenerForTest { @NonNull public final Rect bounds; WindowInfo(@NonNull IBinder windowToken, @NonNull String name, @NonNull Rect bounds) { /** * True if the window is a trusted overlay. */ public final boolean isTrustedOverlay; WindowInfo(@NonNull IBinder windowToken, @NonNull String name, @NonNull Rect bounds, int inputConfig) { this.windowToken = windowToken; this.name = name; this.bounds = bounds; this.isTrustedOverlay = (inputConfig & InputConfig.TRUSTED_OVERLAY) != 0; } } Loading Loading @@ -129,7 +136,8 @@ public class WindowInfosListenerForTest { } var bounds = new Rect(handle.frameLeft, handle.frameTop, handle.frameRight, handle.frameBottom); windowInfos.add(new WindowInfo(handle.getWindowToken(), handle.name, bounds)); windowInfos.add(new WindowInfo(handle.getWindowToken(), handle.name, bounds, handle.inputConfig)); } return windowInfos; } Loading