Searched refs:getRuntime (Results 1 - 25 of 31) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
H A DOldRuntimeTest.java33 Runtime r = Runtime.getRuntime();
38 // Test for method java.lang.Runtime java.lang.Runtime.getRuntime()
39 assertNotNull(Runtime.getRuntime());
46 Runtime.getRuntime().addShutdownHook(this);
55 Runtime.getRuntime().addShutdownHook(thrException);
61 Runtime.getRuntime().addShutdownHook(thrException);
78 Runtime.getRuntime().removeShutdownHook(thrException);
87 assertTrue(Runtime.getRuntime().availableProcessors() > 0);
98 Runtime.getRuntime().exec((String)null, null);
120 Runtime.getRuntime()
[all...]
H A DOldSystemTest.java257 Runtime rt = Runtime.getRuntime();
303 Runtime.getRuntime().load("nonExistentLibrary");
/libcore/support/src/test/java/libcore/java/lang/ref/
H A DFinalizationTester.java31 Runtime.getRuntime().gc();
/libcore/support/src/test/java/tests/support/
H A DSupport_DeleteOnExitTest.java17 Runtime.getRuntime().exit(0);
/libcore/luni/src/test/java/dalvik/system/
H A DVMRuntimeTest.java30 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, -1);
36 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, Integer.MIN_VALUE);
43 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, i);
53 Object array = VMRuntime.getRuntime().newNonMovableArray(null, 0);
60 Object array = VMRuntime.getRuntime().newNonMovableArray(void.class, 0);
84 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, -1);
90 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, Integer.MIN_VALUE);
97 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, i);
107 Object array = VMRuntime.getRuntime().newUnpaddedArray(null, 0);
114 Object array = VMRuntime.getRuntime()
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DProcessTest.java32 children.add(Runtime.getRuntime().exec(new String[] { "/system/bin/does-not-exist" }, null, null));
41 Process ps = Runtime.getRuntime().exec(psCommand, null, null);
53 Process p = Runtime.getRuntime().exec(commands, null, null);
81 Process p = Runtime.getRuntime().exec(commands, null, null);
110 Process process = Runtime.getRuntime().exec(commands, null, null);
115 process = Runtime.getRuntime().exec(commandsSleep, null, null);
120 process = Runtime.getRuntime().exec(new String[] { "sleep", "3000" }, null, null);
130 Process process = Runtime.getRuntime().exec(commands, null, null);
H A DProcessManagerTest.java37 Process process = Runtime.getRuntime().exec(commands, null, null);
51 process = Runtime.getRuntime().exec(commands, null, null);
64 process = Runtime.getRuntime().exec(commands, null, null);
114 Process process = Runtime.getRuntime().exec(
125 Process process = Runtime.getRuntime().exec(
164 Runtime rt = Runtime.getRuntime();
183 Process process = Runtime.getRuntime().exec(commands, null, null);
190 process = Runtime.getRuntime().exec(commands, null, null);
218 Runtime.getRuntime().exec(commands, null, null);
H A DProcess2Test.java51 process = Runtime.getRuntime().exec(commands, null, null);
70 erProcess = Runtime.getRuntime().exec(unknownCommands, null, null);
H A DRuntimeTest.java28 Runtime r = Runtime.getRuntime();
77 Runtime.getRuntime().exec("AnInexistentProgram");
87 * java.lang.Runtime#getRuntime()
90 // Test for method java.lang.Runtime java.lang.Runtime.getRuntime()
/libcore/luni/src/main/java/libcore/io/
H A DDeleteOnExit.java42 Runtime.getRuntime().addShutdownHook(instance);
/libcore/luni/src/test/java/libcore/io/
H A DMemoryTest.java33 VMRuntime runtime = VMRuntime.getRuntime();
74 VMRuntime runtime = VMRuntime.getRuntime();
112 VMRuntime runtime = VMRuntime.getRuntime();
/libcore/benchmarks/src/benchmarks/
H A DReferenceGetBenchmark.java55 Runtime.getRuntime().gc();
/libcore/dalvik/src/test/java/dalvik/system/
H A DCloseGuardMonitor.java84 Runtime runtime = Runtime.getRuntime();
/libcore/libart/src/main/java/dalvik/system/
H A DVMRuntime.java25 * one from the getRuntime method.
62 public static VMRuntime getRuntime() { method in class:VMRuntime
/libcore/libart/src/main/java/java/lang/
H A DDaemons.java218 if (!finalized && !VMRuntime.getRuntime().isDebuggerActive()) {
313 VMRuntime.getRuntime().trimHeap();
346 VMRuntime.getRuntime().concurrentGC();
/libcore/luni/src/main/java/java/lang/
H A DSystem.java634 Runtime.getRuntime().exit(code);
653 Runtime.getRuntime().gc();
708 VMRuntime runtime = VMRuntime.getRuntime();
981 Runtime.getRuntime().load(pathName, VMStack.getCallingClassLoader());
988 Runtime.getRuntime().loadLibrary(libName, VMStack.getCallingClassLoader());
1046 Runtime.getRuntime().gc();
1048 Runtime.getRuntime().runFinalization();
H A DRuntime.java56 * get a singleton instance by invoking {@link #getRuntime()}.
305 public static Runtime getRuntime() { method in class:Runtime
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
H A DPhantomReferenceTest.java61 Runtime.getRuntime().gc();
/libcore/luni/src/main/java/java/nio/
H A DMemoryBlock.java130 VMRuntime runtime = VMRuntime.getRuntime();
/libcore/luni/src/main/java/java/util/concurrent/
H A DExchanger.java248 private static final int NCPU = Runtime.getRuntime().availableProcessors();
H A DExecutors.java99 (Runtime.getRuntime().availableProcessors(),
H A DPhaser.java983 private static final int NCPU = Runtime.getRuntime().availableProcessors();
H A DLinkedTransferQueue.java383 Runtime.getRuntime().availableProcessors() > 1;
H A DSynchronousQueue.java155 static final int NCPUS = Runtime.getRuntime().availableProcessors();
/libcore/luni/src/main/java/java/util/logging/
H A DLogManager.java187 Runtime.getRuntime().addShutdownHook(new Thread() {

Completed in 1172 milliseconds

12