Searched refs:commandBuilder (Results 1 – 6 of 6) sorted by relevance
112 final StringBuilder commandBuilder = new StringBuilder(); in launchSync() local119 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() local148 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()
63 private final StringBuilder commandBuilder; field in ShellCommand.Builder72 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()
92 ShellCommand.Builder commandBuilder = ShellCommand.builder("pm create-user"); in create() local106 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()
2488 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 …]
456 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);
180 StringBuilder commandBuilder = new StringBuilder("appops set ") in setAppOpsMode() local186 mUiDevice.executeShellCommand(commandBuilder.toString()); in setAppOpsMode()