Home
last modified time | relevance | path

Searched refs:CHUNK_SIZE (Results 1 – 25 of 34) sorted by relevance

12

/external/autotest/client/site_tests/platform_CompressedSwap/src/
Dhog.c14 #define CHUNK_SIZE MEGA /* one-megabyte chunks */ macro
16 const int n_touches = CHUNK_SIZE >> 12; /* average 1 per page */
38 char *fake_data = malloc(CHUNK_SIZE); in main()
61 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); in main()
63 memset(fake_data + CHUNK_SIZE / compression_factor, 1, in main()
64 CHUNK_SIZE - (CHUNK_SIZE / compression_factor)); in main()
68 p = malloc(CHUNK_SIZE); in main()
76 memcpy(p, fake_data, CHUNK_SIZE); in main()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DDigestInputStreamTest.java56 private static final int CHUNK_SIZE = 32; field in DigestInputStreamTest
333 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); in testReadbyteArrayintint02()
342 for (int i = 0; i < MY_MESSAGE_LEN / CHUNK_SIZE; i++) { in testReadbyteArrayintint02()
345 dis.read(bArray, i * CHUNK_SIZE, CHUNK_SIZE) == CHUNK_SIZE); in testReadbyteArrayintint02()
373 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE + 1) != 0); in testReadbyteArrayintint03()
382 for (int i = 0; i < MY_MESSAGE_LEN / (CHUNK_SIZE + 1); i++) { in testReadbyteArrayintint03()
385 dis.read(bArray, i * (CHUNK_SIZE + 1), CHUNK_SIZE + 1) == in testReadbyteArrayintint03()
386 CHUNK_SIZE + 1); in testReadbyteArrayintint03()
393 MY_MESSAGE_LEN / (CHUNK_SIZE + 1) * (CHUNK_SIZE + 1), in testReadbyteArrayintint03()
394 MY_MESSAGE_LEN % (CHUNK_SIZE + 1)) == in testReadbyteArrayintint03()
[all …]
DDigestOutputStreamTest.java56 private static final int CHUNK_SIZE = 32; field in DigestOutputStreamTest
321 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); in testWritebyteArrayintint02()
330 for (int i = 0; i < MY_MESSAGE_LEN / CHUNK_SIZE; i++) { in testWritebyteArrayintint02()
331 dos.write(myMessage, i * CHUNK_SIZE, CHUNK_SIZE); in testWritebyteArrayintint02()
358 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE + 1) != 0); in testWritebyteArrayintint03()
367 for (int i = 0; i < MY_MESSAGE_LEN / (CHUNK_SIZE + 1); i++) { in testWritebyteArrayintint03()
368 dos.write(myMessage, i * (CHUNK_SIZE + 1), CHUNK_SIZE + 1); in testWritebyteArrayintint03()
372 MY_MESSAGE_LEN / (CHUNK_SIZE + 1) * (CHUNK_SIZE + 1), in testWritebyteArrayintint03()
373 MY_MESSAGE_LEN % (CHUNK_SIZE + 1)); in testWritebyteArrayintint03()
399 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); in testWritebyteArrayintint04()
[all …]
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/
Dhog.c13 #define CHUNK_SIZE (1 << 20) macro
64 size_t new_buf_size = buf_size + balloon_size * CHUNK_SIZE; in BalloonMemory()
69 char *new_chunk = global_buf + buf_size + chunk * CHUNK_SIZE; in BalloonMemory()
70 memcpy(new_chunk, fake_data, CHUNK_SIZE); in BalloonMemory()
146 fake_data = malloc(CHUNK_SIZE); in main()
147 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); in main()
149 memset(fake_data + CHUNK_SIZE / compression_factor, 1, in main()
150 CHUNK_SIZE - (CHUNK_SIZE / compression_factor)); in main()
/external/guava/guava/src/com/google/common/hash/
DMurmur3_128HashFunction.java79 private static final int CHUNK_SIZE = 16; field in Murmur3_128HashFunction.Murmur3_128Hasher
87 super(CHUNK_SIZE); in Murmur3_128Hasher()
97 length += CHUNK_SIZE; in process()
172 .wrap(new byte[CHUNK_SIZE]) in makeHash()
DSipHashFunction.java95 private static final int CHUNK_SIZE = 8; field in SipHashFunction.SipHasher
119 super(CHUNK_SIZE); in SipHasher()
129 b += CHUNK_SIZE; in process()
DMurmur3_32HashFunction.java151 private static final int CHUNK_SIZE = 4; field in Murmur3_32HashFunction.Murmur3_32Hasher
156 super(CHUNK_SIZE); in Murmur3_32Hasher()
164 length += CHUNK_SIZE; in process()
/external/apache-http/src/org/apache/commons/codec/binary/
DBase64.java51 static final int CHUNK_SIZE = 76; field in Base64
259 … (CHUNK_SEPARATOR.length == 0 ? 0 : (int) Math.ceil((float) encodedDataLength / CHUNK_SIZE)); in encodeBase64()
270 int nextSeparatorIndex = CHUNK_SIZE; in encodeBase64()
316 (CHUNK_SIZE * (chunksSoFar + 1)) + in encodeBase64()
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/builder/
D_lxml.py31 CHUNK_SIZE = 512 variable in LXMLTreeBuilderForXML
110 data = markup.read(self.CHUNK_SIZE)
116 data = markup.read(self.CHUNK_SIZE)
/external/pcre/dist/sljit/
DsljitExecAllocator.c69 #define CHUNK_SIZE 0x10000 macro
125 #define CHUNK_MASK (~(CHUNK_SIZE - 1))
212 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java68 static final int CHUNK_SIZE = 76; field in Base64Codec
244 this(CHUNK_SIZE, CHUNK_SEPARATOR, urlSafe); in Base64Codec()
809 long len = getEncodeLength(binaryData, CHUNK_SIZE, CHUNK_SEPARATOR); in encodeBase64()
/external/autotest/client/site_tests/hardware_TrimIntegrity/
Dhardware_TrimIntegrity.py36 CHUNK_SIZE = 192 * 1024 variable in hardware_TrimIntegrity
98 chunk_size=CHUNK_SIZE, trim_ratio=TRIM_RATIO):
/external/icu/icu4c/source/common/
Ducnv.c43 #define CHUNK_SIZE 1024 macro
2051 UChar pivotBuffer[CHUNK_SIZE]; in ucnv_convertEx()
2104 pivotLimit=pivotBuffer+CHUNK_SIZE; in ucnv_convertEx()
2407 UChar pivotBuffer[CHUNK_SIZE]; in ucnv_internalConvert()
2437 pivotBuffer, &pivot, &pivot2, pivotBuffer+CHUNK_SIZE, in ucnv_internalConvert()
2451 char targetBuffer[CHUNK_SIZE]; in ucnv_internalConvert()
2453 targetLimit=targetBuffer+CHUNK_SIZE; in ucnv_internalConvert()
2460 pivotBuffer, &pivot, &pivot2, pivotBuffer+CHUNK_SIZE, in ucnv_internalConvert()
/external/clang/include/clang/AST/
DOpenMPClause.h673 enum { CHUNK_SIZE, HELPER_CHUNK_SIZE, NUM_EXPRS }; enumerator
700 void setChunkSize(Expr *E) { ChunkSizes[CHUNK_SIZE] = E; } in setChunkSize()
726 ChunkSizes[CHUNK_SIZE] = ChunkSize; in OMPScheduleClause()
735 ChunkSizes[CHUNK_SIZE] = nullptr; in OMPScheduleClause()
753 Expr *getChunkSize() { return dyn_cast_or_null<Expr>(ChunkSizes[CHUNK_SIZE]); } in getChunkSize()
757 return dyn_cast_or_null<Expr>(ChunkSizes[CHUNK_SIZE]); in getChunkSize()
775 return child_range(&ChunkSizes[CHUNK_SIZE], &ChunkSizes[CHUNK_SIZE] + 1); in children()
/external/icu/icu4c/source/test/cintltst/
Dccapitst.c1923 #define CHUNK_SIZE 1024 macro
1956 char char_in[CHUNK_SIZE+32]; in bug1()
1957 char char_out[CHUNK_SIZE*2]; in bug1()
1977 memcpy(char_in + (CHUNK_SIZE - i), test_seq, test_seq_len); in bug1()
2076 char char_in[CHUNK_SIZE*4]; in bug3()
2140 UChar pivotBuffer[CHUNK_SIZE]; in convertExStreaming()
2144 char targetBuffer[CHUNK_SIZE]; in convertExStreaming()
2155 if(chunkSize>CHUNK_SIZE) { in convertExStreaming()
2156 chunkSize=CHUNK_SIZE; in convertExStreaming()
/external/webp/src/dec/
Didec.c25 #define CHUNK_SIZE 4096 macro
183 const uint64_t extra_size = (new_size + CHUNK_SIZE - 1) & ~(CHUNK_SIZE - 1); in AppendToMemBuffer()
/external/opencv3/3rdparty/libwebp/dec/
Didec.c28 #define CHUNK_SIZE 4096 macro
173 const uint64_t extra_size = (new_size + CHUNK_SIZE - 1) & ~(CHUNK_SIZE - 1); in AppendToMemBuffer()
/external/libxml2/
Dxmlreader.c93 #define CHUNK_SIZE 512 macro
839 if (xmlBufUse(inbuf) < reader->cur + CHUNK_SIZE) { in xmlTextReaderPushData()
870 if (xmlBufUse(inbuf) >= reader->cur + CHUNK_SIZE) { in xmlTextReaderPushData()
873 CHUNK_SIZE, 0); in xmlTextReaderPushData()
874 reader->cur += CHUNK_SIZE; in xmlTextReaderPushData()
897 (xmlBufUse(inbuf) - reader->cur <= CHUNK_SIZE)) { in xmlTextReaderPushData()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.apache.commons.codec_1.3.0.v20100518-1140.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.swt.win32.win32.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/owasp/sanitizer/lib/commons-codec-1.4/
Dcommons-codec-1.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/guice/lib/build/jdiff/
Dxerces.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/xml/ javax/ ...
/external/guice/lib/
Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/dagger2/lib/
Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...

12