Searched refs:commandBuilder (Results 1 – 6 of 6) sorted by relevance
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | MockTestActivityUtil.java | 150 final StringBuilder commandBuilder = new StringBuilder(); in launchSync() local 157 commandBuilder.append(String.format("am start -a %s -c %s --activity-clear-task %s", in launchSync() 160 commandBuilder.append(String.format("am start -a %s -n %s --activity-clear-task", in launchSync() 163 extras.forEach((key, value) -> commandBuilder.append(" --es ") in launchSync() 169 runShellCommandOrThrow(commandBuilder.toString()); in launchSync() 189 final StringBuilder commandBuilder = new StringBuilder(); in launchAsUser() local 196 commandBuilder.append( in launchAsUser() 200 commandBuilder.append( in launchAsUser() 204 extras.forEach((key, value) -> commandBuilder.append(" --es ") in launchAsUser() 210 runShellCommandOrThrow(commandBuilder.toString()); in launchAsUser() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
D | UserBuilder.java | 139 ShellCommand.Builder commandBuilder = ShellCommand.builder("pm create-user"); in create() local 153 commandBuilder.addOption("--profileOf", mParent.id()); in create() 168 commandBuilder.addOperand("--managed"); in create() 176 commandBuilder.addOption("--user-type", mType.name()); in create() 183 commandBuilder.addOperand("--for-testing"); in create() 187 commandBuilder.addOperand("--ephemeral"); in create() 190 commandBuilder.addOperand(mName); in create() 195 Log.d(LOG_TAG, "Creating user with command " + commandBuilder); in create() 197 commandBuilder.validate(ShellCommandUtils::startsWithSuccess) in create()
|
D | UserReference.java | 689 ShellCommand.Builder commandBuilder = ShellCommand.builder("cmd lock_settings") in setLockCredential() local 694 ShellCommand.Builder unused = commandBuilder.addOption("--old", existingCredential); in setLockCredential() 696 ShellCommand.Builder unused = commandBuilder.addOption("--old", mLockCredential); in setLockCredential() 699 String unused = commandBuilder.addOperand(lockCredential) in setLockCredential()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | ShellCommand.java | 68 private final StringBuilder commandBuilder; field in ShellCommand.Builder 79 commandBuilder = new StringBuilder(command); in Builder() 105 commandBuilder.append(" ").append(key).append(" ").append(value); in addOption() 116 commandBuilder.append(" ").append(value); in addOperand() 165 return commandBuilder.insert(0, "su root ").toString(); in build() 168 return commandBuilder.toString(); in build() 251 "Could not parse output", commandBuilder.toString(), output, e); in executeAndParseOutput()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 2603 StringBuilder commandBuilder = new StringBuilder(); 2606 commandBuilder.append("am broadcast -a ").append(mBroadcastReceiverAction) 2620 commandBuilder.append(amStartCmd) 2625 commandBuilder.append(" --ez " + KEY_LAUNCH_ACTIVITY + " true"); 2628 commandBuilder.append(" --ez " + KEY_LAUNCH_TO_SIDE + " true"); 2631 commandBuilder.append(" --ez " + KEY_RANDOM_DATA + " true"); 2634 commandBuilder.append(" --ez " + KEY_NEW_TASK + " true"); 2637 commandBuilder.append(" --ez " + KEY_MULTIPLE_TASK + " true"); 2640 commandBuilder.append(" --ez " + KEY_MULTIPLE_INSTANCES + " true"); 2643 commandBuilder.append(" --ez " + KEY_REORDER_TO_FRONT + " true"); [all …]
|
D | CommandSession.java | 499 public void setupShellCommand(StringBuilder commandBuilder) { 500 commandBuilder.append(" --es " + KEY_HOST_ID + " " + session.mHostId); 501 commandBuilder.append(" --es " + KEY_CLIENT_ID + " " + mClientId); 503 commandBuilder.append( 505 commandBuilder.append(" --es " + KEY_COMMAND + " " + COMMAND_WAIT_IDLE);
|