Loading cmds/dumpstate/DumpstateUtil.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -207,7 +207,9 @@ std::string PropertiesHelper::build_type_ = ""; int PropertiesHelper::dry_run_ = -1; int PropertiesHelper::unroot_ = -1; int PropertiesHelper::parallel_run_ = -1; #if !defined(__ANDROID_VNDK__) int PropertiesHelper::strict_run_ = -1; #endif bool PropertiesHelper::IsUserBuild() { if (build_type_.empty()) { Loading Loading @@ -238,6 +240,7 @@ bool PropertiesHelper::IsParallelRun() { return parallel_run_ == 1; } #if !defined(__ANDROID_VNDK__) bool PropertiesHelper::IsStrictRun() { if (strict_run_ == -1) { // Defaults to using stricter timeouts. Loading @@ -245,6 +248,7 @@ bool PropertiesHelper::IsStrictRun() { } return strict_run_ == 1; } #endif int DumpFileToFd(int out_fd, const std::string& title, const std::string& path) { android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC))); Loading cmds/dumpstate/DumpstateUtil.h +4 −0 Original line number Diff line number Diff line Loading @@ -198,14 +198,18 @@ class PropertiesHelper { * will default to true. This results in shortened timeouts for flaky * sections. */ #if !defined(__ANDROID_VNDK__) static bool IsStrictRun(); #endif private: static std::string build_type_; static int dry_run_; static int unroot_; static int parallel_run_; #if !defined(__ANDROID_VNDK__) static int strict_run_; #endif }; /* Loading Loading
cmds/dumpstate/DumpstateUtil.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -207,7 +207,9 @@ std::string PropertiesHelper::build_type_ = ""; int PropertiesHelper::dry_run_ = -1; int PropertiesHelper::unroot_ = -1; int PropertiesHelper::parallel_run_ = -1; #if !defined(__ANDROID_VNDK__) int PropertiesHelper::strict_run_ = -1; #endif bool PropertiesHelper::IsUserBuild() { if (build_type_.empty()) { Loading Loading @@ -238,6 +240,7 @@ bool PropertiesHelper::IsParallelRun() { return parallel_run_ == 1; } #if !defined(__ANDROID_VNDK__) bool PropertiesHelper::IsStrictRun() { if (strict_run_ == -1) { // Defaults to using stricter timeouts. Loading @@ -245,6 +248,7 @@ bool PropertiesHelper::IsStrictRun() { } return strict_run_ == 1; } #endif int DumpFileToFd(int out_fd, const std::string& title, const std::string& path) { android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC))); Loading
cmds/dumpstate/DumpstateUtil.h +4 −0 Original line number Diff line number Diff line Loading @@ -198,14 +198,18 @@ class PropertiesHelper { * will default to true. This results in shortened timeouts for flaky * sections. */ #if !defined(__ANDROID_VNDK__) static bool IsStrictRun(); #endif private: static std::string build_type_; static int dry_run_; static int unroot_; static int parallel_run_; #if !defined(__ANDROID_VNDK__) static int strict_run_; #endif }; /* Loading