HomeSort by relevance Sort by last modified time
    Searched refs:toByteArray (Results 151 - 175 of 1795) sorted by null

1 2 3 4 5 67 8 91011>>

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
CollationKeyTest.java 86 * @tests java.text.CollationKey#toByteArray()
90 // Test for method byte [] java.text.CollationKey.toByteArray()
94 byte[] bytes = key1.toByteArray();
103 bytes = collator.getCollationKey("1234567").toByteArray();
  /libcore/luni/src/test/java/libcore/java/io/
OldObjectOutputStreamPutFieldTest.java 86 content = baos.toByteArray();
111 content = baos.toByteArray();
OldDataOutputStreamTest.java 52 bos.toByteArray().length == 0);
55 bos.toByteArray().length > 0);
180 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
OldFilterOutputStreamTest.java 103 bis = new ByteArrayInputStream(sos.toByteArray());
126 bis = new ByteArrayInputStream(sos.toByteArray());
176 bis = new ByteArrayInputStream(sos.toByteArray());
  /libcore/ojluni/src/main/java/sun/security/x509/
CertificateIssuerExtension.java 84 this.extensionValue = os.toByteArray();
190 out.write(tmp.toByteArray());
SubjectKeyIdentifierExtension.java 80 this.extensionValue = os.toByteArray();
136 out.write(tmp.toByteArray());
  /external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/
FileByFileV1DeltaApplierTest.java 128 oldFileBytes = buffer.toByteArray();
139 expectedDeltaFriendlyOldFileBytes = buffer.toByteArray();
146 expectedNewBytes = buffer.toByteArray();
206 return buffer.toByteArray();
252 Assert.assertArrayEquals(expectedNewBytes, actualNewBlobOut.toByteArray());
266 Assert.assertArrayEquals(expectedNewBytes, actualNewBlobOut.toByteArray());
  /external/jmdns/src/javax/jmdns/impl/
DNSEntry.java 222 protected void toByteArray(DataOutputStream dout) throws IOException {
233 protected byte[] toByteArray() {
237 this.toByteArray(dout);
239 return bout.toByteArray();
252 byte[] thisBytes = this.toByteArray();
253 byte[] thatBytes = that.toByteArray();
  /external/protobuf/java/core/src/test/java/com/google/protobuf/
ByteStringTest.java 95 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500));
102 isArrayRange(byteString.toByteArray(), bytes, 500, 200));
109 isArray(byteString.toByteArray(), bytes));
119 isArrayRange(byteString.toByteArray(), bytes, 500, 200));
129 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500));
137 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length));
145 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length));
154 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length));
192 byte[] originalValue = byteString.toByteArray();
197 byte[] newValue = byteString.toByteArray();
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
CipherOutputStream1Test.java 77 byte[] result = tos.toByteArray();
95 byte[] result = tos.toByteArray();
111 byte[] result = tos.toByteArray();
135 byte[] result = tos.toByteArray();
176 byte[] result = tos.toByteArray();
192 byte[] result = tos.toByteArray();
  /cts/tests/tests/ndef/src/android/ndef/cts/
NdefTest.java 302 new NdefMessage(NdefRecord.createUri("http://www.google.com")).toByteArray())),
314 NdefRecord.createUri(Uri.parse("http://www.nfc.com"))).toByteArray());
318 new NdefMessage(NdefRecord.createUri("tel:+35891234567")).toByteArray());
322 new NdefMessage(NdefRecord.createUri("foo")).toByteArray());
327 new NdefMessage(NdefRecord.createUri("\u00A2")).toByteArray());
413 r.toByteArray());
440 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)).toByteArray());
445 NdefRecord.TNF_UNKNOWN, null, new byte[] {9}, null)).toByteArray());
450 NdefRecord.TNF_EXTERNAL_TYPE, new byte[] {9}, null, null)).toByteArray());
455 NdefRecord.TNF_UNKNOWN, null, null, new byte[] {9})).toByteArray());
    [all...]
  /external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
NanoTest.java 87 byte [] result = MessageNano.toByteArray(msg);
126 byte [] result = MessageNano.toByteArray(msg);
144 assertEquals(0, MessageNano.toByteArray(msg).length);
156 byte [] result = MessageNano.toByteArray(msg);
176 byte [] result = MessageNano.toByteArray(msg);
197 byte [] result = MessageNano.toByteArray(msg);
218 byte [] result = MessageNano.toByteArray(msg);
239 byte [] result = MessageNano.toByteArray(msg);
260 byte [] result = MessageNano.toByteArray(msg);
281 byte [] result = MessageNano.toByteArray(msg)
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
CameraMetadataTest.java 653 toByteArray(1.0f, 2.1f, 3.2f, 4.5f));
661 }, toByteArray(
673 toByteArray(123f, 456f));
682 toByteArray(
696 toByteArray(10, 11, 1280 - 10, 1024 - 11));
703 }, toByteArray(
716 toByteArray(1, 2, 1 + 100, 2 + 200, 5));
725 toByteArray(
740 toByteArray(1000, 255, 30, 200, 8));
755 toByteArray(
    [all...]
  /libcore/ojluni/src/main/java/sun/security/pkcs/
PKCS9Attribute.java 484 DerInputStream derIn = new DerInputStream(derVal.toByteArray());
495 byte[] content = val[1].toByteArray();
542 value = (new DerInputStream(elems[0].toByteArray())).getUTCTime();
578 new DerInputStream(elems[0].toByteArray()));
586 value = new SigningCertificateInfo(elems[0].toByteArray());
590 value = elems[0].toByteArray();
630 temp.write(DerValue.tag_Set, temp2.toByteArray());
638 temp.write(DerValue.tag_Set, temp2.toByteArray());
646 temp.write(DerValue.tag_Set, temp2.toByteArray());
658 temp.write(DerValue.tag_Set, temp2.toByteArray());
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
ANQPParserTest.java 55 return stream.toByteArray();
72 return stream.toByteArray();
93 return stream.toByteArray();
111 return stream.toByteArray();
129 return stream.toByteArray();
152 return stream.toByteArray();
216 return stream.toByteArray();
232 return out.toByteArray();
258 return stream.toByteArray();
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
BigIntegerConvertTest.java 28 * Methods: intValue, longValue, toByteArray(), valueOf(long val),
665 resBytes = aNumber.toByteArray();
680 resBytes = aNumber.toByteArray();
695 resBytes = aNumber.toByteArray();
710 resBytes = aNumber.toByteArray();
725 resBytes = aNumber.toByteArray();
741 resBytes = aNumber.toByteArray();
756 resBytes = aNumber.toByteArray();
772 resBytes = aNumber.toByteArray();
786 resBytes = aNumber.toByteArray();
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
ByteSourceTester.java 111 byte[] readBytes = ByteStreams.toByteArray(in);
121 byte[] readBytes = ByteStreams.toByteArray(in);
136 assertExpectedBytes(out.toByteArray());
148 assertExpectedBytes(out.toByteArray());
181 return out.toByteArray();
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
PropertiesTest.java 628 .toByteArray());
681 .toByteArray());
717 ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
837 .toByteArray());
862 .toByteArray());
    [all...]
  /system/timezone/distro/core/src/test/com/android/timezone/distro/
TimeZoneDistroTest.java 61 TimeZoneDistro distro = new TimeZoneDistro(baos.toByteArray());
73 byte[] bytes = baos.toByteArray();
89 byte[] bytes = baos.toByteArray();
111 new TestInputStream(new ByteArrayInputStream(baos.toByteArray()));
144 new ByteArrayInputStream(baos.toByteArray()));
  /external/annotation-tools/scene-lib/src/annotations/io/classfile/
ClassFileWriter.java 184 fos.write(cw.toByteArray());
215 out.write(cw.toByteArray());
245 fos.write(cw.toByteArray());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
ASN1UTCTime.java 110 this.time = Strings.toByteArray(time);
134 this.time = Strings.toByteArray(dateF.format(time));
156 this.time = Strings.toByteArray(dateF.format(time));
  /external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
Utf8Test.java 176 private byte[] toByteArray(int... bytes) {
185 assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
189 assertFalse(Utf8.isWellFormed(toByteArray(bytes)));
  /external/objenesis/main/src/main/java/org/objenesis/instantiator/basic/
ObjectInputStreamInstantiator.java 67 HEADER = byteOut.toByteArray();
75 REPEATING_DATA = byteOut.toByteArray();
112 this.FIRST_DATA = byteOut.toByteArray();
  /frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
AppBackupUtilsTest.java 495 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray());
496 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray());
497 Signature signature3Copy = new Signature(SIGNATURE_3.toByteArray());
519 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray());
520 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray());
542 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray());
543 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray());
565 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray());
566 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray());
589 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray());
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
ByteArrayOutputStreamTest.java 84 * (fileString.getBytes(), 0, 100); bos.toByteArray(); fail("Wrote to
111 * java.io.ByteArrayOutputStream#toByteArray()
118 bytes = bos.toByteArray();
167 byte[] result = bos.toByteArray();
178 byte[] result = bos.toByteArray();

Completed in 2077 milliseconds

1 2 3 4 5 67 8 91011>>