Unlock the phone before each test

am: c255c8b357

Change-Id: I62baf00e218206488b5c1568d8c643ea787f98b0
This commit is contained in:
vadimt
2019-04-12 14:35:24 -07:00
committed by android-build-merger
2 changed files with 2 additions and 2 deletions
@@ -163,6 +163,8 @@ public abstract class AbstractLauncherUiTest {
public void setUp() throws Exception {
mTargetContext = InstrumentationRegistry.getTargetContext();
mTargetPackage = mTargetContext.getPackageName();
// Unlock the phone
mDevice.executeShellCommand("input keyevent 82");
}
@After
@@ -154,8 +154,6 @@ public final class LauncherInstrumentation {
} catch (IOException e) {
fail(e.toString());
}
assertTrue("Phone is locked", !hasSystemUiObject("keyguard_status_view"));
}
Context getContext() {