Home
last modified time | relevance | path

Searched refs:cmdFile (Results 1 – 7 of 7) 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 …]
DCommandScheduler.java1358 File cmdFile = new File(cmdFilePath); in addCommandFile() local
1359 if (mReloadCmdfiles && getCommandFileWatcher().isFileWatched(cmdFile)) { in addCommandFile()
1363 removeCommandsFromFile(cmdFile); in addCommandFile()
1365 internalAddCommandFile(cmdFile, extraArgs); in addCommandFile()
1371 private void internalAddCommandFile(File cmdFile, List<String> extraArgs) in internalAddCommandFile() argument
1376 List<CommandLine> commands = parser.parseFile(cmdFile); in internalAddCommandFile()
1380 getCommandFileWatcher().addCmdFile(cmdFile, extraArgs, parser.getIncludedFiles()); in internalAddCommandFile()
1389 internalAddCommand(arrayCommand, cmdFile.getAbsolutePath()); in internalAddCommandFile()
1396 throw new ConfigurationException("Failed to read file " + cmdFile.getAbsolutePath(), e); in internalAddCommandFile()
1788 private synchronized void removeCommandsFromFile(File cmdFile) { in removeCommandsFromFile() argument
[all …]
DICommandScheduler.java98 public void addCommandFile(String cmdFile, List<String> extraArgs) in addCommandFile() argument
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
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.java589 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile()
631 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile_reload()
676 public List<CommandLine> parseFile(File cmdFile) { in testAddCommandFile_twice()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java113 final String cmdFile = "cmd.txt"; in testAddCommandFile() local
115 mMockScheduler.addCommandFile(EasyMock.eq(cmdFile), EasyMock.eq(extraArgs)); in testAddCommandFile()
123 mRemoteClient.sendAddCommandFile(cmdFile, extraArgs); in testAddCommandFile()
/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()