Home | History | Annotate | Download | only in lang

Lines Matching refs:getRuntime

36     Runtime r = Runtime.getRuntime();
41 // Test for method java.lang.Runtime java.lang.Runtime.getRuntime()
42 assertNotNull(Runtime.getRuntime());
49 Runtime.getRuntime().addShutdownHook(this);
58 Runtime.getRuntime().addShutdownHook(thrException);
64 Runtime.getRuntime().addShutdownHook(thrException);
81 Runtime.getRuntime().removeShutdownHook(thrException);
90 assertTrue(Runtime.getRuntime().availableProcessors() > 0);
101 Runtime.getRuntime().exec((String)null, null);
123 Runtime.getRuntime().exec("", envp);
139 Runtime.getRuntime().exec((String[])null, null);
148 Runtime.getRuntime().exec(new String[]{"ls", null}, null);
170 Runtime.getRuntime().exec(new String[]{}, envp);
179 Runtime.getRuntime().exec(new String[]{""}, envp);
194 Runtime.getRuntime().exec((String)null, null, workFolder);
216 Runtime.getRuntime().exec("", envp, workFolder);
234 Runtime.getRuntime().exec((String[])null, null, workFolder);
243 Runtime.getRuntime().exec(new String[]{"ls", null}, null, workFolder);
265 Runtime.getRuntime().exec(new String[]{""}, envp, workFolder);
295 proc = Runtime.getRuntime().exec(command, envp);
298 proc = Runtime.getRuntime().exec(command);
301 proc = Runtime.getRuntime().exec(command, envp, file);
304 proc = Runtime.getRuntime().exec(commandArguments);
307 proc = Runtime.getRuntime().exec(commandArguments, envp);
310 proc = Runtime.getRuntime().exec(commandArguments, envp, file);
333 Runtime.getRuntime().exec((String) null);
342 Runtime.getRuntime().exec("");
356 Runtime.getRuntime().exec((String[]) null);
365 Runtime.getRuntime().exec(new String[]{"ls", null});
374 Runtime.getRuntime().exec(new String[]{});
383 Runtime.getRuntime().exec(new String[]{""});
391 Runtime.getRuntime().runFinalizersOnExit(true);
398 Runtime.getRuntime().addShutdownHook(this);
406 Runtime.getRuntime().addShutdownHook(thr1);
407 Runtime.getRuntime().removeShutdownHook(thr1);
415 Runtime.getRuntime().removeShutdownHook(this);
424 Runtime.getRuntime().addShutdownHook(thr2);
436 Runtime.getRuntime().traceInstructions(false);
437 Runtime.getRuntime().traceInstructions(true);
438 Runtime.getRuntime().traceInstructions(false);
442 Runtime.getRuntime().traceMethodCalls(false);
444 Runtime.getRuntime().traceMethodCalls(true);
459 Runtime.getRuntime().getLocalizedInputStream(bais);
474 Runtime.getRuntime().getLocalizedOutputStream(out);
489 Runtime.getRuntime().load("nonExistentLibrary");
496 Runtime.getRuntime().load(null);
505 Runtime.getRuntime().loadLibrary("nonExistentLibrary");
512 Runtime.getRuntime().loadLibrary(null);
521 final int savedTargetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion();
526 VMRuntime.getRuntime().setTargetSdkVersion(24);
530 loadMethod.invoke(Runtime.getRuntime(), "nonExistentLibrary", null);
539 VMRuntime.getRuntime().setTargetSdkVersion(25);
543 loadMethod.invoke(Runtime.getRuntime(), "nonExistentLibrary", null);
549 VMRuntime.getRuntime().setTargetSdkVersion(savedTargetSdkVersion);
555 final int savedTargetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion();
560 VMRuntime.getRuntime().setTargetSdkVersion(24);
564 loadMethod.invoke(Runtime.getRuntime(), "nonExistentLibrary", null);
574 VMRuntime.getRuntime().setTargetSdkVersion(25);
578 loadMethod.invoke(Runtime.getRuntime(), "nonExistentLibrary", null);
584 VMRuntime.getRuntime().setTargetSdkVersion(savedTargetSdkVersion);