AttachedSurfaceControlTest: Fix two issues on large-screen devices

This test can have two issues on large-screen devices beginning
with 12L. First is that one test may malfunction in the case
of the device being landscape default. Second is that on devices
where support for setRequestedOrientation is disabled (e.g.
large-screen devices in 12L), then both tests will fail. We expose
a utility class from ActivityManagerTestBase to handle this
second case.

Bug: 204720444
Test: Existing tests pass
Change-Id: I46da3dcc92e073cd3d495317508447f277b9a288
2 files changed