Home
last modified time | relevance | path

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

12

/libcore/luni/src/main/java/java/lang/
DProcessBuilder.java33 private List<String> command; field in ProcessBuilder
48 public ProcessBuilder(String... command) { in ProcessBuilder() argument
49 this(toList(command)); in ProcessBuilder()
63 public ProcessBuilder(List<String> command) { in ProcessBuilder() argument
65 if (command == null) { in ProcessBuilder()
68 this.command = command; in ProcessBuilder()
81 public List<String> command() { in command() method in ProcessBuilder
82 return command; in command()
92 public ProcessBuilder command(String... command) { in command() argument
93 return command(toList(command)); in command()
[all …]
DProcessManager.java170 static native int exec(String[] command, String[] environment, in exec() argument
188 String[] command = taintedCommand.clone(); in exec() local
192 securityManager.checkExec(command[0]); in exec()
195 for (String arg : command) { in exec()
222 pid = exec(command, environment, workingPath, in, out, err, redirectErrorStream); in exec()
225 + " Command: " + Arrays.toString(command) in exec()
DCompiler.java44 public static Object command(Object cmd) { in command() method in Compiler
/libcore/luni/src/main/java/java/util/concurrent/
DScheduledExecutorService.java82 public ScheduledFuture<?> schedule(Runnable command, in schedule() argument
125 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, in scheduleAtFixedRate() argument
152 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, in scheduleWithFixedDelay() argument
DCyclicBarrier.java184 final Runnable command = barrierCommand; in dowait() local
185 if (command != null) in dowait()
186 command.run(); in dowait()
DScheduledThreadPoolExecutor.java493 public ScheduledFuture<?> schedule(Runnable command, in schedule() argument
496 if (command == null || unit == null) in schedule()
498 RunnableScheduledFuture<?> t = decorateTask(command, in schedule()
499 new ScheduledFutureTask<Void>(command, null, in schedule()
526 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, in scheduleAtFixedRate() argument
530 if (command == null || unit == null) in scheduleAtFixedRate()
535 new ScheduledFutureTask<Void>(command, in scheduleAtFixedRate()
539 RunnableScheduledFuture<Void> t = decorateTask(command, sft); in scheduleAtFixedRate()
550 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, in scheduleWithFixedDelay() argument
554 if (command == null || unit == null) in scheduleWithFixedDelay()
[all …]
DExecutors.java602 public void execute(Runnable command) { e.execute(command); }
666 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
667 return e.schedule(command, delay, unit);
672 …public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, T…
673 return e.scheduleAtFixedRate(command, initialDelay, period, unit);
675 …public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay,…
676 return e.scheduleWithFixedDelay(command, initialDelay, delay, unit);
DExecutor.java111 void execute(Runnable command); in execute() argument
DThreadPoolExecutor.java793 final void reject(Runnable command) { in reject() argument
794 handler.rejectedExecution(command, this); in reject()
1278 public void execute(Runnable command) { in execute() argument
1279 if (command == null) in execute()
1303 if (addWorker(command, true)) in execute()
1307 if (isRunning(c) && workQueue.offer(command)) { in execute()
1309 if (! isRunning(recheck) && remove(command)) in execute()
1310 reject(command); in execute()
1314 else if (!addWorker(command, false)) in execute()
1315 reject(command); in execute()
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
DJarExecTest.java67 builder.command().add("-jar"); in test_1562()
68 builder.command().add(outputJar.getAbsolutePath()); in test_1562()
107 builder.command().add("-jar"); in test_jar_class_path()
108 builder.command().add(fooJar.getAbsolutePath()); in test_jar_class_path()
172 builder.command().add("-jar"); in test_main_class_in_another_jar()
173 builder.command().add(barJar.getAbsolutePath()); in test_main_class_in_another_jar()
195 builder.command().add("foo.bar.execjartest.Foo"); in test_classpath()
220 builder.command().add("-cp"); in test_classpath()
221 builder.command().add(booJar.getAbsolutePath()); in test_classpath()
222 builder.command().add("foo.bar.execjartest.Foo"); in test_classpath()
[all …]
DDalvikExecTest.java43 builder.command().add(base + "/system/bin/dalvikvm"); in execDalvik1()
45 builder.command().add("-Djava.io.tmpdir=/tmp/mc"); in execDalvik1()
46 builder.command().add("-Duser.language=en"); in execDalvik1()
47 builder.command().add("-Duser.region=US"); in execDalvik1()
53 builder.command().add("-Xbootclasspath:" + System.getProperty("java.boot.class.path")); in execDalvik1()
58 builder.command().add("-classpath"); in execDalvik1()
59 builder.command().add(classpath); in execDalvik1()
60 builder.command().add(mainClass); in execDalvik1()
63 builder.command().add(arg1); in execDalvik1()
DZipExecTest.java65 builder.command().add("-jar"); in test_1562()
66 builder.command().add(outputZip.getAbsolutePath()); in test_1562()
108 builder.command().add("-jar"); in test_zip_class_path()
109 builder.command().add(fooZip.getAbsolutePath()); in test_zip_class_path()
172 builder.command().add("-jar"); in test_zip_jar_mix()
173 builder.command().add(fooJar.getAbsolutePath()); in test_zip_jar_mix()
209 builder.command().add("-jar"); in test_zip_jar_mix_1()
210 builder.command().add(fooZip.getAbsolutePath()); in test_zip_jar_mix_1()
253 builder.command().add("-jar"); in test_main_class_in_another_zip()
254 builder.command().add(barZip.getAbsolutePath()); in test_main_class_in_another_zip()
/libcore/luni/src/test/java/tests/api/java/security/
DPermissionCollectionTest.java174 builder.command().add("-cp"); in test_impliesLjava_security_Permission()
175 builder.command().add(Support_Exec.createPath( in test_impliesLjava_security_Permission()
177 builder.command().add("-Djava.security.policy=" + policyFile.toURL()); in test_impliesLjava_security_Permission()
178 builder.command().add("tests.support.Support_PermissionCollection"); in test_impliesLjava_security_Permission()
179 builder.command().add(signedBKS.toExternalForm()); in test_impliesLjava_security_Permission()
/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/org/apache/harmony/luni/tests/java/lang/
DCompilerTest.java28 assertNull("Incorrect behavior.", Compiler.command(new Object())); in test_commandLjava_lang_Object()
DRuntimeTest.java493 String command = "mkdir " + folder; in checkExec() local
499 proc = Runtime.getRuntime().exec(command, envp); in checkExec()
502 proc = Runtime.getRuntime().exec(command); in checkExec()
505 proc = Runtime.getRuntime().exec(command, envp, file); in checkExec()
/libcore/luni/src/main/java/org/apache/harmony/luni/net/
DSocks4Message.java71 public void setCommandOrResult(int command) { in setCommandOrResult() argument
72 buffer[INDEX_COMMAND] = (byte) command; in setCommandOrResult()
DPlainSocketImpl.java402 private void socksSendRequest(int command, InetAddress address, int port)
405 request.setCommandOrResult(command);
/libcore/luni/src/main/java/org/apache/xalan/processor/
DXSLProcessorVersion.src34 * Print the processor version to the command line.
36 * @param argv command line arguments, unused.
/libcore/luni/src/main/java/org/apache/xml/serializer/
DVersion.src52 * Print the processor version to the command line.
54 * @param argv command line arguments, unused.
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
DFtpURLConnection.java499 private void write(String command) throws IOException { in write() argument
500 ctrlOutput.write(command.getBytes(Charsets.ISO_8859_1)); in write()
/libcore/luni/src/main/java/org/apache/xalan/
DVersion.src55 * Print the processor version to the command line.
57 * @param argv command line arguments, unused.
/libcore/luni/src/main/java/java/security/
Dsecurity.properties43 # extra properties file passed on the command line with
70 # Flag to enable/disable an extra policy to be passed on the command line
/libcore/luni/src/main/java/java/util/logging/
Dlogging.properties22 # passed to "java" command, or as property definition passed to JNI_CreateJavaVM.
/libcore/luni/src/test/java/tests/api/java/io/
DFileTest.java2455 builder.command().add("-cp"); in test_deleteOnExit()
2456 builder.command().add(System.getProperty("java.class.path")); in test_deleteOnExit()
2457 builder.command().add("tests.support.Support_DeleteOnExitTest"); in test_deleteOnExit()
2458 builder.command().add(dir.getAbsolutePath()); in test_deleteOnExit()
2459 builder.command().add(subDir.getAbsolutePath()); in test_deleteOnExit()

12