Files
frameworks_base/tests
shafik f90c69f42f Test Rollback Manager can handle time change
Test flow:
	* Install app A with rollback enabled
	* Wait half of the expiration time
	* Install app B with rollback enabled
	* Move time forward by expiration time
	* Wait half of the expiration time
	- At this point, an expiration check should run and expire app A
	but not app B
	* Assert app A rollback is expired
	* Assert app B rollback is not expired
	* Wait half of the expiration time
	* Assert app B rollback is expired

Note: installing app A before app B is done solely to schedule an
expiration check before app B rollback has expired

Test: atest RollbackTest#testTimeChangeDoesNotAffectLifetime
Test: run the same test without the registering the time change handler
in RollbackManagerServiceImpl - test fails
Bug: 124095332

Change-Id: I4bc2d449e4195e059fa43e7568783683a60e2197
2019-03-05 10:55:53 +00:00
..