/external/speex/libspeex/ |
D | bits.c | 54 bits->buf_size = MAX_CHARS_PER_FRAME; in speex_bits_init() 61 EXPORT void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size) in speex_bits_init_buffer() argument 64 bits->buf_size = buf_size; in speex_bits_init_buffer() 71 EXPORT void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size) in speex_bits_set_bit_buffer() argument 74 bits->buf_size = buf_size; in speex_bits_set_bit_buffer() 78 bits->nbBits=buf_size<<LOG2_BITS_PER_CHAR; in speex_bits_set_bit_buffer() 113 if (nchars > bits->buf_size) in speex_bits_read_from() 121 bits->buf_size=nchars; in speex_bits_read_from() 124 nchars=bits->buf_size; in speex_bits_read_from() 129 nchars=bits->buf_size; in speex_bits_read_from() [all …]
|
/external/chromium/chrome/browser/net/ |
D | metadata_url_request.cc | 32 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read); 72 bool MetadataRequestHandler::ReadRawData(net::IOBuffer* buf, int buf_size, in ReadRawData() argument 111 if (buf_size > remaining) in ReadRawData() 112 buf_size = remaining; in ReadRawData() 113 if (buf_size > 0) { in ReadRawData() 114 memcpy(buf->data(), &result_[data_offset_], buf_size); in ReadRawData() 115 data_offset_ += buf_size; in ReadRawData() 117 *bytes_read = buf_size; in ReadRawData()
|
D | view_http_cache_job_factory.cc | 39 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read) { in ReadRawData() argument 40 return core_->ReadRawData(buf, buf_size, bytes_read); in ReadRawData() 62 bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read); 159 int buf_size, in ReadRawData() argument 163 if (buf_size > remaining) in ReadRawData() 164 buf_size = remaining; in ReadRawData() 165 memcpy(buf->data(), data_.data() + data_offset_, buf_size); in ReadRawData() 166 data_offset_ += buf_size; in ReadRawData() 167 *bytes_read = buf_size; in ReadRawData()
|
/external/chromium/net/url_request/ |
D | url_request_simple_job.cc | 40 bool URLRequestSimpleJob::ReadRawData(IOBuffer* buf, int buf_size, in ReadRawData() argument 44 if (buf_size > remaining) in ReadRawData() 45 buf_size = remaining; in ReadRawData() 46 memcpy(buf->data(), data_.data() + data_offset_, buf_size); in ReadRawData() 47 data_offset_ += buf_size; in ReadRawData() 48 *bytes_read = buf_size; in ReadRawData()
|
D | url_request_file_dir_job.cc | 78 bool URLRequestFileDirJob::ReadRawData(IOBuffer* buf, int buf_size, in ReadRawData() argument 86 if (FillReadBuffer(buf->data(), buf_size, bytes_read)) in ReadRawData() 92 read_buffer_length_ = buf_size; in ReadRawData() 205 bool URLRequestFileDirJob::FillReadBuffer(char *buf, int buf_size, in FillReadBuffer() argument 211 int count = std::min(buf_size, static_cast<int>(data_.size())); in FillReadBuffer()
|
D | url_request_job.cc | 60 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { in Read() argument 63 DCHECK_LT(buf_size, 1000000); // sanity check in Read() 73 rv = ReadRawDataHelper(buf, buf_size, bytes_read); in Read() 78 filtered_read_buffer_len_ = buf_size; in Read() 415 bool URLRequestJob::ReadRawData(IOBuffer* buf, int buf_size, in ReadRawData() argument 566 bool URLRequestJob::ReadRawDataHelper(IOBuffer* buf, int buf_size, in ReadRawDataHelper() argument 575 bool rv = ReadRawData(buf, buf_size, bytes_read); in ReadRawDataHelper()
|
/external/stlport/src/c_locale_win32/ |
D | c_locale_win32.c | 241 …leInfoUsingACP(LCID lcid, const char* cp, LCTYPE lctype, char* buf, int buf_size, wchar_t* wbuf, i… 427 static int __ConvertDate(const char *NTDate, char *buffer, int buf_size) { in __ConvertDate() argument 435 end_output = cur_output + buf_size; in __ConvertDate() 436 buf_size = 0; in __ConvertDate() 445 return ++buf_size; in __ConvertDate() 450 buf_size += 2; in __ConvertDate() 455 buf_size += 2; in __ConvertDate() 461 buf_size += 2; in __ConvertDate() 468 return ++buf_size; in __ConvertDate() 471 buf_size += 3; in __ConvertDate() [all …]
|
/external/chromium/chrome/browser/ui/webui/ |
D | chrome_url_data_manager_backend.cc | 79 int buf_size, 101 void CompleteRead(net::IOBuffer* buf, int buf_size, int* bytes_read); 343 bool URLRequestChromeJob::ReadRawData(net::IOBuffer* buf, int buf_size, in ReadRawData() argument 350 pending_buf_size_ = buf_size; in ReadRawData() 355 CompleteRead(buf, buf_size, bytes_read); in ReadRawData() 359 void URLRequestChromeJob::CompleteRead(net::IOBuffer* buf, int buf_size, in CompleteRead() argument 362 if (buf_size > remaining) in CompleteRead() 363 buf_size = remaining; in CompleteRead() 364 if (buf_size > 0) { in CompleteRead() 365 memcpy(buf->data(), data_->front() + data_offset_, buf_size); in CompleteRead() [all …]
|
/external/oprofile/module/ |
D | oprofile.c | 60 return data->nextbuf >= (data->buf_size - data->buf_watermark) && !oprof_ready[cpu]; in need_wakeup() 65 if (unlikely(++data->nextbuf == data->buf_size)) in next_sample() 260 int size = data->buf_size; in check_buffer_amount() 318 max = sizeof(struct op_buffer_head) + sizeof(struct op_sample) * sysctl.buf_size; in oprof_read() 434 ulong buf_size; in oprof_init_data() local 450 data->buf_size = 0; in oprof_init_data() 456 buf_size = (sizeof(struct op_sample) * sysctl.buf_size); in oprof_init_data() 461 data->buffer = vmalloc(buf_size); in oprof_init_data() 463 printk(KERN_ERR "oprofile: failed to allocate eviction buffer of %lu bytes\n", buf_size); in oprof_init_data() 468 memset(data->buffer, 0, buf_size); in oprof_init_data() [all …]
|
/external/qemu/android/ |
D | snapshot.c | 171 snapshot_format_size( char *buf, int buf_size, int64_t size ) in snapshot_format_size() argument 178 snprintf(buf, buf_size, "%" PRId64, size); in snapshot_format_size() 183 snprintf(buf, buf_size, "%0.1f%c", in snapshot_format_size() 188 snprintf(buf, buf_size, "%" PRId64 "%c", in snapshot_format_size() 200 snapshot_format_create_date( char *buf, size_t buf_size, time_t *time ) in snapshot_format_create_date() argument 204 strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm); in snapshot_format_create_date() 209 snapshot_format_vm_clock( char *buf, size_t buf_size, uint64_t vm_clock_nsec ) in snapshot_format_vm_clock() argument 212 snprintf(buf, buf_size, "%02d:%02d:%02d.%03d", in snapshot_format_vm_clock()
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
D | common.c | 139 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, in _wpa_snprintf_hex() argument 143 char *pos = buf, *end = buf + buf_size; in _wpa_snprintf_hex() 145 if (buf_size == 0) in _wpa_snprintf_hex() 168 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) in wpa_snprintf_hex() argument 170 return _wpa_snprintf_hex(buf, buf_size, data, len, 0); in wpa_snprintf_hex() 182 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, in wpa_snprintf_hex_uppercase() argument 185 return _wpa_snprintf_hex(buf, buf_size, data, len, 1); in wpa_snprintf_hex_uppercase()
|
/external/wpa_supplicant_8/src/utils/ |
D | common.c | 187 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, in _wpa_snprintf_hex() argument 191 char *pos = buf, *end = buf + buf_size; in _wpa_snprintf_hex() 193 if (buf_size == 0) in _wpa_snprintf_hex() 216 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) in wpa_snprintf_hex() argument 218 return _wpa_snprintf_hex(buf, buf_size, data, len, 0); in wpa_snprintf_hex() 230 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, in wpa_snprintf_hex_uppercase() argument 233 return _wpa_snprintf_hex(buf, buf_size, data, len, 1); in wpa_snprintf_hex_uppercase()
|
/external/chromium/chrome/browser/renderer_host/ |
D | download_throttling_resource_handler.cc | 98 int* buf_size, in OnWillRead() argument 102 return download_handler_->OnWillRead(request_id, buf, buf_size, min_size); in OnWillRead() 114 *buf_size = min_size; in OnWillRead() 201 int buf_size; in CopyTmpBufferToDownloadHandler() local 202 if (download_handler_->OnWillRead(request_id_, &buffer, &buf_size, in CopyTmpBufferToDownloadHandler() 204 CHECK(buf_size >= tmp_buffer_length_); in CopyTmpBufferToDownloadHandler()
|
D | save_file_resource_handler.cc | 70 int* buf_size, int min_size) { in OnWillRead() argument 71 DCHECK(buf && buf_size); in OnWillRead() 73 *buf_size = min_size < 0 ? kReadBufSize : min_size; in OnWillRead() 74 read_buffer_ = new net::IOBuffer(*buf_size); in OnWillRead()
|
/external/libpcap/ |
D | fad-gifc.c | 278 unsigned buf_size; in pcap_findalldevs() local 304 buf_size = 8192; in pcap_findalldevs() 306 buf = malloc(buf_size); in pcap_findalldevs() 314 ifc.ifc_len = buf_size; in pcap_findalldevs() 316 memset(buf, 0, buf_size); in pcap_findalldevs() 325 if (ifc.ifc_len < buf_size && in pcap_findalldevs() 326 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs() 329 buf_size *= 2; in pcap_findalldevs()
|
D | fad-glifc.c | 91 unsigned buf_size; in pcap_findalldevs() local 138 buf_size = ifn.lifn_count * sizeof (struct lifreq); in pcap_findalldevs() 139 buf = malloc(buf_size); in pcap_findalldevs() 151 ifc.lifc_len = buf_size; in pcap_findalldevs() 155 memset(buf, 0, buf_size); in pcap_findalldevs()
|
/external/qemu/ |
D | qemu-option.h | 51 const char *get_opt_name(char *buf, int buf_size, const char *p, char delim); 52 const char *get_opt_value(char *buf, int buf_size, const char *p); 53 int get_next_param_value(char *buf, int buf_size, 55 int get_param_value(char *buf, int buf_size, 57 int check_params(char *buf, int buf_size,
|
D | cutils.c | 28 void pstrcpy(char *buf, int buf_size, const char *str) in pstrcpy() argument 33 if (buf_size <= 0) in pstrcpy() 38 if (c == 0 || q >= buf + buf_size - 1) in pstrcpy() 46 char *pstrcat(char *buf, int buf_size, const char *s) in pstrcat() argument 50 if (len < buf_size) in pstrcat() 51 pstrcpy(buf + len, buf_size - len, s); in pstrcat()
|
/external/speex/include/speex/ |
D | speex_bits.h | 56 int buf_size;/**< Allocated size for buffer */ member 65 void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size); 68 void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size);
|
/external/chromium/base/ |
D | stringprintf.cc | 23 size_t buf_size, in vsnprintfT() argument 26 return base::vsnprintf(buffer, buf_size, format, argptr); in vsnprintfT() 30 size_t buf_size, in vsnprintfT() argument 33 return base::vswprintf(buffer, buf_size, format, argptr); in vsnprintfT()
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_record.c | 151 size_t buf_size, const u8 *payload, size_t payload_len, in tlsv1_record_send() argument 160 if (pos + TLS_RECORD_HEADER_LEN > buf + buf_size) in tlsv1_record_send() 179 if (pos + rl->iv_size > buf + buf_size) in tlsv1_record_send() 196 if (pos + payload_len > buf + buf_size) in tlsv1_record_send() 218 clen = buf + buf_size - pos; in tlsv1_record_send() 240 if (pos + pad + 1 > buf + buf_size) { in tlsv1_record_send()
|
/external/qemu/hw/ |
D | goldfish_nand.c | 213 int buf_size = NAND_DEV_SAVE_DISK_BUF_SIZE; in nand_dev_save_disk_state() local 238 ret = do_read(dev->fd, buffer, buf_size); in nand_dev_save_disk_state() 248 while (ret == buf_size && total_copied < dev->max_size); in nand_dev_save_disk_state() 271 int buf_size = NAND_DEV_SAVE_DISK_BUF_SIZE; in nand_dev_load_disk_state() local 293 if (total_size - next_offset < buf_size) { in nand_dev_load_disk_state() 294 buf_size = total_size - next_offset; in nand_dev_load_disk_state() 297 ret = qemu_get_buffer(f, buffer, buf_size); in nand_dev_load_disk_state() 298 if (ret != buf_size) { in nand_dev_load_disk_state() 300 __FUNCTION__, buf_size, ret); in nand_dev_load_disk_state() 303 ret = do_write(dev->fd, buffer, buf_size); in nand_dev_load_disk_state() [all …]
|
/external/opencv/cxcore/src/ |
D | cxsvd.cpp | 1228 int a_buf_offset = 0, u_buf_offset = 0, buf_size, pix_size; in cvSVD() local 1349 buf_size = n*2 + m; in cvSVD() 1353 a_buf_offset = buf_size; in cvSVD() 1354 buf_size += a->rows*a->cols; in cvSVD() 1359 u_buf_offset = buf_size; in cvSVD() 1360 buf_size += u->rows*u->cols; in cvSVD() 1363 buf_size *= pix_size; in cvSVD() 1365 if( buf_size <= CV_MAX_LOCAL_SIZE ) in cvSVD() 1367 buffer = (uchar*)cvStackAlloc( buf_size ); in cvSVD() 1372 CV_CALL( buffer = (uchar*)cvAlloc( buf_size )); in cvSVD() [all …]
|
D | cxlogic.cpp | 271 int buf_size; in icvLogicS() local 289 buf_size = dstbuf.step ? dstbuf.step*dy : size.width*elem_size; in icvLogicS() 290 if( buf_size > CV_MAX_LOCAL_SIZE ) in icvLogicS() 292 CV_CALL( buffer = (uchar*)cvAlloc( buf_size )); in icvLogicS() 296 buffer = (uchar*)cvStackAlloc( buf_size ); in icvLogicS() 438 int buf_size; in icvLogic() local 456 buf_size = dstbuf.step ? dstbuf.step*dy : size.width*elem_size; in icvLogic() 457 if( buf_size > CV_MAX_LOCAL_SIZE ) in icvLogic() 459 CV_CALL( buffer = (uchar*)cvAlloc( buf_size )); in icvLogic() 463 buffer = (uchar*)cvStackAlloc( buf_size ); in icvLogic()
|
/external/webp/src/dec/ |
D | vp8.c | 254 uint32_t buf_size; in VP8GetHeaders() local 270 buf_size = io->data_size; in VP8GetHeaders() 271 if (buf == NULL || buf_size <= 4) { in VP8GetHeaders() 280 if (buf_size < 20 + 4) { in VP8GetHeaders() 303 buf_size -= 20; in VP8GetHeaders() 321 buf_size -= 3; in VP8GetHeaders() 327 if (buf_size < 7) { in VP8GetHeaders() 340 buf_size -= 7; in VP8GetHeaders() 363 if (frm_hdr->partition_length_ > buf_size) { in VP8GetHeaders() 374 buf_size -= frm_hdr->partition_length_; in VP8GetHeaders() [all …]
|