Fix failing MediaRouter2(ProviderService)Test

After "9f889ca: MediaRouterService binds services when necessary" was
merged, the test started to fail since now the test needs to be a
foreground app.

This CL makes creates an activity and launch it for the tests.

Note: Calling ActivityScenario.close() sometimes takes 5 seconds,
which increases the test method's running time. Added TODOs for it.

Bug: 175701839
Test: atest android.media.cts.MediaRouter2Test \
            android.media.cts.MediaRoute2ProviderServiceTest
Change-Id: I742e0377da5ecb7fe7696d09f13c502fc3e56455
4 files changed