Try to fix Exception in windowLayoutInfo

The issue is because app uses context without display association,
but somehow passes the UI Context check. Then it throws exception
when trying to call #getDisplay.

This CL provides compatibility by calling #getDisplayId instead.

Bug: 347862394
Test: atest WindowLayoutComponentImplTest
Flag: EXEMPT bugfix
Change-Id: Ic416f198a1c12b36471ba10bd4cb996e7c5894ec
2 files changed