/external/chromium_org/third_party/WebKit/Source/core/platform/audio/ |
H A D | ReverbInputBuffer.cpp | 45 size_t bufferLength = m_buffer.size(); local 46 bool isCopySafe = m_writeIndex + numberOfFrames <= bufferLength; 54 ASSERT(m_writeIndex <= bufferLength); 56 if (m_writeIndex >= bufferLength) 62 size_t bufferLength = m_buffer.size(); local 63 bool isPointerGood = readIndex && *readIndex >= 0 && *readIndex + numberOfFrames <= bufferLength; 76 *readIndex = (*readIndex + numberOfFrames) % bufferLength;
|
H A D | ReverbAccumulationBuffer.cpp | 50 size_t bufferLength = m_buffer.size(); local 51 bool isCopySafe = m_readIndex <= bufferLength && numberOfFrames <= bufferLength; 57 size_t framesAvailable = bufferLength - m_readIndex; 71 m_readIndex = (m_readIndex + numberOfFrames) % bufferLength; 83 size_t bufferLength = m_buffer.size(); local 85 size_t writeIndex = (*readIndex + delayFrames) % bufferLength; 88 *readIndex = (*readIndex + numberOfFrames) % bufferLength; 90 size_t framesAvailable = bufferLength - writeIndex; 96 bool isSafe = writeIndex <= bufferLength [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
H A D | DelayDSPKernel.cpp | 71 size_t bufferLength = bufferLengthForDelay(maxDelayTime, sampleRate); 72 ASSERT(bufferLength); 73 if (!bufferLength) 76 m_buffer.allocate(bufferLength); 91 size_t bufferLength = m_buffer.size(); local 94 ASSERT(bufferLength); 95 if (!bufferLength) 137 double readPosition = m_writeIndex + bufferLength - desiredDelayFrames; 138 if (readPosition >= bufferLength) 139 readPosition -= bufferLength; [all...] |
H A D | ConvolverNode.cpp | 125 size_t bufferLength = buffer->length(); local 128 bool isBufferGood = numberOfChannels > 0 && numberOfChannels <= 4 && bufferLength; 135 RefPtr<AudioBus> bufferBus = AudioBus::create(numberOfChannels, bufferLength, false); 137 bufferBus->setChannelMemory(i, buffer->getChannelData(i)->data(), bufferLength);
|
H A D | AudioBufferSourceNode.cpp | 203 size_t bufferLength = buffer()->length(); local 208 unsigned endFrame = m_isGrain ? AudioUtilities::timeToSampleFrame(m_grainOffset + m_grainDuration, bufferSampleRate) : bufferLength; 217 if (endFrame > bufferLength) 218 endFrame = bufferLength; 287 if (readIndex2 >= bufferLength) { 297 if (readIndex >= bufferLength || readIndex2 >= bufferLength)
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
H A D | StringSerializer.java | 80 int bufferLength = stringBytes.length; 83 if (bufferLength <= Byte.MAX_VALUE) { 85 buffer.put((byte)bufferLength); 86 } else if (bufferLength <= Short.MAX_VALUE) { 88 buffer.putShort((short)bufferLength); 91 buffer.putInt(bufferLength);
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/skia/ |
H A D | GlyphPageTreeNodeSkia.cpp | 42 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument 44 if (SkUTF16_IsHighSurrogate(buffer[bufferLength-1])) { 63 unsigned count = paint.textToGlyphs(buffer, bufferLength * 2, glyphs);
|
/external/chromium_org/third_party/WebKit/Source/testing/plugin/Tests/ |
H A D | PluginScriptableObjectOverridesAllProperties.cpp | 61 int bufferLength = strlen(propertyString) + strlen(message) + 1; local 62 char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength)); 63 snprintf(resultBuffer, bufferLength, "%s%s", message, propertyString);
|
H A D | SlowNPPNew.cpp | 60 int bufferLength = strlen(propertyString) + strlen(message) + 1; local 61 char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength)); 62 snprintf(resultBuffer, bufferLength, "%s%s", message, propertyString);
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/mac/ |
H A D | GlyphPageTreeNodeMac.cpp | 44 static bool shouldUseCoreText(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument 50 for (unsigned i = 0; i < bufferLength; ++i) { 59 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument 63 Vector<CGGlyph, 512> glyphs(bufferLength); 64 if (!shouldUseCoreText(buffer, bufferLength, fontData)) { 65 CGFontGetGlyphsForUnichars(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength); 75 && CTFontGetGlyphsForCharacters(fontData->platformData().ctFont(), buffer, glyphs.data(), bufferLength)) { 78 unsigned glyphStep = bufferLength / length; 89 RetainPtr<CFStringRef> string(AdoptCF, CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, buffer, bufferLength, kCFAllocatorNull));
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
H A D | DecimalNumber.cpp | 102 unsigned DecimalNumber::toStringDecimal(LChar* buffer, unsigned bufferLength) const 104 ASSERT_UNUSED(bufferLength, bufferLength >= bufferLengthForStringDecimal()); 158 unsigned DecimalNumber::toStringExponential(LChar* buffer, unsigned bufferLength) const 160 ASSERT_UNUSED(bufferLength, bufferLength >= bufferLengthForStringExponential());
|
H A D | StringExtras.h | 96 inline char* strnstr(const char* buffer, const char* target, size_t bufferLength) argument 101 for (const char* start = buffer; *start && start + targetLength <= buffer + bufferLength; start++) {
|
H A D | DecimalNumber.h | 89 unsigned toStringDecimal(LChar* buffer, unsigned bufferLength) const; 90 unsigned toStringExponential(LChar* buffer, unsigned bufferLength) const;
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
H A D | PipedInputStreamTest.java | 414 int bufferLength = mpis.bufferLength(); 415 assertEquals(100, bufferLength); 439 int bufferLength = mpis.bufferLength(); 440 assertEquals(100, bufferLength); 468 public int bufferLength() { method in class:PipedInputStreamTest.MockPipedInputStream
|
/external/chromium_org/third_party/icu/source/common/ |
H A D | unames.c | 236 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) { \ 237 if((bufferLength)>0) { \ 239 --(bufferLength); \ 261 char *buffer, uint16_t bufferLength) { 300 WRITE_CHAR(buffer, bufferLength, bufferPos, c); 315 WRITE_CHAR(buffer, bufferLength, bufferPos, c); 332 WRITE_CHAR(buffer, bufferLength, bufferPos, c); 339 if(bufferLength>0) { 469 static uint16_t getExtName(uint32_t code, char *buffer, uint16_t bufferLength) { argument 476 WRITE_CHAR(buffer, bufferLength, lengt 259 expandName(UCharNames *names, const uint8_t *name, uint16_t nameLength, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument 588 expandGroupName(UCharNames *names, const uint16_t *group, uint16_t lineNumber, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument 599 getName(UCharNames *names, uint32_t code, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument 782 writeFactorSuffix(const uint16_t *factors, uint16_t count, const char *s, uint32_t code, uint16_t indexes[8], const char *elementBases[8], const char *elements[8], char *buffer, uint16_t bufferLength) argument 861 getAlgName(AlgorithmicRange *range, uint32_t code, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument 1455 u_charName(UChar32 code, UCharNameChoice nameChoice, char *buffer, int32_t bufferLength, UErrorCode *pErrorCode) argument [all...] |
H A D | loclikely.cpp | 34 * @param bufferLength The length of the output buffer 40 int32_t bufferLength, 61 else if (resLen >= bufferLength) { 87 * @param bufferLength The length of the output buffer. This is an input/ouput parameter. 94 int32_t* bufferLength) { 96 if (*bufferLength > 0) { 97 buffer[*bufferLength] = '_'; 98 ++(*bufferLength); 102 &buffer[*bufferLength], 106 *bufferLength 38 findLikelySubtags(const char* localeID, char* buffer, int32_t bufferLength, UErrorCode* err) argument 90 appendTag( const char* tag, int32_t tagLength, char* buffer, int32_t* bufferLength) argument [all...] |
/external/icu4c/common/ |
H A D | unames.cpp | 238 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) { \ 239 if((bufferLength)>0) { \ 241 --(bufferLength); \ 263 char *buffer, uint16_t bufferLength) { 302 WRITE_CHAR(buffer, bufferLength, bufferPos, c); 317 WRITE_CHAR(buffer, bufferLength, bufferPos, c); 334 WRITE_CHAR(buffer, bufferLength, bufferPos, c); 341 if(bufferLength>0) { 471 static uint16_t getExtName(uint32_t code, char *buffer, uint16_t bufferLength) { argument 478 WRITE_CHAR(buffer, bufferLength, lengt 261 expandName(UCharNames *names, const uint8_t *name, uint16_t nameLength, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument 590 expandGroupName(UCharNames *names, const uint16_t *group, uint16_t lineNumber, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument 601 getName(UCharNames *names, uint32_t code, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument 796 writeFactorSuffix(const uint16_t *factors, uint16_t count, const char *s, uint32_t code, uint16_t indexes[8], const char *elementBases[8], const char *elements[8], char *buffer, uint16_t bufferLength) argument 875 getAlgName(AlgorithmicRange *range, uint32_t code, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument 1469 u_charName(UChar32 code, UCharNameChoice nameChoice, char *buffer, int32_t bufferLength, UErrorCode *pErrorCode) argument [all...] |
H A D | loclikely.cpp | 34 * @param bufferLength The length of the output buffer 40 int32_t bufferLength, 61 else if (resLen >= bufferLength) { 87 * @param bufferLength The length of the output buffer. This is an input/ouput parameter. 94 int32_t* bufferLength) { 96 if (*bufferLength > 0) { 97 buffer[*bufferLength] = '_'; 98 ++(*bufferLength); 102 &buffer[*bufferLength], 106 *bufferLength 38 findLikelySubtags(const char* localeID, char* buffer, int32_t bufferLength, UErrorCode* err) argument 90 appendTag( const char* tag, int32_t tagLength, char* buffer, int32_t* bufferLength) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
H A D | V8NPUtils.cpp | 114 int bufferLength = str->Utf8Length() + 1; local 115 if (bufferLength <= kStackBufferSize) { 119 // WriteUtf8 is guaranteed to generate a null-terminated string because bufferLength is constructed to be one greater 122 str->WriteUtf8(stackBuffer, bufferLength);
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/chromium/ |
H A D | GlyphPageTreeNodeChromiumWin.cpp | 239 unsigned bufferLength, const SimpleFontData* fontData) 244 if (bufferLength == length) 247 if (bufferLength == 2 * length) { 238 fill(unsigned offset, unsigned length, UChar* characterBuffer, unsigned bufferLength, const SimpleFontData* fontData) argument
|
/external/chromium_org/third_party/WebKit/Source/core/platform/image-decoders/ |
H A D | ImageDecoder.cpp | 35 static unsigned copyFromSharedBuffer(char* buffer, unsigned bufferLength, const SharedBuffer& sharedBuffer, unsigned offset) argument 40 unsigned bytesToCopy = std::min(bufferLength - bytesExtracted, moreDataLength); 43 if (bytesExtracted == bufferLength)
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
H A D | SVGFontData.h | 42 virtual bool fillSVGGlyphPage(GlyphPage*, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData*) const;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/ |
H A D | GlyphPageTreeNode.cpp | 122 static bool fill(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument 126 return additionalFontData->fillSVGGlyphPage(pageToFill, offset, length, buffer, bufferLength, fontData); 128 bool hasGlyphs = pageToFill->fill(offset, length, buffer, bufferLength, fontData); 156 unsigned bufferLength; local 161 bufferLength = GlyphPage::size; 196 bufferLength = GlyphPage::size * 2; 212 haveGlyphs = fill(m_page.get(), 0, GlyphPage::size, buffer, bufferLength, static_cast<const SimpleFontData*>(fontData));
|
/external/chromium_org/third_party/WebKit/Source/core/platform/text/ |
H A D | LocaleICU.cpp | 83 int32_t bufferLength = unum_getSymbol(m_numberFormat, symbol, 0, 0, &status); local 87 StringBuffer<UChar> buffer(bufferLength); 89 unum_getSymbol(m_numberFormat, symbol, buffer.characters(), bufferLength, &status); 98 int32_t bufferLength = unum_getTextAttribute(m_numberFormat, tag, 0, 0, &status); local 102 StringBuffer<UChar> buffer(bufferLength); 104 unum_getTextAttribute(m_numberFormat, tag, buffer.characters(), bufferLength, &status);
|
/external/aac/libSBRenc/src/ |
H A D | ton_corr.h | 118 INT bufferLength; /*!< Length of the r and i buffers. */ member in struct:__anon268
|