Revert^2 "Handle negative delays and deadlines."
Some apps are scheduling jobs with negative delays and deadlines. This
is invalid input that can lead to incorrect behavior when used in
calculations. Set a floor for delays and deadlines so that negatives are
no longer propagated and throw a target SDK gated exception for the
invalid input.
Bug: 323349338
Test: atest CtsJobSchedulerTestCases:JobInfoTest
Test: atest com.android.federatedcompute.services.encryption.BackgroundKeyFetchJobServiceTest#testScheduleJob_notNeeded
Change-Id: I04a3c0ca10cddde3052f0cd757ac5a01ced78c7e
4 files changed