Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/lang/
DOldRuntimeTest.java36 Runtime r = Runtime.getRuntime();
42 assertNotNull(Runtime.getRuntime()); in test_getRuntime()
49 Runtime.getRuntime().addShutdownHook(this); in test_addShutdownHook()
58 Runtime.getRuntime().addShutdownHook(thrException); in test_addShutdownHook()
64 Runtime.getRuntime().addShutdownHook(thrException); in test_addShutdownHook()
81 Runtime.getRuntime().removeShutdownHook(thrException); in test_addShutdownHook()
90 assertTrue(Runtime.getRuntime().availableProcessors() > 0); in test_availableProcessors()
101 Runtime.getRuntime().exec((String)null, null); in test_execLjava_lang_StringLjava_lang_StringArray()
123 Runtime.getRuntime().exec("", envp); in test_execLjava_lang_StringLjava_lang_StringArray()
139 Runtime.getRuntime().exec((String[])null, null); in test_execLjava_lang_StringArrayLjava_lang_StringArray()
[all …]
DOldSystemTest.java294 Runtime.getRuntime().load("nonExistentLibrary"); in test_load()
/libcore/ojluni/src/main/native/
DRuntime.c84 FAST_NATIVE_METHOD(Runtime, freeMemory, "()J"),
85 FAST_NATIVE_METHOD(Runtime, totalMemory, "()J"),
86 FAST_NATIVE_METHOD(Runtime, maxMemory, "()J"),
87 NATIVE_METHOD(Runtime, gc, "()V"),
88 NATIVE_METHOD(Runtime, nativeExit, "(I)V"),
89 NATIVE_METHOD(Runtime, nativeLoad,
DAndroid.bp58 "Runtime.c",
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcessTest.java34 …children.add(Runtime.getRuntime().exec(new String[] { "/system/bin/does-not-exist" }, null, null)); in test_55017()
45 Process ps = Runtime.getRuntime().exec(psCommand, null, null); in test_55017()
57 Process p = Runtime.getRuntime().exec(commands, null, null); in test_getOutputStream()
85 Process p = Runtime.getRuntime().exec(commands, null, null); in test_getErrorStream()
114 Process process = Runtime.getRuntime().exec(commands, null, null); in test_exitValue()
119 process = Runtime.getRuntime().exec(commandsNonZeroExit, null, null); in test_exitValue()
124 process = Runtime.getRuntime().exec(commandsSleep, null, null); in test_exitValue()
129 process = Runtime.getRuntime().exec(new String[] { "sleep", "3000" }, null, null); in test_exitValue()
139 Process process = Runtime.getRuntime().exec(commands, null, null); in test_destroy()
147 Process process = Runtime.getRuntime().exec(commands, null, null); in test_destroyForcibly()
[all …]
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()
191 process = Runtime.getRuntime().exec(commands, null, null); in testCloseNonStandardFds()
220 Runtime.getRuntime().exec(commands, null, null); in testInvalidCommand()
DRuntimeTest.java28 Runtime r = Runtime.getRuntime();
77 Runtime.getRuntime().exec("AnInexistentProgram"); in test_exec()
DProcess2Test.java44 process = Runtime.getRuntime().exec(commands, null, null); in test_getErrorStream()
65 erProcess = Runtime.getRuntime().exec(unknownCommands, null, null); in test_getErrorStream()
/libcore/luni/src/test/java/libcore/libcore/util/
DNativeAllocationRegistryTest.java49 Runtime.getRuntime().gc(); in testNativeAllocation()
50 long max = Runtime.getRuntime().maxMemory(); in testNativeAllocation()
51 long total = Runtime.getRuntime().totalMemory(); in testNativeAllocation()
141 Runtime.getRuntime().gc(); in testEarlyFree()
/libcore/benchmarks/src/benchmarks/
DReferenceBenchmark.java82 Runtime.getRuntime().gc(); in timeAllocImplicitEnqueueAndRemove()
115 Runtime.getRuntime().gc(); in timeFinalization()
118 Runtime.getRuntime().runFinalization(); in timeFinalization()
DReferenceGetBenchmark.java53 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java58 public class Runtime { class
59 private static Runtime currentRuntime = new Runtime();
92 public static Runtime getRuntime() { in getRuntime()
97 private Runtime() {} in Runtime() method in Runtime
DSystem.java1496 Runtime.getRuntime().exit(status); in exit()
1528 Runtime.getRuntime().gc(); in gc()
1557 Runtime.getRuntime().gc(); in runFinalization()
1559 Runtime.getRuntime().runFinalization(); in runFinalization()
1592 Runtime.runFinalizersOnExit(value); in runFinalizersOnExit()
1633 Runtime.getRuntime().load0(VMStack.getStackClass1(), filename); in load()
1669 Runtime.getRuntime().loadLibrary0(VMStack.getCallingClassLoader(), libname); in loadLibrary()
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DAbstractMetricInstrumentation.java85 Runtime runtime = Runtime.getRuntime(); in tryRemoveGarbage()
/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java115 initialSize = Runtime.getRuntime().availableProcessors(); in createDefault()
142 initialSize = Runtime.getRuntime().availableProcessors(); in wrap()
/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/ojluni/src/main/java/java/io/
DDeleteOnExitHook.java40 Runtime.getRuntime().addShutdownHook(new Thread() {
/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java407 …assertEquals(0, Runtime.getRuntime().exec("ln -s " + f1.getAbsolutePath() + " " + symlinkFile.getA… in test_canonicalCachesAreOff()
411 assertEquals(0, Runtime.getRuntime().exec("rm " + symlinkFile.getAbsolutePath()).waitFor()); in test_canonicalCachesAreOff()
412 …assertEquals(0, Runtime.getRuntime().exec("ln -s " + f2.getAbsolutePath() + " " + symlinkFile.getA… in test_canonicalCachesAreOff()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DPhantomReferenceTest.java53 check_gcInteraction(() -> { Runtime.getRuntime().gc(); } ); in test_gcInteraction_Runtime()
/libcore/ojluni/src/main/java/sun/misc/
DVM.java290 directMemory = Runtime.getRuntime().maxMemory(); in saveAndRemoveProperties()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java109 Runtime.getRuntime().gc(); in testCleanersCleaned()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesSetup.java166 Process process = Runtime.getRuntime().exec(cmdList); in execCmdAndWaitForTermination()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java150 static final int NCPU = Runtime.getRuntime().availableProcessors();
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java210 Process proc = Runtime.getRuntime().exec(cmd); in testGetNetworkInterfaces()

12