/external/skia/tests/ |
D | FrontBufferedStreamTest.cpp | 53 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() argument 59 std::unique_ptr<SkStream> bufferedStream(SkFrontBufferedStream::Create(memStream, bufferSize)); in test_incremental_buffering() 63 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 2); in test_incremental_buffering() 68 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 4); in test_incremental_buffering() 71 test_read(reporter, bufferedStream.get(), gAbcs + bufferSize / 4, bufferSize / 2); in test_incremental_buffering() 76 test_read(reporter, bufferedStream.get(), 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 std::unique_ptr<SkStream> bufferedStream(SkFrontBufferedStream::Create(memStream, bufferSize)); in test_perfectly_sized_buffer() 90 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer() 96 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer() [all …]
|
/external/protobuf/javamicro/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() 602 INT32 bufferSize; in FillInCreationData() local 619 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/csharp/src/Google.Protobuf/ |
D | CodedInputStream.cs | 70 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/ |
D | CodedInputStream.java | 64 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/swiftshader/src/Reactor/ |
D | LLVMRoutine.cpp | 23 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/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/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/icu/icu4c/source/tools/toolutil/ |
D | flagparser.c | 18 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/ |
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/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/protobuf/javanano/src/main/java/com/google/protobuf/nano/ |
D | CodedInputByteBufferNano.java | 190 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/external/vulkancts/modules/vulkan/api/ |
D | vktApiBufferComputeInstance.cpp | 38 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() 78 flushMappedMemoryRange(vki, device, allocation->getMemory(), allocation->getOffset(), bufferSize); 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() 126 flushMappedMemoryRange(vki, device, allocation->getMemory(), allocation->getOffset(), bufferSize); in createColorDataBuffer()
|
/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/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/icu/icu4c/source/i18n/ |
D | ucoleitr.cpp | 59 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/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()
|