/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldRuntimeTest.java | 42 Runtime r = Runtime.getRuntime(); 48 assertNotNull(Runtime.getRuntime()); in test_getRuntime() 55 Runtime.getRuntime().addShutdownHook(this); in test_addShutdownHook() 64 Runtime.getRuntime().addShutdownHook(thrException); in test_addShutdownHook() 70 Runtime.getRuntime().addShutdownHook(thrException); in test_addShutdownHook() 87 Runtime.getRuntime().removeShutdownHook(thrException); in test_addShutdownHook() 96 assertTrue(Runtime.getRuntime().availableProcessors() > 0); in test_availableProcessors() 107 Runtime.getRuntime().exec((String)null, null); in test_execLjava_lang_StringLjava_lang_StringArray() 129 Runtime.getRuntime().exec("", envp); in test_execLjava_lang_StringLjava_lang_StringArray() 145 Runtime.getRuntime().exec((String[])null, null); in test_execLjava_lang_StringArrayLjava_lang_StringArray() [all …]
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | VMRuntimeTest.java | 32 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, -1); in doTestNewNonMovableArray() 38 … Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, Integer.MIN_VALUE); in doTestNewNonMovableArray() 45 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, i); in doTestNewNonMovableArray() 55 Object array = VMRuntime.getRuntime().newNonMovableArray(null, 0); in testNewNonMovableArray() 62 Object array = VMRuntime.getRuntime().newNonMovableArray(void.class, 0); in testNewNonMovableArray() 86 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, -1); in doTestNewUnpaddedArray() 92 … Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, Integer.MIN_VALUE); in doTestNewUnpaddedArray() 99 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, i); in doTestNewUnpaddedArray() 109 Object array = VMRuntime.getRuntime().newUnpaddedArray(null, 0); in testNewUnpaddedArray() 116 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 | 34 …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() 143 Process process = Runtime.getRuntime().exec(commands, null, null); in test_destroy() 151 Process process = Runtime.getRuntime().exec(commands, null, null); in test_destroyForcibly() [all …]
|
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() 116 Process process = Runtime.getRuntime().exec( in testPwd() 127 Process process = Runtime.getRuntime().exec( in testEnvironment() 166 Runtime rt = Runtime.getRuntime(); in stuff() 185 Process process = Runtime.getRuntime().exec(commands, null, null); in testCloseNonStandardFds() 193 process = Runtime.getRuntime().exec(commands, null, null); in testCloseNonStandardFds() 222 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 | 44 process = Runtime.getRuntime().exec(commands, null, null); in test_getErrorStream() 65 erProcess = Runtime.getRuntime().exec(unknownCommands, null, null); in test_getErrorStream()
|
/libcore/libart/src/main/java/java/lang/ |
D | Daemons.java | 134 VMRuntime.getRuntime().setSystemDaemonThreadPriority(); in run() 413 NANOS_PER_MILLI * VMRuntime.getRuntime().getFinalizerTimeoutMs(); in waitForFinalization() 454 + VMRuntime.getRuntime().getFinalizerTimeoutMs() / 1000 + " seconds"; in finalizerTimedOut() 499 VMRuntime.getRuntime().requestHeapTrim(); in requestHeapTrim() 505 VMRuntime.getRuntime().requestConcurrentGC(); in requestGC() 517 VMRuntime.getRuntime().stopHeapTaskProcessor(); in interrupt() 527 VMRuntime.getRuntime().startHeapTaskProcessor(); in runInternal() 531 VMRuntime.getRuntime().runHeapTasks(); in runInternal()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | NativeAllocationRegistryTest.java | 58 Runtime.getRuntime().gc(); in testNativeAllocation() 62 long max = Runtime.getRuntime().maxMemory(); in testNativeAllocation() 63 long total = Runtime.getRuntime().totalMemory(); in testNativeAllocation() 171 Runtime.getRuntime().gc(); in testEarlyFree()
|
/libcore/test-rules/src/test/java/libcore/junit/util/ |
D | SwitchTargetSdkVersionRuleTest.java | 41 assertEquals(23, VMRuntime.getRuntime().getTargetSdkVersion()); in testRunningAsIfTargetedAtSDKVersion23() 46 assertNotEquals(23, VMRuntime.getRuntime().getTargetSdkVersion()); in testRunningAsIfTargetedAtCurrentSDKVersion()
|
D | EnableDeprecatedBouncyCastleAlgorithmsRuleTest.java | 53 assertEquals(VMRuntime.getRuntime().getTargetSdkVersion(), in testRunningAsIfTargetedAtCurrentSDKVersion()
|
/libcore/benchmarks/src/benchmarks/ |
D | ReferenceBenchmark.java | 82 Runtime.getRuntime().gc(); in timeAllocImplicitEnqueueAndRemove() 115 Runtime.getRuntime().gc(); in timeFinalization() 118 Runtime.getRuntime().runFinalization(); in timeFinalization()
|
D | ReferenceGetBenchmark.java | 53 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | MemoryTest.java | 35 VMRuntime runtime = VMRuntime.getRuntime(); in testSetIntArray() 76 VMRuntime runtime = VMRuntime.getRuntime(); in testSetLongArray() 114 VMRuntime runtime = VMRuntime.getRuntime(); in testSetShortArray()
|
/libcore/luni/src/test/java/libcore/sun/security/jca/ |
D | ProvidersTest.java | 332 VMRuntime.getRuntime().getTargetSdkVersion() + 1); in testBeforeLimit() 352 VMRuntime.getRuntime().getTargetSdkVersion()); in testAtLimit() 373 VMRuntime.getRuntime().getTargetSdkVersion() - 1); in testPastLimit() 413 VMRuntime.getRuntime().getTargetSdkVersion() - 1); in testCustomProvider()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ThreadPool.java | 115 initialSize = Runtime.getRuntime().availableProcessors(); in createDefault() 142 initialSize = Runtime.getRuntime().availableProcessors(); in wrap()
|
/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/util/ |
D | NativeAllocationRegistry.java | 293 VMRuntime runtime = VMRuntime.getRuntime(); in registerNativeAllocation() 309 VMRuntime.getRuntime().registerNativeFree(size); in registerNativeFree()
|
/libcore/ojluni/src/main/java/java/io/ |
D | DeleteOnExitHook.java | 40 Runtime.getRuntime().addShutdownHook(new Thread() {
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 972 VMRuntime runtime = VMRuntime.getRuntime(); in initUnchangeableSystemProperties() 1495 Runtime.getRuntime().exit(status); in exit() 1527 Runtime.getRuntime().gc(); in gc() 1556 Runtime.getRuntime().gc(); in runFinalization() 1558 Runtime.getRuntime().runFinalization(); in runFinalization() 1632 Runtime.getRuntime().load0(Reflection.getCallerClass(), filename); in load() 1668 Runtime.getRuntime().loadLibrary0(Reflection.getCallerClass(), libname); in loadLibrary()
|
D | Runtime.java | 96 public static Runtime getRuntime() { in getRuntime() method in Runtime 907 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in checkTargetSdkVersionForLoad()
|
/libcore/test-rules/src/main/java/libcore/junit/util/ |
D | EnableDeprecatedBouncyCastleAlgorithmsRule.java | 62 int newMaximum = VMRuntime.getRuntime().getTargetSdkVersion(); in apply()
|
/libcore/metrictests/memory/apps/src/libcore/heapdumper/ |
D | AbstractMetricInstrumentation.java | 85 Runtime runtime = Runtime.getRuntime(); in tryRemoveGarbage()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileTest.java | 407 …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/dalvik/src/main/java/dalvik/system/ |
D | ZygoteHooks.java | 93 final VMRuntime runtime = VMRuntime.getRuntime(); in gcAndFinalize()
|