Home
last modified time | relevance | path

Searched refs:chunkSize (Results 1 – 25 of 38) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/hash/
DAbstractStreamingHasherTest.java145 for (int chunkSize = 4; chunkSize <= 32; chunkSize++) { in testExhaustive()
146 for (int bufferSize = chunkSize; bufferSize <= chunkSize * 4; bufferSize += chunkSize) { in testExhaustive()
148 sinks.add(new Sink(chunkSize, bufferSize)); in testExhaustive()
182 final int chunkSize; field in AbstractStreamingHasherTest.Sink
189 Sink(int chunkSize, int bufferSize) { in Sink() argument
190 super(chunkSize, bufferSize); in Sink()
191 this.chunkSize = chunkSize; in Sink()
195 Sink(int chunkSize) { in Sink() argument
196 super(chunkSize); in Sink()
197 this.chunkSize = chunkSize; in Sink()
[all …]
/external/skia/tools/
Dskpinfo.cpp102 uint32_t chunkSize = stream.readU32(); in main() local
107 if (curPos+chunkSize > totStreamSize) { in main()
121 SkDebugf("SK_PICT_READER_TAG %d\n", chunkSize); in main()
126 SkDebugf("SK_PICT_FACTORY_TAG %d\n", chunkSize); in main()
131 SkDebugf("SK_PICT_TYPEFACE_TAG %d\n", chunkSize); in main()
134 const int count = SkToInt(chunkSize); in main()
146 chunkSize = 0; in main()
151 SkDebugf("SK_PICT_PICTURE_TAG %d\n", chunkSize); in main()
158 SkDebugf("SK_PICT_BUFFER_SIZE_TAG %d\n", chunkSize); in main()
163 SkDebugf("Unknown tag %d\n", chunkSize); in main()
[all …]
/external/guava/guava/src/com/google/common/hash/
DAbstractStreamingHashFunction.java85 private final int chunkSize; field in AbstractStreamingHashFunction.AbstractStreamingHasher
94 protected AbstractStreamingHasher(int chunkSize) { in AbstractStreamingHasher() argument
95 this(chunkSize, chunkSize); in AbstractStreamingHasher()
107 protected AbstractStreamingHasher(int chunkSize, int bufferSize) { in AbstractStreamingHasher() argument
109 checkArgument(bufferSize % chunkSize == 0); in AbstractStreamingHasher()
116 this.chunkSize = chunkSize; in AbstractStreamingHasher()
134 bb.limit(chunkSize + 7); // get ready to pad with longs in processRemaining()
135 while (bb.position() < chunkSize) { in processRemaining()
138 bb.limit(chunkSize); in processRemaining()
169 while (readBuffer.remaining() >= chunkSize) { in putBytes()
[all …]
/external/guice/core/src/com/google/inject/spi/
DElementSource.java154 int chunkSize = partialCallStack.length; in getModuleConfigurePositionsInStackTrace() local
155 positions[0] = chunkSize - 1; in getModuleConfigurePositionsInStackTrace()
158 chunkSize = current.getPartialCallStackSize(); in getModuleConfigurePositionsInStackTrace()
159 positions[cursor] = positions[cursor - 1] + chunkSize; in getModuleConfigurePositionsInStackTrace()
175 int chunkSize = partialCallStack.length; in getStackTrace() local
176 int size = moduleSource.getStackTraceSize() + chunkSize; in getStackTrace()
180 chunkSize); in getStackTrace() local
181 System.arraycopy(moduleSource.getStackTrace(), 0, callStack, chunkSize, modulesCallStackSize); in getStackTrace() local
DModuleSource.java175 int chunkSize = chunk.length; in getStackTrace() local
176 System.arraycopy(chunk, 0, callStack, cursor, chunkSize); in getStackTrace()
178 cursor = cursor + chunkSize; in getStackTrace()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DAudioFileOutput.java108 byte[] chunkSize = new byte[4]; in writeHeader()
111 chunkSize[3] = (byte) (tempChunkSize >> 24); in writeHeader()
112 chunkSize[2] = (byte) (tempChunkSize >> 16); in writeHeader()
113 chunkSize[1] = (byte) (tempChunkSize >> 8); in writeHeader()
114 chunkSize[0] = (byte) tempChunkSize; in writeHeader()
123 chunkSize[0], chunkSize[1], chunkSize[2], chunkSize[3], in writeHeader()
/external/apache-http/src/org/apache/http/impl/io/
DChunkedInputStream.java84 private int chunkSize; field in ChunkedInputStream
129 if (this.pos >= this.chunkSize) { in read()
159 if (pos >= chunkSize) { in read()
165 len = Math.min(len, chunkSize - pos); in read()
188 chunkSize = getChunkSize(); in nextChunk()
189 if (chunkSize < 0) { in nextChunk()
194 if (chunkSize == 0) { in nextChunk()
/external/webrtc/webrtc/modules/audio_processing/transient/test/
DreadDetection.m1 function [d, t] = readDetection(file, fs, chunkSize)
2 %[d, t] = readDetection(file, fs, chunkSize)
11 %chunkSize: The chunk size used for the detection in seconds.
15 t = 0:(1 / fs):(length(d) * chunkSize - 1 / fs);
16 d = d(floor(t / chunkSize) + 1);
DplotDetection.m1 function [] = plotDetection(PCMfile, DATfile, fs, chunkSize)
2 %[] = plotDetection(PCMfile, DATfile, fs, chunkSize)
9 %chunkSize: The chunk size used to compute the detection values in seconds.
11 [d, td] = readDetection(DATfile, fs, chunkSize);
/external/skia/src/codec/
DSkHeifCodec.cpp30 uint64_t chunkSize = SkEndian_SwapBE32(ptr[0]); in IsHeif() local
38 if (chunkSize == 1) { in IsHeif()
45 chunkSize = SkEndian_SwapBE64(*chunkSizePtr); in IsHeif()
46 if (chunkSize < 16) { in IsHeif()
51 } else if (chunkSize < 8) { in IsHeif()
56 if (chunkSize > bytesRead) { in IsHeif()
57 chunkSize = bytesRead; in IsHeif()
59 off64_t chunkDataSize = chunkSize - offset; in IsHeif()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DByteString.java443 public static ByteString readFrom(InputStream streamToDrain, int chunkSize) in readFrom() argument
445 return readFrom(streamToDrain, chunkSize, chunkSize); in readFrom()
455 int chunkSize = minChunkSize; in readFrom() local
457 ByteString chunk = readChunk(streamToDrain, chunkSize); in readFrom()
462 chunkSize = Math.min(chunkSize * 2, maxChunkSize); in readFrom()
478 private static ByteString readChunk(InputStream in, final int chunkSize) in readChunk() argument
480 final byte[] buf = new byte[chunkSize]; in readChunk()
482 while (bytesRead < chunkSize) { in readChunk()
483 final int count = in.read(buf, bytesRead, chunkSize - bytesRead); in readChunk()
/external/deqp/android/package/src/com/drawelements/deqp/testercore/
DDeqpInstrumentation.java201 final int chunkSize = 4*1024; in testLogData() local
207 if (log.length() > chunkSize) in testLogData()
209 message = log.substring(0, chunkSize); in testLogData()
210 log = log.substring(chunkSize); in testLogData()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java194 int chunkSize = Math.min(body.length - pos, maxChunkSize); in setChunkedBody() local
195 bytesOut.write(Integer.toHexString(chunkSize).getBytes(US_ASCII)); in setChunkedBody()
197 bytesOut.write(body, pos, chunkSize); in setChunkedBody()
199 pos += chunkSize; in setChunkedBody()
DMockWebServer.java478 int chunkSize = Integer.parseInt(readAsciiUntilCrlf(in).trim(), 16); in readRequest() local
479 if (chunkSize == 0) { in readRequest()
483 chunkSizes.add(chunkSize); in readRequest()
484 throttledTransfer(throttlePolicy, in, requestBody, chunkSize); in readRequest()
/external/lzma/Java/Tukaani/src/org/tukaani/xz/
DLZMA2OutputStream.java169 int chunkSize = Math.min(uncompressedSize, COMPRESSED_SIZE_MAX); in writeUncompressed() local
171 outData.writeShort(chunkSize - 1); in writeUncompressed()
172 lz.copyUncompressed(out, uncompressedSize, chunkSize); in writeUncompressed()
173 uncompressedSize -= chunkSize; in writeUncompressed()
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java962 private static long getEncodeLength(byte[] pArray, int chunkSize, byte[] chunkSeparator) { in getEncodeLength() argument
964 chunkSize = (chunkSize / 4) * 4; in getEncodeLength()
971 if (chunkSize > 0) { in getEncodeLength()
972 boolean lenChunksPerfectly = len % chunkSize == 0; in getEncodeLength()
973 len += (len / chunkSize) * chunkSeparator.length; in getEncodeLength()
/external/sonic/
Dwave.c199 int chunkSize = readInt(file); /* 16 or 18 - size of this chunk */ in readHeader() local
200 if(chunkSize != 16 && chunkSize != 18) { in readHeader()
218 if (chunkSize == 18) { /* ffmpeg writes 18, and so has 2 extra bytes here */ in readHeader()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockResponse.java168 long chunkSize = Math.min(body.size(), maxChunkSize); in setChunkedBody() local
169 bytesOut.writeHexadecimalUnsignedLong(chunkSize); in setChunkedBody()
171 bytesOut.write(body, chunkSize); in setChunkedBody()
/external/sonivox/arm-wt-22k/lib_src/
Djet.c257 static EAS_RESULT JetParseInfoChunk (EAS_DATA_HANDLE easHandle, EAS_I32 pos, EAS_I32 chunkSize) in JetParseInfoChunk() argument
270 while ((result == EAS_SUCCESS) && (chunkSize > 0)) in JetParseInfoChunk()
309 chunkSize -= 8; in JetParseInfoChunk()
328 EAS_I32 chunkSize; in JET_OpenFile() local
358 pos = chunkSize = 8; in JET_OpenFile()
372 … EAS_HWGetDWord(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &chunkSize, EAS_FALSE); in JET_OpenFile()
380 result = JetParseInfoChunk(easHandle, pos, chunkSize); in JET_OpenFile()
399 easHandle->jetHandle->appDataSize = chunkSize; in JET_OpenFile()
411 pos += chunkSize; in JET_OpenFile()
Deas_smf.c1073 EAS_U32 chunkSize; in SMF_ParseHeader() local
1085 …if ((result = EAS_HWGetDWord(hwInstData, pSMFData->fileHandle, &chunkSize, EAS_TRUE)) != EAS_SUCCE… in SMF_ParseHeader()
1140 temp = chunkStart + SMF_CHUNK_INFO_SIZE + chunkSize; in SMF_ParseHeader()
1157 …if ((result = EAS_HWGetDWord(hwInstData, pSMFData->fileHandle, &chunkSize, EAS_TRUE)) != EAS_SUCCE… in SMF_ParseHeader()
/external/clang/lib/CodeGen/
DSwiftCallingConv.cpp409 CharUnits chunkSize) { in areBytesInSameUnit() argument
410 return getOffsetAtStartOfUnit(first, chunkSize) in areBytesInSameUnit()
411 == getOffsetAtStartOfUnit(second, chunkSize); in areBytesInSameUnit()
422 const CharUnits chunkSize = getMaximumVoluntaryIntegerSize(CGM); in finish() local
429 Entries[i].Begin, chunkSize)) { in finish()
476 CharUnits chunkBegin = getOffsetAtStartOfUnit(localBegin, chunkSize); in finish()
477 CharUnits chunkEnd = chunkBegin + chunkSize; in finish()
484 assert(unitSize <= chunkSize); in finish()
/external/ImageMagick/MagickCore/
Daccelerate.c629 chunkSize=256, in ComputeBlurImage() local
686 …status|=SetOpenCLKernelArg(blurRowKernel,i++,sizeof(cl_float4)*(chunkSize+kernelWidth),(void *) NU… in ComputeBlurImage()
695 gsize[0]=chunkSize*((image->columns+chunkSize-1)/chunkSize); in ComputeBlurImage()
697 lsize[0]=chunkSize; in ComputeBlurImage()
721 …status|=SetOpenCLKernelArg(blurColumnKernel,i++,sizeof(cl_float4)*(chunkSize+kernelWidth),(void *)… in ComputeBlurImage()
731 gsize[1]=chunkSize*((image->rows+chunkSize-1)/chunkSize); in ComputeBlurImage()
733 lsize[1]=chunkSize; in ComputeBlurImage()
4038 chunkSize, in resizeHorizontalFilter() local
4062 chunkSize=32; in resizeHorizontalFilter()
4067 chunkSize=workgroupSize; in resizeHorizontalFilter()
[all …]
/external/okhttp/okio/benchmarks/src/main/java/com/squareup/okio/benchmarks/
DBufferPerformanceBench.java292 private BufferedSource writeChunked(Buffer buffer, byte[] bytes, final int chunkSize) { in writeChunked() argument
296 int bytesToWrite = Math.min(remaining, chunkSize); in writeChunked()
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesBufferTests.cpp219 …const VkDeviceSize chunkSize = std::max(memoryRequirements.alignment, static_cast<VkDeviceSi… in build() local
224 …allocator.allocate(requirementsWithSize(memoryRequirements, *numChunksIter * chunkSize), MemoryReq… in build()
232 memBindIter->resourceChunkNdx * chunkSize, // VkDeviceSize resourceOffset; in build()
233 memBindIter->numChunks * chunkSize, // VkDeviceSize size; in build()
235 …alloc.getOffset() + memBindIter->memoryChunkNdx * chunkSize, // VkDeviceSize memory… in build()
1019 …const VkDeviceSize chunkSize = sparseAllocation->resourceSize / sparseAllocation->numResourceC… in iterate() local
1020 …eviceSize stagingBufferSize = sparseAllocation->resourceSize - (hasAliasedChunk ? chunkSize : 0); in iterate()
/external/icu/icu4c/source/test/cintltst/
Dccapitst.c2139 int32_t chunkSize, in convertExStreaming() argument
2157 if(chunkSize>CHUNK_SIZE) { in convertExStreaming()
2158 chunkSize=CHUNK_SIZE; in convertExStreaming()
2162 pivotLimit=pivotBuffer+chunkSize; in convertExStreaming()
2166 targetLimit=targetBuffer+chunkSize; in convertExStreaming()
2177 if(src+chunkSize<=finalSrcLimit) { in convertExStreaming()
2178 srcLimit=src+chunkSize; in convertExStreaming()
2190 testName, chunkSize, target, targetLimit); in convertExStreaming()
2196 if(targetLength+chunkSize<=sizeof(targetBuffer)) { in convertExStreaming()
2197 targetLimit=target+chunkSize; in convertExStreaming()
[all …]

12