Merge "Use SysuiTestCase#runShellCommand." into tm-qpr-dev am: c92260f21c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20072234 Change-Id: Ie39b058a74718309ec6bb4b4b8082fc0f2ff4629 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -49,6 +49,7 @@ import org.junit.Before;
|
|||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.function.BooleanSupplier;
|
import java.util.function.BooleanSupplier;
|
||||||
|
|
||||||
@@ -148,8 +149,12 @@ public class GlobalActionsImeTest extends SysuiTestCase {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void executeShellCommand(String cmd) {
|
private void executeShellCommand(String cmd) {
|
||||||
InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand(cmd);
|
try {
|
||||||
|
runShellCommand(cmd);
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user