Searched
refs:toByteArray (Results
401 -
425 of
1795) sorted by null
<<11121314151617181920>>
| /external/guava/guava-tests/test/com/google/common/base/ |
| Utf8Test.java | 232 private byte[] toByteArray(int... bytes) { 241 assertTrue(Utf8.isWellFormed(toByteArray(bytes))); 245 assertFalse(Utf8.isWellFormed(toByteArray(bytes)));
|
| /external/guava/guava-tests/test/com/google/common/hash/ |
| AbstractStreamingHasherTest.java | 202 return HashCode.fromBytes(out.toByteArray()); 230 assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize)); 242 byte[] got = out.toByteArray();
|
| /frameworks/base/keystore/java/android/security/keystore/ |
| KeyStoreCryptoOperationChunkedStreamer.java | 188 result = bufferedOutput.toByteArray(); 201 result = bufferedOutput.toByteArray(); 300 byte[] result = (bufferedOutput != null) ? bufferedOutput.toByteArray() : EmptyArray.BYTE;
|
| /frameworks/base/tests/net/java/android/net/ |
| MacAddressTest.java | 44 t.addr = toByteArray(addr); 160 byte[] bytesRepr = mac.toByteArray(); 255 static byte[] toByteArray(int... in) {
|
| /libcore/luni/src/test/java/libcore/java/util/jar/ |
| OldManifestTest.java | 122 b = baos.toByteArray(); 164 ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray()); 181 List<String> lines = Arrays.asList(new String(os.toByteArray(), "UTF-8").split("\r\n"));
|
| /libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
| X509CertificatePair.java | 197 encoded = tmp.toByteArray(); 243 (new X509CertImpl(opt.toByteArray())); 254 (new X509CertImpl(opt.toByteArray()));
|
| /libcore/ojluni/src/main/java/sun/security/x509/ |
| AuthorityKeyIdentifierExtension.java | 113 this.extensionValue = seq.toByteArray(); 226 out.write(tmp.toByteArray()); 318 return derOut.toByteArray();
|
| X509Key.java | 120 this.key = key.toByteArray(); 216 = new X509EncodedKeySpec(x509EncodedKeyStream.toByteArray()); 321 encoded = out.toByteArray();
|
| /libcore/ojluni/src/test/java/time/tck/java/time/ |
| AbstractTCKTest.java | 107 try (ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()))) { 122 byte[] bytes = baos.toByteArray(); 192 byte[] bytes = baos.toByteArray();
|
| /packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
| SapMessage.java | 869 RIL_SIM_SAP_STATUS_IND.parseFrom(msg.getPayload().toByteArray()); [all...] |
| /system/timezone/testing/src/main/java/libcore/tzdata/testing/ |
| ZoneInfoTestHelper.java | 157 return baos.toByteArray(); 270 writeByteArray(baos, dataBytes.toByteArray()); 277 byte[] bytes = baos.toByteArray();
|
| /external/guava/guava/src/com/google/common/io/ |
| ByteStreams.java | 113 public static byte[] toByteArray(InputStream in) throws IOException { 116 return out.toByteArray(); 125 static byte[] toByteArray( 361 * {@link ByteArrayDataOutput#toByteArray} will not be honored (the bytes 496 @Override public byte[] toByteArray() { 497 return byteArrayOutputSteam.toByteArray();
|
| /external/protobuf/java/core/src/test/java/com/google/protobuf/ |
| LiteralByteStringTest.java | 294 byte[] roundTripBytes = stringUnderTest.toByteArray(); 295 assertTrue(classUnderTest + ".toByteArray() must give back the same bytes", 302 byte[] roundTripBytes = bos.toByteArray(); 322 Arrays.equals(referenceBytes, stringUnderTest.toByteArray())); 341 Arrays.equals(allZeros, stringUnderTest.toByteArray())); 375 Arrays.equals(allZeros, stringUnderTest.toByteArray())); 386 Arrays.equals(referenceBytes, bos.toByteArray())); 538 byte[] pickled = out.toByteArray();
|
| LazyStringArrayListTest.java | 222 list.add(BYTE_STRING_A.toByteArray()); 236 list.addAllByteArray(asList(BYTE_STRING_A.toByteArray())); 257 list.set(0, BYTE_STRING_A.toByteArray());
|
| /frameworks/base/core/tests/coretests/src/android/util/ |
| Base64Test.java | 453 actual = baos.toByteArray(); 463 actual = baos.toByteArray(); 486 actual = baos.toByteArray(); 496 actual = baos.toByteArray(); 506 actual = baos.toByteArray(); 529 actual = baos.toByteArray();
|
| /frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
| DelegateClassAdapterTest.java | 367 cl2.add(OUTER_CLASS_NAME, cwOuter.toByteArray()); 368 cl2.add(INNER_CLASS_NAME, cwInner.toByteArray()); 422 cl2.add(OUTER_CLASS_NAME, cwOuter.toByteArray()); 423 cl2.add(STATIC_INNER_CLASS_NAME, cwInner.toByteArray()); 457 mClassDefs.put(className, rewrittenClass.toByteArray()); 483 byte[] bytes = cw.toByteArray();
|
| /cts/tests/tests/proto/src/android/util/proto/cts/ |
| ProtoOutputStreamEnumTest.java | 105 final byte[] expected = MessageNano.toByteArray(all); 213 final byte[] expected = MessageNano.toByteArray(all); 331 final byte[] expected = MessageNano.toByteArray(all);
|
| ProtoOutputStreamFixed32Test.java | 100 final byte[] expected = MessageNano.toByteArray(all); 201 final byte[] expected = MessageNano.toByteArray(all); 302 final byte[] expected = MessageNano.toByteArray(all);
|
| ProtoOutputStreamInt32Test.java | 102 final byte[] expected = MessageNano.toByteArray(all); 207 final byte[] expected = MessageNano.toByteArray(all); 318 final byte[] expected = MessageNano.toByteArray(all);
|
| ProtoOutputStreamSFixed32Test.java | 100 final byte[] expected = MessageNano.toByteArray(all); 201 final byte[] expected = MessageNano.toByteArray(all); 303 final byte[] expected = MessageNano.toByteArray(all);
|
| ProtoOutputStreamSInt32Test.java | 100 final byte[] expected = MessageNano.toByteArray(all); 201 final byte[] expected = MessageNano.toByteArray(all); 302 final byte[] expected = MessageNano.toByteArray(all);
|
| ProtoOutputStreamUInt32Test.java | 100 final byte[] expected = MessageNano.toByteArray(all); 201 final byte[] expected = MessageNano.toByteArray(all); 302 final byte[] expected = MessageNano.toByteArray(all);
|
| /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/data/ |
| ExecutionDataReaderWriterTest.java | 94 new ByteArrayInputStream(buffer.toByteArray())) { 169 final byte[] content = buffer.toByteArray(); 331 buffer.toByteArray()));
|
| /packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
| Rfc822OutputTests.java | 131 new ByteArrayInputStream(byteStream.toByteArray()); 165 new ByteArrayInputStream(byteStream.toByteArray()); 209 new ByteArrayInputStream(byteStream.toByteArray());
|
| /art/test/093-serialization/src/ |
| Main.java | 52 byte[] bytes = byteStream.toByteArray();
|
Completed in 1727 milliseconds
<<11121314151617181920>>