Home
last modified time | relevance | path

Searched refs:CommandOptions (Results 1 – 9 of 9) 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.cpp113 using android::os::dumpstate::CommandOptions;
127 const CommandOptions& options = CommandOptions::DEFAULT, in RunCommand()
136 CommandOptions Dumpstate::DEFAULT_DUMPSYS = CommandOptions::WithTimeout(30).Build();
307 const CommandOptions& options = Dumpstate::DEFAULT_DUMPSYS, in RunDumpsys()
329 static const CommandOptions AS_ROOT_20 = CommandOptions::WithTimeout(20).AsRoot().Build();
752 CommandOptions::WithTimeout(1).Always().Build()); in PrintHeader()
931 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoKernelLogcat()
942 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoSystemLogcat()
950 CommandOptions::WithTimeoutInMs(timeout_ms).Build(), true /* verbose_duration */); in DoRadioLogcat()
960 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoLogcat()
[all …]
Ddumpstate.h212 static android::os::dumpstate::CommandOptions DEFAULT_DUMPSYS;
232 const android::os::dumpstate::CommandOptions& options =
233 android::os::dumpstate::CommandOptions::DEFAULT,
249 const android::os::dumpstate::CommandOptions& options = DEFAULT_DUMPSYS,
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
DCommandOptionsTest.kt47 CommandOptions(arrayOf()) in noCommand()
53 CommandOptions(testLine.split(' ').toTypedArray()) in invalidCommand()
64 val cmd = CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses()
65 assertEquals(CommandOptions.TRANSFORM_CALLS_CMD, cmd.command) in transformClasses()
82 CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses_noProtoLogClass()
92 CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses_noProtoLogImplClass()
102 CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses_noProtoLogCacheClass()
112 CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses_noProtoLogGroupClass()
122 CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses_noProtoLogGroupJar()
133 CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses_noOutJar()
[all …]
DEndToEndTest.kt48 commandOptions = CommandOptions(arrayOf("transform-protolog-calls", in <lambda>()
79 commandOptions = CommandOptions(arrayOf("generate-viewer-config", in <lambda>()
117 commandOptions: CommandOptions in <lambda>()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DProtoLogTool.kt19 import com.android.protolog.tool.CommandOptions.Companion.USAGE in <lambda>()
45 private fun processClasses(command: CommandOptions) { in <lambda>()
148 private fun viewerConf(command: CommandOptions) { in <lambda>()
196 private fun read(command: CommandOptions) { in <lambda>()
205 val command = CommandOptions(args) in <lambda>()
216 fun invoke(command: CommandOptions) { in <lambda>()
223 CommandOptions.TRANSFORM_CALLS_CMD -> processClasses(command) in <lambda>()
224 CommandOptions.GENERATE_CONFIG_CMD -> viewerConf(command) in <lambda>()
225 CommandOptions.READ_LOG_CMD -> read(command) in <lambda>()
DCommandOptions.kt21 class CommandOptions(args: Array<String>) { in <lambda>() class
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp547 const CommandOptions& options = CommandOptions::DEFAULT) { in RunCommand()
621 CommandOptions::WithTimeout(10).Log("COMMAND, Y U NO LOG FIRST?").Build())); in TEST_F()
628 CommandOptions::WithTimeout(10).RedirectStderr().Build())); in TEST_F()
664 … EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(10).Always().Build())); in TEST_F()
694 CommandOptions::WithTimeout(1).Build())); in TEST_F()
707 CommandOptions::WithTimeout(100).Always().Build())); in TEST_F()
745 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(20).Build())); in TEST_F()
751 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(4).Build())); in TEST_F()
759 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(3).Build())); in TEST_F()
766 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(2).Build())); in TEST_F()
[all …]