Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/sun/net/www/
DMimeEntry.java36 private String command; field in MimeEntry
75 command = null; in MimeEntry()
82 MimeEntry(String typeName, int action, String command, in MimeEntry() argument
86 this.command = command; in MimeEntry()
94 MimeEntry(String typeName, int action, String command, in MimeEntry() argument
99 this.command = command; in MimeEntry()
119 public synchronized void setAction(int action, String command) { in setAction() argument
121 this.command = command; in setAction()
129 return command; in getLaunchString()
132 public synchronized void setCommand(String command) { in setCommand() argument
[all …]
DMimeLauncher.java168 String command; in findExecutablePath() local
171 command = str.substring(0, index); in findExecutablePath()
174 command = str; in findExecutablePath()
177 File f = new File(command); in findExecutablePath()
195 String fullCmd = prefix + File.separator + command; in findExecutablePath()
/libcore/ojluni/src/main/java/java/lang/
DProcessBuilder.java115 private List<String> command; field in ProcessBuilder
133 public ProcessBuilder(List<String> command) { in ProcessBuilder() argument
134 if (command == null) in ProcessBuilder()
136 this.command = command; in ProcessBuilder()
150 public ProcessBuilder(String... command) { in ProcessBuilder() argument
151 this.command = new ArrayList<>(command.length); in ProcessBuilder()
152 for (String arg : command) in ProcessBuilder()
153 this.command.add(arg); in ProcessBuilder()
169 public ProcessBuilder command(List<String> command) { in command() argument
170 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/luni/src/main/java/java/util/concurrent/
DScheduledExecutorService.java81 public ScheduledFuture<?> schedule(Runnable command, in schedule() argument
139 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, in scheduleAtFixedRate() argument
179 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, in scheduleWithFixedDelay() argument
DExecutors.java591 public void execute(Runnable command) { e.execute(command); }
651 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
652 return e.schedule(command, delay, unit);
657 …public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, Ti…
658 return e.scheduleAtFixedRate(command, initialDelay, period, unit);
660 …public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, …
661 return e.scheduleWithFixedDelay(command, initialDelay, delay, unit);
DScheduledThreadPoolExecutor.java524 public ScheduledFuture<?> schedule(Runnable command, in schedule() argument
527 if (command == null || unit == null) in schedule()
529 RunnableScheduledFuture<Void> t = decorateTask(command, in schedule()
530 new ScheduledFutureTask<Void>(command, null, in schedule()
559 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, in scheduleAtFixedRate() argument
563 if (command == null || unit == null) in scheduleAtFixedRate()
568 new ScheduledFutureTask<Void>(command, in scheduleAtFixedRate()
573 RunnableScheduledFuture<Void> t = decorateTask(command, sft); in scheduleAtFixedRate()
584 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, in scheduleWithFixedDelay() argument
588 if (command == null || unit == null) in scheduleWithFixedDelay()
[all …]
DCyclicBarrier.java190 final Runnable command = barrierCommand; in dowait() local
191 if (command != null) in dowait()
192 command.run(); in dowait()
DExecutor.java109 void execute(Runnable command); in execute() argument
DThreadPoolExecutor.java813 final void reject(Runnable command) { in reject() argument
814 handler.rejectedExecution(command, this); in reject()
1323 public void execute(Runnable command) { in execute() argument
1324 if (command == null) in execute()
1348 if (addWorker(command, true)) in execute()
1352 if (isRunning(c) && workQueue.offer(command)) { in execute()
1354 if (! isRunning(recheck) && remove(command)) in execute()
1355 reject(command); in execute()
1359 else if (!addWorker(command, false)) in execute()
1360 reject(command); in execute()
DCompletableFuture.java2623 static ScheduledFuture<?> delay(Runnable command, long delay, in delay() argument
2625 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/lang/
DOldRuntimeTest.java286 String command = "mkdir " + folder; in checkExec() local
292 proc = Runtime.getRuntime().exec(command, envp); in checkExec()
295 proc = Runtime.getRuntime().exec(command); in checkExec()
298 proc = Runtime.getRuntime().exec(command, envp, file); in checkExec()
/libcore/luni/src/main/java/java/util/logging/
Dlogging.properties22 # passed to "java" command, or as property definition passed to JNI_CreateJavaVM.