[DO NOT MERGE] Fix add delay between lskf capture and rebootAndApply call in resumeOnReboot_TwoUsers_SingleUserUnlock_Success.
 - This reduces the likelihood of the "could not reboot-and-apply"
   error.
 - Will need to investigate further why this is so the delay can be
   removed.

Also clean up the tests a bit
 - Refactor common house-keeping logic from the ends of tests to
   tearDown() method
 - Remove device reboot at the end of test. Reboots take more time and
   may increase instability in automated test emulator environment.

Bug: 258541983
Test: atest-src -c CtsAppSecurityHostTestCases:ResumeOnRebootHostTest

Change-Id: I5d127aa4feebbdabbcc9dd17876a5802b7966ad8
1 file changed