Turn screen on when testing with MediaRouter2TestActivity

This CL fixes test failures when screen is off.

Bug: 175701839, Bug: 176400886
Test: While screen is off, run:
      atest android.media.cts.MediaRouter2Test \
            android.media.cts.MediaRoute2ProviderServiceTest
Change-Id: I1b17b985dc9b449ac75a90c0f0cc05497c28fdfa
diff --git a/tests/tests/media/src/android/media/cts/MediaRouter2TestActivity.java b/tests/tests/media/src/android/media/cts/MediaRouter2TestActivity.java
index 370a810..e0ba399 100644
--- a/tests/tests/media/src/android/media/cts/MediaRouter2TestActivity.java
+++ b/tests/tests/media/src/android/media/cts/MediaRouter2TestActivity.java
@@ -46,6 +46,8 @@
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
+        setTurnScreenOn(true);
+        setShowWhenLocked(true);
         getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
     }
 }