Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java58 private Map<String, CommandLine> mMacros = new HashMap<String, CommandLine>();
59 private Map<String, List<CommandLine>> mLongMacros = new HashMap<String, List<CommandLine>>();
60 private List<CommandLine> mLines = new LinkedList<CommandLine>();
65 public static class CommandLine extends LinkedList<String> { class in CommandFileParser
69 CommandLine(File file, int lineNumber) { in CommandLine() method in CommandFileParser.CommandLine
75 CommandLine(Collection<? extends String> c, File file, int lineNumber) { in CommandLine() method in CommandFileParser.CommandLine
101 if(o instanceof CommandLine) { in equals()
102 CommandLine otherLine = (CommandLine) o; in equals()
205 private static boolean isLineMacro(CommandLine line) { in isLineMacro()
215 private static boolean isLineLongMacro(CommandLine line) { in isLineLongMacro()
[all …]
DCommandScheduler.java24 import com.android.tradefed.command.CommandFileParser.CommandLine;
1376 List<CommandLine> commands = parser.parseFile(cmdFile); in internalAddCommandFile()
1382 for (CommandLine command : commands) { in internalAddCommandFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandFileParserTest.java19 import com.android.tradefed.command.CommandFileParser.CommandLine;
99 List<CommandLine> data = parser.parseFile(file); in assertParsedData()
314 Set<CommandLine> expectedSet = ImmutableSet.<CommandLine>builder() in testCommandLineLocation()
315 .add(new CommandLine(Arrays.asList("this", "--is-a-cmd"), mMockFile, 3)) in testCommandLineLocation()
316 .add(new CommandLine(Arrays.asList("one", "--final-cmd"), mMockFile, 4)) in testCommandLineLocation()
317 .add(new CommandLine(Arrays.asList("two", "--final-command"), mMockFile, 6)) in testCommandLineLocation()
321 Set<CommandLine> parsedSet = ImmutableSet.<CommandLine>builder() in testCommandLineLocation()
347 Set<CommandLine> expectedSet = ImmutableSet.<CommandLine>builder() in testCommandLineLocation_withInclude()
348 .add(new CommandLine(Arrays.asList("this", "--is-a-cmd"), mockFile, 4)) in testCommandLineLocation_withInclude()
349 .add(new CommandLine(Arrays.asList("one", "--final-cmd"), mockFile, 5)) in testCommandLineLocation_withInclude()
[all …]
DCommandSchedulerTest.java27 import com.android.tradefed.command.CommandFileParser.CommandLine;
585 final List<CommandLine> cmdFileContent = Arrays.asList(new CommandLine( in testAddCommandFile()
589 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile()
624 final List<CommandLine> cmdFileContent1 = Arrays.asList(new CommandLine( in testAddCommandFile_reload()
626 final List<CommandLine> cmdFileContent2 = Arrays.asList(new CommandLine( in testAddCommandFile_reload()
631 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile_reload()
672 final List<CommandLine> cmdFileContent1 = Arrays.asList(new CommandLine( in testAddCommandFile_twice()
676 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile_twice()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DNoisyDryRunTest.java21 import com.android.tradefed.command.CommandFileParser.CommandLine;
68 List<CommandLine> commands = testCommandFile(listener, mCmdfile); in run()
74 private List<CommandLine> testCommandFile(ITestInvocationListener listener, File file) { in testCommandFile()
140 private void testCommandLines(ITestInvocationListener listener, List<CommandLine> commands) { in testCommandLines()
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/
DIsolationRunner.java21 import org.apache.commons.cli.CommandLine;
222 CommandLine cmd; in parseFlags()