Making ConnectivityController use remaining quota for job eligibility.
Have ConnectivityController use the app's remaining quota time to
determine if a job would complete in time instead of the maximum
execution time. This will prevent JobScheduler from starting a
connectivity job if there isn't enough remaining quota time to complete
the data transfer.
Bug: 133891979
Test: atest com.android.server.job.JobSchedulerServiceTest
Test: atest com.android.server.job.controllers.ConnectivityControllerTest
Change-Id: Ia4d2de7bdab52230ea4649532a8e5b4526e9f0fa
5 files changed