Home
last modified time | relevance | path

Searched refs:cmdFile (Results 1 – 9 of 9) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileWatcher.java47 public void notifyFileChanged(File cmdFile, List<String> extraArgs); in notifyFileChanged() argument
64 public CommandFile(File cmdFile) { in CommandFile() argument
65 if (cmdFile == null) throw new NullPointerException(); in CommandFile()
67 this.file = cmdFile; in CommandFile()
68 this.modTime = cmdFile.lastModified(); in CommandFile()
86 public CommandFile(File cmdFile, List<String> extraArgs, List<File> dependencies) { in CommandFile() argument
87 if (cmdFile == null) throw new NullPointerException(); in CommandFile()
89 this.file = cmdFile; in CommandFile()
90 this.modTime = cmdFile.lastModified(); in CommandFile()
131 void addCmdFile(File cmdFile, List<String> extraArgs, List<File> dependencies) { in addCmdFile() argument
[all …]
DVerify.java90 for (File cmdFile : mCmdFiles) { in run()
93 anyFailures |= !runVerify(cmdFile); in run()
97 System.err.format("Caught exception while parsing \"%s\"\n", cmdFile); in run()
110 public boolean runVerify(File cmdFile) { in runVerify() argument
113 List<CommandFileParser.CommandLine> commands = parser.parseFile(cmdFile); in runVerify()
116 commands.size(), cmdFile); in runVerify()
132 System.err.format("Failed to parse %s:\n", cmdFile); in runVerify()
DCommandScheduler.java1244 File cmdFile = new File(cmdFilePath); in addCommandFile() local
1245 if (mReloadCmdfiles && getCommandFileWatcher().isFileWatched(cmdFile)) { in addCommandFile()
1249 removeCommandsFromFile(cmdFile); in addCommandFile()
1251 internalAddCommandFile(cmdFile, extraArgs); in addCommandFile()
1257 private void internalAddCommandFile(File cmdFile, List<String> extraArgs) in internalAddCommandFile() argument
1262 List<CommandLine> commands = parser.parseFile(cmdFile); in internalAddCommandFile()
1266 getCommandFileWatcher().addCmdFile(cmdFile, extraArgs, parser.getIncludedFiles()); in internalAddCommandFile()
1275 internalAddCommand(arrayCommand, 0, cmdFile.getAbsolutePath()); in internalAddCommandFile()
1282 throw new ConfigurationException("Failed to read file " + cmdFile.getAbsolutePath(), e); in internalAddCommandFile()
1665 private synchronized void removeCommandsFromFile(File cmdFile) { in removeCommandsFromFile() argument
[all …]
DICommandScheduler.java88 public void addCommandFile(String cmdFile, List<String> extraArgs) in addCommandFile() argument
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DVerifyTest.java67 File cmdFile = extractTestCmdFile(name); in assertGoodCmdFile() local
69 assertTrue(mVerify.runVerify(cmdFile)); in assertGoodCmdFile()
71 FileUtil.deleteFile(cmdFile); in assertGoodCmdFile()
80 File cmdFile = extractTestCmdFile(name); in assertBadCmdFile() local
82 assertFalse(mVerify.runVerify(cmdFile)); in assertBadCmdFile()
84 FileUtil.deleteFile(cmdFile); in assertBadCmdFile()
DCommandFileWatcherTest.java56 final File cmdFile = new ModFile("/a/path/too/far", 1, 2); in testImmediateChange() local
57 mWatcher.addCmdFile(cmdFile, EMPTY_ARGS, EMPTY_DEPENDENCIES); in testImmediateChange()
58 mMockListener.notifyFileChanged(cmdFile, EMPTY_ARGS); in testImmediateChange()
70 final File cmdFile = new ModFile("/a/path/too/far", 1, 1, 1); in testNoChange() local
71 mWatcher.addCmdFile(cmdFile, EMPTY_ARGS, EMPTY_DEPENDENCIES); in testNoChange()
DCommandSchedulerTest.java617 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile()
659 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile_reload()
704 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile_twice()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DAddCommandFileOp.java48 String cmdFile = jsonData.getString(COMMAND_FILE); in createFromJson() local
54 return new AddCommandFileOp(cmdFile, argList); in createFromJson()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java114 final String cmdFile = "cmd.txt"; in testAddCommandFile() local
116 mMockScheduler.addCommandFile(EasyMock.eq(cmdFile), EasyMock.eq(extraArgs)); in testAddCommandFile()
124 mRemoteClient.sendAddCommandFile(cmdFile, extraArgs); in testAddCommandFile()