/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Executor.java | 102 * Executes the given command at some time in the future. The command 106 * @param command the runnable task 109 * @throws NullPointerException if command is null 111 void execute(Runnable command); argument
|
H A D | ScheduledExecutorService.java | 71 * @param command the task to execute 79 * @throws NullPointerException if command is null 81 public ScheduledFuture<?> schedule(Runnable command, argument 112 * @param command the task to execute 121 * @throws NullPointerException if command is null 124 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, argument 138 * @param command the task to execute 148 * @throws NullPointerException if command is null 151 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, argument
|
H A D | CyclicBarrier.java | 19 * <p>A {@code CyclicBarrier} supports an optional {@link Runnable} command 128 /* The command to run when tripped */ 185 final Runnable command = barrierCommand; 186 if (command != null) 187 command.run(); 240 * @param barrierAction the command to execute when the barrier is
|
H A D | Executors.java | 583 public void execute(Runnable command) { e.execute(command); } argument 643 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument 644 return e.schedule(command, delay, unit); 649 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) { argument 650 return e.scheduleAtFixedRate(command, initialDelay, period, unit); 652 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { argument 653 return e.scheduleWithFixedDelay(command, initialDelay, delay, unit);
|
H A D | ScheduledThreadPoolExecutor.java | 495 public ScheduledFuture<?> schedule(Runnable command, argument 498 if (command == null || unit == null) 500 RunnableScheduledFuture<?> t = decorateTask(command, 501 new ScheduledFutureTask<Void>(command, null, 528 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, argument 532 if (command == null || unit == null) 537 new ScheduledFutureTask<Void>(command, 541 RunnableScheduledFuture<Void> t = decorateTask(command, sft); 552 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, argument 556 if (command 591 execute(Runnable command) argument [all...] |
H A D | ThreadPoolExecutor.java | 789 * Invokes the rejected execution handler for the given command. 792 final void reject(Runnable command) { argument 793 handler.rejectedExecution(command, this); 1296 * @param command the task to execute 1300 * @throws NullPointerException if {@code command} is null 1302 public void execute(Runnable command) { argument 1303 if (command == null) 1309 * start a new thread with the given command as its first 1327 if (addWorker(command, true)) 1331 if (isRunning(c) && workQueue.offer(command)) { [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | ProcessBuilder.java | 33 private List<String> command; field in class:ProcessBuilder 42 * @param command 45 public ProcessBuilder(String... command) { argument 46 this(new ArrayList<String>(Arrays.asList(command))); 55 * @param command 58 * if {@code command} is {@code null}. 60 public ProcessBuilder(List<String> command) { argument 61 if (command == null) { 62 throw new NullPointerException("command == null"); 64 this.command 77 public List<String> command() { method in class:ProcessBuilder 88 command(String... command) argument 103 command(List<String> command) argument [all...] |
H A D | Compiler.java | 32 * Executes an operation according to the specified command object. This 38 * the command object for the JIT compiler. 39 * @return the result of executing command or {@code null}. 41 public static Object command(Object cmd) { method in class:Compiler
|
H A D | ProcessManager.java | 160 private static native int exec(String[] command, String[] environment, argument 178 String[] command = taintedCommand.clone(); 182 for (int i = 0; i < command.length; i++) { 183 if (command[i] == null) { 209 pid = exec(command, environment, workingPath, in, out, err, redirectErrorStream); 212 + " Command: " + Arrays.toString(command)
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ProcessBuilderTest.java | 43 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 D | CompilerTest.java | 25 * java.lang.Compiler#command(java.lang.Object) 28 assertNull("Incorrect behavior.", Compiler.command(new Object()));
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldFileTest.java | 171 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 D | Support_Exec.java | 51 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/main/java/java/net/ |
H A D | Socks4Message.java | 63 * Get the request's command or result. 70 * Set the request's command or result. 72 public void setCommandOrResult(int command) { argument 73 buffer[INDEX_COMMAND] = (byte) command;
|
H A D | PlainSocketImpl.java | 423 private void socksSendRequest(int command, InetAddress address, int port) throws IOException { argument 425 request.setCommandOrResult(command);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldRuntimeTest.java | 286 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);
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FtpURLConnection.java | 233 /* Cannot set REUSEADDR so we need to send a PORT command */ 430 * Issue the STOR command to the server with the file as the parameter 499 private void write(String command) throws IOException { argument 500 ctrlOutput.write(command.getBytes(StandardCharsets.ISO_8859_1));
|