Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/external/skia/tests/
DFrontBufferedStreamTest.cpp53 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() argument
60 bufferSize); in test_incremental_buffering()
64 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 2); in test_incremental_buffering()
69 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 4); in test_incremental_buffering()
72 test_read(reporter, bufferedStream.get(), gAbcs + bufferSize / 4, bufferSize / 2); in test_incremental_buffering()
77 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize << 1); in test_incremental_buffering()
85 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_perfectly_sized_buffer() argument
88 bufferSize); in test_perfectly_sized_buffer()
92 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer()
98 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer()
[all …]
/external/skqp/tests/
DFrontBufferedStreamTest.cpp53 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() argument
60 bufferSize); in test_incremental_buffering()
64 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 2); in test_incremental_buffering()
69 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 4); in test_incremental_buffering()
72 test_read(reporter, bufferedStream.get(), gAbcs + bufferSize / 4, bufferSize / 2); in test_incremental_buffering()
77 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize << 1); in test_incremental_buffering()
85 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_perfectly_sized_buffer() argument
88 bufferSize); in test_perfectly_sized_buffer()
92 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer()
98 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer()
[all …]
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java198 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
240 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
438 private int bufferSize; field in CodedInputStreamMicro
467 bufferSize = off + len; in CodedInputStreamMicro()
474 bufferSize = 0; in CodedInputStreamMicro()
552 bufferSize += bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit()
553 final int bufferEnd = totalBytesRetired + bufferSize; in recomputeBufferSizeAfterLimit()
557 bufferSize -= bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit()
592 return bufferPos == bufferSize && !refillBuffer(false); in isAtEnd()
603 if (bufferPos < bufferSize) { in refillBuffer()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs70 private int bufferSize; field in Google.Protobuf.CodedInputStream
170 internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize) in CodedInputStream() argument
175 this.bufferSize = bufferSize; in CodedInputStream()
188 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, int sizeLimi… in CodedInputStream() argument
189 : this(input, buffer, bufferPos, bufferSize) in CodedInputStream()
232 return input.Position - ((bufferSize + bufferSizeAfterLimit) - bufferPos);
342 if (bufferPos + 2 <= bufferSize) in ReadTag()
474 if (BitConverter.IsLittleEndian && 4 <= bufferSize - bufferPos) in ReadFloat()
550 if (length <= bufferSize - bufferPos) in ReadString()
591 if (length <= bufferSize - bufferPos && length > 0) in ReadBytes()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java64 static CodedInputStream newInstance(final InputStream input, int bufferSize) { in newInstance() argument
65 return new CodedInputStream(input, bufferSize); in newInstance()
363 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
371 } else if (size <= bufferSize) { in readString()
392 if (size <= (bufferSize - oldPos) && size > 0) { in readStringRequireUtf8()
400 } else if (size <= bufferSize) { in readStringRequireUtf8()
507 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
526 if (size <= (bufferSize - bufferPos) && size > 0) { in readByteArray()
542 if (size <= (bufferSize - bufferPos) && size > 0) { in readByteBuffer()
606 if (bufferSize == pos) { in readRawVarint32()
[all …]
/external/adhd/scripts/mic_testing/frontend/
Danalysis.js367 function FFT(bufferSize) { argument
368 this.bufferSize = bufferSize;
369 this.spectrum = new Float32Array(bufferSize/2);
370 this.real = new Float32Array(bufferSize);
371 this.imag = new Float32Array(bufferSize);
373 this.reverseTable = new Uint32Array(bufferSize);
374 this.sinTable = new Float32Array(bufferSize);
375 this.cosTable = new Float32Array(bufferSize);
378 var bit = bufferSize >> 1;
381 while (limit < bufferSize) {
[all …]
/external/swiftshader/src/Reactor/
DLLVMRoutine.cpp23 LLVMRoutine::LLVMRoutine(int bufferSize) : bufferSize(bufferSize) in LLVMRoutine() argument
25 void *memory = allocateExecutable(bufferSize); in LLVMRoutine()
29 functionSize = bufferSize; // Updated by LLVMRoutineManager::endFunctionBody in LLVMRoutine()
34 deallocateExecutable(buffer, bufferSize); in ~LLVMRoutine()
/external/dng_sdk/source/
Ddng_resample.cpp99 uint32 bufferSize = 0; in Initialize() local
101 !SafeUint32Mult(dstEntries, sizeof(int32), &bufferSize)) { in Initialize()
105 fCoords.Reset (allocator.Allocate (bufferSize)); in Initialize()
188 uint32 bufferSize = 0; in Initialize() local
190 if (!SafeUint32Mult (fWeightStep, kResampleSubsampleCount, &bufferSize) || in Initialize()
191 !SafeUint32Mult (bufferSize, (uint32) sizeof (real32), &bufferSize)) in Initialize()
198 fWeights32.Reset (allocator.Allocate (bufferSize)); in Initialize()
203 if (!SafeUint32Mult (fWeightStep, kResampleSubsampleCount, &bufferSize) || in Initialize()
204 !SafeUint32Mult (bufferSize, (uint32) sizeof (int16), &bufferSize)) in Initialize()
211 fWeights16.Reset (allocator.Allocate (bufferSize)); in Initialize()
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/
DBufferedResourceLoader.java33 private int bufferSize = DEFAULT_BUFFER_SIZE; field in BufferedResourceLoader
40 return reader == null ? null : new BufferedReader(reader, bufferSize); in buffer()
44 return bufferSize; in getBufferSize()
47 public void setBufferSize(int bufferSize) { in setBufferSize() argument
48 this.bufferSize = bufferSize; in setBufferSize()
/external/jsilver/src/com/google/clearsilver/jsilver/output/
DInstanceOutputBufferProvider.java24 private final int bufferSize; field in InstanceOutputBufferProvider
26 public InstanceOutputBufferProvider(int bufferSize) { in InstanceOutputBufferProvider() argument
27 this.bufferSize = bufferSize; in InstanceOutputBufferProvider()
32 return new StringBuilder(bufferSize); in get()
/external/expat/tests/benchmark/
Dbenchmark.c65 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local
95 bufferSize = atoi (argv[j + 2]); in main()
97 if (bufferSize <= 0 || nrOfLoops <= 0) { in main()
120 if (parseBufferSize <= bufferSize) in main()
123 parseBufferSize = bufferSize; in main()
135 XMLBufPtr += bufferSize; in main()
147 nrOfLoops, bufferSize, cpuTime / (double) nrOfLoops); in main()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/export/
DSpanExporterImpl.java52 static SpanExporterImpl create(int bufferSize, Duration scheduleDelay) { in create() argument
54 Worker worker = new Worker(bufferSize, scheduleDelay); in create()
114 private final int bufferSize; field in SpanExporterImpl.Worker
121 if (spans.size() > bufferSize) { in addSpan()
154 private Worker(int bufferSize, Duration scheduleDelay) { in Worker() argument
155 spans = new ArrayList<RecordEventsSpanImpl>(bufferSize); in Worker()
156 this.bufferSize = bufferSize; in Worker()
177 if (spans.size() < bufferSize) { in run()
/external/icu/icu4c/source/tools/toolutil/
Dflagparser.cpp18 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch…
19 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize);
117 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… in extractFlag() argument
125 offset = getFlagOffset(buffer, bufferSize); in extractFlag()
165 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { in getFlagOffset() argument
168 for (offset = 0; offset < bufferSize;offset++) { in getFlagOffset()
175 if (offset == bufferSize || (offset - 1) == bufferSize) { in getFlagOffset()
/external/guava/guava-tests/test/com/google/common/hash/
DAbstractStreamingHasherTest.java146 for (int bufferSize = chunkSize; bufferSize <= chunkSize * 4; bufferSize += chunkSize) { in testExhaustive()
148 sinks.add(new Sink(chunkSize, bufferSize)); in testExhaustive()
183 final int bufferSize; field in AbstractStreamingHasherTest.Sink
189 Sink(int chunkSize, int bufferSize) { in Sink() argument
190 super(chunkSize, bufferSize); in Sink()
192 this.bufferSize = bufferSize; in Sink()
198 this.bufferSize = chunkSize; in Sink()
219 assertTrue(bb.remaining() < bufferSize); in processRemaining()
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/data/
DCompactDataOutput.java67 int bufferSize = 0; in writeBooleanArray() local
70 buffer |= 0x01 << bufferSize; in writeBooleanArray()
72 if (++bufferSize == 8) { in writeBooleanArray()
75 bufferSize = 0; in writeBooleanArray()
78 if (bufferSize > 0) { in writeBooleanArray()
/external/sonivox/arm-wt-22k/host_src/
Deas_main.c55 …ame, const char* outputFile, const S_EAS_LIB_CONFIG *pLibConfig, void *buffer, EAS_I32 bufferSize);
73 …name, const char* outputFile, const S_EAS_LIB_CONFIG *pLibConfig, void *buffer, EAS_I32 bufferSize) in PlayFile() argument
164 if (WaveFileWrite(wFile, buffer, bufferSize) != bufferSize) in PlayFile()
225 EAS_I32 bufferSize; in main() local
283bufferSize = pLibConfig->mixBufferSize * pLibConfig->numChannels * (EAS_I32)sizeof(EAS_PCM) * NUM_… in main()
286 buffer = malloc((EAS_U32)bufferSize); in main()
309 …if ((playResult = PlayFile(easData, defaultTestFile, NULL, pLibConfig, buffer, bufferSize)) != EAS… in main()
324 …layResult = PlayFile(easData, argv[i], outputFile, pLibConfig, buffer, bufferSize)) != EAS_SUCCESS) in main()
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java190 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
232 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
399 private int bufferSize; field in CodedInputByteBufferNano
420 bufferSize = off + len; in CodedInputByteBufferNano()
495 bufferSize += bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit()
496 final int bufferEnd = bufferSize; in recomputeBufferSizeAfterLimit()
500 bufferSize -= bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit()
535 return bufferPos == bufferSize; in isAtEnd()
597 if (bufferPos == bufferSize) { in readRawByte()
621 if (size <= bufferSize - bufferPos) { in readRawBytes()
[all …]
/external/deqp/framework/delibs/destream/
DdeStreamCpyThread.c31 deUint8* buffer = malloc(sizeof(deUint8) * (size_t)thread->bufferSize); in cpyStream()
39 readResult = deInStream_read(thread->input, buffer, thread->bufferSize, &read); in cpyStream()
60 …eamCpyThread* deStreamCpyThread_create (deInStream* input, deOutStream* output, deInt32 bufferSize) in deStreamCpyThread_create() argument
70 thread->bufferSize = bufferSize; in deStreamCpyThread_create()
/external/guava/guava/src/com/google/common/hash/
DAbstractStreamingHashFunction.java82 private final int bufferSize; field in AbstractStreamingHashFunction.AbstractStreamingHasher
107 protected AbstractStreamingHasher(int chunkSize, int bufferSize) { in AbstractStreamingHasher() argument
109 checkArgument(bufferSize % chunkSize == 0); in AbstractStreamingHasher()
113 .allocate(bufferSize + 7) // always space for a single primitive in AbstractStreamingHasher()
115 this.bufferSize = bufferSize; in AbstractStreamingHasher()
162 int bytesToCopy = bufferSize - buffer.position(); in putBytes()
/external/icu/icu4c/source/i18n/
Ducoleitr.cpp59 int32_t bufferSize; member
73 bufferSize = UPRV_LENGTHOF(defaultBuffer); in RCEBuffer()
93 if (bufferIndex >= bufferSize) { in put()
94 RCEI *newBuffer = NEW_ARRAY(RCEI, bufferSize + BUFFER_GROW); in put()
100 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
107 bufferSize += BUFFER_GROW; in put()
130 bufferSize = UPRV_LENGTHOF(defaultBuffer); in PCEBuffer()
155 if (bufferIndex >= bufferSize) { in put()
156 PCEI *newBuffer = NEW_ARRAY(PCEI, bufferSize + BUFFER_GROW); in put()
162 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
[all …]
/external/sonic/
DMain.java33 int bufferSize = line.getBufferSize(); in runSonic() local
34 byte inBuffer[] = new byte[bufferSize]; in runSonic()
35 byte outBuffer[] = new byte[bufferSize]; in runSonic()
45 numRead = audioStream.read(inBuffer, 0, bufferSize); in runSonic()
52 numWritten = sonic.readBytesFromStream(outBuffer, bufferSize); in runSonic()
/external/webrtc/webrtc/modules/audio_device/mac/portaudio/
Dpa_ringbuffer.c71 rbuf->bufferSize = elementCount; in PaUtil_InitializeRingBuffer()
92 return ( rbuf->bufferSize - PaUtil_GetRingBufferReadAvailable(rbuf)); in PaUtil_GetRingBufferWriteAvailable()
119 if( (index + elementCount) > rbuf->bufferSize ) in PaUtil_GetRingBufferWriteRegions()
122 PaRingBufferSize firstHalf = rbuf->bufferSize - index; in PaUtil_GetRingBufferWriteRegions()
166 if( (index + elementCount) > rbuf->bufferSize ) in PaUtil_GetRingBufferReadRegions()
169 PaRingBufferSize firstHalf = rbuf->bufferSize - index; in PaUtil_GetRingBufferReadRegions()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiBufferComputeInstance.cpp38 deUint32 bufferSize, in createDataBuffer() argument
48 DE_ASSERT(offset + initDataSize <= bufferSize); in createDataBuffer()
56 (VkDeviceSize)bufferSize, // size in createDataBuffer()
76 (size_t)bufferSize - (size_t)offset - initDataSize); in createDataBuffer()
85 deUint32 bufferSize, in createColorDataBuffer() argument
95 DE_ASSERT(offset + sizeof(tcu::Vec4[2]) <= bufferSize); in createColorDataBuffer()
103 (VkDeviceSize) bufferSize, // size in createColorDataBuffer()
124 (size_t) bufferSize - (size_t) offset - 2 * sizeof(tcu::Vec4)); in createColorDataBuffer()
/external/deqp/modules/gles3/functional/
Des3fBufferMapTests.cpp53 …ar* name, const char* desc, deUint32 bufferTarget, deUint32 usage, int bufferSize, int mapOffset, … in BufferMapReadCase() argument
57 , m_bufferSize (bufferSize) in BufferMapReadCase()
159 …ar* name, const char* desc, deUint32 bufferTarget, deUint32 usage, int bufferSize, int mapOffset, … in BufferPartialMapWriteCase() argument
163 , m_bufferSize (bufferSize) in BufferPartialMapWriteCase()
230 const int bufferSize = 1300; in iterate() local
238 refBuf.setSize(bufferSize); in iterate()
239 fillWithRandomBytes(refBuf.getPtr(), bufferSize, dataSeed); in iterate()
243 glBufferData(m_bufferTarget, bufferSize, refBuf.getPtr(), m_usage); in iterate()
289 const int bufferSize = 1300; in iterate() local
294 const int verifySize = bufferSize-verifyOffset; in iterate()
[all …]
/external/skia/src/utils/
DSkFrontBufferedStream.cpp15 FrontBufferedStream(std::unique_ptr<SkStream>, size_t bufferSize);
65 size_t bufferSize) { in Make() argument
70 bufferSize)); in Make()
73 FrontBufferedStream::FrontBufferedStream(std::unique_ptr<SkStream> stream, size_t bufferSize) in FrontBufferedStream() argument
79 , fBufferSize(bufferSize) in FrontBufferedStream()
80 , fBuffer(bufferSize) {} in FrontBufferedStream()

12345678910>>...14