HomeSort by relevance Sort by last modified time
    Searched refs:bufferLength (Results 1 - 25 of 71) sorted by null

1 2 3

  /external/chromium_org/third_party/WebKit/Source/platform/audio/
ReverbInputBuffer.cpp 45 size_t bufferLength = m_buffer.size();
46 bool isCopySafe = m_writeIndex + numberOfFrames <= bufferLength;
54 ASSERT(m_writeIndex <= bufferLength);
56 if (m_writeIndex >= bufferLength)
62 size_t bufferLength = m_buffer.size();
63 bool isPointerGood = readIndex && *readIndex >= 0 && *readIndex + numberOfFrames <= bufferLength;
76 *readIndex = (*readIndex + numberOfFrames) % bufferLength;
ReverbAccumulationBuffer.cpp 50 size_t bufferLength = m_buffer.size();
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();
85 size_t writeIndex = (*readIndex + delayFrames) % bufferLength;
88 *readIndex = (*readIndex + numberOfFrames) % bufferLength;
90 size_t framesAvailable = bufferLength - writeIndex;
96 bool isSafe = writeIndex <= bufferLength && numberOfFrames1 + writeIndex <= bufferLength && numberOfFrames2 <= bufferLength
    [all...]
AudioDelayDSPKernel.cpp 57 size_t bufferLength = bufferLengthForDelay(maxDelayTime, sampleRate);
58 ASSERT(bufferLength);
59 if (!bufferLength)
62 m_buffer.allocate(bufferLength);
92 size_t bufferLength = m_buffer.size();
95 ASSERT(bufferLength);
96 if (!bufferLength)
138 double readPosition = m_writeIndex + bufferLength - desiredDelayFrames;
139 if (readPosition >= bufferLength)
140 readPosition -= bufferLength;
    [all...]
  /frameworks/av/media/mtp/
MtpUtils.h 25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
MtpUtils.cpp 71 void formatDateTime(time_t seconds, char* buffer, int bufferLength) {
75 snprintf(buffer, bufferLength, "%04d%02d%02dT%02d%02d%02d",
  /external/chromium_org/content/shell/tools/plugin/Tests/
PluginScriptableObjectOverridesAllProperties.cpp 65 int bufferLength = strlen(propertyString) + strlen(message) + 1;
66 char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength));
67 snprintf(resultBuffer, bufferLength, "%s%s", message, propertyString);
SlowNPPNew.cpp 64 int bufferLength = strlen(propertyString) + strlen(message) + 1;
65 char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength));
66 snprintf(resultBuffer, bufferLength, "%s%s", message, propertyString);
  /external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/
Transport.java 62 private int bufferLength = ServiceConnection.DEFAULT_BUFFER_SIZE;
76 public Transport(String url, int timeout, int bufferLength) {
79 this.bufferLength = bufferLength;
101 public Transport(Proxy proxy, String url, int timeout, int bufferLength) {
105 this.bufferLength = bufferLength;
124 ByteArrayOutputStream bos = new ByteArrayOutputStream(bufferLength);
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
SimpleFontDataCoreText.cpp 75 static bool shouldUseCoreText(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
83 if (bufferLength >= 2 && U_IS_SURROGATE(buffer[0]) && fontData->hasVerticalGlyphs()) {
91 for (unsigned i = 0; i < bufferLength; ++i) {
100 bool SimpleFontData::fillGlyphPage(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength) const
104 Vector<CGGlyph, 512> glyphs(bufferLength);
105 if (!shouldUseCoreText(buffer, bufferLength, this)) {
106 CGFontGetGlyphsForUnichars(platformData().cgFont(), buffer, glyphs.data(), bufferLength);
114 && CTFontGetGlyphsForCharacters(platformData().ctFont(), buffer, glyphs.data(), bufferLength)) {
117 unsigned glyphStep = bufferLength / length;
126 RetainPtr<CFStringRef> string(AdoptCF, CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, buffer, bufferLength, kCFAllocatorNull))
    [all...]
  /libcore/luni/src/main/java/java/io/
CharArrayReader.java 91 int bufferLength = buf.length;
92 this.count = offset + length < bufferLength ? length : bufferLength;
  /external/chromium_org/third_party/WebKit/Source/modules/webaudio/
ConvolverNode.cpp 133 size_t bufferLength = buffer->length();
136 bool isBufferGood = numberOfChannels > 0 && numberOfChannels <= 4 && bufferLength;
143 RefPtr<AudioBus> bufferBus = AudioBus::create(numberOfChannels, bufferLength, false);
145 bufferBus->setChannelMemory(i, buffer->getChannelData(i)->data(), bufferLength);
AudioBufferSourceNode.cpp 202 size_t bufferLength = buffer()->length();
207 unsigned endFrame = m_isGrain ? AudioUtilities::timeToSampleFrame(m_grainOffset + m_grainDuration, bufferSampleRate) : bufferLength;
216 if (endFrame > bufferLength)
217 endFrame = bufferLength;
286 if (readIndex2 >= bufferLength) {
296 if (readIndex >= bufferLength || readIndex2 >= bufferLength)
  /external/chromium_org/third_party/WebKit/Source/wtf/
StringExtras.h 96 inline char* strnstr(const char* buffer, const char* target, size_t bufferLength)
101 for (const char* start = buffer; *start && start + targetLength <= buffer + bufferLength; start++) {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
PipedInputStreamTest.java 390 int bufferLength = mpis.bufferLength();
391 assertEquals(100, bufferLength);
415 int bufferLength = mpis.bufferLength();
416 assertEquals(100, bufferLength);
444 public int bufferLength() {
  /libcore/luni/src/main/java/java/util/
Scanner.java 106 private int bufferLength = 0;
323 matcher.region(findStartIndex, bufferLength);
337 horizonLineSeparator = bufferLength;
368 if (horizonLineSeparator != bufferLength
457 // min( bufferLength, findStartIndex + horizon).
459 int findEndIndex = Math.min(horizonEndIndex, bufferLength);
461 boolean isHorizonInBuffer = (horizonEndIndex <= bufferLength);
    [all...]
  /external/chromium_org/third_party/webrtc/modules/media_file/source/
media_file_utility.h 67 // Note: bufferLength must be exactly one frame.
72 // Write one video frame, i.e. the bufferLength first bytes of videoBuffer,
114 const uint32_t bufferLength);
122 // Write one audio frame, i.e. the bufferLength first bytes of audioBuffer,
128 const uint32_t bufferLength);
158 // Write one 10ms audio frame, i.e. the bufferLength first bytes of
164 uint32_t bufferLength);
185 // Write one audio frame, i.e. the bufferLength first bytes of audioBuffer,
189 // Note: bufferLength must be exactly one frame.
192 const uint32_t bufferLength);
    [all...]
media_file_impl.h 62 const uint32_t bufferLength) OVERRIDE;
64 const uint32_t bufferLength) OVERRIDE;
163 // Write one frame, i.e. the bufferLength first bytes of audioBuffer,
167 const uint32_t bufferLength,
  /external/chromium_org/third_party/webrtc/modules/media_file/interface/
media_file.h 128 // Write one audio frame, i.e. the bufferLength first bytes of audioBuffer,
131 // Note: bufferLength must be exactly one frame.
134 const uint32_t bufferLength) = 0;
136 // Write one video frame, i.e. the bufferLength first bytes of videoBuffer,
144 const uint32_t bufferLength) = 0;
  /external/chromium_org/third_party/icu/source/common/
unames.cpp 215 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) { \
216 if((bufferLength)>0) { \
218 --(bufferLength); \
240 char *buffer, uint16_t bufferLength) {
279 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
294 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
311 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
318 if(bufferLength>0) {
448 static uint16_t getExtName(uint32_t code, char *buffer, uint16_t bufferLength) {
455 WRITE_CHAR(buffer, bufferLength, length, '<')
    [all...]
  /external/icu/icu4c/source/common/
unames.cpp 215 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) { \
216 if((bufferLength)>0) { \
218 --(bufferLength); \
240 char *buffer, uint16_t bufferLength) {
279 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
294 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
311 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
318 if(bufferLength>0) {
448 static uint16_t getExtName(uint32_t code, char *buffer, uint16_t bufferLength) {
455 WRITE_CHAR(buffer, bufferLength, length, '<')
    [all...]
  /external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
V8NPUtils.cpp 115 int bufferLength = str->Utf8Length() + 1;
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/image-decoders/
ImageDecoder.cpp 35 static unsigned copyFromSharedBuffer(char* buffer, unsigned bufferLength, const SharedBuffer& sharedBuffer, unsigned offset)
40 unsigned bytesToCopy = std::min(bufferLength - bytesExtracted, moreDataLength);
43 if (bytesExtracted == bufferLength)
  /external/chromium_org/third_party/webrtc/modules/utility/source/
file_recorder_impl.h 89 uint16_t bufferLength,
154 uint16_t bufferLength,
  /frameworks/base/core/java/android/hardware/usb/
UsbDeviceConnection.java 246 final int bufferLength = (buffer != null ? buffer.length : 0);
247 if (start < 0 || start + length > bufferLength) {
  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGFontData.h 47 virtual bool fillSVGGlyphPage(GlyphPage*, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData*) const OVERRIDE;

Completed in 1066 milliseconds

1 2 3