/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandFileWatcher.java | 47 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 …]
|
D | Verify.java | 90 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()
|
D | CommandScheduler.java | 1244 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 …]
|
D | ICommandScheduler.java | 88 public void addCommandFile(String cmdFile, List<String> extraArgs) in addCommandFile() argument
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | VerifyTest.java | 67 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()
|
D | CommandFileWatcherTest.java | 56 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()
|
D | CommandSchedulerTest.java | 617 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/ |
D | AddCommandFileOp.java | 48 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/ |
D | RemoteManagerFuncTest.java | 114 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()
|