/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKZonedDateTimeSerialization.java | 103 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format_zoneId() argument 104 dos.writeByte(6); in test_serialization_format_zoneId() 105 dos.writeInt(2012); // date in test_serialization_format_zoneId() 106 dos.writeByte(9); in test_serialization_format_zoneId() 107 dos.writeByte(16); in test_serialization_format_zoneId() 108 dos.writeByte(22); // time in test_serialization_format_zoneId() 109 dos.writeByte(17); in test_serialization_format_zoneId() 110 dos.writeByte(59); in test_serialization_format_zoneId() 111 dos.writeInt(470_000_000); in test_serialization_format_zoneId() 112 dos.writeByte(4); // offset in test_serialization_format_zoneId() [all …]
|
D | TCKLocalTimeSerialization.java | 97 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format_h() argument 98 dos.writeByte(4); in test_serialization_format_h() 99 dos.writeByte(-1 - 22); in test_serialization_format_h() 108 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format_hm() argument 109 dos.writeByte(4); in test_serialization_format_hm() 110 dos.writeByte(22); in test_serialization_format_hm() 111 dos.writeByte(-1 - 17); in test_serialization_format_hm() 120 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format_hms() argument 121 dos.writeByte(4); in test_serialization_format_hms() 122 dos.writeByte(22); in test_serialization_format_hms() [all …]
|
D | TCKZoneOffsetSerialization.java | 86 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format_quarterPositive() argument 87 dos.writeByte(8); in test_serialization_format_quarterPositive() 88 dos.writeByte(6); // stored as quarter hours in test_serialization_format_quarterPositive() 97 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format_quarterNegative() argument 98 dos.writeByte(8); in test_serialization_format_quarterNegative() 99 dos.writeByte(-10); // stored as quarter hours in test_serialization_format_quarterNegative() 108 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format_full() argument 109 dos.writeByte(8); in test_serialization_format_full() 110 dos.writeByte(127); in test_serialization_format_full() 111 dos.writeInt(53265); in test_serialization_format_full()
|
D | TCKZoneIdSerialization.java | 91 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 92 dos.writeByte(7); in test_serialization_format() 93 dos.writeUTF("Europe/London"); in test_serialization_format() 161 try (DataOutputStream dos = new DataOutputStream(baos)) { in deserialize() argument 162 dos.writeShort(ObjectStreamConstants.STREAM_MAGIC); in deserialize() 163 dos.writeShort(ObjectStreamConstants.STREAM_VERSION); in deserialize() 164 dos.writeByte(ObjectStreamConstants.TC_OBJECT); in deserialize() 165 dos.writeByte(ObjectStreamConstants.TC_CLASSDESC); in deserialize() 166 dos.writeUTF(serClass); in deserialize() 167 dos.writeLong(serVer); in deserialize() [all …]
|
D | TCKLocalDateTimeSerialization.java | 88 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 89 dos.writeByte(5); in test_serialization_format() 90 dos.writeInt(2012); in test_serialization_format() 91 dos.writeByte(9); in test_serialization_format() 92 dos.writeByte(16); in test_serialization_format() 93 dos.writeByte(22); in test_serialization_format() 94 dos.writeByte(17); in test_serialization_format() 95 dos.writeByte(59); in test_serialization_format() 96 dos.writeInt(459_000_000); in test_serialization_format()
|
D | TCKOffsetDateTimeSerialization.java | 98 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 99 dos.writeByte(10); // java.time.Ser.OFFSET_DATE_TIME_TYPE in test_serialization_format() 100 dos.writeInt(2012); in test_serialization_format() 101 dos.writeByte(9); in test_serialization_format() 102 dos.writeByte(16); in test_serialization_format() 103 dos.writeByte(22); in test_serialization_format() 104 dos.writeByte(17); in test_serialization_format() 105 dos.writeByte(59); in test_serialization_format() 106 dos.writeInt(464_000_000); in test_serialization_format() 107 dos.writeByte(4); // quarter hours stored: 3600 / 900 in test_serialization_format()
|
D | TCKOffsetTimeSerialization.java | 98 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 99 dos.writeByte(9); // java.time.Ser.OFFSET_TIME_TYPE in test_serialization_format() 100 dos.writeByte(22); in test_serialization_format() 101 dos.writeByte(17); in test_serialization_format() 102 dos.writeByte(59); in test_serialization_format() 103 dos.writeInt(464_000_000); in test_serialization_format() 104 dos.writeByte(4); // quarter hours stored: 3600 / 900 in test_serialization_format()
|
D | TCKLocalDateSerialization.java | 95 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 96 dos.writeByte(3); in test_serialization_format() 97 dos.writeInt(2012); in test_serialization_format() 98 dos.writeByte(9); in test_serialization_format() 99 dos.writeByte(16); in test_serialization_format()
|
D | TCKInstantSerialization.java | 85 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 86 dos.writeByte(2); in test_serialization_format() 87 dos.writeLong(654321); in test_serialization_format() 88 dos.writeInt(123456789); in test_serialization_format()
|
D | TCKMonthDaySerialization.java | 93 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 94 dos.writeByte(13); // java.time.temporal.Ser.MONTH_DAY_TYPE in test_serialization_format() 95 dos.writeByte(9); in test_serialization_format() 96 dos.writeByte(16); in test_serialization_format()
|
D | TCKYearMonthSerialization.java | 94 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 95 dos.writeByte(12); // java.time.temporal.Ser.YEAR_MONTH_TYPE in test_serialization_format() 96 dos.writeInt(2012); in test_serialization_format() 97 dos.writeByte(9); in test_serialization_format()
|
D | TCKDurationSerialization.java | 96 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 97 dos.writeByte(1); in test_serialization_format() 98 dos.writeLong(654321); in test_serialization_format() 99 dos.writeInt(123456789); in test_serialization_format()
|
D | TCKYearSerialization.java | 86 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 87 dos.writeByte(11); // java.time.temporal.Ser.YEAR_TYPE in test_serialization_format() 88 dos.writeInt(2012); in test_serialization_format()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | DigestOutputStreamTest.java | 82 MyDigestOutputStream dos = new MyDigestOutputStream(out, md); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() local 83 assertSame(out, dos.myOutputStream()); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 84 assertSame(md, dos.myMessageDigest()); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 87 dos = new MyDigestOutputStream(null, null); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 88 assertNull(dos.myOutputStream()); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 89 assertNull(dos.myMessageDigest()); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 91 dos = new MyDigestOutputStream(null, md); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 92 assertNull(dos.myOutputStream()); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 93 assertNotNull(dos.myMessageDigest()); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 95 dos = new MyDigestOutputStream(out, null); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 96 MyDeflaterOutputStream dos; in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() local 99 dos = new MyDeflaterOutputStream(fos, defl); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() 104 dos = new MyDeflaterOutputStream(fos, defl); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() 108 assertEquals("Incorrect Buffer Size", 512, dos.getProtectedBuf().length); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() 110 dos.write(byteArray); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() 111 dos.close(); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() 122 MyDeflaterOutputStream dos = new MyDeflaterOutputStream(fos); in test_ConstructorLjava_io_OutputStream() local 126 assertEquals("Incorrect Buffer Size", 512, dos.getProtectedBuf().length); in test_ConstructorLjava_io_OutputStream() 128 dos.write(outputBuf); in test_ConstructorLjava_io_OutputStream() 129 dos.close(); in test_ConstructorLjava_io_OutputStream() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoLocalDateSerialization.java | 120 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serialization_format() argument 121 dos.writeByte(dateType); in test_serialization_format() 122 dos.writeInt(date.get(YEAR)); in test_serialization_format() 123 dos.writeByte(date.get(MONTH_OF_YEAR)); in test_serialization_format() 124 dos.writeByte(date.get(DAY_OF_MONTH)); in test_serialization_format() 152 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_hijrahSerialization_format() argument 153 dos.writeByte(ObjectStreamConstants.TC_BLOCKDATA); in test_hijrahSerialization_format() 154 dos.writeByte(6); // 6 bytes follow in test_hijrahSerialization_format() 155 dos.writeInt(date.get(YEAR)); in test_hijrahSerialization_format() 156 dos.writeByte(date.get(MONTH_OF_YEAR)); in test_hijrahSerialization_format() [all …]
|
D | TCKChronologySerialization.java | 106 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_serializationBytes() argument 107 dos.writeByte(CHRONO_TYPE); in test_serializationBytes() 108 dos.writeUTF(chrono.getId()); in test_serializationBytes()
|
D | TCKEraSerialization.java | 126 try (DataOutputStream dos = new DataOutputStream(baos) ) { in test_JapaneseErasSerialization() argument 127 dos.writeByte(JAPANESE_ERA_TYPE); in test_JapaneseErasSerialization() 128 dos.writeByte(era.getValue()); in test_JapaneseErasSerialization()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | UTFDataFormatExceptionTest.java | 38 DataOutputStream dos = new DataOutputStream( in test_Constructor() local 40 dos.writeUTF(sb.toString()); in test_Constructor() 60 DataOutputStream dos = new DataOutputStream( in test_ConstructorLjava_lang_String() local 62 dos.writeUTF(sb.toString()); in test_ConstructorLjava_lang_String()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | Extension.java | 175 DerOutputStream dos = new DerOutputStream(); in encode() local 177 dos.putOID(extensionId); in encode() 179 dos.putBoolean(critical); in encode() 180 dos.putOctetString(extensionValue); in encode() 182 out.write(DerValue.tag_Sequence, dos); in encode()
|
D | CRLReasonCodeExtension.java | 61 DerOutputStream dos = new DerOutputStream(); in encodeThis() local 62 dos.putEnumerated(reasonCode); in encodeThis() 63 this.extensionValue = dos.toByteArray(); in encodeThis()
|
D | InvalidityDateExtension.java | 76 DerOutputStream dos = new DerOutputStream(); in encodeThis() local 77 dos.putGeneralizedTime(date); in encodeThis() 78 this.extensionValue = dos.toByteArray(); in encodeThis()
|
/libcore/ojluni/src/main/java/java/io/ |
D | DataOutputStream.java | 369 DataOutputStream dos = (DataOutputStream)out; in writeUTF() local 370 if(dos.bytearr == null || (dos.bytearr.length < (utflen+2))) in writeUTF() 371 dos.bytearr = new byte[(utflen*2) + 2]; in writeUTF() 372 bytearr = dos.bytearr; in writeUTF()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Manifest.java | 147 DataOutputStream dos = new DataOutputStream(out); in write() local 149 attr.writeMain(dos); in write() 163 dos.writeBytes(buffer.toString()); in write() 164 e.getValue().write(dos); in write() 166 dos.flush(); in write()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 125 DeflaterOutputStream dos = new DeflaterOutputStream(baos, def, deflaterBufferSize); in testSyncFlushDeflater() local 134 dos.write(output); in testSyncFlushDeflater()
|