Prevent the test from starting while screen freezes.

The splash screen test can be affected if the display is frozen, for
this case the previous test is rotating the test activity but leave
without waiting for orientation change complete.
A simple idea is to finish those activity after test complete, and add
a waitForDisplayUnfrozen condition while leaving/entering respectively,
so both test shouldn't affect/be affected any others.

Bug: 194164402
Bug: 197800401
Test: atest RoundedCornerTests SplashscreenTests
Change-Id: Iea0455e075e70ee9488280037b32f495b375bf3b
2 files changed