Searched refs:command (Results 1 - 17 of 17) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
H A DExecutor.java100 * Executes the given command at some time in the future. The command
104 * @param command the runnable task
107 * @throws NullPointerException if command is null
109 void execute(Runnable command); argument
H A DScheduledExecutorService.java71 * @param command the task to execute
79 * @throws NullPointerException if command is null
81 public ScheduledFuture<?> schedule(Runnable command, argument
125 * @param command the task to execute
136 * @throws NullPointerException if command is null
139 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, argument
164 * @param command the task to execute
176 * @throws NullPointerException if command is null
179 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, argument
H A DCyclicBarrier.java20 * <p>A {@code CyclicBarrier} supports an optional {@link Runnable} command
133 /** The command to run when tripped */
190 final Runnable command = barrierCommand;
191 if (command != null)
192 command.run();
245 * @param barrierAction the command to execute when the barrier is
H A DExecutors.java591 public void execute(Runnable command) { e.execute(command); } argument
651 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument
652 return e.schedule(command, delay, unit);
657 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) { argument
658 return e.scheduleAtFixedRate(command, initialDelay, period, unit);
660 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { argument
661 return e.scheduleWithFixedDelay(command, initialDelay, delay, unit);
H A DScheduledThreadPoolExecutor.java524 public ScheduledFuture<?> schedule(Runnable command, argument
527 if (command == null || unit == null)
529 RunnableScheduledFuture<Void> t = decorateTask(command,
530 new ScheduledFutureTask<Void>(command, null,
559 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, argument
563 if (command == null || unit == null)
568 new ScheduledFutureTask<Void>(command,
573 RunnableScheduledFuture<Void> t = decorateTask(command, sft);
584 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, argument
588 if (command
624 execute(Runnable command) argument
[all...]
H A DThreadPoolExecutor.java810 * Invokes the rejected execution handler for the given command.
813 final void reject(Runnable command) { argument
814 handler.rejectedExecution(command, this);
1317 * @param command the task to execute
1321 * @throws NullPointerException if {@code command} is null
1323 public void execute(Runnable command) { argument
1324 if (command == null)
1330 * start a new thread with the given command as its first
1348 if (addWorker(command, true))
1352 if (isRunning(c) && workQueue.offer(command)) {
[all...]
H A DCompletableFuture.java2623 static ScheduledFuture<?> delay(Runnable command, long delay, argument
2625 return delayer.schedule(command, delay, unit);
/libcore/ojluni/src/main/java/java/lang/
H A DProcessBuilder.java51 * <li>a <i>command</i>, a list of strings which signifies the
53 * Which string lists represent a valid operating system command is
56 * systems where programs are expected to tokenize command line
75 * #start()} will fail. For example, setting the command attribute to
115 private List<String> command; field in class:ProcessBuilder
124 * make a copy of the {@code command} list. Subsequent
127 * {@code command} corresponds to a valid operating system
128 * command.
130 * @param command the list containing the program and its arguments
133 public ProcessBuilder(List<String> command) { argument
150 ProcessBuilder(String... command) argument
169 command(List<String> command) argument
187 command(String... command) argument
202 public List<String> command() { method in class:ProcessBuilder
[all...]
H A DCompiler.java69 * Executes an operation according to the specified command object. This
75 * the command object for the JIT compiler.
76 * @return the result of executing command or {@code null}.
78 public static Object command(Object cmd) { method in class:Compiler
H A DRuntime.java392 * Executes the specified string command in a separate process.
395 * <tt>exec(command)</tt>
397 * <tt>{@link #exec(String, String[], File) exec}(command, null, null)</tt>.
399 * @param command a specified system command.
412 * If <code>command</code> is <code>null</code>
415 * If <code>command</code> is empty
420 public Process exec(String command) throws IOException { argument
421 return exec(command, null, null);
425 * Executes the specified string command i
461 exec(String command, String[] envp) argument
515 exec(String command, String[] envp, File dir) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DProcessBuilderTest.java43 ProcessBuilder pb = new ProcessBuilder("command");
44 assertEquals(1, pb.command().size());
45 assertEquals("command", pb.command().get(0));
49 pb.command("BBB", "CCC");
50 List<String> list = pb.command();
52 String[] command = new String[3];
53 list.toArray(command);
54 assertTrue(Arrays.equals(new String[] { "BBB", "CCC", "DDD" }, command));
58 ProcessBuilder pb = new ProcessBuilder("command");
[all...]
H A DCompilerTest.java25 * java.lang.Compiler#command(java.lang.Object)
28 assertNull("Incorrect behavior.", Compiler.command(new Object()));
/libcore/ojluni/src/main/java/sun/net/www/
H A DMimeEntry.java36 private String command; field in class:MimeEntry
75 command = null;
82 MimeEntry(String typeName, int action, String command, argument
86 this.command = command;
94 MimeEntry(String typeName, int action, String command, argument
99 this.command = command;
119 public synchronized void setAction(int action, String command) { argument
121 this.command
132 setCommand(String command) argument
[all...]
H A DMimeLauncher.java168 String command;
171 command = str.substring(0, index);
174 command = str;
177 File f = new File(command);
195 String fullCmd = prefix + File.separator + command;
/libcore/luni/src/test/java/libcore/java/io/
H A DOldFileTest.java171 builder.command().add("-cp");
172 builder.command().add(System.getProperty("java.class.path"));
173 builder.command().add("tests.support.Support_DeleteOnExitTest");
174 builder.command().add(dir.getAbsolutePath());
175 builder.command().add(subDir.getAbsolutePath());
/libcore/support/src/test/java/tests/support/
H A DSupport_Exec.java51 builder.command().add(againstDalvik ? "dalvikvm" : "java");
56 builder.command().addAll(Arrays.asList(testVMArgs.split("\\s+")));
63 * Returns a command-line ready path formed by joining the path elements
106 "Failed to execute " + builder.command() + "; output was:\n" + out);
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldRuntimeTest.java286 String command = "mkdir " + folder;
292 proc = Runtime.getRuntime().exec(command, envp);
295 proc = Runtime.getRuntime().exec(command);
298 proc = Runtime.getRuntime().exec(command, envp, file);

Completed in 287 milliseconds