/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/luni/src/test/java/dalvik/system/ |
D | VMRuntimeTest.java | 30 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, -1); in doTestNewNonMovableArray() 36 … Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, Integer.MIN_VALUE); in doTestNewNonMovableArray() 43 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, i); in doTestNewNonMovableArray() 53 Object array = VMRuntime.getRuntime().newNonMovableArray(null, 0); in testNewNonMovableArray() 60 Object array = VMRuntime.getRuntime().newNonMovableArray(void.class, 0); in testNewNonMovableArray() 84 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, -1); in doTestNewUnpaddedArray() 90 … Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, Integer.MIN_VALUE); in doTestNewUnpaddedArray() 97 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, i); in doTestNewUnpaddedArray() 107 Object array = VMRuntime.getRuntime().newUnpaddedArray(null, 0); in testNewUnpaddedArray() 114 Object array = VMRuntime.getRuntime().newUnpaddedArray(void.class, 0); in testNewUnpaddedArray()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
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 | 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 | 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/support/src/test/java/libcore/java/lang/ref/ |
D | FinalizationTester.java | 31 Runtime.getRuntime().gc(); in induceFinalization()
|
/libcore/luni/src/test/java/libcore/io/ |
D | MemoryTest.java | 33 VMRuntime runtime = VMRuntime.getRuntime(); in testSetIntArray() 74 VMRuntime runtime = VMRuntime.getRuntime(); in testSetLongArray() 112 VMRuntime runtime = VMRuntime.getRuntime(); in testSetShortArray()
|
/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/libart/src/main/java/java/lang/ |
D | Daemons.java | 218 if (!finalized && !VMRuntime.getRuntime().isDebuggerActive()) { in run() 313 VMRuntime.getRuntime().trimHeap(); in run() 346 VMRuntime.getRuntime().concurrentGC(); in run()
|
/libcore/luni/src/main/java/java/lang/ |
D | System.java | 634 Runtime.getRuntime().exit(code); in exit() 653 Runtime.getRuntime().gc(); in gc() 708 VMRuntime runtime = VMRuntime.getRuntime(); in initUnchangeableSystemProperties() 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()
|
D | Runtime.java | 305 public static Runtime getRuntime() { in getRuntime() method in Runtime
|
/libcore/benchmarks/src/benchmarks/ |
D | ReferenceGetBenchmark.java | 55 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
|
/libcore/dalvik/src/test/java/dalvik/system/ |
D | CloseGuardMonitor.java | 84 Runtime runtime = Runtime.getRuntime(); in run()
|
/libcore/libart/src/main/java/dalvik/system/ |
D | VMRuntime.java | 62 public static VMRuntime getRuntime() { in getRuntime() method in VMRuntime
|
/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/main/java/java/nio/ |
D | MemoryBlock.java | 130 VMRuntime runtime = VMRuntime.getRuntime(); in allocate()
|
/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;
|
/libcore/luni/src/main/java/java/util/prefs/ |
D | AbstractPreferences.java | 62 Runtime.getRuntime().addShutdownHook(new Thread() {
|