Home
last modified time | relevance | path

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

/tools/apksig/src/test/java/com/android/apksig/internal/util/
DByteStreams.java35 int chunkSize; in toByteArray() local
36 while ((chunkSize = in.read(buf)) != -1) { in toByteArray()
37 result.write(buf, 0, chunkSize); in toByteArray()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
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/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/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.java462 int chunkSize = in computeOneMbChunkContentDigests() local
464 setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1); in computeOneMbChunkContentDigests()
469 input.feed(inputOffset, chunkSize, mdSink); in computeOneMbChunkContentDigests()
488 inputOffset += chunkSize; in computeOneMbChunkContentDigests()
489 inputRemaining -= chunkSize; in computeOneMbChunkContentDigests()
526 private static final long getChunkCount(long inputSize, int chunkSize) { in getChunkCount() argument
527 return (inputSize + chunkSize - 1) / chunkSize; in getChunkCount()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java322 long chunkSize = inputLocalFileHeaderStartOffset - inputOffset; in sign() local
323 inputApkLfhSection.feed(inputOffset, chunkSize, outputApkOut); in sign()
324 outputOffset += chunkSize; in sign()
390 long chunkSize = inputLfhSectionSize - inputOffset; in sign() local
391 inputApkLfhSection.feed(inputOffset, chunkSize, outputApkOut); in sign()
392 outputOffset += chunkSize; in sign()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DZipUtils.java308 int chunkSize = deflater.deflate(buf); in deflate() local
309 out.write(buf, 0, chunkSize); in deflate()
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()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java982 int chunkSize; in drain() local
983 while ((chunkSize = in.read(buf)) != -1) { in drain()
984 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()