Home
last modified time | relevance | path

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

123

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java128 byte e1Bytes[] = e1BytesOut.toByteArray(); in readZipWithTwoFilesOneDirectory()
137 byte e2Bytes[] = e2BytesOut.toByteArray(); in readZipWithTwoFilesOneDirectory()
177 byte[] wikiData = Files.toByteArray(wiki); in compressedFilesReadableByJavaZip()
178 byte[] rfcData = Files.toByteArray(rfc); in compressedFilesReadableByJavaZip()
179 byte[] lenaData = Files.toByteArray(lena); in compressedFilesReadableByJavaZip()
193 assertArrayEquals(wikiData, ByteStreams.toByteArray(zeis)); in compressedFilesReadableByJavaZip()
201 assertArrayEquals(rfcData, ByteStreams.toByteArray(zeis)); in compressedFilesReadableByJavaZip()
209 assertArrayEquals(lenaData, ByteStreams.toByteArray(zeis)); in compressedFilesReadableByJavaZip()
566 byte zipBytes[] = Files.toByteArray(zip); in zipFileWithEocdSignatureInComment()
965 byte[] data = Files.toByteArray(zip); in utf8NamesSupportedOnReadingWithoutUtf8Flag()
[all …]
DZipToolsTest.java112 byte[] inZipData = ByteStreams.toByteArray(is); in assertFileInZip()
175 byte output[] = ByteStreams.toByteArray(is); in testReadZFile()
DZipMergeTest.java65 byte e1Bytes[] = e1BytesOut.toByteArray(); in mergeZip()
74 byte e2Bytes[] = e2BytesOut.toByteArray(); in mergeZip()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/statsd/
DMetricUtilTest.java165 byte[] sampleReportBytes = SINGLE_REPORT_LIST_PROTO.toByteArray(); in testNonEmptyMetricReportList()
193 byte[] emptyReportBytes = ConfigMetricsReport.newBuilder().build().toByteArray(); in testEmptyMetricReportList()
219 byte[] sampleReportBytes = MULTIPLE_REPORT_LIST_PROTO_DIFFERENT_ATOMS.toByteArray(); in testMultipleReportsInReportList_differentAtoms()
250 byte[] sampleReportBytes = MULTIPLE_REPORT_LIST_PROTO_SAME_ATOM.toByteArray(); in testMultipleReportsInReportList_sameAtom()
320 StatsdStatsReport.newBuilder().build().toByteArray())) in testGettingStatsdStats()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DResources.java45 public static byte[] toByteArray(Class<?> cls, String resourceName) throws IOException { in toByteArray() method in Resources
50 return ByteStreams.toByteArray(in); in toByteArray()
102 byte[] encoded = toByteArray(cls, resourceName); in toPrivateKey()
135 .toByteArray(ApkSignerTest.class, dataSourceResourceName))); in toDataSource()
DVerityTreeBuilderTest.java67 byte[] input = Resources.toByteArray(VerityTreeBuilderTest.class, inputResource); in generateRootHash()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGCSFileUploaderFuncTest.java78 String readBack = new String(toByteArray(pullFileFromGcs(mTestFile.getName()))); in testUploadFile_roundTrip()
112 private byte[] toByteArray(InputStream in) throws IOException { in toByteArray() method in GCSFileUploaderFuncTest
125 return os.toByteArray(); in toByteArray()
DFakeShellOutputReceiver.java28 return mStream.toByteArray(); in getReceivedOutput()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DStatsdGenericPostProcessorTest.java91 generateReportListProto(generateAppStartupData()).toByteArray()); in setUp()
96 generateReportListProto(generateAppCrashData()).toByteArray()); in setUp()
288 Files.write(testMetricFile.toPath(), testProto.toByteArray()); in testParsingLogic()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java383 sectionBytes = sectionOut.toByteArray(); in generateManifestFile()
392 result.contents = manifestOut.toByteArray(); in generateManifestFile()
487 return out.toByteArray(); in generateSignatureFile()
DV1SchemeVerifier.java760 byte[] sigBytes = ByteBufferUtils.toByteArray(signerInfo.signature.slice()); in verifySignerInfoAgainstSigFile()
781 byte[] encodedForm = ByteBufferUtils.toByteArray(encodedCertificate.getEncoded()); in parseCertificates()
842 ByteBufferUtils.toByteArray(issuerAndSerialNumber.issuer.getEncoded()); in isMatchingCerticicate()
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java337 ByteBuffer.wrap(Resources.toByteArray(ApkSigner.class, inResourceName))); in signGolden()
917 ByteBuffer.wrap(Resources.toByteArray(getClass(), expectedOutResourceName)); in assertGolden()
957 ByteBuffer.wrap(Resources.toByteArray(getClass(), inResourceName))); in sign()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DByteStreams.java32 public static byte[] toByteArray(InputStream in) throws IOException { in toByteArray() method in ByteStreams
39 return result.toByteArray(); in toByteArray()
DX509CertificateUtils.java73 encodedForm = ByteStreams.toByteArray(in); in generateCertificate()
172 encodedCerts = ByteStreams.toByteArray(in); in generateCertificates()
DByteBufferUtils.java28 public static byte[] toByteArray(ByteBuffer buf) { in toByteArray() method in ByteBufferUtils
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DByteTracker.java49 byte[] data = ByteStreams.toByteArray(stream); in fromStream()
69 byte[] data = stream.toByteArray();
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DJavaCodeCoverageListenerTest.java352 return Long.valueOf(CRC64.classId(classBytes(clazz).toByteArray())); in classId()
366 return ByteString.copyFrom(bytes.toByteArray()); in measurement()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java254 value.toByteArray()); in toInteger()
333 encodedValue.toByteArray()); in toOid()
DAsn1BerParser.java505 return new BigInteger(ByteBufferUtils.toByteArray(encoded)); in integerToBigInteger()
625 return (T) new String(ByteBufferUtils.toByteArray(encodedContents)); in convert()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSinkFromOutputStreamTest.java40 return ByteBuffer.wrap(((ByteArrayOutputStream) dataSink.getOutputStream()).toByteArray()); in getContents()
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/test/
DPerformanceTestTest.java47 return new ByteArrayInputStream(outputStream.toByteArray()); in createImage()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/
DDataSlice.kt91 fun String.asSlice() = DataSlice(this.toByteArray()) in ByteArray()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSerializationUtil.java72 return Base64.getEncoder().encodeToString(byteOut.toByteArray()); in serializeToString()
/tools/apksig/src/main/java/com/android/apksig/
DHints.java99 return bos.toByteArray(); in encodeByteRangeList()
/tools/apksig/src/test/java/com/android/apksig/apk/
DApkUtilsTest.java114 return Resources.toByteArray(ApkSigner.class, resourceName); in getResource()

123