Home
last modified time | relevance | path

Searched refs:dataSink (Results 1 – 6 of 6) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/util/
DInMemoryDataSinkTest.java36 protected ByteBuffer getContents(ReadableDataSink dataSink) throws IOException { in getContents() argument
37 if (dataSink.size() > Integer.MAX_VALUE) { in getContents()
38 throw new IOException("Too much data: " + dataSink.size()); in getContents()
40 return dataSink.getByteBuffer(0, (int) dataSink.size()); in getContents()
DDataSinkTestBase.java44 protected abstract ByteBuffer getContents(T dataSink) throws IOException; in getContents() argument
136 private CloseableWithDataSink(T dataSink, Closeable closeable) { in CloseableWithDataSink() argument
137 mDataSink = dataSink; in CloseableWithDataSink()
141 public static <T extends DataSink> CloseableWithDataSink<T> of(T dataSink) { in of() argument
142 return new CloseableWithDataSink<>(dataSink, null); in of()
146 T dataSink, Closeable closeable) { in of() argument
147 return new CloseableWithDataSink<>(dataSink, closeable); in of()
DDataSinkFromOutputStreamTest.java39 protected ByteBuffer getContents(OutputStreamDataSink dataSink) throws IOException { in getContents() argument
40 return ByteBuffer.wrap(((ByteArrayOutputStream) dataSink.getOutputStream()).toByteArray()); in getContents()
DDataSinkFromRAFTest.java51 protected ByteBuffer getContents(RandomAccessFileDataSink dataSink) throws IOException { in getContents() argument
52 RandomAccessFile f = dataSink.getFile(); in getContents()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DByteBufferSinkTestBase.java40 protected ByteBuffer getContents(ByteBufferSink dataSink) throws IOException { in getContents() argument
41 ByteBuffer buf = dataSink.getBuffer(); in getContents()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java172 public void writeToDataSink(DataSink dataSink) throws IOException { in writeToDataSink() argument
173 if (dataSink == null) { in writeToDataSink()
176 dataSink.consume(write()); in writeToDataSink()