Set transform hint before rotation transaction is applied

Unlike legacy transition applies setDisplayProjection immediately
when applying rotation change, shell transition applies the
display projection in shell side when the animation is ready.
So if uses the surface when receiving configuration change but
the transaction is not applied yet, it may get an intermediate
inconsistent transform hint.

With this change:
Rotation changed -> send config -> apply pending transaction with
fixed transform hint -> transition ready -> shell starts animation
and applies display projection and unsets fixed transform hint.

Bug: 270282500
Test: atest SurfaceControlTests#testSurfaceChangedOnRotation
Change-Id: Id4ad45adb9719b078f46040a09f786092c325a8a
5 files changed