Home
last modified time | relevance | path

Searched refs:getRuntime (Results 1 – 25 of 32) 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/luni/src/test/java/dalvik/system/
DVMRuntimeTest.java30 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/
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()
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()
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/support/src/test/java/libcore/java/lang/ref/
DFinalizationTester.java31 Runtime.getRuntime().gc(); in induceFinalization()
/libcore/luni/src/test/java/libcore/io/
DMemoryTest.java33 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/
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/libart/src/main/java/java/lang/
DDaemons.java218 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/
DSystem.java634 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()
DRuntime.java305 public static Runtime getRuntime() { in getRuntime() method in Runtime
/libcore/benchmarks/src/benchmarks/
DReferenceGetBenchmark.java55 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
/libcore/dalvik/src/test/java/dalvik/system/
DCloseGuardMonitor.java84 Runtime runtime = Runtime.getRuntime(); in run()
/libcore/libart/src/main/java/dalvik/system/
DVMRuntime.java62 public static VMRuntime getRuntime() { in getRuntime() method in VMRuntime
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DPhantomReferenceTest.java61 Runtime.getRuntime().gc(); in test_gcInteraction()
/libcore/luni/src/main/java/java/nio/
DMemoryBlock.java130 VMRuntime runtime = VMRuntime.getRuntime(); in allocate()
/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;
/libcore/luni/src/main/java/java/util/prefs/
DAbstractPreferences.java62 Runtime.getRuntime().addShutdownHook(new Thread() {

12