Fix TOP state setting.

1. Mark the registered BroadcastReceiver as EXPORTED so that the test
   app doesn't crash when starting the Activity.
2. Turn the screen on/off to ensure the app is in the TOP state (or not)
   for the test.

Bug: 265100321
Bug: 267279976
Test: atest CtsJobSchedulerTestCases:ConnectivityConstraintTest
Test: atest CtsJobSchedulerTestCases:ExpeditedJobTest
Test: atest CtsJobSchedulerTestCases:UserInitiatedJobTest
Change-Id: I11c292994cc1a0f8576b3e8e5a797b87311f58a2
3 files changed