/libcore/luni/src/test/java/libcore/java/io/ |
D | DataOutputStreamTest.java | 34 assertEquals("0100", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeBoolean() 44 assertEquals("FF00018134", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeByte() 50 assertEquals("303431", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeBytes() 57 assertEquals("00301234", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeChar() 63 assertEquals("003012340031", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeChars() 68 assertEquals("0123456789ABCDEF", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeDouble() 73 assertEquals("01234567", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeFloat() 78 assertEquals("01234567", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeInt() 83 assertEquals("0123456789ABCDEF", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeLong() 89 assertEquals("4567", HexEncoding.encodeToString(bytes.toByteArray())); in test_writeShort() [all …]
|
D | OldOutputStreamWriterTest.java | 210 String converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close() 220 converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close() 224 converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close() 236 new String(bout.toByteArray(), "ISO8859_1")); in test_close() 306 ByteArrayInputStream bytesIn = new ByteArrayInputStream(bytesOut.toByteArray()); in testEncodeCharset() 314 bytesIn = new ByteArrayInputStream(bytesOut.toByteArray()); in testEncodeCharset() 457 String str = new String(out.toByteArray(), "utf-8"); in test_writeI() 462 str = new String(out.toByteArray(), "utf-8"); in test_writeI() 467 str = new String(out.toByteArray(), "utf-8"); in test_writeI() 472 str = new String(out.toByteArray(), "utf-8"); in test_writeI() [all …]
|
D | OldBufferedOutputStreamTest.java | 91 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_write$BII() 95 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_write$BII() 99 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_write$BII() 159 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_writeI() 163 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_writeI()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerConstructorsTest.java | 55 resBytes = aNumber.toByteArray(); in testConstructorBytesPositive1() 71 resBytes = aNumber.toByteArray(); in testConstructorBytesPositive2() 87 resBytes = aNumber.toByteArray(); in testConstructorBytesPositive3() 103 resBytes = aNumber.toByteArray(); in testConstructorBytesPositive() 119 resBytes = aNumber.toByteArray(); in testConstructorBytesNegative1() 135 resBytes = aNumber.toByteArray(); in testConstructorBytesNegative2() 151 resBytes = aNumber.toByteArray(); in testConstructorBytesNegative3() 167 resBytes = aNumber.toByteArray(); in testConstructorBytesNegative4() 182 resBytes = aNumber.toByteArray(); in testConstructorBytesZero() 229 resBytes = aNumber.toByteArray(); in testConstructorSignBytesPositive1() [all …]
|
D | BigIntegerOperateBitsTest.java | 150 resBytes = result.toByteArray(); in testClearBitZero() 168 resBytes = result.toByteArray(); in testClearBitZeroOutside1() 186 resBytes = result.toByteArray(); in testClearBitNegativeInside1() 204 resBytes = result.toByteArray(); in testClearBitNegativeInside2() 261 resBytes = result.toByteArray(); in testClearBitNegativeOutside1() 279 resBytes = result.toByteArray(); in testClearBitNegativeOutside2() 297 resBytes = result.toByteArray(); in testClearBitPositiveInside1() 315 resBytes = result.toByteArray(); in testClearBitPositiveInside2() 333 resBytes = result.toByteArray(); in testClearBitPositiveInside3() 351 resBytes = result.toByteArray(); in testClearBitPositiveInside4() [all …]
|
D | BigIntegerSubtractTest.java | 45 resBytes = result.toByteArray(); in testCase1() 66 resBytes = result.toByteArray(); in testCase2() 88 resBytes = result.toByteArray(); in testCase3() 110 resBytes = result.toByteArray(); in testCase4() 131 resBytes = result.toByteArray(); in testCase5() 152 resBytes = result.toByteArray(); in testCase6() 174 resBytes = result.toByteArray(); in testCase7() 196 resBytes = result.toByteArray(); in testCase8() 217 resBytes = result.toByteArray(); in testCase9() 238 resBytes = result.toByteArray(); in testCase10() [all …]
|
D | BigIntegerAddTest.java | 44 resBytes = result.toByteArray(); in testCase1() 64 resBytes = result.toByteArray(); in testCase2() 86 resBytes = result.toByteArray(); in testCase3() 108 resBytes = result.toByteArray(); in testCase4() 130 resBytes = result.toByteArray(); in testCase5() 152 resBytes = result.toByteArray(); in testCase6() 173 resBytes = result.toByteArray(); in testCase7() 192 resBytes = result.toByteArray(); in testCase8() 213 resBytes = result.toByteArray(); in testCase9() 234 resBytes = result.toByteArray(); in testCase10() [all …]
|
D | BigIntegerDivideTest.java | 76 resBytes = result.toByteArray(); in testCase3() 96 resBytes = result.toByteArray(); in testCase4() 117 resBytes = result.toByteArray(); in testCase5() 138 resBytes = result.toByteArray(); in testCase6() 158 resBytes = result.toByteArray(); in testCase7() 178 resBytes = result.toByteArray(); in testCase8() 198 resBytes = result.toByteArray(); in testCase9() 218 resBytes = result.toByteArray(); in testCase10() 238 resBytes = result.toByteArray(); in testCase11() 256 resBytes = result.toByteArray(); in testCase12() [all …]
|
D | BigIntegerMultiplyTest.java | 44 resBytes = result.toByteArray(); in testCase1() 65 resBytes = result.toByteArray(); in testCase2() 87 resBytes = result.toByteArray(); in testCase3() 109 resBytes = result.toByteArray(); in testCase4() 132 resBytes = result.toByteArray(); in testCase5() 155 resBytes = result.toByteArray(); in testCase6() 175 resBytes = result.toByteArray(); in testCase7() 193 resBytes = result.toByteArray(); in testCase8() 211 resBytes = result.toByteArray(); in testCase9() 229 resBytes = result.toByteArray(); in testCase10() [all …]
|
D | BigIntegerOrTest.java | 44 resBytes = result.toByteArray(); in testZeroPos() 64 resBytes = result.toByteArray(); in testZeroNeg() 84 resBytes = result.toByteArray(); in testPosZero() 104 resBytes = result.toByteArray(); in testNegPos() 124 resBytes = result.toByteArray(); in testZeroZero() 144 resBytes = result.toByteArray(); in testZeroOne() 164 resBytes = result.toByteArray(); in testOneOne() 184 resBytes = result.toByteArray(); in testPosPosSameLength() 204 resBytes = result.toByteArray(); in testPosPosFirstLonger() 224 resBytes = result.toByteArray(); in testPosPosFirstShorter() [all …]
|
D | BigIntegerAndTest.java | 44 resBytes = result.toByteArray(); in testZeroPos() 64 resBytes = result.toByteArray(); in testZeroNeg() 84 resBytes = result.toByteArray(); in testPosZero() 104 resBytes = result.toByteArray(); in testNegPos() 124 resBytes = result.toByteArray(); in testZeroZero() 166 resBytes = result.toByteArray(); in testPosPosSameLength() 186 resBytes = result.toByteArray(); in testPosPosFirstLonger() 206 resBytes = result.toByteArray(); in testPosPosFirstShorter() 226 resBytes = result.toByteArray(); in testNegNegSameLength() 246 resBytes = result.toByteArray(); in testNegNegFirstLonger() [all …]
|
D | BigIntegerNotTest.java | 44 resBytes = result.toByteArray(); in testAndNotPosPosFirstLonger() 64 resBytes = result.toByteArray(); in testAndNotPosPosFirstShorter() 84 resBytes = result.toByteArray(); in testAndNotNegNegFirstLonger() 104 resBytes = result.toByteArray(); in testNegPosFirstLonger() 119 resBytes = result.toByteArray(); in testNotZero() 134 resBytes = result.toByteArray(); in testNotOne() 151 resBytes = result.toByteArray(); in testNotPos() 168 resBytes = result.toByteArray(); in testNotNeg() 186 resBytes = result.toByteArray(); in testNotSpecialCase()
|
D | BigIntegerModPowTest.java | 74 resBytes = result.toByteArray(); in testModPowPosExp() 97 resBytes = result.toByteArray(); in testModPowNegExp() 174 resBytes = result.toByteArray(); in testmodInversePos1() 194 resBytes = result.toByteArray(); in testmodInversePos2() 214 resBytes = result.toByteArray(); in testmodInverseNeg1() 232 resBytes = result.toByteArray(); in testmodInverseNeg2() 252 resBytes = result.toByteArray(); in testGcdSecondZero() 272 resBytes = result.toByteArray(); in testGcdFirstZero() 290 resBytes = result.toByteArray(); in testGcdFirstZERO() 305 byte resBytes[] = result.toByteArray(); in testGcdBothZeros() [all …]
|
D | BigIntegerCompareTest.java | 41 resBytes = result.toByteArray(); in testAbsPositive() 58 resBytes = result.toByteArray(); in testAbsNegative() 307 resBytes = result.toByteArray(); in testMaxGreater() 328 resBytes = result.toByteArray(); in testMaxLess() 349 resBytes = result.toByteArray(); in testMaxEqual() 368 resBytes = result.toByteArray(); in testMaxNegZero() 389 resBytes = result.toByteArray(); in testMinGreater() 410 resBytes = result.toByteArray(); in testMinLess() 431 resBytes = result.toByteArray(); in testMinEqual() 450 resBytes = result.toByteArray(); in testMinPosZero() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldCollationKeyTest.java | 32 byte[] bytes = key1.toByteArray(); in test_toByteArray() 50 byte[] bytes1 = collator.getCollationKey("12").toByteArray(); in test_toByteArray() 51 byte[] bytes2 = collator.getCollationKey("123").toByteArray(); in test_toByteArray() 52 byte[] bytes3 = collator.getCollationKey("124").toByteArray(); in test_toByteArray() 53 byte[] bytes4 = collator.getCollationKey("1245").toByteArray(); in test_toByteArray() 54 byte[] bytes5 = collator.getCollationKey("1245").toByteArray(); in test_toByteArray()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintStreamTest.java | 161 bos.toByteArray()); in test_ConstructorLjava_io_OutputStreamZLjava_lang_String() 170 bos.toByteArray()); in test_ConstructorLjava_io_OutputStreamZLjava_lang_String() 246 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_print$C() 262 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printC() 275 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printD() 290 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printF() 305 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printI() 320 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printJ() 334 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printLjava_lang_Object() 347 bis = new ByteArrayInputStream(bos1.toByteArray()); in test_printLjava_lang_Object() [all …]
|
D | BufferedOutputStreamTest.java | 134 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII() 137 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII() 140 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII() 652 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_writeI() 655 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_writeI() 689 byteArrayis = new ByteArrayInputStream(byteArrayos.toByteArray()); in test_write_Scenario1() 692 byteArrayis = new ByteArrayInputStream(byteArrayos.toByteArray()); in test_write_Scenario1() 700 byteArrayis = new ByteArrayInputStream(byteArrayos.toByteArray()); in test_write_Scenario1() 703 byteArrayis = new ByteArrayInputStream(byteArrayos.toByteArray()); in test_write_Scenario1() 714 byteArrayis = new ByteArrayInputStream(byteArrayos.toByteArray()); in test_write_Scenario1() [all …]
|
D | ObjectOutputStreamTest.java | 642 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_putFields() 661 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_reset() 707 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_useProtocolVersionI() 734 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_write$B() 750 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_write$BII() 764 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeI() 776 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeBooleanZ() 787 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeByteI() 800 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeBytesLjava_lang_String() 814 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeCharI() [all …]
|
D | PrintWriterTest.java | 238 assertTrue("Failed to flush", new String(bao.toByteArray()) in test_flush() 277 assertEquals("Wrote incorrect char string", "c", new String(bao.toByteArray()) in test_printC() 290 .toByteArray()).equals(String.valueOf(dub))); in test_printD() 302 new String(bao.toByteArray()).equals(String.valueOf(flo))); in test_printF() 312 assertEquals("Wrote incorrect int string", "4908765", new String(bao.toByteArray()) in test_printI() 323 assertEquals("Wrote incorrect long string", "49087650000", new String(bao.toByteArray()) in test_printJ() 334 assertEquals("Did not write null", "null", new String(bao.toByteArray()) in test_printLjava_lang_Object() 341 .toByteArray())); in test_printLjava_lang_Object() 351 assertEquals("did not write null", "null", new String(bao.toByteArray()) in test_printLjava_lang_String() 357 assertEquals("Wrote incorrect string", "Hello World", new String(bao.toByteArray()) in test_printLjava_lang_String() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 140 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray()); in test_ConstructorLjava_io_InputStream_IOException() 160 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_ClassDescriptor() 172 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray()); in test_available_IOException() 190 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray()); in test_close() 217 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray()); in test_read_IOException() 235 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_read$BII_Exception() 257 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray()); in test_read$BII_Exception() 274 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readFully$B() 280 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readFully$B() 295 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray()); in test_readFully$B_Exception() [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | CollationKeyICU.java | 36 other.toByteArray()); in compareTo() 70 public byte[] toByteArray() { in toByteArray() method in CollationKeyICU 71 return key.toByteArray(); in toByteArray()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKLocalTimeSerialization.java | 101 byte[] bytes = baos.toByteArray(); in test_serialization_format_h() 113 byte[] bytes = baos.toByteArray(); in test_serialization_format_hm() 126 byte[] bytes = baos.toByteArray(); in test_serialization_format_hms() 140 byte[] bytes = baos.toByteArray(); in test_serialization_format_hmsn()
|
D | TCKZoneOffsetSerialization.java | 90 byte[] bytes = baos.toByteArray(); in test_serialization_format_quarterPositive() 101 byte[] bytes = baos.toByteArray(); in test_serialization_format_quarterNegative() 113 byte[] bytes = baos.toByteArray(); in test_serialization_format_full()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThrowableTest.java | 83 String s = fixStacktrace(new String(bao.toByteArray(), 0, bao.size())); in test_fillInStackTrace() 92 String s2 = fixStacktrace(new String(bao.toByteArray(), 0, bao.size())); in test_fillInStackTrace() 137 String s = new String(bao.toByteArray(), 0, bao.size()); in test_printStackTrace() 153 String s = new String(bao.toByteArray(), 0, bao.size()); in test_printStackTraceLjava_io_PrintStream() 170 String s = new String(bao.toByteArray(), 0, bao.size()); in test_printStackTraceLjava_io_PrintWriter()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS9Attribute.java | 484 DerInputStream derIn = new DerInputStream(derVal.toByteArray()); in PKCS9Attribute() 495 byte[] content = val[1].toByteArray(); in PKCS9Attribute() 542 value = (new DerInputStream(elems[0].toByteArray())).getUTCTime(); in PKCS9Attribute() 578 new DerInputStream(elems[0].toByteArray())); in PKCS9Attribute() 586 value = new SigningCertificateInfo(elems[0].toByteArray()); in PKCS9Attribute() 590 value = elems[0].toByteArray(); in PKCS9Attribute() 630 temp.write(DerValue.tag_Set, temp2.toByteArray()); in derEncode() 638 temp.write(DerValue.tag_Set, temp2.toByteArray()); in derEncode() 646 temp.write(DerValue.tag_Set, temp2.toByteArray()); in derEncode() 658 temp.write(DerValue.tag_Set, temp2.toByteArray()); in derEncode() [all …]
|