Home
last modified time | relevance | path

Searched refs:CommandOptions (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/cmds/dumpstate/
DDumpstateUtil.cpp92 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 …]
DDumpstateUtil.h75 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);
Ddumpstate.cpp107 using android::os::dumpstate::CommandOptions;
121 const CommandOptions& options = CommandOptions::DEFAULT, in RunCommand()
130 CommandOptions Dumpstate::DEFAULT_DUMPSYS = CommandOptions::WithTimeout(30).Build();
282 const CommandOptions& options = Dumpstate::DEFAULT_DUMPSYS, in RunDumpsys()
307 static const CommandOptions AS_ROOT_20 = CommandOptions::WithTimeout(20).AsRoot().Build();
707 CommandOptions::WithTimeout(1).Always().Build()); in PrintHeader()
886 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoKernelLogcat()
897 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoSystemLogcat()
905 CommandOptions::WithTimeoutInMs(timeout_ms).Build(), true /* verbose_duration */); in DoRadioLogcat()
915 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoLogcat()
[all …]
Ddumpstate.h211 static android::os::dumpstate::CommandOptions DEFAULT_DUMPSYS;
228 const android::os::dumpstate::CommandOptions& options =
229 android::os::dumpstate::CommandOptions::DEFAULT,
245 const android::os::dumpstate::CommandOptions& options = DEFAULT_DUMPSYS,
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp594 const CommandOptions& options = CommandOptions::DEFAULT) { in RunCommand()
669 CommandOptions::WithTimeout(10).Log("COMMAND, Y U NO LOG FIRST?").Build())); in TEST_F()
676 CommandOptions::WithTimeout(10).RedirectStderr().Build())); in TEST_F()
712 … EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(10).Always().Build())); in TEST_F()
742 CommandOptions::WithTimeout(1).Build())); in TEST_F()
755 CommandOptions::WithTimeout(100).Always().Build())); in TEST_F()
794 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(20).Build())); in TEST_F()
800 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(4).Build())); in TEST_F()
808 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(3).Build())); in TEST_F()
815 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(2).Build())); in TEST_F()
[all …]