Home
last modified time | relevance | path

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

12345678910>>...25

/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java41 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
42 System.setProperty("line.separator", "poop"); in testLineSeparator()
43 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
50 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
55 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8")); in testLineSeparator()
60 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
63 assertEquals(System.lineSeparator(), new Formatter().format("%n").toString()); in testLineSeparator()
65 System.setProperty("line.separator", "\n"); in testLineSeparator()
71 System.arraycopy(new char[5], 0, "Hello", 0, 3); in testArrayCopyTargetNotArray()
80 System.arraycopy("Hello", 0, new char[5], 0, 3); in testArrayCopySourceNotArray()
[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/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/ojluni/src/main/java/sun/security/ssl/
DDebug.java56 System.err.println(); in Help()
57 System.err.println("all turn on all debugging"); in Help()
58 System.err.println("ssl turn on ssl debugging"); in Help()
59 System.err.println(); in Help()
60 System.err.println("The following can be used with ssl:"); in Help()
61 System.err.println("\trecord enable per-record tracing"); in Help()
62 System.err.println("\thandshake print each handshake message"); in Help()
63 System.err.println("\tkeygen print key generation data"); in Help()
64 System.err.println("\tsession print session activity"); in Help()
65 System.err.println("\tdefaultctx print default SSL initialization"); in Help()
[all …]
DTrustManagerFactoryImpl.java55 System.out.println( in engineInit()
60 System.out.println( in engineInit()
66 System.out.println( in engineInit()
72 System.out.println( in engineInit()
143 props.put("trustStore", System.getProperty(
145 props.put("javaHome", System.getProperty(
147 props.put("trustStoreType", System.getProperty(
150 props.put("trustStoreProvider", System.getProperty(
152 props.put("trustStorePasswd", System.getProperty(
195 System.out.println("trustStore is: " + storeFileName);
[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/tzdata/tools/src/main/libcore/tzdata/update/tools/
DCreateTzDataBundle.java43 System.exit(1); in main()
47 System.err.println("Properties file " + f + " not found"); in main()
49 System.exit(2); in main()
68 System.out.println("Properties file must specify both, or neither of: " in main()
70 System.exit(5); in main()
79 System.out.println("There must be at least one checksum file"); in main()
80 System.exit(6); in main()
82 System.out.println("Update contains checksums for " + (i-1) + " files"); in main()
89 System.out.println("Wrote: " + outputFile); in main()
96 System.out.println( in getMandatoryPropertyFile()
[all …]
/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/dalvik/src/main/java/dalvik/system/profiler/
DBinaryHprofReader.java118 System.out.println("hprofTag=HEADER"); in parseHeader()
131 System.out.println("\tversion=" + version); in parseVersion()
139 System.out.println("\tidSize=" + idSize); in parseIdSize()
149 System.out.println("\ttime=" + Long.toHexString(time) + " " + new Date(time)); in parseTime()
174 System.out.println("hprofTag=" + hprofTag); in parseRecord()
228 System.out.println("\tskipping recordLength=" + recordLength); in skipRecord()
241 System.out.println("\tflags=" + Integer.toHexString(flags)); in parseControlSettings()
242 System.out.println("\tdepth=" + depth); in parseControlSettings()
254 System.out.println("\tstring=" + string); in parseStringInUtf8()
283 System.out.println("\tclassId=" + classId); in parseLoadClass()
[all …]
DHprofBinaryToAscii.java41 System.exit(convert(args) ? 0 : 1); in main()
65 System.out.println("Problem reading binary hprof data from " in convert()
76 System.out.println("Problem reading snapshot containing binary hprof data from " in convert()
163 AsciiHprofWriter.write(hprofData, System.out); in write()
165 System.out.println("Problem writing ASCII hprof data: " + e.getMessage()); in write()
175 System.out.print("ERROR: "); in usage()
176 System.out.println(error); in usage()
177 System.out.println(); in usage()
178 System.out.println("usage: HprofBinaryToAscii <binary-hprof-file>"); in usage()
179 System.out.println(); in usage()
[all …]
/libcore/luni/src/test/java/tests/support/
DMockCallback.java25 System.out.println("&lt;TH&gt;&lt;TR&gt;"); in columns()
27 System.out.println("&lt;TD&gt;" + cols[i] + "&lt;/TD&gt;"); in columns()
29 System.out.println("&lt;/TR&gt;&lt;/TH&gt;"); in columns()
33 System.out.println("&lt;TR&gt;"); in newrow()
35 System.out.println("&lt;TD&gt;" + cols[i] + "&lt;/TD&gt;"); in newrow()
37 System.out.println("&lt;/TR&gt;"); in newrow()
/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/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.java73 System.out.println("Obj = " + objToSave); in test_writeObject_EventObject()
89 System.out.println("Error when obj = " + objToSave); in test_writeObject_EventObject()
105 System.out.println("Obj = " + objToSave); in test_writeObject_Collections_EmptySet()
121 System.out.println("Error when obj = " + objToSave); in test_writeObject_Collections_EmptySet()
138 System.out.println("Obj = " + objToSave); in test_writeObject_Collections_EmptyMap()
154 System.out.println("Error when obj = " + objToSave); in test_writeObject_Collections_EmptyMap()
171 System.out.println("Obj = " + objToSave); in test_writeObject_Character()
183 System.out.println("Error when obj = " + objToSave); in test_writeObject_Character()
200 System.out.println("Obj = " + objToSave); in test_writeObject_Collections_UnmodifiableCollection()
222 System.out.println("Error when obj = " + objToSave); in test_writeObject_Collections_UnmodifiableCollection()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidTreeMapTest.java36 if (SPEW) System.out.println("Running doTest cycle #" + (i + 1)); in testTreeMap()
50 if (SPEW) System.out.println("Adding val = " + val); in doTest()
60 if (SPEW) System.out.println("tm = " + tm); in doTest()
62 if (SPEW) System.out.println("tm.size() = " + tm.size()); in doTest()
63 if (SPEW) System.out.println("hm.size() = " + hm.size()); in doTest()
66 if (SPEW) System.out.println("tm.firstKey() = " + tm.firstKey()); in doTest()
67 if (SPEW) System.out.println("minVal = " + minVal); in doTest()
68 if (SPEW) System.out.println("tm.lastKey() = " + tm.lastKey()); in doTest()
69 if (SPEW) System.out.println("maxVal = " + maxVal); in doTest()
84 if (SPEW) System.out.println("Removing val = " + val); in doTest()
[all …]
/libcore/support/src/test/java/tests/util/
DFieldTestFileGenerator.java55 System.out.println("Trying to write the test file 'testFields.ser'..."); in main()
63 System.out.println("Exception occured while writing the file: " + e); in main()
70 System.out.println("Trying to write the test file 'testFieldsDeprecated.ser'..."); in main()
78 System.out.println("Exception occured while writing the file: " + e); in main()
85 System.out.println("Trying to write the test file 'testFieldsDefaulted.ser'..."); in main()
93 System.out.println("Exception occured while writing the file: " + e); in main()
101 System.out.println("Success!"); in main()
103 System.out.println("Failure!"); in main()
/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 …]
/libcore/benchmarks/src/benchmarks/
DSystemArrayCopyBenchmark.java33 System.arraycopy(src, 0, dst, 0, len); in timeSystemCharArrayCopy()
42 System.arraycopy(src, 0, dst, 0, len); in timeSystemByteArrayCopy()
51 System.arraycopy(src, 0, dst, 0, len); in timeSystemShortArrayCopy()
60 System.arraycopy(src, 0, dst, 0, len); in timeSystemIntArrayCopy()
69 System.arraycopy(src, 0, dst, 0, len); in timeSystemLongArrayCopy()
78 System.arraycopy(src, 0, dst, 0, len); in timeSystemFloatArrayCopy()
87 System.arraycopy(src, 0, dst, 0, len); in timeSystemDoubleArrayCopy()
96 System.arraycopy(src, 0, dst, 0, len); in timeSystemBooleanArrayCopy()
/libcore/ojluni/src/main/java/java/security/
DSecureRandom.java369 System.logE(" ********** PLEASE READ ************ "); in getInstance()
370 System.logE(" * "); in getInstance()
371System.logE(" * New versions of the Android SDK no longer support the Crypto provider."); in getInstance()
372System.logE(" * If your app was relying on setSeed() to derive keys from strings, you"); in getInstance()
373System.logE(" * should switch to using SecretKeySpec to load raw key bytes directly OR"); in getInstance()
374 System.logE(" * use a real key derivation function (KDF). See advice here : "); in getInstance()
375System.logE(" * http://android-developers.blogspot.com/2016/06/security-crypto-provider-deprecated… in getInstance()
376 System.logE(" *********************************** "); in getInstance()
379 System.logE(" Returning an instance of SecureRandom from the Crypto provider"); in getInstance()
380 System.logE(" as a temporary measure so that the apps targeting earlier SDKs"); in getInstance()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java25 String lineSeparator = System.getProperty("line.separator"); in timeDirect()
32 if (System.getSecurityManager() == null) { in timeFastAndSlow()
33 lineSeparator = System.getProperty("line.separator"); in timeFastAndSlow()
37 return System.getProperty("line.separator"); in timeFastAndSlow()
48 return System.getProperty("line.separator"); in timeNewAction()
69 return System.getProperty(propertyName); in run()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldErrorManagerTest.java27 private final PrintStream err = System.err;
28 private final PrintStream out = System.out;
31 System.setErr(err); in tearDown()
32 System.setOut(out); in tearDown()
40 System.setErr(st); in test_errorCheck()
41 System.setOut(st); in test_errorCheck()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DParserFactoryTest.java33 System.clearProperty("org.xml.sax.parser"); in testMakeParser()
44 System.setProperty("org.xml.sax.parser", "foo.bar.SAXParser"); in testMakeParser()
54 System.setProperty("org.xml.sax.parser", in testMakeParser()
65 System.setProperty("org.xml.sax.parser", in testMakeParser()
76 System.setProperty("org.xml.sax.parser", in testMakeParser()
87 System.setProperty("org.xml.sax.parser", in testMakeParser()
/libcore/ojluni/src/main/java/sun/misc/
DVersion.java40 System.setUnchangeableSystemProperty("java.version", java_version); in initSystemProperties()
41 System.setUnchangeableSystemProperty("java.runtime.version", java_runtime_version); in initSystemProperties()
42 System.setUnchangeableSystemProperty("java.runtime.name", java_runtime_name); in initSystemProperties()
65 print(System.err); in print()
73 print(System.err); in println()
74 System.err.println(); in println()
84 String headless = System.getProperty("java.awt.headless"); in print()
103 String java_vm_name = System.getProperty("java.vm.name"); in print()
104 String java_vm_version = System.getProperty("java.vm.version"); in print()
105 String java_vm_info = System.getProperty("java.vm.info"); in print()
[all …]

12345678910>>...25