Skip to content
Commit b2297ad3 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Wait for system decor windows on all displays during boot

To prevent from showing empty content on some displays temporarily,
wait for displays which support system decorations that have the
expected window types to be drawn.

Also correct the conditions for waiting:
- isVisibleLw and !isDrawnLw are contradicted because they both
  check mHasSurface.
- TYPE_APPLICATION must belong to an activity so it is more
  reasonable to check BASE_APPLICATION.

Bug: 117597389
Test: atest DisplayContentTests \
      #testShouldWaitForSystemDecorWindowsOnBoot_OnSecondaryDisplay
Test: manual enable "Simulate secondary displays" in dev options.
      Reboot and check no "BOOT TIMEOUT" in log.

Change-Id: Ie0890cd006da74f290ecc6cbcf1064a0b26de574
parent b14c5166
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment