Use RotationSession instead of orientation request

In large devices with embedding feature and orientation request enabled,
the protrait activity will show in letterbox for user experience in
T-QPR3.
This CL uses rotation session instead of setting orientation requests to
verify rounded corners with all orientations.

Also, the test added the test window right after activity was launched,
which may get a wrong metrics because the configuration value at #onCreate
is unpredicatble.

Test: atest RoundedCornerTest --iterations
Bug: 264016570
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:44f7d498c816e8845a28b629740b6f76d490a4a0)
Merged-In: Id1a4e46493a9c665f1160c5ca66b14dc6b5fca91

Change-Id: I896f22ad0e5010ed0c344085bb466d873de8ca51
1 file changed