Searched refs:CommandOptions (Results 1 – 6 of 6) sorted by relevance
/frameworks/native/cmds/dumpstate/ |
D | DumpstateUtil.cpp | 92 CommandOptions CommandOptions::DEFAULT = CommandOptions::WithTimeout(10).Build(); 93 CommandOptions CommandOptions::AS_ROOT = CommandOptions::WithTimeout(10).AsRoot().Build(); 95 CommandOptions::CommandOptionsBuilder::CommandOptionsBuilder(int64_t timeout_ms) : values(timeout_m… in CommandOptionsBuilder() 98 CommandOptions::CommandOptionsBuilder& CommandOptions::CommandOptionsBuilder::Always() { in Always() 103 CommandOptions::CommandOptionsBuilder& CommandOptions::CommandOptionsBuilder::AsRoot() { in AsRoot() 110 CommandOptions::CommandOptionsBuilder& CommandOptions::CommandOptionsBuilder::AsRootIfAvailable() { in AsRootIfAvailable() 117 CommandOptions::CommandOptionsBuilder& CommandOptions::CommandOptionsBuilder::DropRoot() { in DropRoot() 122 CommandOptions::CommandOptionsBuilder& CommandOptions::CommandOptionsBuilder::RedirectStderr() { in RedirectStderr() 127 CommandOptions::CommandOptionsBuilder& CommandOptions::CommandOptionsBuilder::Log( in Log() 133 CommandOptions CommandOptions::CommandOptionsBuilder::Build() { in Build() [all …]
|
D | DumpstateUtil.h | 75 class CommandOptions { 87 friend class CommandOptions; variable 91 explicit CommandOptions(const CommandOptionsValues& values); 119 CommandOptions Build(); 124 friend class CommandOptions; variable 147 static CommandOptions DEFAULT; 148 static CommandOptions AS_ROOT; 196 const CommandOptions& options = CommandOptions::DEFAULT);
|
D | dumpstate.cpp | 94 using android::os::dumpstate::CommandOptions; 239 const CommandOptions& options = CommandOptions::DEFAULT) { in RunCommand() 243 const CommandOptions& options = Dumpstate::DEFAULT_DUMPSYS, in RunDumpsys() 268 static const CommandOptions AS_ROOT_20 = CommandOptions::WithTimeout(20).AsRoot().Build(); 460 CommandOptions::WithTimeout(1).Build())) { in dump_anrd_trace() 781 CommandOptions::WithTimeout(1).Always().Build()); in PrintHeader() 960 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoKernelLogcat() 970 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoLogcat() 975 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoLogcat() 980 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoLogcat() [all …]
|
D | dumpstate.h | 209 static android::os::dumpstate::CommandOptions DEFAULT_DUMPSYS; 226 const android::os::dumpstate::CommandOptions& options = 227 android::os::dumpstate::CommandOptions::DEFAULT); 242 const android::os::dumpstate::CommandOptions& options = DEFAULT_DUMPSYS,
|
D | utils.cpp | 59 using android::os::dumpstate::CommandOptions; 73 const CommandOptions& options = CommandOptions::DEFAULT) { in RunCommand() 81 CommandOptions Dumpstate::DEFAULT_DUMPSYS = CommandOptions::WithTimeout(30).Build(); 576 RunCommand(title, {"showmap", "-q", arg}, CommandOptions::AS_ROOT); in do_showmap() 699 const CommandOptions& options) { in RunCommand() 714 const CommandOptions& options, long dumpsysTimeoutMs) { in RunDumpsys() 884 CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build()); in TakeScreenshot()
|
/frameworks/native/cmds/dumpstate/tests/ |
D | dumpstate_test.cpp | 600 const CommandOptions& options = CommandOptions::DEFAULT) { in RunCommand() 675 CommandOptions::WithTimeout(10).Log("COMMAND, Y U NO LOG FIRST?").Build())); in TEST_F() 682 CommandOptions::WithTimeout(10).RedirectStderr().Build())); in TEST_F() 717 … EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(10).Always().Build())); in TEST_F() 747 CommandOptions::WithTimeout(1).Build())); in TEST_F() 760 CommandOptions::WithTimeout(100).Always().Build())); in TEST_F() 800 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(20).Build())); in TEST_F() 807 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(10).Build())); in TEST_F() 816 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(1).Build())); in TEST_F() 825 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(4).Build())); in TEST_F() [all …]
|