Home
last modified time | relevance | path

Searched refs:exit_code (Results 1 – 18 of 18) sorted by relevance

/system/update_engine/
Dhardware_chromeos.cc176 int exit_code = 0; in GetECVersion() local
179 bool success = Subprocess::SynchronousExec(cmd, &exit_code, &input_line); in GetECVersion()
180 if (!success || exit_code) { in GetECVersion()
181 LOG(ERROR) << "Unable to read ec info from mosys (" << exit_code << ")"; in GetECVersion()
294 int exit_code = 0; in GetFirstActiveOmahaPingSent() local
297 if (!Subprocess::SynchronousExec(cmd, &exit_code, &active_ping_str) || in GetFirstActiveOmahaPingSent()
298 exit_code) { in GetFirstActiveOmahaPingSent()
300 << " with exit code: " << exit_code; in GetFirstActiveOmahaPingSent()
315 int exit_code = 0; in SetFirstActiveOmahaPingSent() local
319 if (!Subprocess::SynchronousExec(vpd_set_cmd, &exit_code, &output) || in SetFirstActiveOmahaPingSent()
[all …]
Dmain.cc67 int exit_code = update_engine_daemon.Run(); in main() local
71 LOG(INFO) << "A/B Update Engine terminating with exit code " << exit_code; in main()
72 return exit_code; in main()
Ddaemon.cc40 int exit_code = Daemon::OnInit(); in OnInit() local
41 if (exit_code != EX_OK) in OnInit()
42 return exit_code; in OnInit()
/system/media/camera/docs/
Dmetadata-parser-validity-check55 exit_code=$?
58 if [[ $exit_code -ne 0 ]]
65 exit $exit_code
/system/tools/aidl/tests/
Daidl_test_sentinel_searcher.cpp83 int exit_code = 1; in main() local
98 exit_code = 0; in main()
110 return exit_code; in main()
/system/extras/simpleperf/
Dworkload.cpp177 bool Workload::WaitChildProcess(int* exit_code) { in WaitChildProcess() argument
178 return WaitChildProcess(true, false, exit_code); in WaitChildProcess()
181 bool Workload::WaitChildProcess(bool wait_forever, bool is_child_killed, int* exit_code) { in WaitChildProcess() argument
196 if (exit_code != nullptr) { in WaitChildProcess()
197 *exit_code = WEXITSTATUS(status); in WaitChildProcess()
Dworkload.h52 bool WaitChildProcess(int* exit_code);
64 bool WaitChildProcess(bool wait_forever, bool is_child_killed, int* exit_code);
Denvironment.cpp728 int exit_code; in RunCmdInApp() local
729 if (!workload->WaitChildProcess(&exit_code) || exit_code != 0) { in RunCmdInApp()
/system/core/debuggerd/
Ddebuggerd.cpp36 static void usage(int exit_code) { in usage() argument
41 _exit(exit_code); in usage()
/system/core/fastboot/
Dfs.cpp42 DWORD exit_code = 0; in exec_cmd() local
74 GetExitCodeProcess(pi.hProcess, &exit_code); in exec_cmd()
79 if (exit_code != 0) { in exec_cmd()
80 fprintf(stderr, "%s failed: %lu\n", path, exit_code); in exec_cmd()
/system/core/adb/daemon/
Dshell_service_test.cpp97 int exit_code = -1; in ReadShellProtocol() local
111 EXPECT_EQ(-1, exit_code) << "Multiple exit packets received"; in ReadShellProtocol()
113 exit_code = protocol->data()[0]; in ReadShellProtocol()
120 return exit_code; in ReadShellProtocol()
Dshell_service.cpp755 int exit_code = 1; in WaitForExit() local
763 exit_code = 0x80 | WTERMSIG(status); in WaitForExit()
770 exit_code = WEXITSTATUS(status); in WaitForExit()
771 ADB_LOG(Shell) << "subprocess " << pid_ << " exited with status " << exit_code; in WaitForExit()
779 output_->data()[0] = exit_code; in WaitForExit()
781 D("wrote the exit code packet: %d", exit_code); in WaitForExit()
812 char exit_code = 126; in ReportError() local
815 WriteFdExactly(write.get(), &exit_code, sizeof(exit_code)); in ReportError()
/system/core/libkeyutils/mini_keyctl/
Dmini_keyctl.cpp39 static void Usage(int exit_code) { in Usage() argument
46 _exit(exit_code); in Usage()
/system/testing/gtest_extras/
DIsolate.cpp275 int exit_code = WEXITSTATUS(status); in CheckTestsFinished() local
276 if (exit_code != 0) { in CheckTestsFinished()
277 std::string output(test->name() + " exited with exitcode " + std::to_string(exit_code) + in CheckTestsFinished()
751 int exit_code = 0; in Run() local
772 exit_code = 1; in Run()
776 return exit_code; in Run()
/system/update_engine/payload_generator/
Dsquashfs_filesystem.cc80 int exit_code; in GetFileMapContent() local
81 if (!Subprocess::SynchronousExec(cmd, &exit_code, &stdout) || in GetFileMapContent()
82 exit_code != 0) { in GetFileMapContent()
/system/update_engine/common/
Dutils.cc576 int exit_code; in TryAttachingUbiVolume() local
582 TEST_AND_RETURN_FALSE(Subprocess::SynchronousExec(cmd, &exit_code, nullptr)); in TryAttachingUbiVolume()
583 TEST_AND_RETURN_FALSE(exit_code == 0); in TryAttachingUbiVolume()
586 TEST_AND_RETURN_FALSE(Subprocess::SynchronousExec(cmd, &exit_code, nullptr)); in TryAttachingUbiVolume()
587 TEST_AND_RETURN_FALSE(exit_code == 0); in TryAttachingUbiVolume()
/system/core/adb/client/
Dcommandline.cpp271 int exit_code = 0; in read_and_dump() local
272 if (fd < 0) return exit_code; in read_and_dump()
305 exit_code = static_cast<uint8_t>(protocol->data()[0]); in read_and_dump()
322 return callback->Done(exit_code); in read_and_dump()
658 int exit_code = read_and_dump(fd, use_shell_protocol); in RemoteShell() local
666 return exit_code; in RemoteShell()
/system/update_engine/scripts/update_payload/
Dchecker.py500 exit_code = run_process.wait()
502 if exit_code:
504 (cmd, exit_code))