Home
last modified time | relevance | path

Searched refs:SubprocessType (Results 1 – 5 of 5) sorted by relevance

/packages/modules/adb/daemon/
Dshell_service_test.cpp50 void StartTestSubprocess(const char* command, SubprocessType type,
66 const char* command, SubprocessType type, SubprocessProtocol protocol) { in StartTestSubprocess()
85 SubprocessType::kRaw, SubprocessProtocol::kNone)); in TEST_F()
97 SubprocessType::kPty, SubprocessProtocol::kNone)); in TEST_F()
107 SubprocessType::kRaw, SubprocessProtocol::kShell)); in TEST_F()
119 SubprocessType::kPty, SubprocessProtocol::kShell)); in TEST_F()
132 "", SubprocessType::kPty, SubprocessProtocol::kShell)); in TEST_F()
162 SubprocessType::kRaw, SubprocessProtocol::kShell)); in TEST_F()
181 SubprocessType::kRaw, SubprocessProtocol::kShell)); in TEST_F()
193 SubprocessType::kRaw, SubprocessProtocol::kShell)); in TEST_F()
Dservices.cpp102 SubprocessType type(command.empty() ? SubprocessType::kPty : SubprocessType::kRaw); in ShellService()
108 type = SubprocessType::kRaw; in ShellService()
110 type = SubprocessType::kPty; in ShellService()
163 return StartSubprocess(cmd, nullptr, SubprocessType::kRaw, SubprocessProtocol::kNone); in reboot_device()
290 return StartSubprocess(cmd, nullptr, SubprocessType::kRaw, SubprocessProtocol::kNone); in daemon_service_to_fd()
300 return StartSubprocess(cmd, nullptr, SubprocessType::kRaw, SubprocessProtocol::kNone); in daemon_service_to_fd()
302 return StartSubprocess("/system/bin/bu restore", nullptr, SubprocessType::kRaw, in daemon_service_to_fd()
305 return StartSubprocess("/system/bin/disable-verity", nullptr, SubprocessType::kRaw, in daemon_service_to_fd()
308 return StartSubprocess("/system/bin/enable-verity", nullptr, SubprocessType::kRaw, in daemon_service_to_fd()
352 return StartSubprocess(std::string(name), nullptr, SubprocessType::kRaw, in daemon_service_to_fd()
Dshell_service.cpp160 Subprocess(std::string command, const char* terminal_type, SubprocessType type,
202 SubprocessType type_;
216 Subprocess::Subprocess(std::string command, const char* terminal_type, SubprocessType type, in Subprocess()
298 if (type_ == SubprocessType::kPty) { in ForkAndExec()
341 if (type_ == SubprocessType::kPty) { in ForkAndExec()
426 CHECK(type_ == SubprocessType::kRaw); in ExecInProcess()
700 if (type_ == SubprocessType::kRaw) { in PassInput()
744 if (bytes < 0 && !(type_ == SubprocessType::kPty && errno == EIO)) { in PassOutput()
827 unique_fd StartSubprocess(std::string name, const char* terminal_type, SubprocessType type, in StartSubprocess()
836 if (protocol == SubprocessProtocol::kNone && type == SubprocessType::kRaw) { in StartSubprocess()
[all …]
Dshell_service.h25 enum class SubprocessType { enum
39 unique_fd StartSubprocess(std::string name, const char* terminal_type, SubprocessType type,
43 unique_fd StartSubprocess(std::string name, const char* terminal_type, SubprocessType type,
Dabb_service.cpp76 constexpr auto abb_process_type = SubprocessType::kRaw; in startAbbProcess()