diff --git a/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java b/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java index 56e7a8bb36f43..f068de7a7847f 100644 --- a/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java +++ b/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java @@ -156,10 +156,10 @@ public class ShortcutManagerTestUtils { return result; } - private static List runCommand(Instrumentation instrumentation, String command) { + public static List runCommand(Instrumentation instrumentation, String command) { return runCommand(instrumentation, command, null); } - private static List runCommand(Instrumentation instrumentation, String command, + public static List runCommand(Instrumentation instrumentation, String command, Predicate> resultAsserter) { Log.d(TAG, "Running command: " + command); final List result; @@ -175,11 +175,11 @@ public class ShortcutManagerTestUtils { return result; } - private static void runCommandForNoOutput(Instrumentation instrumentation, String command) { + public static void runCommandForNoOutput(Instrumentation instrumentation, String command) { runCommand(instrumentation, command, result -> result.size() == 0); } - private static List runShortcutCommand(Instrumentation instrumentation, String command, + public static List runShortcutCommand(Instrumentation instrumentation, String command, Predicate> resultAsserter) { return runCommand(instrumentation, "cmd shortcut " + command, resultAsserter); }