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&
128 CommandOptions::CommandOptionsBuilder::CloseAllFileDescriptorsOnExec() { in CloseAllFileDescriptorsOnExec()
[all …]
DDumpstateUtil.h75 class CommandOptions {
88 friend class CommandOptions; variable
92 explicit CommandOptions(const CommandOptionsValues& values);
127 CommandOptions Build();
132 friend class CommandOptions; variable
157 static CommandOptions DEFAULT;
158 static CommandOptions AS_ROOT;
214 const CommandOptions& options = CommandOptions::DEFAULT);
Ddumpstate.cpp116 using android::os::dumpstate::CommandOptions;
132 const CommandOptions& options = CommandOptions::DEFAULT, in RunCommand()
141 CommandOptions Dumpstate::DEFAULT_DUMPSYS = CommandOptions::WithTimeout(30).Build();
341 const CommandOptions& options = Dumpstate::DEFAULT_DUMPSYS, in RunDumpsys()
367 static const CommandOptions AS_ROOT_20 = CommandOptions::WithTimeout(20).AsRoot().Build();
806 CommandOptions::WithTimeout(1).Always().Build()); in PrintHeader()
986 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoKernelLogcat()
997 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoSystemLogcat()
1005 CommandOptions::WithTimeoutInMs(timeout_ms).Build(), true /* verbose_duration */); in DoRadioLogcat()
1015 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoLogcat()
[all …]
Ddumpstate.h217 static android::os::dumpstate::CommandOptions DEFAULT_DUMPSYS;
239 const android::os::dumpstate::CommandOptions& options =
240 android::os::dumpstate::CommandOptions::DEFAULT,
258 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.cpp514 const CommandOptions& options = CommandOptions::DEFAULT) { in RunCommand()
592 CommandOptions::WithTimeout(10).Log("COMMAND, Y U NO LOG FIRST?").Build())); in TEST_F()
599 CommandOptions::WithTimeout(10).RedirectStderr().Build())); in TEST_F()
635 … EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(10).Always().Build())); in TEST_F()
665 CommandOptions::WithTimeout(1).Build())); in TEST_F()
678 CommandOptions::WithTimeout(100).Always().Build())); in TEST_F()
716 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(20).Build())); in TEST_F()
722 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(4).Build())); in TEST_F()
730 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(3).Build())); in TEST_F()
737 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, CommandOptions::WithTimeout(2).Build())); in TEST_F()
[all …]