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 Change-Id: I524cf83d4f60e72a874c6272c30c348a04de00ba
Loading
Please register or sign in to comment