/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldRuntimeTest.java | 33 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 …]
|
D | OldSystemTest.java | 257 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/ |
D | ProcessManagerTest.java | 37 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()
|
D | ProcessTest.java | 32 …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()
|
D | RuntimeTest.java | 28 Runtime r = Runtime.getRuntime(); 77 Runtime.getRuntime().exec("AnInexistentProgram"); in test_exec()
|
D | Process2Test.java | 51 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/ |
D | CloseGuardMonitor.java | 84 Runtime runtime = Runtime.getRuntime(); in run()
|
/libcore/luni/src/main/java/java/lang/ |
D | Runtime.java | 60 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()
|
D | System.java | 634 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/ |
D | FinalizationTester.java | 31 Runtime.getRuntime().gc(); in induceFinalization()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_DeleteOnExitTest.java | 17 Runtime.getRuntime().exit(0); in main()
|
/libcore/luni/src/main/java/libcore/io/ |
D | DeleteOnExit.java | 42 Runtime.getRuntime().addShutdownHook(instance); in getInstance()
|
/libcore/benchmarks/src/benchmarks/ |
D | ReferenceGetBenchmark.java | 55 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | PhantomReferenceTest.java | 61 Runtime.getRuntime().gc(); in test_gcInteraction()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | MethodTest.java | 199 Runtime.class.getMethod("exec", new Class[] { String[].class }).toString()); in testMethodToString()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | LogManager.java | 187 Runtime.getRuntime().addShutdownHook(new Thread() { in LogManager()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | Executors.java | 99 (Runtime.getRuntime().availableProcessors(), in newWorkStealingPool()
|
D | Exchanger.java | 248 private static final int NCPU = Runtime.getRuntime().availableProcessors();
|
D | Phaser.java | 983 private static final int NCPU = Runtime.getRuntime().availableProcessors();
|
D | LinkedTransferQueue.java | 383 Runtime.getRuntime().availableProcessors() > 1;
|
D | SynchronousQueue.java | 155 static final int NCPUS = Runtime.getRuntime().availableProcessors();
|
D | ForkJoinPool.java | 2366 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/ |
D | FileTest.java | 1328 Runtime r = Runtime.getRuntime(); in test_listFiles() 1364 Runtime r = Runtime.getRuntime(); in test_listFiles()
|
/libcore/luni/src/main/java/java/util/prefs/ |
D | AbstractPreferences.java | 62 Runtime.getRuntime().addShutdownHook(new Thread() {
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ForkJoinTaskTest.java | 27 Math.max(2, Runtime.getRuntime().availableProcessors());
|