/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...] |
/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...] |
/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);
|
/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/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;
|
/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...] |
/external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/ |
ByteString.java | 299 * chunkSize parameter sets the size of these byte arrays. In 300 * particular, if the chunkSize is precisely the same as the length 308 * @param chunkSize The size of the chunks in which to read the 315 public static ByteString readFrom(InputStream streamToDrain, int chunkSize) 317 return readFrom(streamToDrain, chunkSize, chunkSize); 327 int chunkSize = minChunkSize; 329 ByteString chunk = readChunk(streamToDrain, chunkSize); 334 chunkSize = Math.min(chunkSize * 2, maxChunkSize) [all...] |
/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;
|
AVIExtractor.cpp | 435 uint32_t chunkSize = U32LE_AT(&tmp[4]); 437 if (size >= 0 && chunkSize + 8 > size) { 467 chunkSize - 4); 476 off64_t subOffsetLimit = subOffset + chunkSize - 4; 502 err = parseStreamHeader(offset + 8, chunkSize); 508 err = parseStreamFormat(offset + 8, chunkSize); 514 err = parseIndex(offset + 8, chunkSize); 527 if (chunkSize & 1) { 528 ++chunkSize; 531 return chunkSize + 8 [all...] |
WAVExtractor.cpp | 162 uint32_t chunkSize = U32_LE_AT(&chunkHeader[4]); 164 if (chunkSize > remainingSize) { 169 if (chunkSize < 16) { 279 mDataSize = chunkSize; 325 offset += chunkSize;
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
ScriptFormatterWorker.js | 54 function getChunkCount(totalLength, chunkSize) 56 if (totalLength <= chunkSize) 59 var remainder = totalLength % chunkSize; 61 return (partialLength / chunkSize) + (remainder ? 1 : 0); 66 const chunkSize = 100000; // characters per data chunk 69 const chunkCount = getChunkCount(totalLength, chunkSize); 132 if (processedChunkCharacters >= chunkSize) {
|
ShowMoreDataGridNode.js | 37 * @param {number} chunkSize 39 WebInspector.ShowMoreDataGridNode = function(callback, startPosition, endPosition, chunkSize) 45 this._chunkSize = chunkSize;
|
/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;
|
/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;
|
/system/extras/tests/sdcard/ |
sdcard_perf_test.cpp | 312 size_t chunk_size = testCase->chunkSize(); 355 size_t chunk_size = testCase->chunkSize(); 444 size_t chunk_size = testCase->chunkSize(); 492 size_t chunk_size = testCase->chunkSize(); 568 char * const chunk = new char[testCase->chunkSize()]; 569 memset(chunk, 0xaa, testCase->chunkSize()); 574 size_t chunk_size = testCase->chunkSize(); 692 printf("# Chunk size %d kbytes\n", testCase.chunkSize() / 1024);
|
testcase.cpp | 158 mReadTimer = new StopWatch("read", iter() * dataSize() / chunkSize() * kReadWriteFactor); 161 mWriteTimer = new StopWatch("write", iter() * dataSize() / 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));
|
/frameworks/base/core/java/android/app/backup/ |
BackupHelperDispatcher.java | 32 int chunkSize; // not including the header 65 skipChunk_native(oldStateFD, header.chunkSize); 98 // where it was at the end of performBackup. Header.chunkSize will not be filled in.
|
/frameworks/native/opengl/libs/EGL/ |
trace.cpp | 133 GLsizei chunkCount, GLsizei chunkSize, const void* value) { 135 GLsizei count = chunkCount * chunkSize; 160 if (chunkSize > 1 && i < count-1 161 && (i % chunkSize) == (chunkSize-1)) {
|
/external/yaffs2/yaffs2/utils/ |
mkyaffs2image.c | 56 unsigned chunkSize = 2048; 228 error = write(outFile,data,chunkSize); 260 __u8 bytes[chunkSize]; 450 __u8 bytes[chunkSize]; 549 chunkSize = (unsigned)strtoul(optarg, NULL, 0); 560 if (!chunkSize || !spareSize) {
|
/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.");
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
InstallFlowAnalytics.java | 594 int chunkSize; 595 while ((chunkSize = in.read(buf)) != -1) { 596 digest.update(buf, 0, chunkSize);
|
/cts/tests/src/android/opengl/cts/ |
CompressedTextureLoader.java | 217 int chunkSize = Math.min(ioBuffer.length, dataSize - i); 219 is.read(ioBuffer, 0, chunkSize); 223 dataBuffer.put(ioBuffer, 0, chunkSize); 224 i += chunkSize;
|