/external/skia/tests/ |
D | FrontBufferedStreamTest.cpp | 53 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 …]
|
D | ARGBImageEncoderTest.cpp | 52 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/ |
D | CodedInputStreamMicro.java | 198 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/ |
D | TpmFail.c | 189 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 …]
|
D | Object_spt.c | 37 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 …]
|
D | PolicyLocality.c | 28 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()
|
D | Attest_spt.c | 43 INT32 bufferSize; in FillInAttestInfo() local 46 bufferSize = sizeof(TPM_HANDLE); in FillInAttestInfo() 48 TPM_HANDLE_Marshal(&signHandle, &buffer, &bufferSize); in FillInAttestInfo() 134 INT32 bufferSize; in SignAttestInfo() local 139 bufferSize = sizeof(TPMS_ATTEST); in SignAttestInfo() 140 attest->t.size = TPMS_ATTEST_Marshal(certifyInfo, &buffer, &bufferSize); in SignAttestInfo()
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | CodedInputStream.java | 373 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/ |
D | BufferedResourceLoader.java | 33 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/dng_sdk/source/ |
D | dng_resample.cpp | 99 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/output/ |
D | InstanceOutputBufferProvider.java | 24 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/ |
D | benchmark.c | 31 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/ |
D | flagparser.c | 16 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/ |
D | CompactDataOutput.java | 67 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/ |
D | AbstractStreamingHasherTest.java | 146 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/jetty/src/java/org/eclipse/jetty/util/ |
D | IO.java | 56 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/protobuf/java/src/main/java/com/google/protobuf/nano/ |
D | CodedInputByteBufferNano.java | 193 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/deqp/framework/delibs/destream/ |
D | deStreamCpyThread.c | 31 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/sonivox/arm-wt-22k/host_src/ |
D | eas_main.c | 55 …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 283 …bufferSize = 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/guava/guava/src/com/google/common/hash/ |
D | AbstractStreamingHashFunction.java | 82 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/ |
D | ucoleitr.cpp | 57 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 …]
|
/external/jetty/src/java/org/eclipse/jetty/websocket/ |
D | WebSocketBuffers.java | 40 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/sonic/ |
D | Main.java | 33 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/ |
D | pa_ringbuffer.c | 71 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/skia/src/utils/ |
D | SkFrontBufferedStream.cpp | 15 FrontBufferedStream(SkStream*, size_t bufferSize); 64 SkStreamRewindable* SkFrontBufferedStream::Create(SkStream* stream, size_t bufferSize) { in Create() argument 68 return new FrontBufferedStream(stream, bufferSize); in Create() 71 FrontBufferedStream::FrontBufferedStream(SkStream* stream, size_t bufferSize) in FrontBufferedStream() argument 77 , fBufferSize(bufferSize) in FrontBufferedStream() 78 , fBuffer(bufferSize) {} in FrontBufferedStream()
|