Home
last modified time | relevance | path

Searched refs:CommandLine (Results 1 – 25 of 141) sorted by relevance

123456

/external/libchrome/base/
Dcommand_line.cc25 CommandLine* CommandLine::current_process_commandline_ = NULL;
29 const CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--");
30 const CommandLine::CharType kSwitchValueSeparator[] = FILE_PATH_LITERAL("=");
38 const CommandLine::CharType* const kSwitchPrefixes[] = {L"--", L"-", L"/"};
41 const CommandLine::CharType* const kSwitchPrefixes[] = {"--", "-"};
45 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) { in GetSwitchPrefixLength()
47 CommandLine::StringType prefix(kSwitchPrefixes[i]); in GetSwitchPrefixLength()
56 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch()
57 CommandLine::StringType* switch_string, in IsSwitch()
58 CommandLine::StringType* switch_value) { in IsSwitch()
[all …]
Dcommand_line_unittest.cc23 static const CommandLine::StringType kTrickyQuoted =
27 static const CommandLine::StringType kTricky =
31 const CommandLine::CharType* argv[] = { in TEST()
50 CommandLine cl(arraysize(argv), argv); in TEST()
84 const CommandLine::StringVector& args = cl.GetArgs(); in TEST()
87 std::vector<CommandLine::StringType>::const_iterator iter = args.begin(); in TEST()
109 CommandLine cl = CommandLine::FromString( in TEST()
148 const CommandLine::StringVector& args = cl.GetArgs(); in TEST()
151 std::vector<CommandLine::StringType>::const_iterator iter = args.begin(); in TEST()
165 CommandLine cl_duplicate = CommandLine::FromString(cl.GetCommandLineString()); in TEST()
[all …]
Dcommand_line.h32 class BASE_EXPORT CommandLine {
48 explicit CommandLine(NoProgram no_program);
51 explicit CommandLine(const FilePath& program);
54 CommandLine(int argc, const CharType* const* argv);
55 explicit CommandLine(const StringVector& argv);
58 CommandLine(const CommandLine& other);
59 CommandLine& operator=(const CommandLine& other);
61 ~CommandLine();
99 static CommandLine* ForCurrentProcess();
105 static CommandLine FromString(const string16& command_line);
[all …]
/external/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp115 ASSERT_EQ(1u, Commands[0].CommandLine.size()); in TEST()
116 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
119 ASSERT_EQ(1u, Commands[1].CommandLine.size()); in TEST()
120 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
134 ASSERT_EQ(1u, Commands[0].CommandLine.size()); in TEST()
135 EXPECT_EQ(Command2, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
138 ASSERT_EQ(1u, Commands[1].CommandLine.size()); in TEST()
139 EXPECT_EQ(Command1, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
171 EXPECT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
172 EXPECT_EQ(Arguments, FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
[all …]
/external/deqp/framework/common/
DtcuCommandLine.hpp98 class CommandLine class
101 CommandLine (void);
102 CommandLine (int argc, const char* const* argv);
103 explicit CommandLine (const std::string& cmdLine);
104 ~CommandLine (void);
195 const de::cmdline::CommandLine& getCommandLine (void) const;
198 CommandLine (const CommandLine&); // not allowed!
199 CommandLine& operator= (const CommandLine&); // not allowed!
205 de::cmdline::CommandLine m_cmdLine;
DtcuCommandLine.cpp640 CommandLine::CommandLine (void) in CommandLine() function in tcu::CommandLine
653 CommandLine::CommandLine (int argc, const char* const* argv) in CommandLine() function in tcu::CommandLine
667 CommandLine::CommandLine (const std::string& cmdLine) in CommandLine() function in tcu::CommandLine
675 CommandLine::~CommandLine (void) in ~CommandLine()
680 void CommandLine::clear (void) in clear()
689 const de::cmdline::CommandLine& CommandLine::getCommandLine (void) const in getCommandLine()
694 void CommandLine::registerExtendedOptions (de::cmdline::Parser& parser) in registerExtendedOptions()
705 bool CommandLine::parse (int argc, const char* const* argv) in parse()
784 bool CommandLine::parse (const std::string& cmdLine) in parse()
805 const char* CommandLine::getLogFileName (void) const { return m_cmdLine.getOption<opt::LogFil… in getLogFileName()
[all …]
DtcuTestContext.hpp37 class CommandLine;
51 …TestContext (Platform& platform, Archive& rootArchive, TestLog& log, const CommandLine& cmdLine,…
60 const CommandLine& getCommandLine (void) const { return m_cmdLine; } in getCommandLine()
80 const CommandLine& m_cmdLine; //!< Command line.
/external/libmojo/base/android/
Dcommand_line_android.cc15 using base::CommandLine;
27 CommandLine extra_command_line(vec); in AppendJavaStringArrayToCommandLine()
28 CommandLine::ForCurrentProcess()->AppendArguments(extra_command_line, in AppendJavaStringArrayToCommandLine()
35 CommandLine::Reset(); in Reset()
42 return CommandLine::ForCurrentProcess()->HasSwitch(switch_string); in HasSwitch()
50 std::string value(CommandLine::ForCurrentProcess()->GetSwitchValueNative( in GetSwitchValue()
61 CommandLine::ForCurrentProcess()->AppendSwitch(switch_string); in AppendSwitch()
70 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switch_string, in AppendSwitchWithValue()
87 CommandLine::Init(0, NULL); in InitNativeCommandLineFromJavaArray()
/external/libchrome/base/test/
Dmultiprocess_test.cc18 const CommandLine& base_command_line, in SpawnMultiProcessTestChild()
20 CommandLine command_line(base_command_line); in SpawnMultiProcessTestChild()
31 CommandLine GetMultiProcessTestChildBaseCommandLine() { in GetMultiProcessTestChildBaseCommandLine()
32 CommandLine cmd_line = *CommandLine::ForCurrentProcess(); in GetMultiProcessTestChildBaseCommandLine()
56 CommandLine MultiProcessTest::MakeCmdLine(const std::string& procname) { in MakeCmdLine()
57 CommandLine command_line = GetMultiProcessTestChildBaseCommandLine(); in MakeCmdLine()
Dmultiprocess_test.h18 class CommandLine; variable
62 const CommandLine& command_line,
67 CommandLine GetMultiProcessTestChildBaseCommandLine();
142 virtual CommandLine MakeCmdLine(const std::string& procname);
Dmultiprocess_test_android.cc98 const CommandLine& base_command_line,
254 CommandLine::Reset(); in StartProcessInHelper()
304 const CommandLine& base_command_line, in StartChildTestHelper()
307 CommandLine command_line(base_command_line); in StartChildTestHelper()
313 const CommandLine::StringVector& argv = command_line.argv(); in StartChildTestHelper()
397 const CommandLine& base_command_line, in SpawnMultiProcessTestChild()
443 CommandLine::Reset(); in SpawnMultiProcessTestChild()
444 CommandLine::Init(0, nullptr); in SpawnMultiProcessTestChild()
445 CommandLine* command_line = CommandLine::ForCurrentProcess(); in SpawnMultiProcessTestChild()
/external/libmojo/base/android/javatests/src/org/chromium/base/
DCommandLineTest.java32 CommandLine.reset(); in setUp()
36 CommandLine cl = CommandLine.getInstance(); in checkInitSwitches()
51 CommandLine cl = CommandLine.getInstance(); in checkSettingThenGetting()
77 String[] actual = CommandLine.tokenizeQuotedAruments(toParse.toCharArray()); in checkTokenizer()
87 CommandLine.init(INIT_SWITCHES); in testJavaInitialization()
95 CommandLine.init(CommandLine.tokenizeQuotedAruments(INIT_SWITCHES_BUFFER)); in testBufferInitialization()
/external/clang/lib/Tooling/
DTooling.cpp173 void addTargetAndModeForProgramName(std::vector<std::string> &CommandLine, in addTargetAndModeForProgramName() argument
175 if (!CommandLine.empty() && !InvokedAs.empty()) { in addTargetAndModeForProgramName()
179 for (auto Token = ++CommandLine.begin(); Token != CommandLine.end(); in addTargetAndModeForProgramName()
190 CommandLine.insert(++CommandLine.begin(), TargetMode.second); in addTargetAndModeForProgramName()
193 CommandLine.insert(++CommandLine.begin(), {"-target", TargetMode.first}); in addTargetAndModeForProgramName()
212 std::vector<std::string> CommandLine, ToolAction *Action, in ToolInvocation() argument
214 : CommandLine(std::move(CommandLine)), Action(Action), OwnsAction(false), in ToolInvocation()
219 std::vector<std::string> CommandLine, FrontendAction *FAction, in ToolInvocation() argument
221 : CommandLine(std::move(CommandLine)), in ToolInvocation()
239 for (const std::string &Str : CommandLine) in run()
[all …]
/external/deqp/framework/delibs/decpp/
DdeCommandLine.cpp114 bool Parser::parse (int numArgs, const char* const* args, CommandLine* dst, std::ostream& err) const in parse()
289 void CommandLine::clear (void) in clear()
355 CommandLine cmdLine; in selfTest()
364 CommandLine cmdLine; in selfTest()
374 CommandLine cmdLine; in selfTest()
384 CommandLine cmdLine; in selfTest()
421 CommandLine cmdLine; in selfTest()
438 CommandLine cmdLine; in selfTest()
455 CommandLine cmdLine; in selfTest()
474 CommandLine cmdLine; in selfTest()
[all …]
/external/libbrillo/brillo/
Dflag_helper_unittest.cc21 static void SetUpTestCase() { base::CommandLine::Init(0, nullptr); } in SetUpTestCase()
44 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
106 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
166 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
195 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
209 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
229 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
256 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
277 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
299 base::CommandLine command_line(arraysize(argv), argv); in TEST_F()
[all …]
/external/deqp/executor/tools/
DxeExtractShaderPrograms.cpp43 struct CommandLine struct
45 CommandLine (void) in CommandLine() function
68 static void writeShaderProgram (const CommandLine& cmdLine, const std::string& casePath, const xe::… in writeShaderProgram() argument
99 static void extractShaderPrograms (const CommandLine& cmdLine, const std::string& casePath, const x… in extractShaderPrograms()
134 ShaderProgramExtractHandler (const CommandLine& cmdLine) in ShaderProgramExtractHandler()
170 const CommandLine& m_cmdLine;
174 static void extractShaderProgramsFromLogFile (const CommandLine& cmdLine) in extractShaderProgramsFromLogFile()
204 static bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv) in parseCommandLine()
233 CommandLine cmdLine; in main()
DxeMergeTestLogs.cpp49 struct CommandLine struct
51 CommandLine (void) in CommandLine() argument
148 static void mergeTestLogs (const CommandLine& cmdLine) in mergeTestLogs()
168 static bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv) in parseCommandLine()
200 CommandLine cmdLine; in main()
/external/libchrome/base/process/
Dlaunch.h32 class CommandLine; variable
187 BASE_EXPORT Process LaunchProcess(const CommandLine& cmdline,
209 BASE_EXPORT Process LaunchElevatedProcess(const CommandLine& cmdline,
240 BASE_EXPORT bool GetAppOutput(const CommandLine& cl, std::string* output);
243 BASE_EXPORT bool GetAppOutputAndError(const CommandLine& cl,
264 BASE_EXPORT bool GetAppOutputWithExitCode(const CommandLine& cl,
/external/libmojo/base/android/java/src/org/chromium/base/
DCommandLine.java31 public abstract class CommandLine { class
104 private static final AtomicReference<CommandLine> sCommandLine =
105 new AtomicReference<CommandLine>();
116 public static CommandLine getInstance() { in getInstance()
117 CommandLine commandLine = sCommandLine.get(); in getInstance()
223 CommandLine commandLine = sCommandLine.get(); in getJavaSwitchesOrNull()
231 private static void setInstance(CommandLine commandLine) { in setInstance()
232 CommandLine oldCommandLine = sCommandLine.getAndSet(commandLine); in setInstance()
280 private CommandLine() {} in CommandLine() method in CommandLine
282 private static class JavaCommandLine extends CommandLine {
[all …]
/external/clang/include/clang/Tooling/
DCompilationDatabase.h46 std::vector<std::string> CommandLine) in CompileCommand()
49 CommandLine(std::move(CommandLine)) {} in CompileCommand()
58 std::vector<std::string> CommandLine; member
192 FixedCompilationDatabase(Twine Directory, ArrayRef<std::string> CommandLine);
/external/lzma/Java/SevenZip/
DLzmaAlone.java5 static public class CommandLine class in LzmaAlone
174 CommandLine params = new CommandLine(); in main()
181 if (params.Command == CommandLine.kBenchmak) in main()
190 else if (params.Command == CommandLine.kEncode || params.Command == CommandLine.kDecode) in main()
201 if (params.Command == CommandLine.kEncode) in main()
/external/deqp/framework/platform/android/
DtcuAndroidTestActivity.hpp42 TestThread (NativeActivity& activity, const CommandLine& cmdLine);
53 const CommandLine& m_cmdLine;
72 CommandLine m_cmdLine;
/external/libmojo/mojo/edk/embedder/
Dplatform_channel_pair.h17 class CommandLine; variable
73 const base::CommandLine& command_line);
84 base::CommandLine* command_line,
/external/libmojo/mojo/edk/test/
Dmultiprocess_test_helper.cc74 base::CommandLine command_line( in StartChildWithExtraSwitch()
85 base::CommandLine::ForCurrentProcess()->GetSwitches()) { in StartChildWithExtraSwitch()
156 CHECK(base::CommandLine::InitializedForCurrentProcess()); in ChildSetup()
158 primordial_pipe_token = base::CommandLine::ForCurrentProcess() in ChildSetup()
168 *base::CommandLine::ForCurrentProcess())); in ChildSetup()
/external/deqp/framework/egl/
DegluGLFunctionLoader.hpp33 class CommandLine;
63 GLLibraryCache (const Platform& platform, const tcu::CommandLine& cmdLine);
75 const tcu::CommandLine& m_cmdLine;

123456