Home
last modified time | relevance | path

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

12345678910

/external/skia/tests/
DFrontBufferedStreamTest.cpp53 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() argument
59 SkAutoTDelete<SkStream> bufferedStream(SkFrontBufferedStream::Create(memStream, bufferSize)); in test_incremental_buffering()
63 test_read(reporter, bufferedStream, gAbcs, bufferSize / 2); in test_incremental_buffering()
68 test_read(reporter, bufferedStream, gAbcs, bufferSize / 4); in test_incremental_buffering()
71 test_read(reporter, bufferedStream, gAbcs + bufferSize / 4, bufferSize / 2); in test_incremental_buffering()
76 test_read(reporter, bufferedStream, gAbcs, bufferSize << 1); in test_incremental_buffering()
84 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_perfectly_sized_buffer() argument
86 SkAutoTDelete<SkStream> bufferedStream(SkFrontBufferedStream::Create(memStream, bufferSize)); in test_perfectly_sized_buffer()
90 test_read(reporter, bufferedStream, gAbcs, bufferSize); in test_perfectly_sized_buffer()
96 test_read(reporter, bufferedStream, gAbcs, bufferSize); in test_perfectly_sized_buffer()
[all …]
DARGBImageEncoderTest.cpp52 int bufferSize = bitmap.width() * bitmap.height() * 4; in DEF_TEST() local
53 SkAutoTMalloc<char> pixelBufferManager(bufferSize); in DEF_TEST()
55 SkMemoryWStream out(pixelBuffer, bufferSize); in DEF_TEST()
59 REPORTER_ASSERT(reporter, bufferSize == sizeof(comparisonBuffer)); in DEF_TEST()
60 REPORTER_ASSERT(reporter, memcmp(pixelBuffer, comparisonBuffer, bufferSize) == 0); in DEF_TEST()
/external/protobuf/java/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/tpm2/
DTpmFail.c189 INT32 bufferSize; in TpmFailureMode() local
212 bufferSize = MAX_RESPONSE_SIZE-10; in TpmFailureMode()
213 marshalSize = MarshalUint16(3 * sizeof(UINT32), &buffer, &bufferSize); in TpmFailureMode()
214 marshalSize += MarshalUint32(s_failFunction, &buffer, &bufferSize); in TpmFailureMode()
215 marshalSize += MarshalUint32(s_failLine, &buffer, &bufferSize); in TpmFailureMode()
216 marshalSize += MarshalUint32(s_failCode, &buffer, &bufferSize); in TpmFailureMode()
218 marshalSize += MarshalUint32(TPM_RC_NV_UNINITIALIZED, &buffer, &bufferSize); in TpmFailureMode()
220 marshalSize += MarshalUint32(TPM_RC_FAILURE, &buffer, &bufferSize); in TpmFailureMode()
258 bufferSize = MAX_RESPONSE_SIZE-10; in TpmFailureMode()
267 marshalSize += MarshalUint32(capability, &buffer, &bufferSize); in TpmFailureMode()
[all …]
DObject_spt.c37 INT32 bufferSize; in EqualCryptSet() local
46 bufferSize = sizeof(TPMU_PUBLIC_PARMS); in EqualCryptSet()
48 &bufferSize, publicArea1->type); in EqualCryptSet()
50 bufferSize = sizeof(TPMU_PUBLIC_PARMS); in EqualCryptSet()
52 &bufferSize, publicArea2->type); in EqualCryptSet()
237 INT32 bufferSize; in ProduceInnerIntegrity() local
244 bufferSize = sizeof(TPM2B_DIGEST); in ProduceInnerIntegrity()
245 TPM2B_DIGEST_Marshal(&integrity, &buffer, &bufferSize); in ProduceInnerIntegrity()
600 INT32 bufferSize; in FillInCreationData() local
617 INT32 bufferSize = sizeof(TPM_HANDLE); in FillInCreationData() local
[all …]
DPolicyLocality.c28 INT32 bufferSize; in TPM2_PolicyLocality() local
39 bufferSize = sizeof(TPMA_LOCALITY); in TPM2_PolicyLocality()
40 marshalSize = TPMA_LOCALITY_Marshal(&in->locality, &buffer, &bufferSize); in TPM2_PolicyLocality()
48 bufferSize = sizeof(TPMA_LOCALITY); in TPM2_PolicyLocality()
49 TPMA_LOCALITY_Marshal(&session->commandLocality, &buffer, &bufferSize); in TPM2_PolicyLocality()
/external/protobuf/java/src/main/java/com/google/protobuf/
DCodedInputStream.java373 if (size <= (bufferSize - bufferPos) && size > 0) { in readString()
396 if (size <= (bufferSize - pos) && size > 0) { in readStringRequireUtf8()
505 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes()
524 if (size <= (bufferSize - bufferPos) && size > 0) { in readByteArray()
540 if (size <= (bufferSize - bufferPos) && size > 0) { in readByteBuffer()
604 if (bufferSize == pos) { in readRawVarint32()
613 } else if (bufferSize - pos < 9) { in readRawVarint32()
641 if (bufferSize - bufferPos >= 10) { in skipRawVarint()
730 if (bufferSize == pos) { in readRawVarint64()
740 } else if (bufferSize - pos < 9) { in readRawVarint64()
[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/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/expat/tests/benchmark/
Dbenchmark.c31 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local
61 bufferSize = atoi (argv[j + 2]); in main()
63 if (bufferSize <= 0 || nrOfLoops <= 0) { in main()
86 if (parseBufferSize <= bufferSize) in main()
89 parseBufferSize = bufferSize; in main()
100 XMLBufPtr += bufferSize; in main()
112 nrOfLoops, bufferSize, cpuTime / (double) nrOfLoops); in main()
/external/icu/icu4c/source/tools/toolutil/
Dflagparser.c16 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch…
17 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize);
115 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… in extractFlag() argument
123 offset = getFlagOffset(buffer, bufferSize); in extractFlag()
163 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { in getFlagOffset() argument
166 for (offset = 0; offset < bufferSize;offset++) { in getFlagOffset()
173 if (offset == bufferSize || (offset - 1) == bufferSize) { in getFlagOffset()
/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/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/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/extras/LIRC/
DOISLIRCRingBuffer.h77 int bufferSize;
98 bufferSize = (int)numEntries; in LIRCRingBuffer()
135 return ( bufferSize - GetReadAvailable()); in GetWriteAvailable()
201 if( (index + numEntries) > bufferSize ) in GetWriteRegions()
204 int firstHalf = bufferSize - index; in GetWriteRegions()
230 if( (index + numEntries) > bufferSize ) in GetReadRegions()
233 int firstHalf = bufferSize - index; in GetReadRegions()
/external/jetty/src/java/org/eclipse/jetty/util/
DIO.java56 public static int bufferSize = 64*1024; field in IO
182 byte buffer[] = new byte[bufferSize]; in copy()
183 int len=bufferSize; in copy()
189 int max = byteCount<bufferSize?(int)byteCount:bufferSize; in copy()
203 len=in.read(buffer,0,bufferSize); in copy()
219 char buffer[] = new char[bufferSize];
220 int len=bufferSize;
226 if (byteCount<bufferSize)
229 len=in.read(buffer,0,bufferSize);
243 len=in.read(buffer,0,bufferSize);
[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/protobuf/java/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java193 if (size > (bufferSize - bufferPos)) { in readString()
238 if (size > (bufferSize - bufferPos)) { in readBytes()
400 private int bufferSize; field in CodedInputByteBufferNano
421 bufferSize = off + len; in CodedInputByteBufferNano()
496 bufferSize += bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit()
497 final int bufferEnd = bufferSize; in recomputeBufferSizeAfterLimit()
501 bufferSize -= bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit()
536 return bufferPos == bufferSize; in isAtEnd()
598 if (bufferPos == bufferSize) { in readRawByte()
622 if (size <= bufferSize - bufferPos) { in readRawBytes()
[all …]
/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/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/win32/extras/WiiMote/
DOISWiiMoteRingBuffer.h121 int bufferSize;
142 bufferSize = (int)numEntries; in WiiMoteRingBuffer()
179 return ( bufferSize - GetReadAvailable()); in GetWriteAvailable()
245 if( (index + numEntries) > bufferSize ) in GetWriteRegions()
248 int firstHalf = bufferSize - index; in GetWriteRegions()
274 if( (index + numEntries) > bufferSize ) in GetReadRegions()
277 int firstHalf = bufferSize - index; in GetReadRegions()
/external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/audio/
DOpenALAudioDevice.java44 private final int bufferSize; field in OpenALAudioDevice
48 …public OpenALAudioDevice (OpenALAudio audio, int sampleRate, boolean isMono, int bufferSize, int b… in OpenALAudioDevice() argument
51 this.bufferSize = bufferSize; in OpenALAudioDevice()
55 secondsPerBuffer = (float)bufferSize / bytesPerSample / channels / sampleRate; in OpenALAudioDevice()
56 tempBuffer = BufferUtils.createByteBuffer(bufferSize); in OpenALAudioDevice()
100 int written = Math.min(bufferSize, length); in writeSamples()
129 int written = Math.min(bufferSize, length); in fillBuffer()
/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/audio/
DOpenALAudioDevice.java44 private final int bufferSize; field in OpenALAudioDevice
48 …public OpenALAudioDevice (OpenALAudio audio, int sampleRate, boolean isMono, int bufferSize, int b… in OpenALAudioDevice() argument
51 this.bufferSize = bufferSize; in OpenALAudioDevice()
55 secondsPerBuffer = (float)bufferSize / bytesPerSample / channels / sampleRate; in OpenALAudioDevice()
56 tempBuffer = BufferUtils.createByteBuffer(bufferSize); in OpenALAudioDevice()
100 int written = Math.min(bufferSize, length); in writeSamples()
129 int written = Math.min(bufferSize, length); in fillBuffer()
/external/jetty/src/java/org/eclipse/jetty/websocket/
DWebSocketBuffers.java40 public WebSocketBuffers(final int bufferSize) in WebSocketBuffers() argument
42 _bufferSize=bufferSize; in WebSocketBuffers()
43 …_buffers = BuffersFactory.newBuffers(Type.DIRECT,bufferSize,Type.INDIRECT,bufferSize,Type.INDIRECT… in WebSocketBuffers()
/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.cpp57 int32_t bufferSize; member
71 bufferSize = UPRV_LENGTHOF(defaultBuffer); in RCEBuffer()
91 if (bufferIndex >= bufferSize) { in put()
92 RCEI *newBuffer = NEW_ARRAY(RCEI, bufferSize + BUFFER_GROW); in put()
98 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
105 bufferSize += BUFFER_GROW; in put()
128 bufferSize = UPRV_LENGTHOF(defaultBuffer); in PCEBuffer()
153 if (bufferIndex >= bufferSize) { in put()
154 PCEI *newBuffer = NEW_ARRAY(PCEI, bufferSize + BUFFER_GROW); in put()
160 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
[all …]

12345678910