Ensure apps can't bypass FAS using UIJ.

Make sure UIJs are set to stop after an app leaves the TOP state if the
user Background Restricted the app. Also remove associated notifications
so that users don't get confused about the state of the app.

Also modifying IDLE_UIDS_MSG queuing to enable deterministic testing.

Bug: 285623302
Test: atest CtsJobSchedulerTestCases:JobThrottlingTest
Test: atest CtsJobSchedulerTestCases:NotificationTest
Test: atest --rerun-until-failure 25 CtsJobSchedulerTestCases:UserInitiatedJobTest
Test: atest FrameworksMockingServicesTests:JobNotificationCoordinatorTest
Test: atest FrameworksMockingServicesTests:MockingOomAdjusterTests
Test: atest FrameworksServicesTests:OomAdjusterTests
Change-Id: I59f9880b0cfc4e5ba143cd522ed4c3df012f7154
11 files changed