/external/guava/guava-tests/test/com/google/common/hash/ |
AbstractStreamingHasherTest.java | 120 for (int chunkSize = 4; chunkSize <= 32; chunkSize++) { 121 for (int bufferSize = chunkSize; bufferSize <= chunkSize * 4; bufferSize += chunkSize) { 123 sinks.add(new Sink(chunkSize, bufferSize)); 151 final int chunkSize; 158 Sink(int chunkSize, int bufferSize) { 159 super(chunkSize, bufferSize) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
chunk.py | 65 self.chunksize = struct.unpack(strflag+'L', file.read(4))[0] 69 self.chunksize = self.chunksize - 8 # subtract header 84 return self.chunksize 109 pos = pos + self.chunksize 110 if pos < 0 or pos > self.chunksize: 128 if self.size_read >= self.chunksize: 131 size = self.chunksize - self.size_read 132 if size > self.chunksize - self.size_read: 133 size = self.chunksize - self.size_rea [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
chunk.py | 65 self.chunksize = struct.unpack(strflag+'L', file.read(4))[0] 69 self.chunksize = self.chunksize - 8 # subtract header 84 return self.chunksize 109 pos = pos + self.chunksize 110 if pos < 0 or pos > self.chunksize: 128 if self.size_read >= self.chunksize: 131 size = self.chunksize - self.size_read 132 if size > self.chunksize - self.size_read: 133 size = self.chunksize - self.size_rea [all...] |
/external/guava/guava/src/com/google/common/hash/ |
AbstractStreamingHashFunction.java | 77 private final int chunkSize; 83 * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation; 86 protected AbstractStreamingHasher(int chunkSize) { 87 this(chunkSize, chunkSize); 93 * {@code chunkSize}. 95 * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation; 97 * @param bufferSize the size of the internal buffer. Must be a multiple of chunkSize 99 protected AbstractStreamingHasher(int chunkSize, int bufferSize) { 100 // TODO(kevinb): check more preconditions (as bufferSize >= chunkSize) if this is ever publi [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/Parser/ |
html5-full-render.html | 8 chunkSize: 500000 }); // 6.09mb / 500k = approx 13 chunks (thus 13 forced layouts/style resolves).
|
/frameworks/compile/mclinker/include/mcld/Support/ |
UniqueGCFactory.h | 26 template<typename KeyType, typename DataType, size_t ChunkSize> 27 class UniqueGCFactoryBase : public GCFactoryBase<LinearAllocator<DataType, ChunkSize> > 30 typedef GCFactoryBase<LinearAllocator<DataType, ChunkSize> > Alloc; 35 : GCFactoryBase<LinearAllocator<DataType, ChunkSize> >() 39 : GCFactoryBase<LinearAllocator<DataType, ChunkSize> >(pNum)
|
Allocators.h | 27 template<typename DataType, size_t ChunkSize> 37 static size_t size() { return ChunkSize; } 51 DataType data[ChunkSize]; 289 * template argument ChunkSize is the number of bytes of a chunk 291 template<typename DataType, size_t ChunkSize> 292 class LinearAllocator : public LinearAllocatorBase<Chunk<DataType, ChunkSize> > 297 typedef LinearAllocator<NewDataType, ChunkSize> other; 302 : LinearAllocatorBase<Chunk<DataType, ChunkSize> >() {
|
/system/extras/tests/bionic/libc/common/ |
bench_stdio.c | 53 void read_file(FILE* fp, int chunkSize) 56 for ( ; totalSize > 0; totalSize -= chunkSize) { 57 fread(buffer, 1, chunkSize, fp); 61 void write_file(FILE* fp, int chunkSize) 64 for ( ; totalSize > 0; totalSize -= chunkSize) { 65 fwrite(buffer, 1, chunkSize, fp);
|
/system/media/audio_utils/ |
tinysndfile.c | 108 unsigned chunkSize = little4u(&chunk[4]); 109 if (chunkSize > remaining) { 110 fprintf(stderr, "chunkSize %u > remaining %u\n", chunkSize, remaining); 118 if (chunkSize < 2) { 119 fprintf(stderr, "chunkSize %u < 2\n", chunkSize); 142 if (chunkSize < minSize) { 143 fprintf(stderr, "chunkSize %u < minSize %u\n", chunkSize, minSize) [all...] |
/frameworks/base/opengl/java/android/opengl/ |
ETC1Util.java | 172 int chunkSize = Math.min(ioBuffer.length, encodedSize - i); 173 if (input.read(ioBuffer, 0, chunkSize) != chunkSize) { 176 dataBuffer.put(ioBuffer, 0, chunkSize); 177 i += chunkSize; 219 int chunkSize = Math.min(ioBuffer.length, encodedSize - i); 220 dataBuffer.get(ioBuffer, 0, chunkSize); 221 output.write(ioBuffer, 0, chunkSize); 222 i += chunkSize;
|
/libcore/benchmarks/src/benchmarks/regression/ |
URLConnectionBenchmark.java | 34 @Param({"2048"}) private int chunkSize; 59 transferEncoding.setBody(response, bodySize, chunkSize); 97 void setBody(MockResponse response, int bodySize, int chunkSize) throws IOException { 101 response.setChunkedBody(new byte[bodySize], chunkSize);
|
/libcore/support/src/test/java/tests/http/ |
MockResponse.java | 119 int chunkSize = Math.min(body.length - pos, maxChunkSize); 120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); 122 bytesOut.write(body, pos, chunkSize); 124 pos += chunkSize;
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/multiprocessing/ |
pool.py | 245 def map(self, func, iterable, chunksize=None): 250 return self.map_async(func, iterable, chunksize).get() 252 def imap(self, func, iterable, chunksize=1): 257 if chunksize == 1: 263 assert chunksize > 1 264 task_batches = Pool._get_tasks(func, iterable, chunksize) 270 def imap_unordered(self, func, iterable, chunksize=1): 275 if chunksize == 1: 281 assert chunksize > 1 282 task_batches = Pool._get_tasks(func, iterable, chunksize) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/ |
pool.py | 245 def map(self, func, iterable, chunksize=None): 250 return self.map_async(func, iterable, chunksize).get() 252 def imap(self, func, iterable, chunksize=1): 257 if chunksize == 1: 263 assert chunksize > 1 264 task_batches = Pool._get_tasks(func, iterable, chunksize) 270 def imap_unordered(self, func, iterable, chunksize=1): 275 if chunksize == 1: 281 assert chunksize > 1 282 task_batches = Pool._get_tasks(func, iterable, chunksize) [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
ChunkedInputStream.java | 79 private int chunkSize; 107 * is followed by a CRLF. The method returns -1 as soon as a chunksize of 0 124 if (this.pos >= this.chunkSize) { 154 if (pos >= chunkSize) { 160 len = Math.min(len, chunkSize - pos); 183 chunkSize = getChunkSize(); 184 if (chunkSize < 0) { 189 if (chunkSize == 0) { 196 * Expects the stream to start with a chunksize in hex with optional
|
/frameworks/av/media/libstagefright/timedtext/ |
TextDescriptions.cpp | 97 ssize_t chunkSize = U32_AT(tmpData); 100 if (chunkSize <= 0) { 276 if (size > chunkSize) { 277 data += chunkSize; 278 size -= chunkSize; 290 ssize_t chunkSize = U32_AT(data); 295 if (size < chunkSize) { 374 data += chunkSize; 375 size -= chunkSize;
|
/frameworks/av/media/libstagefright/ |
JPEGSource.cpp | 172 uint16_t chunkSize; 173 if (!mSource->getUInt16(i, &chunkSize)) { 179 if (chunkSize < 2) { 216 i += chunkSize - 2; 224 i += chunkSize - 2;
|
/external/chromium_org/media/base/ |
multi_channel_resampler.cc | 56 // SincResampler::ChunkSize() sized chunks. SincResampler guarantees it will 60 int chunk_size = resamplers_[0]->ChunkSize(); 65 DCHECK_EQ(chunk_size, resamplers_[i]->ChunkSize());
|
sinc_resampler_unittest.cc | 43 // Test requesting multiples of ChunkSize() frames results in the proper number 55 int max_chunk_size = resampler.ChunkSize() * kChunks; 58 // Verify requesting ChunkSize() frames causes a single callback. 61 resampler.Resample(resampler.ChunkSize(), resampled_destination.get()); 63 // Verify requesting kChunks * ChunkSize() frames causes kChunks callbacks. 76 scoped_ptr<float[]> resampled_destination(new float[resampler.ChunkSize()]); 81 resampler.Resample(resampler.ChunkSize() / 2, resampled_destination.get()); 89 resampler.Resample(resampler.ChunkSize() / 2, resampled_destination.get()); 90 for (int i = 0; i < resampler.ChunkSize() / 2; ++i)
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
ScriptFormatterWorker.js | 71 * @param {number} chunkSize 73 FormatterWorker._chunkCount = function(totalLength, chunkSize) 75 if (totalLength <= chunkSize) 78 var remainder = totalLength % chunkSize; 80 return (partialLength / chunkSize) + (remainder ? 1 : 0); 88 const chunkSize = 100000; // characters per data chunk 91 const chunkCount = FormatterWorker._chunkCount(totalLength, chunkSize); 157 if (processedChunkCharacters >= chunkSize) {
|
ShowMoreDataGridNode.js | 37 * @param {number} chunkSize 39 WebInspector.ShowMoreDataGridNode = function(callback, startPosition, endPosition, chunkSize) 45 this._chunkSize = chunkSize;
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
MockResponse.java | 187 int chunkSize = Math.min(body.length - pos, maxChunkSize); 188 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); 190 bytesOut.write(body, pos, chunkSize); 192 pos += chunkSize;
|
/frameworks/base/core/jni/android/graphics/ |
NinePatch.cpp | 65 size_t chunkSize = env->GetArrayLength(obj); 66 if (chunkSize < (int) (sizeof(Res_png_9patch))) { 71 int8_t* storage = new int8_t[chunkSize]; 73 env->GetByteArrayRegion(obj, 0, chunkSize, reinterpret_cast<jbyte*>(storage));
|
/external/qemu/distrib/sdl-1.2.15/src/audio/windx5/ |
SDL_dx5audio.c | 427 LPDIRECTSOUNDBUFFER *sndbuf, WAVEFORMATEX *wavefmt, Uint32 chunksize) 471 if ( (chunksize > caps.dwBufferBytes) || 472 ((caps.dwBufferBytes%chunksize) != 0) ) { 473 /* The primary buffer size is not a multiple of 'chunksize' 474 -- this hopefully doesn't happen when 'chunksize' is a 480 caps.dwBufferBytes, chunksize); 483 numchunks = (caps.dwBufferBytes/chunksize); 502 LPDIRECTSOUNDBUFFER *sndbuf, WAVEFORMATEX *wavefmt, Uint32 chunksize) 537 format.dwBufferBytes = numchunks*chunksize;
|
/external/chromium_org/third_party/WebKit/PerformanceTests/resources/ |
runner.js | 300 if (!test.chunkSize) 301 this.chunkSize = 50000; 308 var chunkCount = Math.ceil(file.length / this.chunkSize); 310 var chunk = file.substr(chunkIndex * this.chunkSize, this.chunkSize); 314 PerfTestRunner.logInfo("Testing " + file.length + " byte document in " + chunkCount + " " + this.chunkSize + " byte chunks.");
|