Home
last modified time | relevance | path

Searched refs:Subprocess (Results 1 – 16 of 16) sorted by relevance

/system/update_engine/common/
Dsubprocess.cc56 if ((flags & Subprocess::kRedirectStderrToStdout) != 0) { in SetupChild()
82 proc->SetSearchPath((flags & Subprocess::kSearchPath) != 0); in LaunchProcess()
105 void Subprocess::Init( in Init()
115 Subprocess::~Subprocess() { in ~Subprocess()
120 void Subprocess::OnStdoutReady(SubprocessRecord* record) { in OnStdoutReady()
138 void Subprocess::ChildExitedCallback(const siginfo_t& info) { in ChildExitedCallback()
172 pid_t Subprocess::Exec(const vector<string>& cmd, in Exec()
177 pid_t Subprocess::ExecFlags(const vector<string>& cmd, in ExecFlags()
192 base::Bind(&Subprocess::ChildExitedCallback, base::Unretained(this)))); in ExecFlags()
204 base::BindRepeating(&Subprocess::OnStdoutReady, record.get())); in ExecFlags()
[all …]
Dsubprocess_unittest.cc76 Subprocess subprocess_;
103 void ExpectedDataOnPipe(const Subprocess* subprocess, in ExpectedDataOnPipe()
127 EXPECT_EQ(&subprocess_, &Subprocess::Get()); in TEST_F()
131 std::unique_ptr<Subprocess> another_subprocess(new Subprocess()); in TEST_F()
132 EXPECT_EQ(&subprocess_, &Subprocess::Get()); in TEST_F()
134 EXPECT_EQ(&subprocess_, &Subprocess::Get()); in TEST_F()
198 EXPECT_TRUE(Subprocess::SynchronousExecFlags( in TEST_F()
199 {"true"}, Subprocess::kSearchPath, &rc, nullptr, nullptr)); in TEST_F()
208 ASSERT_TRUE(Subprocess::SynchronousExec(cmd, &rc, &stdout, &stderr)); in TEST_F()
216 ASSERT_TRUE(Subprocess::SynchronousExec( in TEST_F()
[all …]
Dsubprocess.h48 class Subprocess {
59 Subprocess() = default;
62 ~Subprocess();
103 static Subprocess& Get() { return *subprocess_singleton_; } in Get()
141 static Subprocess* subprocess_singleton_;
150 DISALLOW_COPY_AND_ASSIGN(Subprocess);
/system/core/adb/daemon/
Dshell_service.cpp158 class Subprocess { class
160 Subprocess(std::string command, const char* terminal_type, SubprocessType type,
162 ~Subprocess();
180 static bool StartThread(std::unique_ptr<Subprocess> subprocess,
213 DISALLOW_COPY_AND_ASSIGN(Subprocess);
216 Subprocess::Subprocess(std::string command, const char* terminal_type, SubprocessType type, in Subprocess() function in __anon9d4e575d0111::Subprocess
224 Subprocess::~Subprocess() { in ~Subprocess()
235 bool Subprocess::ForkAndExec(std::string* error) { in ForkAndExec()
423 bool Subprocess::ExecInProcess(Command command, std::string* _Nonnull error) { in ExecInProcess()
463 bool Subprocess::ConnectProtocolEndpoints(std::string* _Nonnull error) { in ConnectProtocolEndpoints()
[all …]
/system/update_engine/
Dhardware_chromeos.cc92 if (!chromeos_update_engine::Subprocess::SynchronousExec( in GetVpdValue()
207 if (!Subprocess::SynchronousExec(cmd, &exit_code, &input_line, &error) || in GetECVersion()
362 if (!Subprocess::SynchronousExec(vpd_set_cmd, &exit_code, &output, &error) || in SetFirstActiveOmahaPingSent()
373 if (!Subprocess::SynchronousExec(vpd_dump_cmd, &exit_code, &output, &error) || in SetFirstActiveOmahaPingSent()
Ddaemon_chromeos.h48 Subprocess subprocess_;
Ddaemon_android.h42 Subprocess subprocess_;
Dmain.cc70 chromeos_update_engine::Subprocess::Get().FlushBufferedLogsAtExit(); in main()
Dp2p_manager.cc256 if (!Subprocess::SynchronousExec(args, &return_code, nullptr, &stderr)) { in EnsureP2P()
381 Subprocess::Get().KillExec(child_pid_); in ~LookupData()
391 child_pid_ = Subprocess::Get().ExecFlags( in InitiateLookup()
393 Subprocess::kSearchPath, in InitiateLookup()
Dsideload_main.cc134 Subprocess subprocess; in ApplyUpdatePayload()
Dboot_control_chromeos.cc315 return Subprocess::Get().Exec( in MarkBootSuccessfulAsync()
Dp2p_manager_unittest.cc98 Subprocess subprocess_;
Dupdate_attempter.cc1070 Subprocess::SynchronousExec(command, &rc, nullptr, nullptr); in RebootDirectly()
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc201 current_command_ = Subprocess::Get().ExecFlags( in PerformPartitionPostinstall()
203 Subprocess::kRedirectStderrToStdout, in PerformPartitionPostinstall()
217 Subprocess::Get().GetPipeFd(current_command_, kPostinstallStatusFd); in PerformPartitionPostinstall()
402 Subprocess::Get().KillExec(current_command_); in TerminateProcessing()
Dpostinstall_runner_action_unittest.cc162 Subprocess subprocess_;
/system/update_engine/payload_generator/
Dsquashfs_filesystem.cc86 if (!Subprocess::SynchronousExec(cmd, &exit_code, &stdout, &stderr) || in GetFileMapContent()
114 if (!Subprocess::SynchronousExec(cmd, &exit_code, &stdout, &stderr) || in GetUpdateEngineConfig()