Fix cts failures of DisplayCutoutTests

The test activity relaunched due to orientation/screen
size/smallestScreenWidth change and the activity we got from the
ActivityTestRule was the first destroyed one which made the test wait
for focus on the wrong activity, hence the failures.

We now handles the related config changes to make sure the activity
won't be relaunched.

Also, we need to disable ignore-orientation-request before test to
ensure the activity won't be letterboxed.

Bug: 272826200
Test: atest DisplayCutoutTests
Change-Id: Ic60f866ad8a943b1a80aee9d297501738eea93dc
Merged-In: Ic60f866ad8a943b1a80aee9d297501738eea93dc
2 files changed