Home
last modified time | relevance | path

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

/system/update_engine/common/
Dsubprocess.cc54 if ((flags & Subprocess::kRedirectStderrToStdout) != 0) { in SetupChild()
80 proc->SetSearchPath((flags & Subprocess::kSearchPath) != 0); in LaunchProcess()
102 void Subprocess::Init( in Init()
112 Subprocess::~Subprocess() { in ~Subprocess()
117 void Subprocess::OnStdoutReady(SubprocessRecord* record) { in OnStdoutReady()
136 void Subprocess::ChildExitedCallback(const siginfo_t& info) { in ChildExitedCallback()
171 pid_t Subprocess::Exec(const vector<string>& cmd, in Exec()
176 pid_t Subprocess::ExecFlags(const vector<string>& cmd, in ExecFlags()
189 &Subprocess::ChildExitedCallback, in ExecFlags()
205 base::Bind(&Subprocess::OnStdoutReady, record.get())); in ExecFlags()
[all …]
Dsubprocess_unittest.cc76 Subprocess subprocess_;
99 void ExpectedDataOnPipe(const Subprocess* subprocess, in ExpectedDataOnPipe()
123 EXPECT_EQ(&subprocess_, &Subprocess::Get()); in TEST_F()
127 std::unique_ptr<Subprocess> another_subprocess(new Subprocess()); in TEST_F()
128 EXPECT_EQ(&subprocess_, &Subprocess::Get()); in TEST_F()
130 EXPECT_EQ(&subprocess_, &Subprocess::Get()); in TEST_F()
194 EXPECT_TRUE(Subprocess::SynchronousExecFlags( in TEST_F()
195 {"true"}, Subprocess::kSearchPath, &rc, nullptr)); in TEST_F()
206 ASSERT_TRUE(Subprocess::SynchronousExec(cmd, &rc, &stdout)); in TEST_F()
213 ASSERT_TRUE(Subprocess::SynchronousExec( in TEST_F()
[all …]
Dsubprocess.h47 class Subprocess {
58 Subprocess() = default;
61 ~Subprocess();
100 static Subprocess& Get() { in Get()
138 static Subprocess* subprocess_singleton_;
147 DISALLOW_COPY_AND_ASSIGN(Subprocess);
Dutils.cc590 TEST_AND_RETURN_FALSE(Subprocess::SynchronousExec(cmd, &exit_code, nullptr)); in TryAttachingUbiVolume()
598 TEST_AND_RETURN_FALSE(Subprocess::SynchronousExec(cmd, &exit_code, nullptr)); in TryAttachingUbiVolume()
/system/core/adb/
Dshell_service.cpp137 class Subprocess { class
139 Subprocess(const std::string& command, const char* terminal_type,
141 ~Subprocess();
155 static bool StartThread(std::unique_ptr<Subprocess> subprocess,
187 DISALLOW_COPY_AND_ASSIGN(Subprocess);
190 Subprocess::Subprocess(const std::string& command, const char* terminal_type, in Subprocess() function in __anonfc43d0fa0111::Subprocess
210 Subprocess::~Subprocess() { in ~Subprocess()
214 bool Subprocess::ForkAndExec(std::string* error) { in ForkAndExec()
393 bool Subprocess::StartThread(std::unique_ptr<Subprocess> subprocess, std::string* error) { in StartThread()
394 Subprocess* raw = subprocess.release(); in StartThread()
[all …]
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc188 current_command_ = Subprocess::Get().ExecFlags( in PerformPartitionPostinstall()
190 Subprocess::kRedirectStderrToStdout, in PerformPartitionPostinstall()
204 Subprocess::Get().GetPipeFd(current_command_, kPostinstallStatusFd); in PerformPartitionPostinstall()
379 Subprocess::Get().KillExec(current_command_); in TerminateProcessing()
Dpostinstall_runner_action_unittest.cc151 Subprocess subprocess_;
/system/update_engine/
Ddaemon.h64 Subprocess subprocess_;
Dp2p_manager.cc261 if (!Subprocess::SynchronousExec(args, &return_code, &output)) { in EnsureP2P()
388 Subprocess::Get().KillExec(child_pid_); in ~LookupData()
398 child_pid_ = Subprocess::Get().ExecFlags( in InitiateLookup()
399 cmd, Subprocess::kSearchPath, {}, in InitiateLookup()
Dhardware_chromeos.cc173 bool success = Subprocess::SynchronousExec(cmd, &exit_code, &input_line); in GetECVersion()
Dsideload_main.cc153 Subprocess subprocess; in ApplyUpdatePayload()
Dboot_control_chromeos.cc251 return Subprocess::Get().Exec( in MarkBootSuccessfulAsync()
Dp2p_manager_unittest.cc94 Subprocess subprocess_;
Dupdate_attempter.cc841 Subprocess::SynchronousExec(command, &rc, nullptr); in UpdateAttempter()
/system/update_engine/payload_generator/
Ddelta_diff_utils.cc718 TEST_AND_RETURN_FALSE(Subprocess::SynchronousExec(cmd, &rc, &stdout)); in DiffFiles()