Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/lang/
DOldRuntimeTest.java33 Runtime r = Runtime.getRuntime();
39 assertNotNull(Runtime.getRuntime()); in test_getRuntime()
46 Runtime.getRuntime().addShutdownHook(this); in test_addShutdownHook()
55 Runtime.getRuntime().addShutdownHook(thrException); in test_addShutdownHook()
61 Runtime.getRuntime().addShutdownHook(thrException); in test_addShutdownHook()
78 Runtime.getRuntime().removeShutdownHook(thrException); in test_addShutdownHook()
87 assertTrue(Runtime.getRuntime().availableProcessors() > 0); in test_availableProcessors()
98 Runtime.getRuntime().exec((String)null, null); in test_execLjava_lang_StringLjava_lang_StringArray()
120 Runtime.getRuntime().exec("", envp); in test_execLjava_lang_StringLjava_lang_StringArray()
136 Runtime.getRuntime().exec((String[])null, null); in test_execLjava_lang_StringArrayLjava_lang_StringArray()
[all …]
DOldSystemTest.java257 Runtime rt = Runtime.getRuntime(); in test_gc()
303 Runtime.getRuntime().load("nonExistentLibrary"); in test_load()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcessManagerTest.java37 Process process = Runtime.getRuntime().exec(commands, null, null); in testCat()
51 process = Runtime.getRuntime().exec(commands, null, null); in testSleep()
64 process = Runtime.getRuntime().exec(commands, null, null); in testSleep()
114 Process process = Runtime.getRuntime().exec( in testPwd()
125 Process process = Runtime.getRuntime().exec( in testEnvironment()
164 Runtime rt = Runtime.getRuntime(); in stuff()
183 Process process = Runtime.getRuntime().exec(commands, null, null); in testCloseNonStandardFds()
190 process = Runtime.getRuntime().exec(commands, null, null); in testCloseNonStandardFds()
218 Runtime.getRuntime().exec(commands, null, null); in testInvalidCommand()
DProcessTest.java32 …children.add(Runtime.getRuntime().exec(new String[] { "/system/bin/does-not-exist" }, null, null)); in test_55017()
41 Process ps = Runtime.getRuntime().exec(psCommand, null, null); in test_55017()
53 Process p = Runtime.getRuntime().exec(commands, null, null); in test_getOutputStream()
81 Process p = Runtime.getRuntime().exec(commands, null, null); in test_getErrorStream()
110 Process process = Runtime.getRuntime().exec(commands, null, null); in test_exitValue()
115 process = Runtime.getRuntime().exec(commandsSleep, null, null); in test_exitValue()
120 process = Runtime.getRuntime().exec(new String[] { "sleep", "3000" }, null, null); in test_exitValue()
130 Process process = Runtime.getRuntime().exec(commands, null, null); in test_destroy()
DRuntimeTest.java28 Runtime r = Runtime.getRuntime();
77 Runtime.getRuntime().exec("AnInexistentProgram"); in test_exec()
DProcess2Test.java51 process = Runtime.getRuntime().exec(commands, null, null); in test_getErrorStream()
70 erProcess = Runtime.getRuntime().exec(unknownCommands, null, null); in test_getErrorStream()
/libcore/dalvik/src/test/java/dalvik/system/
DCloseGuardMonitor.java84 Runtime runtime = Runtime.getRuntime(); in run()
/libcore/luni/src/main/java/java/lang/
DRuntime.java60 public class Runtime { class
65 private static final Runtime mRuntime = new Runtime();
111 private Runtime() { in Runtime() method in Runtime
305 public static Runtime getRuntime() { in getRuntime()
DSystem.java634 Runtime.getRuntime().exit(code); in exit()
653 Runtime.getRuntime().gc(); in gc()
981 Runtime.getRuntime().load(pathName, VMStack.getCallingClassLoader()); in load()
988 Runtime.getRuntime().loadLibrary(libName, VMStack.getCallingClassLoader()); in loadLibrary()
1046 Runtime.getRuntime().gc(); in runFinalization()
1048 Runtime.getRuntime().runFinalization(); in runFinalization()
1066 Runtime.runFinalizersOnExit(flag); in runFinalizersOnExit()
/libcore/support/src/test/java/libcore/java/lang/ref/
DFinalizationTester.java31 Runtime.getRuntime().gc(); in induceFinalization()
/libcore/support/src/test/java/tests/support/
DSupport_DeleteOnExitTest.java17 Runtime.getRuntime().exit(0); in main()
/libcore/luni/src/main/java/libcore/io/
DDeleteOnExit.java42 Runtime.getRuntime().addShutdownHook(instance); in getInstance()
/libcore/benchmarks/src/benchmarks/
DReferenceGetBenchmark.java55 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DPhantomReferenceTest.java61 Runtime.getRuntime().gc(); in test_gcInteraction()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMethodTest.java199 Runtime.class.getMethod("exec", new Class[] { String[].class }).toString()); in testMethodToString()
/libcore/luni/src/main/java/java/util/logging/
DLogManager.java187 Runtime.getRuntime().addShutdownHook(new Thread() { in LogManager()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java99 (Runtime.getRuntime().availableProcessors(), in newWorkStealingPool()
DExchanger.java248 private static final int NCPU = Runtime.getRuntime().availableProcessors();
DPhaser.java983 private static final int NCPU = Runtime.getRuntime().availableProcessors();
DLinkedTransferQueue.java383 Runtime.getRuntime().availableProcessors() > 1;
DSynchronousQueue.java155 static final int NCPUS = Runtime.getRuntime().availableProcessors();
DForkJoinPool.java2366 this(Math.min(MAX_CAP, Runtime.getRuntime().availableProcessors()), in ForkJoinPool()
3277 (parallelism = Runtime.getRuntime().availableProcessors() - 1) < 0) in makeCommonPool()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java1328 Runtime r = Runtime.getRuntime(); in test_listFiles()
1364 Runtime r = Runtime.getRuntime(); in test_listFiles()
/libcore/luni/src/main/java/java/util/prefs/
DAbstractPreferences.java62 Runtime.getRuntime().addShutdownHook(new Thread() {
/libcore/jsr166-tests/src/test/java/jsr166/
DForkJoinTaskTest.java27 Math.max(2, Runtime.getRuntime().availableProcessors());

12