/external/jsilver/src/com/google/clearsilver/jsilver/output/ |
InstanceOutputBufferProvider.java | 24 private final int bufferSize; 26 public InstanceOutputBufferProvider(int bufferSize) { 27 this.bufferSize = bufferSize; 32 return new StringBuilder(bufferSize);
|
ThreadLocalOutputBufferProvider.java | 27 public ThreadLocalOutputBufferProvider(final int bufferSize) { 30 return new StringBuilder(bufferSize);
|
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/ |
BufferedResourceLoader.java | 33 private int bufferSize = DEFAULT_BUFFER_SIZE; 40 return reader == null ? null : new BufferedReader(reader, bufferSize); 44 return bufferSize; 47 public void setBufferSize(int bufferSize) { 48 this.bufferSize = bufferSize;
|
/external/qemu/distrib/sdl-1.2.12/src/audio/macosx/ |
SDL_coreaudio.h | 37 UInt32 bufferSize; 44 #define bufferSize (this->hidden->bufferSize)
|
/frameworks/base/opengl/libs/GLES2_dbg/test/ |
test_main.cpp | 61 const unsigned int bufferSize = 512; 63 void * const buffer0 = dbg.GetReadPixelsBuffer(bufferSize); 65 for (unsigned int i = 0; i < bufferSize / sizeof(unsigned int); i++) { 71 void * const buffer1 = dbg.GetReadPixelsBuffer(bufferSize); 74 for (unsigned int i = 0; i < bufferSize / sizeof(unsigned int); i++) { 80 void * const buffer2 = dbg.GetReadPixelsBuffer(bufferSize); 82 for (unsigned int i = 0; i < bufferSize / sizeof(unsigned int); i++) 86 void * const buffer3 = dbg.GetReadPixelsBuffer(bufferSize); 88 for (unsigned int i = 0; i < bufferSize / sizeof(unsigned int); i++) 92 void * const buffer4 = dbg.GetReadPixelsBuffer(bufferSize); [all...] |
/external/proguard/src/proguard/io/ |
ManifestRewriter.java | 64 private int bufferSize = 0; 79 if (bufferIndex < bufferSize) 92 bufferSize = 0; 93 buffer[bufferSize++] = '\n'; 99 bufferSize = 0; 105 buffer[bufferSize++] = (char)c2; 113 bufferSize = 0; 117 buffer[bufferSize++] = (char)c3;
|
/external/webkit/Source/WebCore/webaudio/ |
JavaScriptAudioNode.idl | 38 readonly attribute long bufferSize;
|
JavaScriptAudioNode.cpp | 45 PassRefPtr<JavaScriptAudioNode> JavaScriptAudioNode::create(AudioContext* context, double sampleRate, size_t bufferSize, unsigned numberOfInputs, unsigned numberOfOutputs) 47 return adoptRef(new JavaScriptAudioNode(context, sampleRate, bufferSize, numberOfInputs, numberOfOutputs)); 50 JavaScriptAudioNode::JavaScriptAudioNode(AudioContext* context, double sampleRate, size_t bufferSize, unsigned numberOfInputs, unsigned numberOfOutputs) 54 , m_bufferSize(bufferSize) 59 switch (bufferSize) { 67 m_bufferSize = bufferSize; 104 m_inputBuffers.append(AudioBuffer::create(2, bufferSize(), sampleRate)); 105 m_outputBuffers.append(AudioBuffer::create(2, bufferSize(), sampleRate)); 150 bool buffersAreGood = inputBuffer && outputBuffer && bufferSize() == inputBuffer->length() && bufferSize() == outputBuffer->length( [all...] |
/external/webkit/Tools/DumpRenderTree/mac/PerlSupport/ |
DumpRenderTreeSupport.c | 32 size_t bufferSize = sizeof(info); 33 if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), &info, &bufferSize, 0, 0)) {
|
/cts/tests/tests/media/src/android/media/cts/ |
AudioRecord_BufferSizeTest.java | 63 int bufferSize = AudioRecord.getMinBufferSize(sampleRateInHz, CHANNEL_CONFIG, AUDIO_FORMAT); 64 byte[] buffer = new byte[bufferSize]; 65 assertTrue(bufferSize > 0); 67 createAudioRecord(sampleRateInHz, bufferSize); 73 assertTrue(mAudioRecord.read(buffer, 0, bufferSize) > 0); 81 private void createAudioRecord(final int sampleRateInHz, final int bufferSize) { 83 CHANNEL_CONFIG, AUDIO_FORMAT, bufferSize);
|
/development/tools/emulator/system/libqemu/ |
test_guest_2.c | 57 int bufferSize = 16384; 132 bufferSize = size; 152 buffer = malloc(bufferSize); 153 buffer2 = malloc(bufferSize); 155 for (nn = 0; nn < bufferSize; nn++) { 163 int ret = pipe_send(pipe, buffer, bufferSize); 167 fprintf(stderr,"%d: Sending %d bytes failed: %s\n", count, bufferSize, strerror(errno)); 174 len = bufferSize; 189 if (memcmp(buffer, buffer2, bufferSize) != 0) { 194 for (nn = 0; nn < bufferSize; ) { [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
FontPlatformDataWin.cpp | 58 UINT bufferSize = GetOutlineTextMetrics(hdc, 0, NULL); 60 ASSERT_WITH_MESSAGE(bufferSize, "Bitmap fonts not supported with CoreGraphics."); 62 if (bufferSize) { 63 OUTLINETEXTMETRICW* metrics = (OUTLINETEXTMETRICW*)malloc(bufferSize); 65 GetOutlineTextMetricsW(hdc, bufferSize, metrics);
|
FontPlatformDataCGWin.cpp | 54 DWORD bufferSize = GetFontData(dc, 'eman', 0, NULL, 0); // "name" backwards 55 if (bufferSize == 0 || bufferSize == GDI_ERROR || bufferSize > cMaxNameTableSize) 58 Vector<BYTE> bufferVector(bufferSize); 60 if (GetFontData(dc, 'eman', 0, buffer, bufferSize) == GDI_ERROR) 63 if (bufferSize < 6) 68 if (bufferSize < stringsOffset) 76 if (bufferSize < offset + 12) 89 if (bufferSize < stringsOffset + nameOffset + length [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/ |
CodedInputStream.java | 201 if (size <= (bufferSize - bufferPos) && size > 0) { 266 if (size <= (bufferSize - bufferPos) && size > 0) { 480 private int bufferSize; 511 bufferSize = off + len; 519 bufferSize = 0; 606 bufferSize += bufferSizeAfterLimit; 607 final int bufferEnd = totalBytesRetired + bufferSize; 611 bufferSize -= bufferSizeAfterLimit; 646 return bufferPos == bufferSize && !refillBuffer(false); 665 if (bufferPos < bufferSize) { [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
CodedInputStreamMicro.java | 198 if (size <= (bufferSize - bufferPos) && size > 0) { 240 if (size <= (bufferSize - bufferPos) && size > 0) { 436 private int bufferSize; 465 bufferSize = off + len; 472 bufferSize = 0; 550 bufferSize += bufferSizeAfterLimit; 551 final int bufferEnd = totalBytesRetired + bufferSize; 555 bufferSize -= bufferSizeAfterLimit; 590 return bufferPos == bufferSize && !refillBuffer(false); 601 if (bufferPos < bufferSize) { [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_ASimpleOutputStream.java | 34 public Support_ASimpleOutputStream(int bufferSize) { 35 buf = new byte[bufferSize]; 37 size = bufferSize;
|
/external/icu4c/tools/toolutil/ |
flagparser.c | 16 static void extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, UErrorCode *status); 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 *status) { 99 offset = getFlagOffset(buffer, bufferSize); 127 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { 130 for (offset = 0; offset < bufferSize;offset++) { 137 if (offset == bufferSize || (offset - 1) == bufferSize) {
|
/external/webkit/Source/WebKit2/Platform/CoreIPC/ |
ArgumentDecoder.cpp | 34 ArgumentDecoder::ArgumentDecoder(const uint8_t* buffer, size_t bufferSize) 36 initialize(buffer, bufferSize); 39 ArgumentDecoder::ArgumentDecoder(const uint8_t* buffer, size_t bufferSize, Deque<Attachment>& attachments) 41 initialize(buffer, bufferSize); 59 void ArgumentDecoder::initialize(const uint8_t* buffer, size_t bufferSize) 61 m_buffer = static_cast<uint8_t*>(fastMalloc(bufferSize)); 63 m_bufferEnd = m_buffer + bufferSize; 64 memcpy(m_buffer, buffer, bufferSize); 127 bool ArgumentDecoder::decodeBytes(uint8_t* buffer, size_t bufferSize) 134 ASSERT(size == bufferSize); [all...] |
/external/webkit/Source/WebCore/platform/graphics/gtk/ |
ImageBufferGtk.cpp | 53 gsize bufferSize; 58 success = gdk_pixbuf_save_to_buffer(pixbuf.get(), &buffer.outPtr(), &bufferSize, 61 success = gdk_pixbuf_save_to_buffer(pixbuf.get(), &buffer.outPtr(), &bufferSize, type.utf8().data(), &error, NULL); 68 base64Encode(reinterpret_cast<const char*>(buffer.get()), bufferSize, out);
|
/external/webkit/Source/WebCore/platform/network/ |
SocketStreamHandleBase.cpp | 39 const unsigned int bufferSize = 100 * 1024 * 1024; 58 if (m_buffer.size() + length > bufferSize) { 70 if (m_buffer.size() + length - bytesWritten > bufferSize) { 103 ASSERT(m_buffer.size() - bytesWritten <= bufferSize);
|
/external/expat/tests/benchmark/ |
benchmark.c | 21 "usage: %s [-n] filename bufferSize nr_of_loops\n", prog); 31 int nrOfLoops, bufferSize, fileSize, i, isFinal; 61 bufferSize = atoi (argv[j + 2]); 63 if (bufferSize <= 0 || nrOfLoops <= 0) { 86 if (parseBufferSize <= bufferSize) 89 parseBufferSize = bufferSize; 100 XMLBufPtr += bufferSize; 112 nrOfLoops, bufferSize, cpuTime / (double) nrOfLoops);
|
/libcore/dalvik/src/main/java/dalvik/system/ |
VMDebug.java | 163 * @param bufferSize the maximum size of both files combined. If passed 169 int bufferSize, int flags) { 175 startMethodTracingNative(traceFileName, null, bufferSize, flags); 184 FileDescriptor fd, int bufferSize, int flags) 190 startMethodTracingNative(traceFileName, fd, bufferSize, flags); 198 public static void startMethodTracingDdms(int bufferSize, int flags) { 199 startMethodTracingNative(null, null, bufferSize, flags); 206 FileDescriptor fd, int bufferSize, int flags);
|
/frameworks/base/core/java/android/ddm/ |
DdmHandleThread.java | 146 int bufferSize = 0; 148 bufferSize += 4; // version, flags, whatever 149 bufferSize += 4; // thread ID 150 bufferSize += 4; // frame count 152 bufferSize += 4 + elem.getClassName().length() * 2; 153 bufferSize += 4 + elem.getMethodName().length() * 2; 154 bufferSize += 4; 156 bufferSize += elem.getFileName().length() * 2; 157 bufferSize += 4; // line number 160 ByteBuffer out = ByteBuffer.allocate(bufferSize); [all...] |
/external/webkit/Source/WebKit2/WebProcess/WebPage/ |
DecoderAdapter.cpp | 33 DecoderAdapter::DecoderAdapter(const uint8_t* buffer, size_t bufferSize) 34 : m_decoder(buffer, bufferSize)
|
/external/srec/portable/src/ |
PFile.c | 198 size_t i, bufferSize, count, totalRead = 0; 225 bufferSize = count - i; 228 if (bufferSize < MAX_INT_DIGITS) 230 count = pfread(number + bufferSize, sizeof(LCHAR), MAX_INT_DIGITS - bufferSize, self); 231 bufferSize += count; 233 if (count < MAX_INT_DIGITS - bufferSize && pferror(self)) 242 for (i = 0; i < bufferSize && !LISSPACE(number[i]); ++i); 243 if (i < bufferSize) 246 if (PFileSeek(self, - (int)(bufferSize - i), SEEK_CUR) [all...] |