Fix failing testDeviceOwnerWithInfo test

It seems like UIAutomator is unable to find the string it
is looking for because the device is locked. Fixed this by
ensuring the device is unlocked and is on the home screen
before running the tests.

Bug: 159695432
Test: atest com.google.android.cts.settings.PrivacyDeviceOwnerTest#testDeviceOwnerWithInfo
with the screen locked.

Change-Id: Id2d6d93e210f0464f55693375dd521d6e1393c6a
1 file changed