Support Hsum for RoR CTS.

* Do not attempt to switch to the headless user (user 0)
* Check service interaction as user 0 since RoR runs as system user.
* Modify runDeviceTests as user to actually run as provided user instead of running as current user (this revealed a few bugs described below)
* Fix bug in resumeOnReboot_TwoUsers_BothUserUnlock_Success that never checks primary user is unlocked
* Fix unnecessary second call to verifyUnlockedAndDismiss resumeOnReboot_ManagedProfile_Success

Test: atest -c CtsAppSecurityHostTestCases:ResumeOnRebootHostTest
with/without hsum

Bug: 284081769
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8b86b1850a6826eb6c89068d66ab61ec9fdcae82)
Change-Id: I61bde3f06c06b454c4a57fe20d86a95fac74a425
1 file changed