Optimize testSharedSurfaceSwitch

Remove some unnecessary sleep statements and reduce the timer for the
required one.

With this change, the test time for Oriole on the stable build
(10337921) goes down from ~4m 18s to ~19s (~93% improvement).

To make sure there are no accidental regressions being introduced, I ran
the test for 50 iterations and each time it completed successfully and
finished within 18.8 - 19.2s.

Test: atest MultiViewTest#testSharedSurfaceSwitch
Bug: 287260354
Change-Id: I911f976e84b0dd4d3f86317c1cac4b1afb6384d4
1 file changed