/libcore/luni/src/test/java/libcore/java/lang/ |
D | SystemTest.java | 39 assertEquals("\n", System.lineSeparator()); in testLineSeparator() 40 System.setProperty("line.separator", "poop"); in testLineSeparator() 41 assertEquals("\n", System.lineSeparator()); in testLineSeparator() 48 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator() 53 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8")); in testLineSeparator() 58 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator() 61 assertEquals(System.lineSeparator(), new Formatter().format("%n").toString()); in testLineSeparator() 63 System.setProperty("line.separator", "\n"); in testLineSeparator() 69 System.arraycopy(new char[5], 0, "Hello", 0, 3); in testArrayCopyTargetNotArray() 78 System.arraycopy("Hello", 0, new char[5], 0, 3); in testArrayCopySourceNotArray() [all …]
|
D | OldSystemTest.java | 37 System.arraycopy(new Object(), 0, b, 0, 0); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 45 System.arraycopy(a, 0, new Object(), 0, 0); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 53 System.arraycopy(new char[] {'a'}, 0, new String[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 61 System.arraycopy(new String[] {"a"}, 0, new char[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 69 System.arraycopy(new char[] {'a'}, 0, new int[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 77 System.arraycopy(new Character[] {'a'}, 0, new Integer[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 85 System.arraycopy(null, 0, new int[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 93 System.arraycopy(new int[]{'1'}, 0, null, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 100 System.arraycopy(a, a.length + 1, b, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 107 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/ |
D | ProxySelectorTest.java | 117 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 …]
|
D | InetAddressThreadTest.java | 69 long startTime = System.currentTimeMillis(); in run() 78 && System.currentTimeMillis() - startTime > 240000) { in run() 79 System.out in run() 128 String originalPropertyValue = System in test_getHostName() 130 System.setProperty("networkaddress.cache.ttl", "0"); in test_getHostName() 169 System.setProperty("networkaddress.cache.ttl", "-1"); in test_getHostName() 171 System.setProperty("networkaddress.cache.ttl", in test_getHostName()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | SystemTest.java | 38 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/ |
D | ProxySelectorTest.java | 48 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/jsr166-tests/src/test/java/jsr166/ |
D | SystemTest.java | 28 long m1 = System.currentTimeMillis(); in testNanoTime1() 30 long n1 = System.nanoTime(); in testNanoTime1() 32 long n2 = System.nanoTime(); in testNanoTime1() 34 long m2 = System.currentTimeMillis(); in testNanoTime1() 48 long n1 = System.nanoTime(); in testNanoTime2() 50 long m1 = System.currentTimeMillis(); in testNanoTime2() 52 long m2 = System.currentTimeMillis(); in testNanoTime2() 54 long n2 = System.nanoTime(); in testNanoTime2()
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
D | BinaryHprofReader.java | 118 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 …]
|
D | HprofBinaryToAscii.java | 41 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/ |
D | MockCallback.java | 25 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/nio/charset/ |
D | Charset_TestGenerator.java | 116 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/ |
D | SerializationStressTest1.java | 379 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 …]
|
D | SerializationStressTest3.java | 391 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 …]
|
D | SerializationStressTest4.java | 73 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 …]
|
D | SerializationStressTest2.java | 821 System.out.println("Obj = " + objToSave); in test_18_41_writeObject() 833 System.out.println("Error when obj = " + objToSave); in test_18_41_writeObject() 850 System.out.println("Obj = " + objToSave); in test_18_42_writeObject() 867 System.out.println("Error when obj = " + objToSave); in test_18_42_writeObject() 885 System.out.println("Obj = " + objToSave); in test_18_43_writeObject() 899 System.out.println("Error when obj = " + objToSave); in test_18_43_writeObject() 918 System.out.println("Obj = " + objToSave); in test_18_44_writeObject() 931 System.out.println("Error when obj = " + objToSave); in test_18_44_writeObject() 948 System.out.println("Obj = " + objToSave); in test_18_45_writeObject() 964 System.out.println("Error when obj = " + objToSave); in test_18_45_writeObject() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidTreeMapTest.java | 36 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/ |
D | FieldTestFileGenerator.java | 55 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/ |
D | OldAndroidZipStressTest.java | 43 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/ |
D | SystemArrayCopyBenchmark.java | 34 System.arraycopy(src, 0, dst, 0, len); in timeSystemCharArrayCopy() 43 System.arraycopy(src, 0, dst, 0, len); in timeSystemByteArrayCopy() 52 System.arraycopy(src, 0, dst, 0, len); in timeSystemShortArrayCopy() 61 System.arraycopy(src, 0, dst, 0, len); in timeSystemIntArrayCopy() 70 System.arraycopy(src, 0, dst, 0, len); in timeSystemLongArrayCopy() 79 System.arraycopy(src, 0, dst, 0, len); in timeSystemFloatArrayCopy() 88 System.arraycopy(src, 0, dst, 0, len); in timeSystemDoubleArrayCopy() 97 System.arraycopy(src, 0, dst, 0, len); in timeSystemBooleanArrayCopy()
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldErrorManagerTest.java | 27 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/ |
D | ParserFactoryTest.java | 33 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()
|
D | XMLReaderFactoryTest.java | 43 System.setProperty("org.xml.sax.driver", "foo.bar.XMLReader"); in testCreateXMLReader() 52 System.setProperty("org.xml.sax.driver", in testCreateXMLReader() 62 System.setProperty("org.xml.sax.driver", in testCreateXMLReader() 72 System.setProperty("org.xml.sax.driver", in testCreateXMLReader() 84 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | TestUtils.java | 56 System.out.print(prefix + "0x" + tail + delimiter); in printAsHex() 59 System.out.println(""); in printAsHex() 62 System.out.println(""); in printAsHex() 72 Properties properties = System.getProperties(); in setSystemProperty() 78 System.setProperties(properties); in setSystemProperty()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | DoPrivilegedBenchmark.java | 28 String lineSeparator = System.getProperty("line.separator"); in timeDirect() 35 if (System.getSecurityManager() == null) { in timeFastAndSlow() 36 lineSeparator = System.getProperty("line.separator"); in timeFastAndSlow() 40 return System.getProperty("line.separator"); in timeFastAndSlow() 51 return System.getProperty("line.separator"); in timeNewAction() 72 return System.getProperty(propertyName); in run()
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
D | PBEKeySpec.java | 48 System.arraycopy(password, 0, this.password, 0, password.length); in PBEKeySpec() 92 System.arraycopy(password, 0, this.password, 0, password.length); in PBEKeySpec() 95 System.arraycopy(salt, 0, this.salt, 0, salt.length); in PBEKeySpec() 130 System.arraycopy(password, 0, this.password, 0, password.length); in PBEKeySpec() 133 System.arraycopy(salt, 0, this.salt, 0, salt.length); in PBEKeySpec() 158 System.arraycopy(password, 0, result, 0, password.length); in getPassword() 173 System.arraycopy(salt, 0, result, 0, salt.length); in getSalt()
|