Home
last modified time | relevance | path

Searched refs:chunkSize (Results 1 – 13 of 13) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DRandomAccessFileDataSource.java109 int chunkSize = (int) Math.min(remaining, buf.capacity()); in feed() local
110 int chunkRemaining = chunkSize; in feed()
111 buf.limit(chunkSize); in feed()
125 chunkOffsetInFile += chunkSize; in feed()
126 remaining -= chunkSize; in feed()
149 int chunkSize; in copyTo() local
152 chunkSize = mChannel.read(dest); in copyTo()
154 offsetInFile += chunkSize; in copyTo()
155 remaining -= chunkSize; in copyTo()
DByteStreams.java35 int chunkSize; in toByteArray() local
36 while ((chunkSize = in.read(buf)) != -1) { in toByteArray()
37 result.write(buf, 0, chunkSize); in toByteArray()
DOutputStreamDataSink.java71 int chunkSize = Math.min(buf.remaining(), tmp.length); in consume() local
72 buf.get(tmp, 0, chunkSize); in consume()
73 mOut.write(tmp, 0, chunkSize); in consume()
DByteArrayDataSink.java85 int chunkSize = Math.min(buf.remaining(), tmp.length); in consume() local
86 buf.get(tmp, 0, chunkSize); in consume()
87 System.arraycopy(tmp, 0, mArray, mSize, chunkSize); in consume()
88 mSize += chunkSize; in consume()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBatchProcessor.kt103 fun<T, U, S> par_map(iterator: Iterator<T>, threadState: () -> S, chunkSize: Int = 50, in par_map()
111 val source = ArrayList<T>(chunkSize) in par_map()
112 while (source.size < chunkSize && iterator.hasNext()) { in par_map()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java543 long chunkSize = getUnsignedInt32(input); in get() local
544 long chunkRemaining = chunkSize - 8; in get()
553 } else if (headerSize > chunkSize) { in get()
556 + chunkSize + " bytes"); in get()
559 long chunkEndPosition = originalPosition + chunkSize; in get()
DApkSigningBlockUtils.java496 int chunkSize = in computeOneMbChunkContentDigests() local
498 setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1); in computeOneMbChunkContentDigests()
503 input.feed(inputOffset, chunkSize, mdSink); in computeOneMbChunkContentDigests()
522 inputOffset += chunkSize; in computeOneMbChunkContentDigests()
523 inputRemaining -= chunkSize; in computeOneMbChunkContentDigests()
762 private static long getChunkCount(long inputSize, long chunkSize) { in getChunkCount() argument
763 return (inputSize + chunkSize - 1) / chunkSize; in getChunkCount()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java331 long chunkSize = inputLocalFileHeaderStartOffset - inputOffset; in sign() local
332 inputApkLfhSection.feed(inputOffset, chunkSize, outputApkOut); in sign()
333 outputOffset += chunkSize; in sign()
416 long chunkSize = inputLfhSectionSize - inputOffset; in sign() local
417 inputApkLfhSection.feed(inputOffset, chunkSize, outputApkOut); in sign()
418 outputOffset += chunkSize; in sign()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DZFileDataSource.java112 int chunkSize = (int) Math.min(remaining, buf.length); in feed() local
113 int readSize = file.directRead(chunkOffsetInFile, buf, 0, chunkSize); in feed()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DLocalFileRecord.java509 int chunkSize = Math.min(buf.remaining(), mInputBuffer.length); in consume() local
510 buf.get(mInputBuffer, 0, chunkSize); in consume()
511 consume(mInputBuffer, 0, chunkSize); in consume()
DZipUtils.java308 int chunkSize = deflater.deflate(buf); in deflate() local
309 out.write(buf, 0, chunkSize); in deflate()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DSignerParams.java499 int chunkSize; in drain() local
500 while ((chunkSize = in.read(buf)) != -1) { in drain()
501 out.write(buf, 0, chunkSize); in drain()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZFile.java2420 int chunkSize = fileChannel.read(dest); in directFullyRead() local
2421 if (chunkSize == -1) { in directFullyRead()
2425 offset += chunkSize; in directFullyRead()