Add displayId to WindowManagerPolicy#isScreenOn().
This allows certain flows to continue to work even if the default display is off. For example, when taking an Assist screenshot for Contextual Search, DisplayContent checks if the screen is on. This previously only checked the default display, but now instead checks the display where the search is invoked. Fix: 441675960 Test: Connect phone to external display, wait for primary display to time out, invoke Contextual Search on the external display. Test: atest DisplayPolicyTests WindowManagerServiceTests Flag: EXEMPT BUGFIX Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:d658f0f0c78d94b367f3056a84af1b3c95c4a21e Merged-In: I21ae35333551e170127be546d1cc8ca09bad4448 Change-Id: I21ae35333551e170127be546d1cc8ca09bad4448
Loading
Please register or sign in to comment