Searched defs:bufferLength (Results 1 - 25 of 40) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
H A DGlyphPageTreeNodeSkia.cpp43 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
45 if (SkUTF16_IsHighSurrogate(buffer[bufferLength-1])) {
/external/chromium_org/third_party/WebKit/Source/platform/audio/
H A DReverbInputBuffer.cpp45 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 DReverbAccumulationBuffer.cpp50 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...]
H A DAudioDelayDSPKernel.cpp58 size_t bufferLength = bufferLengthForDelay(maxDelayTime, sampleRate);
59 ASSERT(bufferLength);
60 if (!bufferLength)
63 m_buffer.allocate(bufferLength);
93 size_t bufferLength = m_buffer.size(); local
96 ASSERT(bufferLength);
97 if (!bufferLength)
139 double readPosition = m_writeIndex + bufferLength - desiredDelayFrames;
140 if (readPosition >= bufferLength)
141 readPosition -= bufferLength;
[all...]
/external/chromium_org/third_party/WebKit/Source/testing/plugin/Tests/
H A DPluginScriptableObjectOverridesAllProperties.cpp61 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 DSlowNPPNew.cpp60 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/wtf/
H A DStringExtras.h96 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++) {
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DConvolverNode.cpp125 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 DAudioBufferSourceNode.cpp205 size_t bufferLength = buffer()->length(); local
210 unsigned endFrame = m_isGrain ? AudioUtilities::timeToSampleFrame(m_grainOffset + m_grainDuration, bufferSampleRate) : bufferLength;
219 if (endFrame > bufferLength)
220 endFrame = bufferLength;
289 if (readIndex2 >= bufferLength) {
299 if (readIndex >= bufferLength || readIndex2 >= bufferLength)
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
H A DGlyphPageTreeNodeMac.cpp44 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/aac/libSBRenc/src/
H A Dton_corr.h118 INT bufferLength; /*!< Length of the r and i buffers. */ member in struct:__anon268
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
H A DV8NPUtils.cpp115 int bufferLength = str->Utf8Length() + 1; local
116 if (bufferLength <= kStackBufferSize) {
120 // WriteUtf8 is guaranteed to generate a null-terminated string because bufferLength is constructed to be one greater
123 str->WriteUtf8(stackBuffer, bufferLength);
/external/chromium_org/third_party/WebKit/Source/platform/fonts/win/
H A DGlyphPageTreeNodeWin.cpp241 unsigned bufferLength, const SimpleFontData* fontData)
246 if (bufferLength == length)
249 if (bufferLength == 2 * length) {
240 fill(unsigned offset, unsigned length, UChar* characterBuffer, unsigned bufferLength, const SimpleFontData* fontData) argument
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/
H A DImageDecoder.cpp34 static unsigned copyFromSharedBuffer(char* buffer, unsigned bufferLength, const SharedBuffer& sharedBuffer, unsigned offset) argument
39 unsigned bytesToCopy = std::min(bufferLength - bytesExtracted, moreDataLength);
42 if (bytesExtracted == bufferLength)
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DPipedInputStreamTest.java414 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/WebKit/Source/core/svg/
H A DSVGFontData.cpp226 bool SVGFontData::fillSVGGlyphPage(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) const argument
237 if (bufferLength == length)
240 ASSERT(bufferLength == 2 * length);
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
H A DGlyphPageTreeNode.cpp121 static bool fill(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
125 return fontData->customFontData()->fillSVGGlyphPage(pageToFill, offset, length, buffer, bufferLength, fontData);
127 bool hasGlyphs = pageToFill->fill(offset, length, buffer, bufferLength, fontData);
155 unsigned bufferLength; local
160 bufferLength = GlyphPage::size;
195 bufferLength = GlyphPage::size * 2;
211 haveGlyphs = fill(m_page.get(), 0, GlyphPage::size, buffer, bufferLength, static_cast<const SimpleFontData*>(fontData));
/external/chromium_org/third_party/WebKit/Source/platform/text/
H A DLocaleICU.cpp81 int32_t bufferLength = unum_getSymbol(m_numberFormat, symbol, 0, 0, &status); local
85 StringBuffer<UChar> buffer(bufferLength);
87 unum_getSymbol(m_numberFormat, symbol, buffer.characters(), bufferLength, &status);
96 int32_t bufferLength = unum_getTextAttribute(m_numberFormat, tag, 0, 0, &status); local
100 StringBuffer<UChar> buffer(bufferLength);
102 unum_getTextAttribute(m_numberFormat, tag, buffer.characters(), bufferLength, &status);
/external/chromium_org/third_party/WebKit/Source/core/fetch/
H A DTextResourceDecoder.cpp199 size_t bufferLength = m_buffer.size(); local
201 size_t buf1Len = bufferLength;
230 if (lengthOfBOM || bufferLength + len >= 4)
/external/chromium_org/third_party/icu/source/common/
H A Dloclikely.cpp34 * @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...]
H A Dunames.c236 #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...]
/external/icu4c/common/
H A Dloclikely.cpp34 * @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/smack/src/org/jivesoftware/smack/util/
H A DBase64.java1230 private int bufferLength; // Length of buffer (3 or 4) field in class:Base64.InputStream
1277 this.bufferLength = encode ? 4 : 3;
1278 this.buffer = new byte[ bufferLength ];
1392 if( position >= bufferLength )
1466 private int bufferLength; field in class:Base64.OutputStream
1512 this.bufferLength = encode ? 3 : 4;
1513 this.buffer = new byte[ bufferLength ];
1549 if( position >= bufferLength ) // Enough to encode.
1551 out.write( encode3to4( b4, buffer, bufferLength, options ) );
1571 if( position >= bufferLength ) // Enoug
[all...]
/external/chromium_org/third_party/WebKit/Source/core/editing/
H A DTextIterator.cpp2005 unsigned bufferLength = 0; local
2011 bufferLength += it.length();
2014 if (!bufferLength)
/external/chromium_org/third_party/WebKit/Source/core/rendering/
H A DRenderListMarker.cpp345 const int bufferLength = 4 * groupLength; local
346 AbstractCJKChar buffer[bufferLength] = { noChar };
393 UChar characters[bufferLength];
395 for (int i = 0; i < bufferLength; ++i) {

Completed in 6578 milliseconds

12