/libcore/ojluni/src/main/java/java/lang/ |
D | ProcessBuilder.java | 180 private List<String> command; field in ProcessBuilder 198 public ProcessBuilder(List<String> command) { in ProcessBuilder() argument 199 if (command == null) in ProcessBuilder() 201 this.command = command; in ProcessBuilder() 215 public ProcessBuilder(String... command) { in ProcessBuilder() argument 216 this.command = new ArrayList<>(command.length); in ProcessBuilder() 217 for (String arg : command) in ProcessBuilder() 218 this.command.add(arg); in ProcessBuilder() 234 public ProcessBuilder command(List<String> command) { in command() method in ProcessBuilder 235 if (command == null) in command() [all …]
|
D | Runtime.java | 425 public Process exec(String command) throws IOException { in exec() argument 426 return exec(command, null, null); in exec() 466 public Process exec(String command, String[] envp) throws IOException { in exec() argument 467 return exec(command, envp, null); in exec() 520 public Process exec(String command, String[] envp, File dir) in exec() argument 522 if (command.length() == 0) in exec() 525 StringTokenizer st = new StringTokenizer(command); in exec()
|
D | Compiler.java | 78 public static Object command(Object cmd) { in command() method in Compiler
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ProcessBuilderTest.java | 44 assertEquals(1, pb.command().size()); in testCommand() 45 assertEquals("command", pb.command().get(0)); in testCommand() 49 pb.command("BBB", "CCC"); in testCommand() 50 List<String> list = pb.command(); in testCommand() 52 String[] command = new String[3]; in testCommand() local 53 list.toArray(command); in testCommand() 54 assertTrue(Arrays.equals(new String[] { "BBB", "CCC", "DDD" }, command)); in testCommand() 59 ProcessBuilder pbReturn = pb.command("cmd"); in testCommandStringArray() 61 assertEquals(1, pb.command().size()); in testCommandStringArray() 62 assertEquals("cmd", pb.command().get(0)); in testCommandStringArray() [all …]
|
D | CompilerTest.java | 28 assertNull("Incorrect behavior.", Compiler.command(new Object())); in test_commandLjava_lang_Object()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ScheduledExecutorService.java | 110 public ScheduledFuture<?> schedule(Runnable command, in schedule() argument 168 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, in scheduleAtFixedRate() argument 208 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, in scheduleWithFixedDelay() argument
|
D | Executors.java | 630 public void execute(Runnable command) { e.execute(command); } 690 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { 691 return e.schedule(command, delay, unit); 696 …public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, Ti… 697 return e.scheduleAtFixedRate(command, initialDelay, period, unit); 699 …public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, … 700 return e.scheduleWithFixedDelay(command, initialDelay, delay, unit);
|
D | ScheduledThreadPoolExecutor.java | 553 public ScheduledFuture<?> schedule(Runnable command, in schedule() argument 556 if (command == null || unit == null) in schedule() 558 RunnableScheduledFuture<Void> t = decorateTask(command, in schedule() 559 new ScheduledFutureTask<Void>(command, null, in schedule() 588 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, in scheduleAtFixedRate() argument 592 if (command == null || unit == null) in scheduleAtFixedRate() 597 new ScheduledFutureTask<Void>(command, in scheduleAtFixedRate() 602 RunnableScheduledFuture<Void> t = decorateTask(command, sft); in scheduleAtFixedRate() 613 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, in scheduleWithFixedDelay() argument 617 if (command == null || unit == null) in scheduleWithFixedDelay() [all …]
|
D | CyclicBarrier.java | 219 final Runnable command = barrierCommand; in dowait() local 220 if (command != null) in dowait() 221 command.run(); in dowait()
|
D | ThreadPoolExecutor.java | 847 final void reject(Runnable command) { in reject() argument 848 handler.rejectedExecution(command, this); in reject() 1357 public void execute(Runnable command) { in execute() argument 1358 if (command == null) in execute() 1382 if (addWorker(command, true)) in execute() 1386 if (isRunning(c) && workQueue.offer(command)) { in execute() 1388 if (! isRunning(recheck) && remove(command)) in execute() 1389 reject(command); in execute() 1393 else if (!addWorker(command, false)) in execute() 1394 reject(command); in execute()
|
D | Executor.java | 138 void execute(Runnable command); in execute() argument
|
D | CompletableFuture.java | 2641 static ScheduledFuture<?> delay(Runnable command, long delay, in delay() argument 2643 return delayer.schedule(command, delay, unit); in delay()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldFileTest.java | 171 builder.command().add("-cp"); in test_deleteOnExit() 172 builder.command().add(System.getProperty("java.class.path")); in test_deleteOnExit() 173 builder.command().add("tests.support.Support_DeleteOnExitTest"); in test_deleteOnExit() 174 builder.command().add(dir.getAbsolutePath()); in test_deleteOnExit() 175 builder.command().add(subDir.getAbsolutePath()); in test_deleteOnExit()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Exec.java | 51 builder.command().add(againstDalvik ? "dalvikvm" : "java"); in javaProcessBuilder() 56 builder.command().addAll(Arrays.asList(testVMArgs.split("\\s+"))); in javaProcessBuilder() 106 "Failed to execute " + builder.command() + "; output was:\n" + out); in execAndGetOutput()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Runtime.java | 66 public java.lang.Process exec(java.lang.String command) throws java.io.IOException { in exec() argument 70 public java.lang.Process exec(java.lang.String command, java.lang.String[] envp) in exec() argument 76 java.lang.String command, java.lang.String[] envp, java.io.File dir) in exec() argument
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ProcessBuilderTest.java | 106 .command(commandPath("/bin/sleep"), "5") // in seconds in testRedirectInherit() 215 .command(shell()) in testRedirect_nullStreams() 229 .command(shell()) in testRedirectErrorStream_nullStream() 436 assertEquals(expected, new ProcessBuilder().command(expected).command()); in testCommand_setAndGet() 437 assertEquals(expected, new ProcessBuilder().command("echo", "fake", "command", "for", TAG) in testCommand_setAndGet() 438 .command()); in testCommand_setAndGet()
|
D | OldRuntimeTest.java | 295 String command = "mkdir " + folder; in checkExec() local 301 proc = Runtime.getRuntime().exec(command, envp); in checkExec() 304 proc = Runtime.getRuntime().exec(command); in checkExec() 307 proc = Runtime.getRuntime().exec(command, envp, file); in checkExec()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | Executors.java | 193 public void execute(java.lang.Runnable command) { in execute() argument 277 java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit) { in schedule() argument 289 java.lang.Runnable command, in scheduleAtFixedRate() argument 297 java.lang.Runnable command, in scheduleWithFixedDelay() argument
|
D | ThreadPoolExecutor.java | 143 final void reject(java.lang.Runnable command) { in reject() argument 180 public void execute(java.lang.Runnable command) { in execute() argument
|
/libcore/metrictests/memory/host/src/libcore/heapmetrics/ |
D | MetricsRunner.java | 156 String command = String.format( in runInstrumentation() local 159 testDevice.executeShellCommand(command); in runInstrumentation()
|
/libcore/tools/testmapping/ |
D | README | 26 adjust. (These could be converted to command-line options if convenient.)
|
/libcore/luni/src/main/java/java/util/logging/ |
D | logging.properties | 22 # passed to "java" command, or as property definition passed to JNI_CreateJavaVM.
|
/libcore/ |
D | JavaLibrary.bp | 962 // including the command to run to update the expected warnings file.)
|