/external/brotli/python/tests/ |
decompressor_test.py | 19 CHUNK_SIZE = 1 34 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
compressor_test.py | 18 CHUNK_SIZE = 2048 44 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE) 55 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
/external/autotest/client/site_tests/hardware_TrimIntegrity/ |
hardware_TrimIntegrity.py | 36 CHUNK_SIZE = 192 * 1024 48 def _get_hash(self, chunk_count, chunk_size): 54 (chunk_count - 1, self._filename, chunk_size, self.HASH_CMD)) 98 chunk_size=CHUNK_SIZE, trim_ratio=TRIM_RATIO): 104 @param chunk_size: size of chunk to calculate hash/trim. default: 64KB 130 file_size -= file_size % (4 * chunk_size) 139 self._verify_trim_support(chunk_size) 143 (chunk_size, self.HASH_CMD)) 147 (chunk_size, self.HASH_CMD) [all...] |
/frameworks/compile/mclinker/unittests/ |
LinearAllocatorTest.h | 64 enum TemplateArgsType { CHUNK_SIZE = 32 }; 65 typedef mcld::LinearAllocator<Data, CHUNK_SIZE> Alloc;
|
RTLinearAllocatorTest.h | 62 enum { CHUNK_SIZE = 32 };
|
/external/autotest/client/site_tests/platform_CompressedSwap/src/ |
hog.c | 14 #define CHUNK_SIZE MEGA /* one-megabyte chunks */ 16 const int n_touches = CHUNK_SIZE >> 12; /* average 1 per page */ 38 char *fake_data = malloc(CHUNK_SIZE); 61 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); 63 memset(fake_data + CHUNK_SIZE / compression_factor, 1, 64 CHUNK_SIZE - (CHUNK_SIZE / compression_factor)); 68 p = malloc(CHUNK_SIZE); 76 memcpy(p, fake_data, CHUNK_SIZE);
|
/toolchain/binutils/binutils-2.27/libiberty/ |
objalloc.c | 77 #define CHUNK_SIZE (4096 - 32) 95 ret->chunks = (PTR) malloc (CHUNK_SIZE); 107 ret->current_space = CHUNK_SIZE - CHUNK_HEADER_SIZE; 159 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE); 166 o->current_space = CHUNK_SIZE - CHUNK_HEADER_SIZE; 210 if (b > (char *) p && b < (char *) p + CHUNK_SIZE) 264 o->current_space = ((char *) p + CHUNK_SIZE) - b; 296 o->current_space = ((char *) p + CHUNK_SIZE) - current_ptr;
|
/external/pcre/dist2/src/sljit/ |
sljitExecAllocator.c | 69 #define CHUNK_SIZE 0x10000 74 * the size is always divisible by CHUNK_SIZE 125 #define CHUNK_MASK (~(CHUNK_SIZE - 1)) 180 sljit_uw chunk_size; local 190 chunk_size = free_block->size; 191 if (chunk_size > size + 64) { 193 chunk_size -= size; 194 free_block->size = chunk_size; 195 header = AS_BLOCK_HEADER(free_block, chunk_size); 196 header->prev_size = chunk_size; [all...] |
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/ |
hog.c | 13 #define CHUNK_SIZE (1 << 20) 64 size_t new_buf_size = buf_size + balloon_size * CHUNK_SIZE; 69 char *new_chunk = global_buf + buf_size + chunk * CHUNK_SIZE; 70 memcpy(new_chunk, fake_data, CHUNK_SIZE); 146 fake_data = malloc(CHUNK_SIZE); 147 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); 149 memset(fake_data + CHUNK_SIZE / compression_factor, 1, 150 CHUNK_SIZE - (CHUNK_SIZE / compression_factor));
|
/external/brotli/java/org/brotli/wrapper/enc/ |
BrotliEncoderChannelTest.java | 36 private static final int CHUNK_SIZE = 256; 86 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { 101 int limit = Math.min(CHUNK_SIZE, src.remaining());
|
BrotliOutputStreamTest.java | 35 private static final int CHUNK_SIZE = 256; 86 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { 99 for (int offset = 0; offset < original.length; offset += CHUNK_SIZE) { 100 encoder.write(original, offset, Math.min(CHUNK_SIZE, original.length - offset));
|
/external/guava/guava/src/com/google/common/hash/ |
Murmur3_128HashFunction.java | 79 private static final int CHUNK_SIZE = 16; 87 super(CHUNK_SIZE); 97 length += CHUNK_SIZE; 172 .wrap(new byte[CHUNK_SIZE])
|
Murmur3_32HashFunction.java | 151 private static final int CHUNK_SIZE = 4; 156 super(CHUNK_SIZE); 164 length += CHUNK_SIZE;
|
SipHashFunction.java | 95 private static final int CHUNK_SIZE = 8; 119 super(CHUNK_SIZE); 129 b += CHUNK_SIZE;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStreamTest.java | 58 private static final int CHUNK_SIZE = 32; 328 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); 337 for (int i=0; i<MY_MESSAGE_LEN/CHUNK_SIZE; i++) { 340 dis.read(bArray, i*CHUNK_SIZE, CHUNK_SIZE) == CHUNK_SIZE); 368 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE+1) != 0); 377 for (int i=0; i<MY_MESSAGE_LEN/(CHUNK_SIZE+1); i++) { 380 dis.read(bArray, i*(CHUNK_SIZE+1), CHUNK_SIZE+1) = [all...] |
DigestOutputStreamTest.java | 58 private static final int CHUNK_SIZE = 32; 315 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); 324 for (int i=0; i<MY_MESSAGE_LEN/CHUNK_SIZE; i++) { 325 dos.write(myMessage, i*CHUNK_SIZE, CHUNK_SIZE); 352 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE+1) != 0); 361 for (int i=0; i<MY_MESSAGE_LEN/(CHUNK_SIZE+1); i++) { 362 dos.write(myMessage, i*(CHUNK_SIZE+1), CHUNK_SIZE+1); 366 MY_MESSAGE_LEN/(CHUNK_SIZE+1)*(CHUNK_SIZE+1) [all...] |
/external/apache-http/src/org/apache/commons/codec/binary/ |
Base64.java | 51 static final int CHUNK_SIZE = 76; 259 (CHUNK_SEPARATOR.length == 0 ? 0 : (int) Math.ceil((float) encodedDataLength / CHUNK_SIZE)); 270 int nextSeparatorIndex = CHUNK_SIZE; 306 // this assumes that CHUNK_SIZE % 4 == 0 316 (CHUNK_SIZE * (chunksSoFar + 1)) +
|
/external/brotli/research/ |
deorummolae.cc | 10 #define CHUNK_SIZE 64 17 #define CHUNK_MASK (CHUNK_SIZE - 1) 76 file_map->insert(file_map->end(), file.size() / CHUNK_SIZE, i); 117 size_t f = file_map->at(pos / CHUNK_SIZE); 220 int f = file_map[sa[i] / CHUNK_SIZE];
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
InflaterTest.java | 51 final int CHUNK_SIZE = 16; 53 inflater.setInput(deflatedBytes, offset, CHUNK_SIZE); 54 offset += CHUNK_SIZE; 72 int nextChunkByteCount = Math.min(CHUNK_SIZE, deflatedBytes.length - offset);
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
CachedInputStream.java | 34 private static final int CHUNK_SIZE = ByteArrayPool.CHUNK16K; 70 int chunks = mPos / CHUNK_SIZE; 73 int removedBytes = chunks * CHUNK_SIZE; 149 if (mPos == mBufs.size() * CHUNK_SIZE) { 152 int currentBuf = mPos / CHUNK_SIZE; 153 int indexInBuf = mPos - currentBuf * CHUNK_SIZE; 155 int end = (currentBuf + 1) * CHUNK_SIZE; 186 int currentBuf = mPos / CHUNK_SIZE; 187 int indexInBuf = mPos - currentBuf * CHUNK_SIZE; 189 int end = (currentBuf + 1) * CHUNK_SIZE; [all...] |
/system/core/adb/ |
adb.h | 198 #define CHUNK_SIZE (64 * 1024)
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
VerityTreeBuilder.java | 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); [all...] |
/external/sl4a/Common/src/org/apache/commons/codec/binary/ |
Base64Codec.java | 67 static final int CHUNK_SIZE = 76; 243 this(CHUNK_SIZE, CHUNK_SEPARATOR, urlSafe); 808 long len = getEncodeLength(binaryData, CHUNK_SIZE, CHUNK_SEPARATOR); [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
StreamSpliterators.java | 903 static final int CHUNK_SIZE = 1 << 7; [all...] |
/external/icu/icu4c/source/common/ |
ucnv.cpp | 45 #define CHUNK_SIZE 1024 [all...] |