Home | History | Annotate | Download | only in adb

Lines Matching full:use_shell_protocol

251 // Reads from |fd| and prints received data. If |use_shell_protocol| is true
256 int read_and_dump(int fd, bool use_shell_protocol = false,
266 if (use_shell_protocol) {
276 if (use_shell_protocol) {
567 static std::string ShellServiceString(bool use_shell_protocol,
571 if (use_shell_protocol) {
596 // On success returns the remote exit code if |use_shell_protocol| is true,
598 static int RemoteShell(bool use_shell_protocol, const std::string& type_arg,
601 std::string service_string = ShellServiceString(use_shell_protocol,
605 // Use |use_shell_protocol| to determine whether to allow a command longer than that.
606 if (service_string.size() > MAX_PAYLOAD_V1 && !use_shell_protocol) {
633 if (use_shell_protocol) {
662 int exit_code = read_and_dump(fd, use_shell_protocol);
685 bool use_shell_protocol = CanUseFeature(features, kFeatureShell2); // -x
686 PtyAllocationMode tty = use_shell_protocol ? kPtyAuto : kPtyDefinitely; // -t/-T
712 use_shell_protocol = false;
752 D("shell -e 0x%x t=%d use_shell_protocol=%s shell_type_arg=%s\n",
754 use_shell_protocol ? "true" : "false",
758 if (!use_shell_protocol) {
775 return RemoteShell(use_shell_protocol, shell_type_arg, escape_char, command);
1080 bool use_shell_protocol = false;
1091 use_shell_protocol = CanUseFeature(features, kFeatureShell2);
1100 std::string service_string = ShellServiceString(use_shell_protocol, "", command);
1114 int exit_code = read_and_dump(fd, use_shell_protocol, callback);