/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() 436 private int bufferSize; field in CodedInputStreamMicro 465 bufferSize = off + len; in CodedInputStreamMicro() 472 bufferSize = 0; in CodedInputStreamMicro() 550 bufferSize += bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit() 551 final int bufferEnd = totalBytesRetired + bufferSize; in recomputeBufferSizeAfterLimit() 555 bufferSize -= bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit() 590 return bufferPos == bufferSize && !refillBuffer(false); in isAtEnd() 601 if (bufferPos < bufferSize) { in refillBuffer() [all …]
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | CodedInputStream.java | 201 if (size <= (bufferSize - bufferPos) && size > 0) { in readString() 266 if (size <= (bufferSize - bufferPos) && size > 0) { in readBytes() 480 private int bufferSize; field in CodedInputStream 511 bufferSize = off + len; in CodedInputStream() 519 bufferSize = 0; in CodedInputStream() 606 bufferSize += bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit() 607 final int bufferEnd = totalBytesRetired + bufferSize; in recomputeBufferSizeAfterLimit() 611 bufferSize -= bufferSizeAfterLimit; in recomputeBufferSizeAfterLimit() 646 return bufferPos == bufferSize && !refillBuffer(false); in isAtEnd() 665 if (bufferPos < bufferSize) { in refillBuffer() [all …]
|
/external/webkit/Source/WebCore/webaudio/ |
D | JavaScriptAudioNode.cpp | 45 …riptAudioNode::create(AudioContext* context, double sampleRate, size_t bufferSize, unsigned number… in create() argument 47 …return adoptRef(new JavaScriptAudioNode(context, sampleRate, bufferSize, numberOfInputs, numberOfO… in create() 50 …::JavaScriptAudioNode(AudioContext* context, double sampleRate, size_t bufferSize, unsigned number… in JavaScriptAudioNode() argument 54 , m_bufferSize(bufferSize) in JavaScriptAudioNode() 59 switch (bufferSize) { in JavaScriptAudioNode() 67 m_bufferSize = bufferSize; in JavaScriptAudioNode() 104 m_inputBuffers.append(AudioBuffer::create(2, bufferSize(), sampleRate)); in initialize() 105 m_outputBuffers.append(AudioBuffer::create(2, bufferSize(), sampleRate)); in initialize() 150 …ol buffersAreGood = inputBuffer && outputBuffer && bufferSize() == inputBuffer->length() && buffer… in process() 151 && m_bufferReadWriteIndex + framesToProcess <= bufferSize(); in process() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
D | FontPlatformDataCGWin.cpp | 54 DWORD bufferSize = GetFontData(dc, 'eman', 0, NULL, 0); // "name" backwards in getPostScriptName() local 55 if (bufferSize == 0 || bufferSize == GDI_ERROR || bufferSize > cMaxNameTableSize) in getPostScriptName() 58 Vector<BYTE> bufferVector(bufferSize); in getPostScriptName() 60 if (GetFontData(dc, 'eman', 0, buffer, bufferSize) == GDI_ERROR) in getPostScriptName() 63 if (bufferSize < 6) in getPostScriptName() 68 if (bufferSize < stringsOffset) in getPostScriptName() 76 if (bufferSize < offset + 12) in getPostScriptName() 89 if (bufferSize < stringsOffset + nameOffset + length) in getPostScriptName() 96 if (bufferSize < stringsOffset + nameOffset + length) in getPostScriptName()
|
D | FontPlatformDataWin.cpp | 58 UINT bufferSize = GetOutlineTextMetrics(hdc, 0, NULL); in FontPlatformData() local 60 ASSERT_WITH_MESSAGE(bufferSize, "Bitmap fonts not supported with CoreGraphics."); in FontPlatformData() 62 if (bufferSize) { in FontPlatformData() 63 OUTLINETEXTMETRICW* metrics = (OUTLINETEXTMETRICW*)malloc(bufferSize); in FontPlatformData() 65 GetOutlineTextMetricsW(hdc, bufferSize, metrics); in FontPlatformData()
|
/external/srec/portable/src/ |
D | PFile.c | 198 size_t i, bufferSize, count, totalRead = 0; in PFileReadInt() local 225 bufferSize = count - i; in PFileReadInt() 228 if (bufferSize < MAX_INT_DIGITS) in PFileReadInt() 230 count = pfread(number + bufferSize, sizeof(LCHAR), MAX_INT_DIGITS - bufferSize, self); in PFileReadInt() 231 bufferSize += count; in PFileReadInt() 233 if (count < MAX_INT_DIGITS - bufferSize && pferror(self)) in PFileReadInt() 242 for (i = 0; i < bufferSize && !LISSPACE(number[i]); ++i); in PFileReadInt() 243 if (i < bufferSize) in PFileReadInt() 246 if (PFileSeek(self, - (int)(bufferSize - i), SEEK_CUR)) in PFileReadInt() 251 totalRead -= bufferSize - i; in PFileReadInt() [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/webkit/Source/WebKit2/Platform/CoreIPC/ |
D | ArgumentDecoder.cpp | 34 ArgumentDecoder::ArgumentDecoder(const uint8_t* buffer, size_t bufferSize) in ArgumentDecoder() argument 36 initialize(buffer, bufferSize); in ArgumentDecoder() 39 ArgumentDecoder::ArgumentDecoder(const uint8_t* buffer, size_t bufferSize, Deque<Attachment>& attac… in ArgumentDecoder() argument 41 initialize(buffer, bufferSize); in ArgumentDecoder() 59 void ArgumentDecoder::initialize(const uint8_t* buffer, size_t bufferSize) in initialize() argument 61 m_buffer = static_cast<uint8_t*>(fastMalloc(bufferSize)); in initialize() 63 m_bufferEnd = m_buffer + bufferSize; in initialize() 64 memcpy(m_buffer, buffer, bufferSize); in initialize() 127 bool ArgumentDecoder::decodeBytes(uint8_t* buffer, size_t bufferSize) in decodeBytes() argument 134 ASSERT(size == bufferSize); in decodeBytes() [all …]
|
/external/proguard/src/proguard/io/ |
D | ManifestRewriter.java | 64 private int bufferSize = 0; field in ManifestRewriter.SplitLineReader 79 if (bufferIndex < bufferSize) in read() 92 bufferSize = 0; in read() 93 buffer[bufferSize++] = '\n'; in read() 99 bufferSize = 0; in read() 105 buffer[bufferSize++] = (char)c2; in read() 113 bufferSize = 0; in read() 117 buffer[bufferSize++] = (char)c3; in read()
|
/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/icu4c/tools/toolutil/ |
D | flagparser.c | 16 static void extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, UErrorCode … 17 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize); 91 static void extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, UErrorCode … in extractFlag() argument 99 offset = getFlagOffset(buffer, bufferSize); in extractFlag() 127 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { in getFlagOffset() argument 130 for (offset = 0; offset < bufferSize;offset++) { in getFlagOffset() 137 if (offset == bufferSize || (offset - 1) == bufferSize) { in getFlagOffset()
|
/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/guava/guava-tests/test/com/google/common/hash/ |
D | AbstractStreamingHasherTest.java | 121 for (int bufferSize = chunkSize; bufferSize <= chunkSize * 4; bufferSize += chunkSize) { in testExhaustive() 123 sinks.add(new Sink(chunkSize, bufferSize)); in testExhaustive() 152 final int bufferSize; field in AbstractStreamingHasherTest.Sink 158 Sink(int chunkSize, int bufferSize) { in Sink() argument 159 super(chunkSize, bufferSize); in Sink() 161 this.bufferSize = bufferSize; in Sink() 167 this.bufferSize = chunkSize; in Sink() 188 assertTrue(bb.remaining() < bufferSize); in processRemaining()
|
/external/sonivox/arm-hybrid-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 161 if (WaveFileWrite(wFile, buffer, bufferSize) != bufferSize) in PlayFile() 222 EAS_I32 bufferSize; in main() local 280 …bufferSize = pLibConfig->mixBufferSize * pLibConfig->numChannels * (EAS_I32)sizeof(EAS_PCM) * NUM_… in main() 283 buffer = malloc((EAS_U32)bufferSize); in main() 306 …if ((playResult = PlayFile(easData, defaultTestFile, NULL, pLibConfig, buffer, bufferSize)) != EAS… in main() 321 …layResult = PlayFile(easData, argv[i], outputFile, pLibConfig, buffer, bufferSize)) != EAS_SUCCESS) in main()
|
/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/sonivox/arm-fm-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 161 if (WaveFileWrite(wFile, buffer, bufferSize) != bufferSize) in PlayFile() 222 EAS_I32 bufferSize; in main() local 280 …bufferSize = pLibConfig->mixBufferSize * pLibConfig->numChannels * (EAS_I32)sizeof(EAS_PCM) * NUM_… in main() 283 buffer = malloc((EAS_U32)bufferSize); in main() 306 …if ((playResult = PlayFile(easData, defaultTestFile, NULL, pLibConfig, buffer, bufferSize)) != EAS… in main() 321 …layResult = PlayFile(easData, argv[i], outputFile, pLibConfig, buffer, bufferSize)) != EAS_SUCCESS) in main()
|
/external/guava/guava/src/com/google/common/hash/ |
D | AbstractStreamingHashFunction.java | 74 private final int bufferSize; field in AbstractStreamingHashFunction.AbstractStreamingHasher 99 protected AbstractStreamingHasher(int chunkSize, int bufferSize) { in AbstractStreamingHasher() argument 101 checkArgument(bufferSize % chunkSize == 0); in AbstractStreamingHasher() 105 .allocate(bufferSize + 7) // always space for a single primitive in AbstractStreamingHasher() 107 this.bufferSize = bufferSize; in AbstractStreamingHasher() 154 int bytesToCopy = bufferSize - buffer.position(); in putBytes()
|
/external/webkit/Source/WebCore/platform/graphics/gtk/ |
D | ImageBufferGtk.cpp | 53 gsize bufferSize; in toDataURL() local 58 success = gdk_pixbuf_save_to_buffer(pixbuf.get(), &buffer.outPtr(), &bufferSize, in toDataURL() 61 …success = gdk_pixbuf_save_to_buffer(pixbuf.get(), &buffer.outPtr(), &bufferSize, type.utf8().data(… in toDataURL() 68 base64Encode(reinterpret_cast<const char*>(buffer.get()), bufferSize, out); in toDataURL()
|
/external/webkit/Source/WebCore/platform/network/win/ |
D | ResourceHandleWin.cpp | 66 DWORD bufferSize = 0; in queryHTTPHeader() local 67 HttpQueryInfoW(requestHandle, infoLevel, 0, &bufferSize, 0); in queryHTTPHeader() 69 Vector<UChar> characters(bufferSize / sizeof(UChar)); in queryHTTPHeader() 71 if (!HttpQueryInfoW(requestHandle, infoLevel, characters.data(), &bufferSize, 0)) in queryHTTPHeader() 208 static const int bufferSize = 32768; in onRequestComplete() local 209 char buffer[bufferSize]; in onRequestComplete() 213 buffers.dwBufferLength = bufferSize; in onRequestComplete() 250 buffers.dwBufferLength = bufferSize; in onRequestComplete() 388 const int bufferSize = 8192; in fileLoadTimer() local 389 char buffer[bufferSize]; in fileLoadTimer() [all …]
|
/external/webkit/Source/WebCore/platform/network/ |
D | SocketStreamHandleBase.cpp | 39 const unsigned int bufferSize = 100 * 1024 * 1024; variable 58 if (m_buffer.size() + length > bufferSize) { in send() 70 if (m_buffer.size() + length - bytesWritten > bufferSize) { in send() 103 ASSERT(m_buffer.size() - bytesWritten <= bufferSize); in sendPendingData()
|
/external/icu4c/test/cintltst/ |
D | cbiapts.c | 358 int32_t bufferSize = U_BRK_SAFECLONE_BUFFERSIZE; in TestBreakIteratorSafeClone() local 396 if (0 != ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, 0)) in TestBreakIteratorSafeClone() 402 …if (0 != ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, &status) || status != U_MEMORY_A… in TestBreakIteratorSafeClone() 416 bufferSize = 0; in TestBreakIteratorSafeClone() 417 … != ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, &status) || U_FAILURE(status) || buff… in TestBreakIteratorSafeClone() 422 if (U_BRK_SAFECLONE_BUFFERSIZE < bufferSize) in TestBreakIteratorSafeClone() 424 …calculated buffer size is too small - %d but needed %d\n", U_BRK_SAFECLONE_BUFFERSIZE, bufferSize); in TestBreakIteratorSafeClone() 427 …if (0 == (brk = ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, &status)) || U_FAILURE(st… in TestBreakIteratorSafeClone() 434 --bufferSize; in TestBreakIteratorSafeClone() 435 …if (0 == (brk = ubrk_safeClone(someIterators[i], 0, &bufferSize, &status)) || status != U_SAFECLON… in TestBreakIteratorSafeClone() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/audio/macosx/ |
D | SDL_coreaudio.h | 37 UInt32 bufferSize; member 44 #define bufferSize (this->hidden->bufferSize) macro
|
D | SDL_coreaudio.c | 118 if (bufferOffset >= bufferSize) { in audioCallback() 120 SDL_memset(buffer, this->spec.silence, bufferSize); in audioCallback() 123 buffer, bufferSize); in audioCallback() 128 len = bufferSize - bufferOffset; in audioCallback() 267 bufferOffset = bufferSize = this->spec.size; in Core_OpenAudio() 268 buffer = SDL_malloc(bufferSize); in Core_OpenAudio()
|
/external/webkit/Tools/WebKitLauncherWin/ |
D | WebKitLauncherWin.cpp | 34 DWORD bufferSize = 0; in getStringValue() local 35 … if (RegQueryValueEx(key, valueName, 0, &type, 0, &bufferSize) != ERROR_SUCCESS || type != REG_SZ) in getStringValue() 38 LPTSTR buffer = static_cast<LPTSTR>(malloc(bufferSize)); in getStringValue() 39 …if (RegQueryValueEx(key, valueName, 0, &type, reinterpret_cast<LPBYTE>(buffer), &bufferSize) != ER… in getStringValue()
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
D | PlatformImage.cpp | 64 size_t bufferSize = bitmapSize.width() * bitmapSize.height() * 4; in updateFromImage() local 66 m_pixelData = adoptArrayPtr(new uint8_t[bufferSize]); in updateFromImage() 67 memset(m_pixelData.get(), 0, bufferSize); in updateFromImage() 75 skiaBitmap->copyPixelsTo(m_pixelData.get(), bufferSize); in updateFromImage()
|