Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 25) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DProcessBuilder.java180 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() argument
235 if (command == null) in command()
[all …]
DRuntime.java420 public Process exec(String command) throws IOException { in exec() argument
421 return exec(command, null, null); in exec()
461 public Process exec(String command, String[] envp) throws IOException { in exec() argument
462 return exec(command, envp, null); in exec()
515 public Process exec(String command, String[] envp, File dir) in exec() argument
517 if (command.length() == 0) in exec()
520 StringTokenizer st = new StringTokenizer(command); in exec()
DCompiler.java78 public static Object command(Object cmd) { in command() method in Compiler
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcessBuilderTest.java44 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 …]
DCompilerTest.java28 assertNull("Incorrect behavior.", Compiler.command(new Object())); in test_commandLjava_lang_Object()
/libcore/ojluni/src/main/java/java/util/concurrent/
DScheduledExecutorService.java110 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
DExecutors.java630 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);
DScheduledThreadPoolExecutor.java553 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 …]
DCyclicBarrier.java219 final Runnable command = barrierCommand; in dowait() local
220 if (command != null) in dowait()
221 command.run(); in dowait()
DThreadPoolExecutor.java847 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()
DExecutor.java138 void execute(Runnable command); in execute() argument
DCompletableFuture.java2628 static ScheduledFuture<?> delay(Runnable command, long delay, in delay() argument
2630 return delayer.schedule(command, delay, unit); in delay()
/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java171 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/
DSupport_Exec.java51 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/luni/src/test/java/libcore/java/util/concurrent/
DAbstractExecutorServiceTest.java62 public void execute(Runnable command) { in execute() argument
63 command.run(); in execute()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DRuntime.java66 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/
DProcessBuilderTest.java106 .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()
DOldRuntimeTest.java295 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/
DExecutors.java193 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
DThreadPoolExecutor.java143 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/
DMetricsRunner.java156 String command = String.format( in runInstrumentation() local
159 testDevice.executeShellCommand(command); in runInstrumentation()
/libcore/tools/testmapping/
DREADME26 adjust. (These could be converted to command-line options if convenient.)
/libcore/luni/src/main/java/java/util/logging/
Dlogging.properties22 # passed to "java" command, or as property definition passed to JNI_CreateJavaVM.
/libcore/
DJavaLibrary.bp1119 // including the command to run to update the expected warnings file.)
/libcore/api/
Dcurrent.txt2958 method public static Object command(Object);
3473 method public ProcessBuilder command(java.util.List<java.lang.String>);
3474 method public ProcessBuilder command(java.lang.String...);
3475 method public java.util.List<java.lang.String> command();