commit | 9f8407b0aa145d304911fadb15c6515143e64c0d | [log] [tgz] |
---|---|---|
author | JW Wang <wangchun@google.com> | Tue Mar 31 14:02:48 2020 +0800 |
committer | JW Wang <wangchun@google.com> | Tue Mar 31 18:52:29 2020 +0800 |
tree | 97e7e27c8cbe58f6a2372ea770551cf67bbbfc66 | |
parent | 5b163cfcee971458dd4dadd8d03ed7489e2780db [diff] |
Run expiration when rollback lifetime is changed. DO NOT MERGE See b/151890602#comment6 for the detail. When rollback lifetime is changed, we need to re-schedule the expiration algorithm so rollbacks can expire at the correct time. Note we combine #runExpiration and #scheduleExpiration so there is only one entrance to schedule the expiration algorithm. See https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/10899294/1/services/core/java/com/android/server/rollback/RollbackManagerServiceImpl.java#672 for the rationale. Bug: 151890602 Test: atest RollbackTest Change-Id: I10355143dedc0af92e0b2adfedb5f008e160cbb3