Do not report ActivityWindowInfo from invisible Activity window

Apply the same rule as WindowState#mLastReportedConfiguration to avoid
updating from invisible window, which can result the bounds in
ActivityWindowInfo to be out of sync with WindowConfiguration.

Also, when Activity is fixed rotation transformed, return the Activity
bounds as Task/TaskFragment bounds so that it is in sync with the
configuration.

Bug: 287582673
Test: atest WmTests:WindowManagerServiceTests
Change-Id: I3a96413f092079da4522d2beff42b5b3be13979a
6 files changed