Include BAL factor in UI job scheduling.
Don't allow apps to schedule user-initiated jobs unless they're in the
TOP state or can launch activities from the background.
Also, give immediacy privilege to the jobs if the apps are in a BAL
state.
Bug: 261999509
Test: atest CtsJobSchedulerTestCases:JobSchedulingTest
Test: atest CtsJobSchedulerTestCases:JobInfoTest
Test: atest CtsJobSchedulerTestCases:JobParametersTest
Test: atest CtsJobSchedulerTestCases:UserInitiatedJobTest
Test: atest FrameworksMockingServicesTests:JobConcurrencyManagerTest
Change-Id: Id781d3fb8a9249160948c17d6127cc13996e9af5
6 files changed