Home
last modified time | relevance | path

Searched refs:toByteArray (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1InputStream.java140 return new DERApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject()
169 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject()
390 return defIn.toByteArray(); in getBuffer()
435 return new ASN1GeneralizedTime(defIn.toByteArray()); in createPrimitiveDERObject()
437 return new DERGeneralString(defIn.toByteArray()); in createPrimitiveDERObject()
439 return new DERIA5String(defIn.toByteArray()); in createPrimitiveDERObject()
441 return new ASN1Integer(defIn.toByteArray()); in createPrimitiveDERObject()
445 return new DERNumericString(defIn.toByteArray()); in createPrimitiveDERObject()
449 return new DEROctetString(defIn.toByteArray()); in createPrimitiveDERObject()
451 return new DERPrintableString(defIn.toByteArray()); in createPrimitiveDERObject()
[all …]
DASN1Object.java23 return bOut.toByteArray(); in getEncoded()
44 return bOut.toByteArray(); in getEncoded()
53 return bOut.toByteArray(); in getEncoded()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DPrintStreamTest.java207 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_print$C()
223 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printC()
236 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printD()
251 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printF()
266 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printI()
281 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printJ()
295 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printLjava_lang_Object()
308 bis = new ByteArrayInputStream(bos1.toByteArray()); in test_printLjava_lang_Object()
321 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printLjava_lang_String()
334 bis = new ByteArrayInputStream(bos1.toByteArray()); in test_printLjava_lang_String()
[all …]
DBufferedOutputStreamTest.java134 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 …]
DObjectInputStreamTest.java149 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_ConstructorLjava_io_InputStream()
168 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_resolveProxyClass()
170 new ByteArrayInputStream(bao.toByteArray())); in test_resolveProxyClass()
217 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_available()
228 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_close()
241 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_defaultReadObject()
258 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_read()
270 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_read$BII()
283 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readBoolean()
294 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readByte()
[all …]
DObjectOutputStreamTest.java634 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_putFields()
653 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_reset()
699 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_useProtocolVersionI()
726 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_write$B()
742 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_write$BII()
756 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeI()
768 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeBooleanZ()
779 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeByteI()
792 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeBytesLjava_lang_String()
806 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_writeCharI()
[all …]
DPrintWriterTest.java238 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 …]
DConsoleTest.java73 String prompt = new String(((ByteArrayOutputStream)out).toByteArray()); in test_format_LString_LObject()
80 String prompt = new String(((ByteArrayOutputStream)out).toByteArray()); in test_printf_LString_LObject()
99 String prompt = new String(((ByteArrayOutputStream)out).toByteArray()); in test_readLine_LString_LObject()
119 String prompt = new String(((ByteArrayOutputStream)out).toByteArray()); in test_readPassword_LString_LObject()
DOutputStreamWriterTest.java183 String str = new String(out.toByteArray(), "utf-8"); in testWriteint()
188 str = new String(out.toByteArray(), "utf-8"); in testWriteint()
193 str = new String(out.toByteArray(), "utf-8"); in testWriteint()
198 str = new String(out.toByteArray(), "utf-8"); in testWriteint()
470 byte[] result = out.toByteArray(); in testSingleCharIO()
519 byte[] result = out.toByteArray(); in testBlockIO()
587 String converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close()
597 converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close()
601 converted = new String(bout.toByteArray(), "ISO8859_1"); in test_close()
612 new String(bout.toByteArray(), "ISO8859_1")); in test_close()
[all …]
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java87 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
99 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
115 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
124 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
169 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
177 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
191 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
199 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
282 byte[] rawBytes = message.toByteArray(); in testWriteWholeMessage()
283 assertEqualBytes(TestUtil.getGoldenMessage().toByteArray(), rawBytes); in testWriteWholeMessage()
[all …]
DByteStringTest.java93 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex()
100 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize()
107 isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes()
117 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize()
127 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer()
135 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding()
143 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8()
152 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable()
189 byte[] originalValue = byteString.toByteArray(); in testReadFrom_mutating()
194 byte[] newValue = byteString.toByteArray(); in testReadFrom_mutating()
[all …]
/external/protobuf/java/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java86 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
98 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
114 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
123 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
168 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
176 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
190 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
198 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
281 byte[] rawBytes = message.toByteArray(); in testWriteWholeMessage()
282 assertEqualBytes(TestUtil.getGoldenMessage().toByteArray(), rawBytes); in testWriteWholeMessage()
[all …]
DNanoTest.java86 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano()
119 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano()
143 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32()
163 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32()
184 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64()
205 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32()
226 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64()
247 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32()
268 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint64()
289 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalFixed32()
[all …]
DMicroTest.java93 byte [] result = msg.toByteArray(); in testSimpleMessageMicro()
132 byte [] result = msg.toByteArray(); in testRecursiveMessageMicro()
169 byte [] result = msg.toByteArray(); in testMicroRequiredInt32()
196 byte [] result = msg.toByteArray(); in testMicroOptionalInt32()
222 byte [] result = msg.toByteArray(); in testMicroOptionalInt64()
248 byte [] result = msg.toByteArray(); in testMicroOptionalUint32()
274 byte [] result = msg.toByteArray(); in testMicroOptionalUint64()
300 byte [] result = msg.toByteArray(); in testMicroOptionalSint32()
326 byte [] result = msg.toByteArray(); in testMicroOptionalSint64()
352 byte [] result = msg.toByteArray(); in testMicroOptionalFixed32()
[all …]
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
DCipherOutputStreamTest.java60 byte[] result = tos.toByteArray(); in testCipherOutputStream()
78 byte[] result = tos.toByteArray(); in testWrite1()
94 byte[] result = tos.toByteArray(); in testWrite2()
111 byte[] result = tos.toByteArray(); in testWrite3()
152 byte[] result = tos.toByteArray(); in testFlush()
168 byte[] result = tos.toByteArray(); in testClose()
/external/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java127 ByteStreams.toByteArray(ByteStreams.newInputStreamSupplier(range)))); in testByteSuppliers()
129 byte[] subRange = ByteStreams.toByteArray( in testByteSuppliers()
305 assertTrue(Arrays.equals(range, ByteStreams.toByteArray(okRead))); in testAlwaysCloses()
309 ByteStreams.toByteArray(brokenRead); in testAlwaysCloses()
374 assertTrue(Arrays.equals(expected, out.toByteArray()));
382 assertTrue(Arrays.equals(expected, out.toByteArray()));
393 assertTrue(Arrays.equals(expected, out.toByteArray()));
633 assertEquals(0, out.toByteArray().length);
640 assertTrue(Arrays.equals(BYTES, out.toByteArray()));
647 assertTrue(Arrays.equals(BYTES, out.toByteArray()));
[all …]
DFileBackedOutputStreamTest.java105 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testThreshold()
135 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testWriteErrorAfterClose()
146 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testWriteErrorAfterClose()
156 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testReset()
159 assertTrue(Arrays.equals(new byte[0], ByteStreams.toByteArray(supplier))); in testReset()
162 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testReset()
DLittleEndianDataOutputStreamTest.java58 byte[] data = baos.toByteArray(); in testWriteLittleEndian()
89 byte[] data = baos.toByteArray(); in testWriteBytes()
106 byte[] data = baos.toByteArray(); in testWriteBytes_discardHighOrderBytes()
123 byte[] data = baos.toByteArray(); in testWriteChars()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
DThrowableTest.java83 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()
/external/smack/src/org/xbill/DNS/
DAddress.java121 byte [] v4addr = Address.toByteArray(tokens[i], IPv4); in parseV6()
167 byte [] byteArray = toByteArray(s, family); in toArray()
193 toByteArray(String s, int family) { in toByteArray() method in Address
209 byte [] address = Address.toByteArray(s, IPv4); in isDottedQuad()
299 bytes = toByteArray(addr, IPv4); in getByAddress()
302 bytes = toByteArray(addr, IPv6); in getByAddress()
322 bytes = toByteArray(addr, family); in getByAddress()
/external/jmdns/src/javax/jmdns/impl/
DDNSEntry.java222 protected void toByteArray(DataOutputStream dout) throws IOException { in toByteArray() method in DNSEntry
233 protected byte[] toByteArray() { in toByteArray() method in DNSEntry
237 this.toByteArray(dout); in toByteArray()
239 return bout.toByteArray(); in toByteArray()
252 byte[] thisBytes = this.toByteArray(); in compareTo()
253 byte[] thatBytes = that.toByteArray(); in compareTo()
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
DMessageMicro.java74 public byte[] toByteArray() { in toByteArray() method in MessageMicro
76 toByteArray(result, 0, result.length); in toByteArray()
89 public void toByteArray(byte [] data, int offset, int length) { in toByteArray() method in MessageMicro
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DMessageNano.java73 public static final byte[] toByteArray(MessageNano msg) { in toByteArray() method in MessageNano
75 toByteArray(msg, result, 0, result.length); in toByteArray()
88 public static final void toByteArray(MessageNano msg, byte [] data, int offset, int length) { in toByteArray() method in MessageNano
/external/smack/src/org/xbill/DNS/utils/
Dbase16.java37 return new String(os.toByteArray()); in toString()
53 byte [] in = bs.toByteArray(); in fromString()
70 return bs.toByteArray(); in fromString()
/external/jmonkeyengine/engine/src/desktop/com/jme3/app/state/
DMjpegFileWriter.java156 return baos.toByteArray(); in toBytes()
226 return baos.toByteArray(); in toBytes()
246 return baos.toByteArray(); in toBytes()
316 return baos.toByteArray(); in toBytes()
371 return baos.toByteArray(); in toBytes()
392 return baos.toByteArray(); in toBytes()
427 return baos.toByteArray(); in toBytes()
451 return baos.toByteArray(); in toBytes()
472 return baos.toByteArray(); in toBytes()
488 return baos.toByteArray(); in writeImageToBytes()

12345678910>>...13