/libcore/luni/src/test/java/libcore/java/io/ |
D | DataOutputStreamTest.java | 32 assertEquals("[01, 00]", toHexString(bytes.toByteArray())); in test_writeBoolean() 42 assertEquals("[ff, 00, 01, 81, 34]", toHexString(bytes.toByteArray())); in test_writeByte() 48 assertEquals("[30, 34, 31]", toHexString(bytes.toByteArray())); in test_writeBytes() 55 assertEquals("[00, 30, 12, 34]", toHexString(bytes.toByteArray())); in test_writeChar() 61 assertEquals("[00, 30, 12, 34, 00, 31]", toHexString(bytes.toByteArray())); in test_writeChars() 66 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); in test_writeDouble() 71 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); in test_writeFloat() 76 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); in test_writeInt() 81 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); in test_writeLong() 87 assertEquals("[45, 67]", toHexString(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/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/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 | 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 | 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 | 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintStreamTest.java | 209 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_print$C() 225 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printC() 238 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printD() 253 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printF() 268 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printI() 283 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printJ() 297 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printLjava_lang_Object() 310 bis = new ByteArrayInputStream(bos1.toByteArray()); in test_printLjava_lang_Object() 323 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printLjava_lang_String() 336 bis = new ByteArrayInputStream(bos1.toByteArray()); in test_printLjava_lang_String() [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 …]
|
D | ConsoleTest.java | 68 String prompt = new String(((ByteArrayOutputStream) out).toByteArray()); in test_format_LString_LObject() 75 String prompt = new String(((ByteArrayOutputStream) out).toByteArray()); in test_printf_LString_LObject() 94 String prompt = new String(((ByteArrayOutputStream) out).toByteArray()); in test_readLine_LString_LObject()
|
D | OutputStreamWriterTest.java | 182 String str = new String(out.toByteArray(), "utf-8"); in testWriteint() 187 str = new String(out.toByteArray(), "utf-8"); in testWriteint() 192 str = new String(out.toByteArray(), "utf-8"); in testWriteint() 197 str = new String(out.toByteArray(), "utf-8"); in testWriteint() 469 byte[] result = out.toByteArray(); in testSingleCharIO() 518 byte[] result = out.toByteArray(); in testBlockIO() 586 String converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close() 596 converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close() 600 converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close() 611 new String(bout.toByteArray(), "ISO8859_1")); in test_close() [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/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherOutputStream1Test.java | 70 byte[] result = tos.toByteArray(); in testCipherOutputStream() 88 byte[] result = tos.toByteArray(); in testWrite1() 104 byte[] result = tos.toByteArray(); in testWrite2() 128 byte[] result = tos.toByteArray(); in testWrite3() 169 byte[] result = tos.toByteArray(); in testFlush() 185 byte[] result = tos.toByteArray(); in testClose()
|
/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/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterInputStreamTest.java | 42 assertEquals(Arrays.toString(data), Arrays.toString(inflate(out.toByteArray()))); in testReadByteByByte() 60 return out.toByteArray(); in inflate() 76 assertEquals(Arrays.toString(data), Arrays.toString(inflate(out.toByteArray()))); in testReadWithBuffer()
|