Loading packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java +7 −2 Original line number Diff line number Diff line Loading @@ -201,7 +201,12 @@ public class BugreportReceiverTest { @After public void tearDown() throws Exception { Log.i(TAG, getName() + ".tearDown()"); try { cancelExistingNotifications(); } finally { // Collapses just in case, so a failure here does not compromise tests on other classes. mUiBot.collapseStatusBar(); } } @Test Loading Loading @@ -362,7 +367,7 @@ public class BugreportReceiverTest { detailsUi.assertName(NAME); // Sanity check cancelFromNotification(); mUiBot.closeNotifications(); mUiBot.collapseStatusBar(); assertDetailsUiClosed(); assertServiceNotRunning(); Loading packages/Shell/tests/src/com/android/shell/UiBot.java +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ final class UiBot { return getObject(text); } public void closeNotifications() throws Exception { public void collapseStatusBar() throws Exception { // TODO: mDevice should provide such method.. StatusBarManager sbm = (StatusBarManager) mInstrumentation.getContext().getSystemService("statusbar"); Loading Loading
packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java +7 −2 Original line number Diff line number Diff line Loading @@ -201,7 +201,12 @@ public class BugreportReceiverTest { @After public void tearDown() throws Exception { Log.i(TAG, getName() + ".tearDown()"); try { cancelExistingNotifications(); } finally { // Collapses just in case, so a failure here does not compromise tests on other classes. mUiBot.collapseStatusBar(); } } @Test Loading Loading @@ -362,7 +367,7 @@ public class BugreportReceiverTest { detailsUi.assertName(NAME); // Sanity check cancelFromNotification(); mUiBot.closeNotifications(); mUiBot.collapseStatusBar(); assertDetailsUiClosed(); assertServiceNotRunning(); Loading
packages/Shell/tests/src/com/android/shell/UiBot.java +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ final class UiBot { return getObject(text); } public void closeNotifications() throws Exception { public void collapseStatusBar() throws Exception { // TODO: mDevice should provide such method.. StatusBarManager sbm = (StatusBarManager) mInstrumentation.getContext().getSystemService("statusbar"); Loading