Override toString in WindowInfosListenerForTest.WindowInfo

Provide class info in WindowInfo#toString

Test: TrustedPresentationCallbackTest
Bug: 279957280
Change-Id: If18448921799e2152bc7f21c0fa0557734af987f
This commit is contained in:
Chavi Weingarten
2023-06-15 17:35:01 +00:00
parent b0864b83dd
commit 6f196f7c1f

View File

@@ -81,6 +81,14 @@ public class WindowInfosListenerForTest {
this.isTrustedOverlay = (inputConfig & InputConfig.TRUSTED_OVERLAY) != 0;
this.isVisible = (inputConfig & InputConfig.NOT_VISIBLE) == 0;
}
@Override
public String toString() {
return name + ", frame=" + bounds
+ ", isVisible=" + isVisible
+ ", isTrustedOverlay=" + isTrustedOverlay
+ ", token=" + windowToken;
}
}
private static final String TAG = "WindowInfosListenerForTest";