Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 129) sorted by relevance

123456

/external/chromium/net/websockets/
Dwebsocket_frame_handler.cc39 int buffer_size = 0; in UpdateCurrentBuffer() local
42 buffer_size = in UpdateCurrentBuffer()
44 if (buffer_size <= 0) in UpdateCurrentBuffer()
45 return buffer_size; in UpdateCurrentBuffer()
47 original_current_buffer_size_ = buffer_size; in UpdateCurrentBuffer()
52 buffer_size = buffer->size(); in UpdateCurrentBuffer()
56 current_buffer_size_ = buffer_size; in UpdateCurrentBuffer()
57 return buffer_size; in UpdateCurrentBuffer()
67 int buffer_size = remaining_size; in ReleaseCurrentBuffer() local
70 buffer_size += next_buffer->size(); in ReleaseCurrentBuffer()
[all …]
/external/chromium/net/tools/flip_server/
Dring_buffer.cc10 RingBuffer::RingBuffer(int buffer_size) in RingBuffer() argument
11 : buffer_(new char[buffer_size]), in RingBuffer()
12 buffer_size_(buffer_size), in RingBuffer()
246 void RingBuffer::Resize(int buffer_size) { in Resize() argument
247 CHECK_GE(buffer_size, 0); in Resize()
248 if (buffer_size == buffer_size_) return; in Resize()
250 char* new_buffer = new char[buffer_size]; in Resize()
251 if (buffer_size < bytes_used_) { in Resize()
253 AdvanceReadablePtr(bytes_used_ - buffer_size); in Resize()
263 if (size > buffer_size) { in Resize()
[all …]
Dring_buffer.h28 explicit RingBuffer(int buffer_size);
36 void Resize(int buffer_size);
93 int buffer_size() const { return buffer_size_; } in buffer_size() function
/external/libpng/
Dpngpread.c32 png_bytep buffer, png_size_t buffer_size) in png_process_data() argument
37 png_push_restore_buffer(png_ptr, buffer, buffer_size); in png_process_data()
39 while (png_ptr->buffer_size) in png_process_data()
106 png_ptr->buffer_size = 0; in png_process_some_data()
124 if (png_ptr->buffer_size < num_to_check) in png_push_read_sig()
126 num_to_check = png_ptr->buffer_size; in png_push_read_sig()
221 if (png_ptr->buffer_size < 8) in png_push_read_chunk()
244 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk()
255 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk()
270 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk()
[all …]
/external/qemu/distrib/libpng-1.2.19/
Dpngpread.c29 png_bytep buffer, png_size_t buffer_size) in png_process_data() argument
32 png_push_restore_buffer(png_ptr, buffer, buffer_size); in png_process_data()
34 while (png_ptr->buffer_size) in png_process_data()
92 png_ptr->buffer_size = 0; in png_process_some_data()
110 if (png_ptr->buffer_size < num_to_check) in png_push_read_sig()
112 num_to_check = png_ptr->buffer_size; in png_push_read_sig()
206 if (png_ptr->buffer_size < 8) in png_push_read_chunk()
225 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk()
234 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk()
247 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk()
[all …]
/external/chromium/net/base/
Dfilter.cc73 int buffer_size) { in FactoryForTests() argument
80 buffer_size, filter_list); in FactoryForTests()
350 Filter* Filter::InitGZipFilter(FilterType type_id, int buffer_size) { in InitGZipFilter() argument
352 gz_filter->InitBuffer(buffer_size); in InitGZipFilter()
359 int buffer_size) { in InitSdchFilter() argument
361 sdch_filter->InitBuffer(buffer_size); in InitSdchFilter()
368 int buffer_size, in PrependNewFilter() argument
375 first_filter.reset(InitGZipFilter(type_id, buffer_size)); in PrependNewFilter()
379 first_filter.reset(InitSdchFilter(type_id, filter_context, buffer_size)); in PrependNewFilter()
392 void Filter::InitBuffer(int buffer_size) { in InitBuffer() argument
[all …]
Dfilter.h246 int buffer_size,
251 static Filter* InitGZipFilter(FilterType type_id, int buffer_size);
254 int buffer_size);
263 int buffer_size);
Dio_buffer.cc15 IOBuffer::IOBuffer(int buffer_size) { in IOBuffer() argument
16 DCHECK(buffer_size > 0); in IOBuffer()
17 data_ = new char[buffer_size]; in IOBuffer()
/external/qemu/
Dbuffered_file.c35 size_t buffer_size; member
51 if (size > (s->buffer_capacity - s->buffer_size)) { in buffered_append()
68 memcpy(s->buffer + s->buffer_size, buf, size); in buffered_append()
69 s->buffer_size += size; in buffered_append()
81 DPRINTF("flushing %zu byte(s) of data\n", s->buffer_size); in buffered_flush()
83 while (offset < s->buffer_size) { in buffered_flush()
87 s->buffer_size - offset); in buffered_flush()
104 DPRINTF("flushed %zu of %zu byte(s)\n", offset, s->buffer_size); in buffered_flush()
105 memmove(s->buffer, s->buffer + offset, s->buffer_size - offset); in buffered_flush()
106 s->buffer_size -= offset; in buffered_flush()
[all …]
/external/webkit/Source/JavaScriptCore/API/tests/
Dminidom.c102 size_t buffer_size = 0; in createStringWithContentsOfFile() local
113 buffer_size += fread(buffer + buffer_size, 1, buffer_capacity - buffer_size, f); in createStringWithContentsOfFile()
114 if (buffer_size == buffer_capacity) { /* guarantees space for trailing '\0' */ in createStringWithContentsOfFile()
120 ASSERT(buffer_size < buffer_capacity); in createStringWithContentsOfFile()
123 buffer[buffer_size] = '\0'; in createStringWithContentsOfFile()
/external/zlib/contrib/iostream3/
Dzfstream.cc23 buffer(NULL), buffer_size(BIGBUFSIZE), own_buffer(true) in gzfilebuf()
197 int bytes_read = gzread(file, buffer, buffer_size); in underflow()
281 buffer_size = 0; in setbuf()
290 buffer_size = n; in setbuf()
314 if (buffer_size > 0) in enable_buffer()
317 buffer = new char_type[buffer_size]; in enable_buffer()
324 this->setp(buffer, buffer + buffer_size - 1); in enable_buffer()
329 buffer_size = SMALLBUFSIZE; in enable_buffer()
330 buffer = new char_type[buffer_size]; in enable_buffer()
341 this->setp(buffer, buffer + buffer_size - 1); in enable_buffer()
[all …]
/external/oprofile/gui/
Doprof_start_config.cpp38 buffer_size(OP_DEFAULT_BUF_SIZE), in config_setting()
66 buffer_size = OP_DEFAULT_BUF_SIZE; in load()
74 buffer_size = op_lexical_cast<unsigned int>(val); in load()
75 if (buffer_size < OP_DEFAULT_BUF_SIZE) in load()
76 buffer_size = OP_DEFAULT_BUF_SIZE; in load()
/external/protobuf/src/google/protobuf/io/
Dgzip_stream.cc50 ZeroCopyInputStream* sub_stream, Format format, int buffer_size) in GzipInputStream() argument
60 if (buffer_size == -1) { in GzipInputStream()
63 output_buffer_length_ = buffer_size; in GzipInputStream()
173 buffer_size(kDefaultBufferSize), in Options()
187 ZeroCopyOutputStream* sub_stream, Format format, int buffer_size) { in GzipOutputStream() argument
190 if (buffer_size != -1) { in GzipOutputStream()
191 options.buffer_size = buffer_size; in GzipOutputStream()
202 input_buffer_length_ = options.buffer_size; in Init()
Dgzip_stream.h73 int buffer_size = -1);
125 int buffer_size; member
151 int buffer_size = -1) GOOGLE_ATTRIBUTE_DEPRECATED;
/external/qemu/distrib/sdl-1.2.12/src/audio/nas/
DSDL_nasaudio.c228 int buffer_size; in NAS_OpenAudio() local
264 buffer_size = spec->freq; in NAS_OpenAudio()
265 if (buffer_size < 4096) in NAS_OpenAudio()
266 buffer_size = 4096; in NAS_OpenAudio()
268 if (buffer_size > 32768) in NAS_OpenAudio()
269 buffer_size = 32768; /* So that the buffer won't get unmanageably big. */ in NAS_OpenAudio()
277 buffer_size, buffer_size / 4, 0, NULL); in NAS_OpenAudio()
/external/oprofile/libop/
Dop_config_24.h30 #define OP_PRE_WATERMARK(buffer_size) \ argument
31 (((buffer_size) / 8) < OP_MIN_PRE_WATERMARK \
33 : (buffer_size) / 8)
/external/qemu/memcheck/
Dmemcheck_util.c90 size_t buffer_size) in memcheck_get_guest_buffer() argument
97 while (buffer_size) { in memcheck_get_guest_buffer()
101 buffer_size--; in memcheck_get_guest_buffer()
108 size_t buffer_size) in memcheck_set_guest_buffer() argument
110 while (buffer_size) { in memcheck_set_guest_buffer()
114 buffer_size--; in memcheck_set_guest_buffer()
/external/tinyalsa/
Dpcm.c150 unsigned int buffer_size; member
164 return pcm->buffer_size; in pcm_get_buffer_size()
356 frames = hw_ptr + pcm->buffer_size - pcm->mmap_control->appl_ptr; in pcm_get_htimestamp()
446 munmap(pcm->mmap_buffer, pcm_frames_to_bytes(pcm, pcm->buffer_size)); in pcm_close()
452 pcm->buffer_size = 0; in pcm_close()
530 pcm->buffer_size = config->period_count * config->period_size; in pcm_open()
533 pcm->mmap_buffer = mmap(NULL, pcm_frames_to_bytes(pcm, pcm->buffer_size), in pcm_open()
537 pcm_frames_to_bytes(pcm, pcm->buffer_size)); in pcm_open()
576 pcm->boundary = sparams.boundary = pcm->buffer_size; in pcm_open()
578 while (pcm->boundary * 2 <= INT_MAX - pcm->buffer_size) in pcm_open()
[all …]
/external/chromium/chrome/browser/autofill/
Dautofill_country.cc387 int32_t* buffer_size) const;
468 int32_t buffer_size = 1000; in AddLocalizedNamesForLocale() local
469 scoped_array<uint8_t> buffer(new uint8_t[buffer_size]); in AddLocalizedNamesForLocale()
482 &buffer_size); in AddLocalizedNamesForLocale()
500 int32_t buffer_size = country_name.size() * 4; in GetCountryCodeForLocalizedName() local
501 scoped_array<uint8_t> buffer(new uint8_t[buffer_size]); in GetCountryCodeForLocalizedName()
505 &buffer_size); in GetCountryCodeForLocalizedName()
539 int32_t* buffer_size) const { in GetSortKey()
541 DCHECK(buffer_size); in GetSortKey()
543 int32_t expected_size = collator.getSortKey(str, buffer->get(), *buffer_size); in GetSortKey()
[all …]
/external/stlport/stlport/stl/
D_deque.c49 size_t __num_nodes = __num_elements / this->buffer_size() + 1 ; in _M_initialize_map()
65 this->_M_finish._M_cur = this->_M_finish._M_first + __num_elements % this->buffer_size(); in _M_initialize_map()
74 *__cur = _M_map_size.allocate(this->buffer_size()); in _M_create_nodes()
83 _M_map_size.deallocate(*__n, this->buffer_size()); in _M_destroy_nodes()
350 _STLP_STD::_Destroy_Range(*__node, *__node + this->buffer_size()); in clear()
351 this->_M_map_size.deallocate(*__node, this->buffer_size()); in clear()
357 this->_M_map_size.deallocate(this->_M_finish._M_first, this->buffer_size()); in clear()
373 uninitialized_fill(*__cur, *__cur + this->buffer_size(), __val); in _M_fill_initialize()
384 *(this->_M_finish._M_node + 1) = this->_M_map_size.allocate(this->buffer_size()); in _M_push_back_aux_v()
391 this->buffer_size())) in _M_push_back_aux_v()
[all …]
/external/bluetooth/glib/gio/inotify/
Dinotify-kernel.c419 static gsize buffer_size; in ik_read_events() local
424 buffer_size = AVERAGE_EVENT_SIZE; in ik_read_events()
425 buffer_size *= MAX_QUEUED_EVENTS; in ik_read_events()
426 buffer = g_malloc (buffer_size); in ik_read_events()
432 memset (buffer, 0, buffer_size); in ik_read_events()
434 …if (g_io_channel_read_chars (inotify_read_ioc, (char *)buffer, buffer_size, buffer_size_out, NULL)… in ik_read_events()
444 gsize buffer_size, buffer_i, events; in ik_read_callback() local
447 ik_read_events (&buffer_size, &buffer); in ik_read_callback()
451 while (buffer_i < buffer_size) in ik_read_callback()
/external/v8/test/cctest/
Dtest-reloc-info.cc47 const int buffer_size = code_size + relocation_info_size; in TEST() local
48 SmartArrayPointer<byte> buffer(new byte[buffer_size]); in TEST()
51 byte* buffer_end = *buffer + buffer_size; in TEST()
63 CodeDesc desc = { *buffer, buffer_size, code_size, in TEST()
/external/chromium/chrome/browser/extensions/
Dextension_creator.cc171 size_t buffer_size = 1 << 16; in SignZip() local
172 scoped_array<uint8> buffer(new uint8[buffer_size]); in SignZip()
174 while ((bytes_read = fread(buffer.get(), 1, buffer_size, in SignZip()
223 size_t buffer_size = 1 << 16; in WriteCRX() local
224 scoped_array<uint8> buffer(new uint8[buffer_size]); in WriteCRX()
227 while ((bytes_read = fread(buffer.get(), 1, buffer_size, in WriteCRX()
/external/chromium/base/debug/
Ddebugger_win.cc28 DWORD buffer_size = *len * sizeof(wchar_t); in RegReadString() local
31 reinterpret_cast<BYTE*>(buffer), &buffer_size); in RegReadString()
32 if (ERROR_SUCCESS == res && buffer_size != 0 && type == REG_SZ) { in RegReadString()
/external/chromium/third_party/libjingle/source/talk/base/
Ddiskcache.cc270 size_t buffer_size = id.length()*3 + 1; in IdToFilename() local
271 char* buffer = new char[buffer_size]; in IdToFilename()
272 encode(buffer, buffer_size, id.data(), id.length(), in IdToFilename()
305 size_t buffer_size = pathname.basename().length() + 1; in FilenameToId() local
306 char* buffer = new char[buffer_size]; in FilenameToId()
307 decode(buffer, buffer_size, pathname.basename().data(), in FilenameToId()

123456