Home
last modified time | relevance | path

Searched refs:ShellCommandRule (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DShellCommandRule.java42 public class ShellCommandRule implements TestRule { class
49 public ShellCommandRule(String cmd, @Nullable String revertCommand, boolean checkSuccess, in ShellCommandRule() method in ShellCommandRule
57 public ShellCommandRule(String cmd, @Nullable String revertCommand) { in ShellCommandRule() method in ShellCommandRule
96 public static ShellCommandRule grantWidgetBind() {
97 return new ShellCommandRule("appwidget grantbind --package "
104 public static ShellCommandRule setDefaultLauncher() {
108 return new ShellCommandRule(getLauncherCommand(launcher), null, true, () ->
124 public static ShellCommandRule disableHeadsUpNotification() {
125 return new ShellCommandRule("settings put global heads_up_notifications_enabled 0",
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DAddWidgetTest.java30 import com.android.launcher3.util.rule.ShellCommandRule;
45 public ShellCommandRule mGrantWidgetRule = ShellCommandRule.grantWidgetBind();
DAddConfigWidgetTest.java40 import com.android.launcher3.util.rule.ShellCommandRule;
56 public ShellCommandRule mGrantWidgetRule = ShellCommandRule.grantWidgetBind();
DRequestPinItemTest.java46 import com.android.launcher3.util.rule.ShellCommandRule;
63 public ShellCommandRule mGrantWidgetRule = ShellCommandRule.grantWidgetBind();
DBindWidgetTest.java48 import com.android.launcher3.util.rule.ShellCommandRule;
71 public ShellCommandRule mGrantWidgetRule = ShellCommandRule.grantWidgetBind();
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java69 import com.android.launcher3.util.rule.ShellCommandRule;
208 public ShellCommandRule mDisableHeadsUpNotification =
209 ShellCommandRule.disableHeadsUpNotification();
242 ? RuleChain.outerRule(ShellCommandRule.setDefaultLauncher()) in getRulesInsideActivityMonitor()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DFallbackRecentsTest.java33 import static com.android.launcher3.util.rule.ShellCommandRule.disableHeadsUpNotification;
34 import static com.android.launcher3.util.rule.ShellCommandRule.getLauncherCommand;