/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);
|
/frameworks/compile/mclinker/unittests/ |
LinearAllocatorTest.h | 64 enum TemplateArgsType { CHUNK_SIZE = 32 }; 65 typedef mcld::LinearAllocator<Data, CHUNK_SIZE> Alloc;
|
LinearAllocatorTest.cpp | 18 m_pTestee = new LinearAllocator<Data, CHUNK_SIZE>(); 40 ASSERT_EQ(CHUNK_SIZE, m_pTestee->max_size()); 47 ASSERT_EQ(CHUNK_SIZE, m_pTestee->max_size()); 52 Data* pointer = m_pTestee->allocate(CHUNK_SIZE + 1);
|
RTLinearAllocatorTest.cpp | 18 m_pTestee = new LinearAllocator<Data, 0>(CHUNK_SIZE); 41 ASSERT_TRUE(CHUNK_SIZE == m_pTestee->max_size()); 48 ASSERT_TRUE(CHUNK_SIZE == m_pTestee->max_size()); 53 Data* pointer = m_pTestee->allocate(CHUNK_SIZE + 1);
|
RTLinearAllocatorTest.h | 62 enum { CHUNK_SIZE = 32 };
|
/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));
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
CachedInputStream.java | 36 private static final int CHUNK_SIZE = ByteArrayPool.CHUNK16K; 72 int chunks = mPos / CHUNK_SIZE; 75 int removedBytes = chunks * CHUNK_SIZE; 151 if (mPos == mBufs.size() * CHUNK_SIZE) { 154 int currentBuf = mPos / CHUNK_SIZE; 155 int indexInBuf = mPos - currentBuf * CHUNK_SIZE; 157 int end = (currentBuf + 1) * CHUNK_SIZE; 188 int currentBuf = mPos / CHUNK_SIZE; 189 int indexInBuf = mPos - currentBuf * CHUNK_SIZE; 191 int end = (currentBuf + 1) * CHUNK_SIZE; [all...] |
/toolchain/binutils/binutils-2.25/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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStreamTest.java | 56 private static final int CHUNK_SIZE = 32; 333 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); 342 for (int i = 0; i < MY_MESSAGE_LEN / CHUNK_SIZE; i++) { 345 dis.read(bArray, i * CHUNK_SIZE, CHUNK_SIZE) == CHUNK_SIZE); 373 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE + 1) != 0); 382 for (int i = 0; i < MY_MESSAGE_LEN / (CHUNK_SIZE + 1); i++) { 385 dis.read(bArray, i * (CHUNK_SIZE + 1), CHUNK_SIZE + 1) = [all...] |
DigestOutputStreamTest.java | 56 private static final int CHUNK_SIZE = 32; 321 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); 330 for (int i = 0; i < MY_MESSAGE_LEN / CHUNK_SIZE; i++) { 331 dos.write(myMessage, i * CHUNK_SIZE, CHUNK_SIZE); 358 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE + 1) != 0); 367 for (int i = 0; i < MY_MESSAGE_LEN / (CHUNK_SIZE + 1); i++) { 368 dos.write(myMessage, i * (CHUNK_SIZE + 1), CHUNK_SIZE + 1); 372 MY_MESSAGE_LEN / (CHUNK_SIZE + 1) * (CHUNK_SIZE + 1) [all...] |
/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/guava/guava/src/com/google/common/hash/ |
SipHashFunction.java | 95 private static final int CHUNK_SIZE = 8; 119 super(CHUNK_SIZE); 129 b += CHUNK_SIZE;
|
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;
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
InflaterTest.java | 45 final int CHUNK_SIZE = 16; 47 inflater.setInput(deflatedBytes, offset, CHUNK_SIZE); 48 offset += CHUNK_SIZE; 66 int nextChunkByteCount = Math.min(CHUNK_SIZE, deflatedBytes.length - offset);
|
/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/pcre/dist/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/chromium-trace/catapult/third_party/beautifulsoup4/bs4/builder/ |
_lxml.py | 31 CHUNK_SIZE = 512 110 data = markup.read(self.CHUNK_SIZE) 116 data = markup.read(self.CHUNK_SIZE)
|
/prebuilts/eclipse/maven/apache-maven-3.2.1/lib/ |
plexus-cipher-1.7.jar | |
/prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/sonatype/plexus/plexus-cipher/1.7/ |
plexus-cipher-1.7.jar | |
/prebuilts/tools/common/m2/repository/org/sonatype/plexus/plexus-cipher/1.4/ |
plexus-cipher-1.4.jar | |
/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...] |
/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...] |
/frameworks/base/core/tests/coretests/src/android/app/ |
DownloadManagerBaseTest.java | 608 final int CHUNK_SIZE = 1000000; // copy random data in 1000000-char chunks 610 int nextChunkSize = CHUNK_SIZE; 617 if (remaining < CHUNK_SIZE) { 623 remaining -= CHUNK_SIZE; [all...] |