Home
last modified time | relevance | path

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

/system/core/adb/daemon/
Dservices.cpp100 SubprocessType type(command.empty() ? SubprocessType::kPty : SubprocessType::kRaw); in ShellService()
106 type = SubprocessType::kRaw; in ShellService()
108 type = SubprocessType::kPty; in ShellService()
161 return StartSubprocess(cmd, nullptr, SubprocessType::kRaw, SubprocessProtocol::kNone); in reboot_device()
278 return StartSubprocess(cmd, nullptr, SubprocessType::kRaw, SubprocessProtocol::kNone); in daemon_service_to_fd()
288 return StartSubprocess(cmd, nullptr, SubprocessType::kRaw, SubprocessProtocol::kNone); in daemon_service_to_fd()
290 return StartSubprocess("/system/bin/bu restore", nullptr, SubprocessType::kRaw, in daemon_service_to_fd()
293 return StartSubprocess("/system/bin/disable-verity", nullptr, SubprocessType::kRaw, in daemon_service_to_fd()
296 return StartSubprocess("/system/bin/enable-verity", nullptr, SubprocessType::kRaw, in daemon_service_to_fd()
323 return StartSubprocess(std::string(name), nullptr, SubprocessType::kRaw, in daemon_service_to_fd()
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,
Dshell_service_test.cpp47 void StartTestSubprocess(const char* command, SubprocessType type,
63 const char* command, SubprocessType type, SubprocessProtocol protocol) { in StartTestSubprocess()
157 SubprocessType::kRaw, SubprocessProtocol::kNone)); in TEST_F()
169 SubprocessType::kPty, SubprocessProtocol::kNone)); in TEST_F()
179 SubprocessType::kRaw, SubprocessProtocol::kShell)); in TEST_F()
191 SubprocessType::kPty, SubprocessProtocol::kShell)); in TEST_F()
204 "", SubprocessType::kPty, SubprocessProtocol::kShell)); in TEST_F()
234 SubprocessType::kRaw, SubprocessProtocol::kShell)); in TEST_F()
253 SubprocessType::kRaw, SubprocessProtocol::kShell)); in TEST_F()
265 SubprocessType::kRaw, SubprocessProtocol::kShell)); in TEST_F()
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 …]
Dabb_service.cpp79 constexpr auto abb_process_type = SubprocessType::kRaw; in startAbbProcess()