commit | 9c9e8d6b04ce409db7382f6a7cb7bbec2a4b97a2 | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Fri Feb 09 13:05:30 2024 +0000 |
committer | Kweku Adams <kwekua@google.com> | Fri Feb 09 13:59:03 2024 +0000 |
tree | 4cb627241e394b2cd3a7943f6070532cb33099e8 | |
parent | 08d765d4a39651ce28e0a4535a4f308f9f7a8585 [diff] |
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