Home
last modified time | relevance | path

Searched refs:System (Results 1 – 25 of 894) sorted by relevance

12345678910>>...36

/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java37 String property = System.getProperty("os.name"); in testOsName()
49 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
50 System.setProperty("line.separator", "poop"); in testLineSeparator()
51 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
58 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
63 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8")); in testLineSeparator()
68 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
71 assertEquals(System.lineSeparator(), new Formatter().format("%n").toString()); in testLineSeparator()
73 System.setProperty("line.separator", "\n"); in testLineSeparator()
79 System.arraycopy(new char[5], 0, "Hello", 0, 3); in testArrayCopyTargetNotArray()
[all …]
DOldSystemTest.java39 System.arraycopy(new Object(), 0, b, 0, 0); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
47 System.arraycopy(a, 0, new Object(), 0, 0); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
55 System.arraycopy(new char[] {'a'}, 0, new String[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
63 System.arraycopy(new String[] {"a"}, 0, new char[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
71 System.arraycopy(new char[] {'a'}, 0, new int[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
79 System.arraycopy(new Character[] {'a'}, 0, new Integer[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
87 System.arraycopy(null, 0, new int[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
95 System.arraycopy(new int[]{'1'}, 0, null, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
102 System.arraycopy(a, a.length + 1, b, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
109 System.arraycopy(a, -1, b, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DDebug.java76 System.err.println(); in Help()
77 System.err.println("all turn on all debugging"); in Help()
78 System.err.println("access print all checkPermission results"); in Help()
79 System.err.println("certpath PKIX CertPathBuilder and"); in Help()
80 System.err.println(" CertPathValidator debugging"); in Help()
81 System.err.println("combiner SubjectDomainCombiner debugging"); in Help()
82 System.err.println("gssloginconfig"); in Help()
83 System.err.println(" GSS LoginConfigImpl debugging"); in Help()
84 System.err.println("configfile JAAS ConfigFile loading"); in Help()
85 System.err.println("configparser JAAS ConfigFile parsing"); in Help()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxySelectorTest.java117 System.setProperty("http.proxyHost", HTTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
118 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
120 System.setProperty("https.proxyHost", HTTPS_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
121 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
123 System.setProperty("ftp.proxyHost", FTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
124 System.setProperty("ftp.proxyPort", String.valueOf(FTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
126 System.setProperty("socksProxyHost", SOCKS_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
127 System.setProperty("socksProxyPort", String.valueOf(SOCKS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
158 System.setProperty("http.proxyHost", HTTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact_NullHost()
159 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DSystemTest.java38 InputStream orgIn = System.in; in test_setInLjava_io_InputStream()
40 System.setIn(in); in test_setInLjava_io_InputStream()
41 assertTrue("in not set", System.in == in); in test_setInLjava_io_InputStream()
42 System.setIn(orgIn); in test_setInLjava_io_InputStream()
49 PrintStream orgOut = System.out; in test_setOutLjava_io_PrintStream()
51 System.setOut(out); in test_setOutLjava_io_PrintStream()
52 assertTrue("out not set", System.out == out); in test_setOutLjava_io_PrintStream()
53 System.setOut(orgOut); in test_setOutLjava_io_PrintStream()
60 PrintStream orgErr = System.err; in test_setErrLjava_io_PrintStream()
62 System.setErr(err); in test_setErrLjava_io_PrintStream()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DProxySelectorTest.java48 System.clearProperty("ftp.proxyHost"); in tearDown()
49 System.clearProperty("ftp.proxyPort"); in tearDown()
50 System.clearProperty("ftp.nonProxyHosts"); in tearDown()
51 System.clearProperty("http.proxyHost"); in tearDown()
52 System.clearProperty("http.proxyPort"); in tearDown()
53 System.clearProperty("http.nonProxyHosts"); in tearDown()
54 System.clearProperty("https.proxyHost"); in tearDown()
55 System.clearProperty("https.proxyPort"); in tearDown()
56 System.clearProperty("https.nonProxyHosts"); in tearDown()
57 System.clearProperty("other.proxyHost"); in tearDown()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/
DTestClock_System.java121 c + " " + c.getClass().getName() + "@" + System.identityHashCode(c); in toString()
135 Instant start = Instant.ofEpochMilli(System.currentTimeMillis()); in test_ClockResolution()
139 Instant system1 = Instant.ofEpochMilli(System.currentTimeMillis()); in test_ClockResolution()
140 Instant system2 = Instant.ofEpochMilli(System.currentTimeMillis()); in test_ClockResolution()
143 System.out.println(formatTime("\nsystemUTC #1 ", system1)); in test_ClockResolution()
144 System.out.println(formatTime("systemUTC #2 ", system2)); in test_ClockResolution()
145 System.out.println(formatTime("highestResolutionUTC #1 ", highest1)); in test_ClockResolution()
146 System.out.println(formatTime("highestResolutionUTC #2 ", highest2)); in test_ClockResolution()
149 System.err.println("system2 is before system1!"); in test_ClockResolution()
150 System.err.println(formatTime("\n\tsystem1", system1)); in test_ClockResolution()
[all …]
/libcore/ojluni/src/test/java/awt/font/NumericShaper/
DEasternArabicTest.java96 System.err.println("Error with traditional range."); in test()
97 System.err.println(" text = " + data); in test()
98 System.err.println(" got = " + got); in test()
99 System.err.println(" expected = " + expected); in test()
101 System.err.println("OK with traditional range."); in test()
102 System.err.println(" text = " + data); in test()
103 System.err.println(" got = " + got); in test()
104 System.err.println(" expected = " + expected); in test()
113 System.err.println("Error with new Enum range."); in test()
114 System.err.println(" text = " + data); in test()
[all …]
/libcore/ojluni/src/test/javax/xml/jaxp/transform/
DTestBase.java36 if (System.getProperty("os.name").indexOf("Windows")>-1) {
59 if (System.getSecurityManager() != null) { in setUp()
61 System.setSecurityManager(null); in setUp()
64 filepath = System.getProperty("test.src"); in setUp()
67 filepath = System.getProperty("user.dir"); in setUp()
76 System.setSecurityManager(null); in tearDown()
79 System.setSecurityManager(new SecurityManager()); in tearDown()
81 System.out.println("\nNumber of tests passed: " + passed); in tearDown()
82 System.out.println("Number of tests failed: " + failed + "\n"); in tearDown()
100 System.out.println(msg); in success()
/libcore/ojluni/src/test/java/lang/StackWalker/
DStackStreamTest.java117 System.out.println("Thread dump"); in g()
124 System.out.println("check class names"); in g()
133 System.out.println("methodNames()"); in g()
144 System.out.println("Stream of StackTraceElement"); in g()
149 .forEach(ste -> System.out.println("STE: " + ste)); in g()
154 System.out.println("Collect StackTraceElement"); in g()
163 System.out.format(" %d: %s%n", i++, s); in g()
191 System.out.println("Observed class, method names:"); in dumpSTEInfo()
193 System.out.println(" " + ste.getClassName() + ", " + ste.getMethodName()); in dumpSTEInfo()
195 System.out.println("Expected class, method names:"); in dumpSTEInfo()
[all …]
/libcore/ojluni/src/test/java/lang/Double/
DConstantsTest.java45 System.out.println("Double.NaN is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
48 System.out.println("Double.MIN_VALUE is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
51 System.out.println("Double.MIN_NORMAL is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
54 System.out.println("Double.MIN_EXPONENT is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
57 System.out.println("Double.MAX_EXPONENT is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
60 System.out.println("Double.MAX_VALUE is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
63 System.out.println("Double.POSITIVE_INFINITY is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
66 System.out.println("Double.NEGATIVE_INFINITY is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
/libcore/ojluni/src/test/java/lang/Float/
DConstantsTest.java45 System.out.println("Float.NaN is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
48 System.out.println("Float.MIN_VALUE is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
51 System.out.println("Float.MIN_NORMAL is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
54 System.out.println("Float.MIN_EXPONENT is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
57 System.out.println("Float.MAX_EXPONENT is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
60 System.out.println("Float.MAX_VALUE is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
63 System.out.println("Float.POSITIVE_INFINITY is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
66 System.out.println("Float.NEGATIVE_INFINITY is a constant!"); in testPublicStaticFinalFields_areConstantExpressions()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest1.java379 System.out.println("Obj = " + objToSave); in test_18_1_writeObject()
390 System.out.println("Error when obj = " + objToSave); in test_18_1_writeObject()
406 System.out.println("Obj = " + objToSave); in test_18_2_writeObject()
416 System.out.println("Error when obj = " + objToSave); in test_18_2_writeObject()
433 System.out.println("Obj = " + objToSave); in test_18_3_writeObject()
444 System.out.println("Error when obj = " + objToSave); in test_18_3_writeObject()
461 System.out.println("Obj = " + objToSave); in test_18_4_writeObject()
472 System.out.println("Error when obj = " + objToSave); in test_18_4_writeObject()
489 System.out.println("Obj = " + objToSave); in test_18_5_writeObject()
500 System.out.println("Error when obj = " + objToSave); in test_18_5_writeObject()
[all …]
DSerializationStressTest3.java391 System.out.println("Error " + err + " when testing BLOCKDATALONG"); in test_18_81_writeObject()
407 System.out.println("Obj = " + objToSave); in test_18_82_writeObject()
419 System.out.println("Error when obj = " + objToSave); in test_18_82_writeObject()
436 System.out.println("Obj = " + objToSave); in test_18_83_writeObject()
448 System.out.println("Error when obj = " + objToSave); in test_18_83_writeObject()
465 System.out.println("Obj = " + objToSave); in test_18_84_writeObject()
477 System.out.println("Error when obj = " + objToSave); in test_18_84_writeObject()
493 System.out.println("Obj = " + objToSave); in test_18_85_writeObject()
514 System.out.println("Obj = " + objToSave); in test_18_86_writeObject()
526 System.out.println("Error when obj = " + objToSave); in test_18_86_writeObject()
[all …]
DSerializationStressTest4.java75 System.out.println("Obj = " + objToSave); in test_writeObject_EventObject()
91 System.out.println("Error when obj = " + objToSave); in test_writeObject_EventObject()
107 System.out.println("Obj = " + objToSave); in test_writeObject_Collections_EmptySet()
123 System.out.println("Error when obj = " + objToSave); in test_writeObject_Collections_EmptySet()
140 System.out.println("Obj = " + objToSave); in test_writeObject_Collections_EmptyMap()
156 System.out.println("Error when obj = " + objToSave); in test_writeObject_Collections_EmptyMap()
173 System.out.println("Obj = " + objToSave); in test_writeObject_Character()
185 System.out.println("Error when obj = " + objToSave); in test_writeObject_Character()
238 System.out.println("Obj = " + objToSave); in test_writeObject_Format()
250 System.out.println("Error when obj = " + objToSave); in test_writeObject_Format()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronologyPerf.java43 long start = System.nanoTime(); in test_chronologyGetAvailablePerf()
45 long end = System.nanoTime(); in test_chronologyGetAvailablePerf()
47 System.out.printf(" Cold Duration of Chronology.getAvailableChronologies(): %s%n", d); in test_chronologyGetAvailablePerf()
49 start = System.nanoTime(); in test_chronologyGetAvailablePerf()
51 end = System.nanoTime(); in test_chronologyGetAvailablePerf()
53 System.out.printf(" Warm Duration of Chronology.getAvailableChronologies(): %s%n", d); in test_chronologyGetAvailablePerf()
55 start = System.nanoTime(); in test_chronologyGetAvailablePerf()
57 end = System.nanoTime(); in test_chronologyGetAvailablePerf()
59 System.out.printf(" Warm Duration of HijrahDate.date(1434, 1, 1): %s%n", d); in test_chronologyGetAvailablePerf()
/libcore/ojluni/src/test/java/util/Properties/
DCheckUnsynchronized.java41 System.out.println("contains(value)? " + in main()
43 System.out.println("containsKey(key)? " + in main()
45 System.out.println("containsValue(value)? " + in main()
49 System.out.println("first value from elements(): " + elems.nextElement()); in main()
50 System.out.println("value from get(): " + in main()
52 System.out.println("getOrDefault(\"missing\"): " + in main()
54 System.out.println("isEmpty()? " + in main()
58 System.out.println("first key from keys(): " + keys.nextElement()); in main()
59 System.out.println("size(): " + in main()
/libcore/jsr166-tests/src/test/java/jsr166/
DSystemTest.java38 long m1 = System.currentTimeMillis(); in testNanoTime1()
40 long n1 = System.nanoTime(); in testNanoTime1()
42 long n2 = System.nanoTime(); in testNanoTime1()
44 long m2 = System.currentTimeMillis(); in testNanoTime1()
58 long n1 = System.nanoTime(); in testNanoTime2()
60 long m1 = System.currentTimeMillis(); in testNanoTime2()
62 long m2 = System.currentTimeMillis(); in testNanoTime2()
64 long n2 = System.nanoTime(); in testNanoTime2()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharset_TestGenerator.java116 System.out.print(code); in consume()
117 System.out.print(", "); in consume()
120 System.out.println(); in consume()
138 System.out.print((char) code); in consume()
141 System.out.println(); in consume()
154 System.out.print(code); in consume()
155 System.out.print(", "); in consume()
158 System.out.print(" // "); in consume()
159 System.out.println(buf); in consume()
207 System.out.printf("0x%x, ", code); in consume()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DSystemTest.java62 long m1 = System.currentTimeMillis(); in testNanoTime1()
64 long n1 = System.nanoTime(); in testNanoTime1()
66 long n2 = System.nanoTime(); in testNanoTime1()
68 long m2 = System.currentTimeMillis(); in testNanoTime1()
82 long n1 = System.nanoTime(); in testNanoTime2()
84 long m1 = System.currentTimeMillis(); in testNanoTime2()
86 long m2 = System.currentTimeMillis(); in testNanoTime2()
88 long n2 = System.nanoTime(); in testNanoTime2()
/libcore/ojluni/src/main/java/sun/security/action/
DGetPropertyAction.java87 String value = System.getProperty(theProp); in run()
105 if (System.getSecurityManager() == null) { in privilegedGetProperty()
106 return System.getProperty(theProp); in privilegedGetProperty()
129 if (System.getSecurityManager() == null) { in privilegedGetProperty()
130 return System.getProperty(theProp, defaultVal); in privilegedGetProperty()
150 if (System.getSecurityManager() == null) { in privilegedGetProperties()
151 return System.getProperties(); in privilegedGetProperties()
156 return System.getProperties(); in privilegedGetProperties()
/libcore/ojluni/src/test/java/text/Collator/
DBug5047314.java55 System.out.print("Test(Lao 1) .... "); in testLao1()
59 System.out.println("Passed."); in testLao1()
63 System.out.print("Test(Lao 2) .... "); in testLao2()
67 System.out.println("Passed."); in testLao2()
71 System.out.print("Test(Thai 1) .... "); in testThai1()
75 System.out.println("Passed."); in testThai1()
79 System.out.print("Test(Thai 2) .... "); in testThai2()
83 System.out.println("Passed."); in testThai2()
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java55 System.out.format("change mode: %s\n", mode); in testPermissions()
105 System.out.format("create file with mode: %s\n", mode); in createWithPermissions()
116 System.out.format("create directory with mode: %s\n", mode); in createWithPermissions()
134 System.out.println("-- Permission Tests --"); in permissionTests()
138 System.out.format("create %s\n", file); in permissionTests()
181 System.out.format("create link %s\n", link); in permissionTests()
197 System.out.println("OKAY"); in permissionTests()
206 System.out.println("-- Create Tests --"); in createTests()
232 System.out.println("OKAY"); in createTests()
242 System.out.println("-- Owner Tests --"); in ownerTests()
[all …]
/libcore/luni/src/test/java/tests/support/
DMockCallback.java25 System.out.println("<TH><TR>"); in columns()
27 System.out.println("<TD>" + cols[i] + "</TD>"); in columns()
29 System.out.println("</TR></TH>"); in columns()
33 System.out.println("<TR>"); in newrow()
35 System.out.println("<TD>" + cols[i] + "</TD>"); in newrow()
37 System.out.println("</TR>"); in newrow()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipStressTest.java43 long t0 = System.currentTimeMillis(); in checkJarCertificates()
52 long t1 = System.currentTimeMillis(); in checkJarCertificates()
53 System.out.println("loadCertificates() took " + (t1 - t0) + " ms"); in checkJarCertificates()
55 System.out.println("We have no certificates"); in checkJarCertificates()
57 System.out.println("We have " + certs.length + " certificates"); in checkJarCertificates()
79 long time0 = System.currentTimeMillis(); in testZipStressManifest()
82 System.out.println("ZIP stress test processing " + file + "..."); in testZipStressManifest()
93 long time1 = System.currentTimeMillis(); in testZipStressManifest()
94 System.out.println("ZIP stress test finished, time was " + (time1- time0) + "ms"); in testZipStressManifest()
98 long time0 = System.currentTimeMillis(); in testZipStressAllFiles()
[all …]

12345678910>>...36