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/
DFileChannelDataSource.java105 int chunkSize = (int) Math.min(remaining, buf.capacity()); in feed() local
106 int chunkRemaining = chunkSize; in feed()
107 buf.limit(chunkSize); in feed()
121 chunkOffsetInFile += chunkSize; in feed()
122 remaining -= chunkSize; in feed()
145 int chunkSize; in copyTo() local
148 chunkSize = mChannel.read(dest); in copyTo()
150 offsetInFile += chunkSize; in copyTo()
151 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()
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()
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()
/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.java345 int chunkSize = in computeOneMbChunkContentDigests() local
347 setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1); in computeOneMbChunkContentDigests()
352 input.feed(inputOffset, chunkSize, mdSink); in computeOneMbChunkContentDigests()
371 inputOffset += chunkSize; in computeOneMbChunkContentDigests()
372 inputRemaining -= chunkSize; in computeOneMbChunkContentDigests()
652 private static long getChunkCount(long inputSize, long chunkSize) { in getChunkCount() argument
653 return (inputSize + chunkSize - 1) / chunkSize; in getChunkCount()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java376 long chunkSize = inputLocalFileHeaderStartOffset - inputOffset; in sign() local
377 inputApkLfhSection.feed(inputOffset, chunkSize, outputApkOut); in sign()
378 outputOffset += chunkSize; in sign()
466 long chunkSize = inputLfhSectionSize - inputOffset; in sign() local
467 inputApkLfhSection.feed(inputOffset, chunkSize, outputApkOut); in sign()
468 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.java354 int chunkSize = deflater.deflate(buf); in deflate() local
355 out.write(buf, 0, chunkSize); in deflate()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DSignerParams.java508 int chunkSize; in drain() local
509 while ((chunkSize = in.read(buf)) != -1) { in drain()
510 out.write(buf, 0, chunkSize); in drain()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZFile.java2421 int chunkSize = fileChannel.read(dest); in directFullyRead() local
2422 if (chunkSize == -1) { in directFullyRead()
2426 offset += chunkSize; in directFullyRead()