Fixes flaky on CtsAutoFillServiceTestCases

The RetryRule will retry tests when the tests fail due to a
RetryableException. But it does not clean all launched activities which
causes the retries are blocked on the exception:
"Could not launch intent Intent { ... } within 45 seconds."
To avoid the same issue, adds a RetryCleaner interface to clean between
the retries.

Bug: 145244166
Test: atest CtsAutoFillServiceTestCases
Change-Id: I583f0421862b796d3ba7920e4851cd59b790c53c
3 files changed