Home
last modified time | relevance | path

Searched refs:commandBuilder (Results 1 – 6 of 6) sorted by relevance

/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DMockTestActivityUtil.java112 final StringBuilder commandBuilder = new StringBuilder(); in launchSync() local
119 commandBuilder.append(String.format("am start -a %s -c %s --activity-clear-task %s", in launchSync()
122 commandBuilder.append("am start --activity-clear-task -n ") in launchSync()
125 extras.forEach((key, value) -> commandBuilder.append(" --es ") in launchSync()
131 runShellCommand(commandBuilder.toString()); in launchSync()
147 final StringBuilder commandBuilder = new StringBuilder(); in sendBroadcastAction() local
148 commandBuilder.append("am broadcast -a ").append(ACTION_TRIGGER).append(" -p ").append( in sendBroadcastAction()
150 commandBuilder.append(" -f 0x").append( in sendBroadcastAction()
152 commandBuilder.append(" --ez " + extra + " true"); in sendBroadcastAction()
154 runShellCommand(commandBuilder.toString()); in sendBroadcastAction()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommand.java63 private final StringBuilder commandBuilder; field in ShellCommand.Builder
72 commandBuilder = new StringBuilder(command); in Builder()
83 commandBuilder.append(" ").append(key).append(" ").append(value); in addOption()
93 commandBuilder.append(" ").append(value); in addOperand()
133 return "su " + mLinuxUser + " " + commandBuilder.toString(); in build()
135 return commandBuilder.toString(); in build()
180 "Could not parse output", commandBuilder.toString(), output, e); in executeAndParseOutput()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserBuilder.java92 ShellCommand.Builder commandBuilder = ShellCommand.builder("pm create-user"); in create() local
106 commandBuilder.addOption("--profileOf", mParent.id()); in create()
121 commandBuilder.addOperand("--managed"); in create()
129 commandBuilder.addOption("--user-type", mType.name()); in create()
133 commandBuilder.addOperand(mName); in create()
138 commandBuilder.validate(ShellCommandUtils::startsWithSuccess) in create()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java2488 StringBuilder commandBuilder = new StringBuilder();
2491 commandBuilder.append("am broadcast -a ").append(mBroadcastReceiverAction)
2504 commandBuilder.append(amStartCmd)
2509 commandBuilder.append(" --ez " + KEY_LAUNCH_ACTIVITY + " true");
2512 commandBuilder.append(" --ez " + KEY_LAUNCH_TO_SIDE + " true");
2515 commandBuilder.append(" --ez " + KEY_RANDOM_DATA + " true");
2518 commandBuilder.append(" --ez " + KEY_NEW_TASK + " true");
2521 commandBuilder.append(" --ez " + KEY_MULTIPLE_TASK + " true");
2524 commandBuilder.append(" --ez " + KEY_MULTIPLE_INSTANCES + " true");
2527 commandBuilder.append(" --ez " + KEY_REORDER_TO_FRONT + " true");
[all …]
DCommandSession.java456 public void setupShellCommand(StringBuilder commandBuilder) {
457 commandBuilder.append(" --es " + KEY_HOST_ID + " " + session.mHostId);
458 commandBuilder.append(" --es " + KEY_CLIENT_ID + " " + mClientId);
460 commandBuilder.append(
462 commandBuilder.append(" --es " + KEY_COMMAND + " " + COMMAND_WAIT_IDLE);
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java180 StringBuilder commandBuilder = new StringBuilder("appops set ") in setAppOpsMode() local
186 mUiDevice.executeShellCommand(commandBuilder.toString()); in setAppOpsMode()