Searched refs:process (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/test/java/tests/api/java/lang/ |
D | ProcessManagerTest.java | 34 Process process = null; field in ProcessManagerTest 39 Process process = Runtime.getRuntime().exec(commands, null, null); in testCat() local 41 OutputStream out = process.getOutputStream(); in testCat() 47 assertEquals(greeting, readLine(process)); in testCat() 53 process = Runtime.getRuntime().exec(commands, null, null); in testSleep() 55 assertEquals(0, process.waitFor()); in testSleep() 66 process = Runtime.getRuntime().exec(commands, null, null); in testSleep() 71 process.waitFor(); in testSleep() 116 Process process = Runtime.getRuntime().exec( in testPwd() local 118 logErrors(process); in testPwd() [all …]
|
D | ProcessTest.java | 116 Process process = Runtime.getRuntime().exec(commands, null, null); in test_exitValue() local 122 assertTrue(process.exitValue() == 0); in test_exitValue() 125 process = Runtime.getRuntime().exec(commandsSleep, null, null); in test_exitValue() 126 process.destroy(); in test_exitValue() 130 assertTrue(process.exitValue() != 0); in test_exitValue() 132 process = Runtime.getRuntime().exec(commandsSleep, null, null); in test_exitValue() 134 process.exitValue(); in test_exitValue() 153 Process process = Runtime.getRuntime().exec(commands, null, null); in test_destroy() local 154 process.destroy(); in test_destroy()
|
D | Process2Test.java | 49 Process process = null; in test_getErrorStream() local 51 process = Runtime.getRuntime().exec(commands, null, null); in test_getErrorStream() 52 InputStream is = process.getErrorStream(); in test_getErrorStream() 64 process.destroy(); in test_getErrorStream()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ProcessBuilderTest.java | 58 Process process = new ProcessBuilder(shell(), "-c", "echo out; echo err 1>&2").start(); in testDestroyClosesEverything() local 59 InputStream in = process.getInputStream(); in testDestroyClosesEverything() 60 InputStream err = process.getErrorStream(); in testDestroyClosesEverything() 61 OutputStream out = process.getOutputStream(); in testDestroyClosesEverything() 62 process.destroy(); in testDestroyClosesEverything() 89 Process process = new ProcessBuilder(shell(), "-c", "echo out; echo err 1>&2").start(); in testDestroyDoesNotLeak() local 90 process.destroy(); in testDestroyDoesNotLeak()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Exec.java | 84 Process process = builder.start(); in execAndGetOutput() local 88 streamToStringCallable(process.getErrorStream())); in execAndGetOutput() 90 streamToStringCallable(process.getInputStream())); in execAndGetOutput() 124 Process process = builder.start(); in execAndCheckOutput() local 128 executorService.submit(streamToStringCallable(process.getErrorStream())); in execAndCheckOutput() 130 executorService.submit(streamToStringCallable(process.getInputStream())); in execAndCheckOutput() 135 process.waitFor(); in execAndCheckOutput()
|
/libcore/luni/src/main/java/java/lang/ |
D | ProcessManager.java | 127 ProcessImpl process = processReference.get(); in onExit() local 128 if (process != null) { in onExit() 129 process.setExitValue(exitValue); in onExit() 218 ProcessImpl process = new ProcessImpl(pid, in, out, err); in exec() local 219 ProcessReference processReference = new ProcessReference(process, referenceQueue); in exec() 228 return process; in exec()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Posix.cpp | 342 return process("getpwnam_r", getpwnam_r(name, &mPwd, mBuffer.get(), mBufferSize, &mResult)); in getpwnam() 346 return process("getpwuid_r", getpwuid_r(uid, &mPwd, mBuffer.get(), mBufferSize, &mResult)); in getpwuid() 354 jobject process(const char* syscall, int error) { in process() function in Passwd
|