Home
last modified time | relevance | path

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

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DDigestInputStreamTest.java57 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
320 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); in testWritebyteArrayintint02()
329 for (int i=0; i<MY_MESSAGE_LEN/CHUNK_SIZE; i++) { in testWritebyteArrayintint02()
330 dos.write(myMessage, i*CHUNK_SIZE, CHUNK_SIZE); in testWritebyteArrayintint02()
357 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE+1) != 0); in testWritebyteArrayintint03()
366 for (int i=0; i<MY_MESSAGE_LEN/(CHUNK_SIZE+1); i++) { in testWritebyteArrayintint03()
367 dos.write(myMessage, i*(CHUNK_SIZE+1), CHUNK_SIZE+1); in testWritebyteArrayintint03()
371 MY_MESSAGE_LEN/(CHUNK_SIZE+1)*(CHUNK_SIZE+1), in testWritebyteArrayintint03()
372 MY_MESSAGE_LEN % (CHUNK_SIZE+1)); in testWritebyteArrayintint03()
398 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); in testWritebyteArrayintint04()
[all …]
/external/webkit/Source/WebCore/bindings/v8/
DIntrusiveDOMWrapperMap.h39 template <class T, int CHUNK_SIZE, class Traits>
49 m_last = m_current + CHUNK_SIZE; in add()
67 m_current = m_last = m_chunks ? m_chunks->m_entries + CHUNK_SIZE : 0; in remove()
85 clearEntries(previous->m_entries, previous->m_entries + CHUNK_SIZE); in clear()
91 m_last = m_current + CHUNK_SIZE; in clear()
101 visitEntries(store, chunk->m_entries, chunk->m_entries + CHUNK_SIZE, visitor); in visit()
108 T m_entries[CHUNK_SIZE];
/external/webp/src/enc/
Dalpha.c26 #define CHUNK_SIZE 8192 macro
35 unsigned char chunk[CHUNK_SIZE]; in CompressAlpha()
49 strm.avail_out = CHUNK_SIZE; in CompressAlpha()
54 size_out = CHUNK_SIZE - strm.avail_out; in CompressAlpha()
/external/apache-http/src/org/apache/commons/codec/binary/
DBase64.java46 static final int CHUNK_SIZE = 76; field in Base64
254 … (CHUNK_SEPARATOR.length == 0 ? 0 : (int) Math.ceil((float) encodedDataLength / CHUNK_SIZE)); in encodeBase64()
265 int nextSeparatorIndex = CHUNK_SIZE; in encodeBase64()
311 (CHUNK_SIZE * (chunksSoFar + 1)) + in encodeBase64()
/external/bluetooth/glib/gio/
Dglocalfileenumerator.c36 #define CHUNK_SIZE 1000 macro
274 local->entries = g_new (DirEntry, CHUNK_SIZE + 1); in next_file_helper()
282 for (i = 0; i < CHUNK_SIZE; i++) in next_file_helper()
/external/webp/src/dec/
Didec.c26 #define CHUNK_SIZE 4096 macro
97 const int num_chunks = (MemDataSize(mem) + data_size + CHUNK_SIZE - 1) in AppendToMemBuffer()
98 / CHUNK_SIZE; in AppendToMemBuffer()
99 const size_t new_size = num_chunks * CHUNK_SIZE; in AppendToMemBuffer()
/external/icu4c/common/
Ducnv.c41 #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/icu4c/test/cintltst/
Dccapitst.c1969 #define CHUNK_SIZE 1024 macro
2002 char char_in[CHUNK_SIZE+32]; in bug1()
2003 char char_out[CHUNK_SIZE*2]; in bug1()
2023 memcpy(char_in + (CHUNK_SIZE - i), test_seq, test_seq_len); in bug1()
2117 char char_in[CHUNK_SIZE*4]; in bug3()
2181 UChar pivotBuffer[CHUNK_SIZE]; in convertExStreaming()
2185 char targetBuffer[CHUNK_SIZE]; in convertExStreaming()
2196 if(chunkSize>CHUNK_SIZE) { in convertExStreaming()
2197 chunkSize=CHUNK_SIZE; in convertExStreaming()
/external/quake/src/com/android/quake/
DDownloaderActivity.java982 private final static int CHUNK_SIZE = 32 * 1024; field in DownloaderActivity.Downloader
983 byte[] mFileIOBuffer = new byte[CHUNK_SIZE];
/external/libxml2/
Dxmlreader.c87 #define CHUNK_SIZE 512 macro
821 if (inbuf->use < reader->cur + CHUNK_SIZE) { in xmlTextReaderPushData()
852 if (inbuf->use >= reader->cur + CHUNK_SIZE) { in xmlTextReaderPushData()
855 CHUNK_SIZE, 0); in xmlTextReaderPushData()
856 reader->cur += CHUNK_SIZE; in xmlTextReaderPushData()
877 (inbuf->use - reader->cur <= CHUNK_SIZE)) { in xmlTextReaderPushData()