commit | 3eee43845adba7f01efbbb639dfe52737e58f060 | [log] [tgz] |
---|---|---|
author | Zimuzo <[email protected]> | Tue Jan 08 20:42:39 2019 +0000 |
committer | Zimuzo <[email protected]> | Fri Jan 11 14:45:28 2019 +0000 |
tree | bd51b7697aecd88bea408cae2a7f5effb2bd041a | |
parent | b867295c3ea7204e8e9278a05f7d3e6bc957683e [diff] |
Fix PackageWatchdog and add PackageWatchdogTest Fixes: 1. Remove registered observer when removed from persisted file 2. Only call external observers after threshold is exceeded 3. Handle edge case where we reschedule package cleanup and elapsed time is longer than scheduled duration 4. Modify code to allow easier testing Bug: 120598832 Test: atest PackageWatchdogTest Change-Id: I92181136fb5994a4d8ebe976be3138f210e853a5