Home | History | Annotate | Download | only in util

Lines Matching defs:CHUNK_SIZE

39     private final static int CHUNK_SIZE = 4096;
63 if (beforeApkSigningBlock.size() % CHUNK_SIZE != 0) {
64 throw new IllegalStateException("APK Signing Block size not a multiple of " + CHUNK_SIZE
121 long totalOutput = divideRoundup(src.size(), CHUNK_SIZE) * digestSize;
122 int incomplete = (int) (totalOutput % CHUNK_SIZE);
124 byte[] padding = new byte[CHUNK_SIZE - incomplete];
130 ByteBuffer firstPage = slice(verityBuffer.asReadOnlyBuffer(), 0, CHUNK_SIZE);
144 long chunkCount = divideRoundup(dataSize, CHUNK_SIZE);
145 long size = CHUNK_SIZE * divideRoundup(chunkCount * digestSize, CHUNK_SIZE);
147 if (chunkCount * digestSize <= CHUNK_SIZE) {
172 for (; offset + CHUNK_SIZE <= size; offset += CHUNK_SIZE) {
173 ByteBuffer buffer = ByteBuffer.allocate(CHUNK_SIZE);
174 dataSource.copyTo(offset, CHUNK_SIZE, buffer);
181 int remaining = (int) (size % CHUNK_SIZE);
184 buffer = ByteBuffer.allocate(CHUNK_SIZE); // initialized to 0.