/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | ByteStreams.java | 32 public static byte[] toByteArray(InputStream in) throws IOException { in toByteArray() method in ByteStreams 39 return result.toByteArray(); in toByteArray()
|
D | ByteBufferUtils.java | 28 public static byte[] toByteArray(ByteBuffer buf) { in toByteArray() method in ByteBufferUtils
|
D | X509CertificateUtils.java | 81 encodedForm = ByteStreams.toByteArray(in); in generateCertificate() 176 encodedCerts = ByteStreams.toByteArray(in); in generateCertificates()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | GCSFileUploaderFuncTest.java | 78 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()
|
D | FakeShellOutputReceiver.java | 28 return mStream.toByteArray(); in getReceivedOutput()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4Signature.java | 58 byte[] toByteArray() { in toByteArray() method in V4Signature.HashingInfo 103 byte[] toByteArray() { in toByteArray() method in V4Signature.SigningInfo 133 byte[] toByteArray() { in toByteArray() method in V4Signature.SigningInfoBlock 170 byte[] toByteArray() { in toByteArray() method in V4Signature.SigningInfos 172 arrays[0] = this.signingInfo.toByteArray(); in toByteArray() 175 arrays[i + 1] = this.signingInfoBlocks[i].toByteArray(); in toByteArray()
|
D | V4SchemeSigner.java | 236 additionalData, fileSize).toByteArray()); in generateSignature() 242 return new V4Signature(V4Signature.CURRENT_VERSION, hashingInfo.toByteArray(), in generateSignature() 243 signingInfos.toByteArray()); in generateSignature()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | Resources.java | 91 public static byte[] toByteArray(Class<?> cls, String resourceName) throws IOException { in toByteArray() method in Resources 96 return ByteStreams.toByteArray(in); in toByteArray() 148 byte[] encoded = toByteArray(cls, resourceName); in toPrivateKey() 183 .toByteArray(ApkSignerTest.class, dataSourceResourceName))); in toDataSource()
|
D | VerityTreeBuilderTest.java | 67 byte[] input = Resources.toByteArray(VerityTreeBuilderTest.class, inputResource); in generateRootHash()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | ByteTracker.java | 49 byte[] data = ByteStreams.toByteArray(stream); in fromStream() 69 byte[] data = stream.toByteArray();
|
/tools/apksig/src/test/java/com/android/apksig/kms/ |
D | KeyWrapper.java | 52 Resources.toByteArray(ApkSignerTest.class, keyNameInResources + ".pk8"); in wrapKeyForImport() 76 .toByteArray(); in wrapKeyForImport()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/statsd/ |
D | MetricUtilTest.java | 165 byte[] sampleReportBytes = SINGLE_REPORT_LIST_PROTO.toByteArray(); in testNonEmptyMetricReportList() 195 byte[] emptyReportBytes = ConfigMetricsReport.newBuilder().build().toByteArray(); in testEmptyMetricReportList() 221 byte[] sampleReportBytes = MULTIPLE_REPORT_LIST_PROTO_DIFFERENT_ATOMS.toByteArray(); in testMultipleReportsInReportList_differentAtoms() 254 byte[] sampleReportBytes = MULTIPLE_REPORT_LIST_PROTO_SAME_ATOM.toByteArray(); in testMultipleReportsInReportList_sameAtom() 326 StatsdStatsReport.newBuilder().build().toByteArray())) in testGettingStatsdStats()
|
/tools/apksig/src/main/java/com/android/apksig/internal/x509/ |
D | Certificate.java | 72 ByteBufferUtils.toByteArray(issuerAndSerialNumber.issuer.getEncoded()); in isMatchingCerticicate() 89 byte[] encodedForm = ByteBufferUtils.toByteArray(encodedCertificate.getEncoded()); in parseCertificates()
|
/tools/apksig/src/test/java/com/android/apksig/util/ |
D | DataSinkFromOutputStreamTest.java | 40 return ByteBuffer.wrap(((ByteArrayOutputStream) dataSink.getOutputStream()).toByteArray()); in getContents()
|
/tools/apksig/src/main/java/com/android/apksig/kms/gcp/ |
D | GcpSignerEngine.java | 55 .toByteArray(); in sign()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 332 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultLineage() 355 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultV3Lineage() 378 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultNoLineageApk() 398 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultNoV31Apk() 411 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultFromV3BlockFromV31SignedApk() 429 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultContainsLineageErrors() 445 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultDigests() 465 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetV3ResultDigests() 485 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetV2ResultDigests() 505 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultIncorrectDigests() [all …]
|
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/test/ |
D | PerformanceTestTest.java | 47 return new ByteArrayInputStream(outputStream.toByteArray()); in createImage()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZipToolsTest.java | 112 byte[] inZipData = ByteStreams.toByteArray(is); in assertFileInZip() 175 byte output[] = ByteStreams.toByteArray(is); in testReadZFile()
|
D | ZFileTest.java | 128 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 …]
|
D | ZipMergeTest.java | 65 byte e1Bytes[] = e1BytesOut.toByteArray(); in mergeZip() 74 byte e2Bytes[] = e2BytesOut.toByteArray(); in mergeZip()
|
/tools/tradefederation/core/common_util/com/android/tradefed/cache/ |
D | DigestCalculator.java | 67 return DigestCalculator.compute(message.toByteArray()); in compute()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/ |
D | DataSlice.kt | 91 fun String.asSlice() = DataSlice(this.toByteArray()) in ByteArray()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 399 sectionBytes = sectionOut.toByteArray(); in generateManifestFile() 408 result.contents = manifestOut.toByteArray(); in generateManifestFile() 503 return out.toByteArray(); in generateSignatureFile()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SerializationUtil.java | 72 return Base64.getEncoder().encodeToString(byteOut.toByteArray()); in serializeToString()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | Hints.java | 99 return bos.toByteArray(); in encodeByteRangeList()
|