/system/update_engine/payload_generator/ |
D | bzip.cc | 37 size_t buf_size = 40 + in.size() * 35 / 100; in BzipCompress() local 38 out->resize(buf_size); in BzipCompress() 42 if (buf_size > std::numeric_limits<uint32_t>::max()) in BzipCompress() 44 uint32_t data_size = buf_size; in BzipCompress() 61 buf_size *= 2; in BzipCompress() 62 out->resize(buf_size); in BzipCompress()
|
/system/media/audio_utils/ |
D | echo_reference.c | 50 size_t buf_size; // main buffer size in frames member 117 er->buf_size = 0; in echo_reference_reset_l() 265 if (er->frames_in + inFrames > er->buf_size) { in echo_reference_write() 267 er->buf_size, er->frames_in + inFrames); in echo_reference_write() 268 er->buf_size = er->frames_in + inFrames; in echo_reference_write() 269 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_write() 278 inFrames, er->frames_in, er->buf_size, in echo_reference_write() 419 if (er->frames_in > er->buf_size) { in echo_reference_read() 420 er->buf_size = er->frames_in; in echo_reference_read() 421 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_read() [all …]
|
/system/core/logwrapper/ |
D | logwrap.c | 63 size_t buf_size; member 76 ssize_t buf_size; member 109 if ((line_len + b_buf->used_len) > b_buf->buf_size) { in add_line_to_linear_buf() 131 if (line_len > e_buf->buf_size) { in add_line_to_circular_buf() 135 free_len = e_buf->buf_size - e_buf->used_len; in add_line_to_circular_buf() 141 e_buf->read = (e_buf->read + needed_space) % e_buf->buf_size; in add_line_to_circular_buf() 148 cnt = MIN(line_len, e_buf->buf_size - e_buf->write); in add_line_to_circular_buf() 154 e_buf->write = (e_buf->write + line_len) % e_buf->buf_size; in add_line_to_circular_buf() 188 static void print_buf_lines(struct log_info *log_info, char *buf, int buf_size) in print_buf_lines() argument 195 for (i = 0; i < buf_size; i++) { in print_buf_lines() [all …]
|
/system/bt/btif/co/ |
D | bta_hl_co.c | 322 UINT16 buf_size, UINT8 *p_buf, UINT16 evt) in bta_hl_co_get_tx_data() argument 329 __FUNCTION__, app_id, mdl_handle, buf_size); in bta_hl_co_get_tx_data() 335 if (p_dcb->tx_size <= buf_size ) in bta_hl_co_get_tx_data() 419 UINT16 buf_size, UINT8 *p_buf, UINT16 evt) in bta_hl_co_get_echo_data() argument 423 UNUSED(buf_size); in bta_hl_co_get_echo_data()
|
/system/bt/bta/include/ |
D | bta_hl_co.h | 175 UINT16 buf_size, UINT8 *p_buf, UINT16 evt); 213 UINT16 buf_size, UINT8 *p_buf, UINT16 evt);
|
D | bta_hh_api.h | 414 UINT8 rpt_id, UINT16 buf_size);
|
D | bta_hl_api.h | 344 UINT16 buf_size; member
|
/system/media/camera/tests/ |
D | camera_metadata_tests.cpp | 114 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local 117 EXPECT_TRUE(buf_size > 0); in TEST() 119 buf = malloc(buf_size); in TEST() 123 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST() 131 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size)); in TEST() 143 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST() local 146 EXPECT_GT(buf_size, (size_t)0); in TEST() 148 buf_size--; in TEST() 150 buf = malloc(buf_size); in TEST() 154 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST() [all …]
|
/system/core/libziparchive/ |
D | zip_archive.cc | 760 virtual bool Append(uint8_t* buf, size_t buf_size) = 0; 777 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() argument 778 if (bytes_written_ + buf_size > size_) { in Append() 780 size_, bytes_written_ + buf_size); in Append() 784 memcpy(buf_ + bytes_written_, buf, buf_size); in Append() 785 bytes_written_ += buf_size; in Append() 845 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() argument 846 if (total_bytes_written_ + buf_size > declared_length_) { in Append() 848 declared_length_, total_bytes_written_ + buf_size); in Append() 852 const bool result = android::base::WriteFully(fd_, buf, buf_size); in Append() [all …]
|
/system/core/adb/ |
D | line_printer.cpp | 90 COORD buf_size = { csbi.dwSize.X, 1 }; in Print() local 104 WriteConsoleOutput(console_, &char_data[0], buf_size, zero_zero, &target); in Print()
|
D | sysdeps_win32_test.cpp | 145 void TestParseCompleteUTF8(const char* buf, const size_t buf_size, in TestParseCompleteUTF8() argument 149 const size_t complete_bytes = internal::ParseCompleteUTF8(buf, buf + buf_size, in TestParseCompleteUTF8()
|
D | sysdeps_win32.cpp | 2465 static int _console_write_utf8(const char* const buf, const size_t buf_size, FILE* stream, in _console_write_utf8() argument 2479 utf8_size = internal::ParseCompleteUTF8(buf, buf + buf_size, &g_console_output_buffer); in _console_write_utf8() 2485 combined_buffer.insert(combined_buffer.end(), buf, buf + buf_size); in _console_write_utf8() 2521 return buf_size; in _console_write_utf8()
|
/system/tpm/trunks/ftdi/ |
D | support.c | 96 int* buf_size) { in build_block_buffer() argument 102 *buf_size = 0; in build_block_buffer() 198 *buf_size = i; in build_block_buffer()
|
D | support.h | 36 int* buf_size);
|
D | mpsse.c | 694 int retval = MPSSE_FAIL, buf_size = 0, txsize = 0, n = 0; in Write() local 712 buf = build_block_buffer(mpsse, mpsse->tx, data + n, txsize, &buf_size); in Write() 714 retval = raw_write(mpsse, buf, buf_size); in Write()
|
/system/bt/bta/hh/ |
D | bta_hh_api.c | 193 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) in BTA_HhGetReport() argument 195 UINT8 param = (buf_size) ? (r_type | 0x08) : r_type; in BTA_HhGetReport() 198 buf_size, rpt_id, NULL); in BTA_HhGetReport()
|
/system/core/liblog/ |
D | logd_reader.c | 264 const char *msg, char *buf, size_t buf_size) in send_log_msg() argument 277 snprintf(buf, buf_size, msg, logger ? logger->logId : (unsigned) -1); in send_log_msg() 286 len = buf_size; in send_log_msg() 291 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) { in send_log_msg() 316 ret += buf_size - len; in send_log_msg()
|
/system/bt/stack/hid/ |
D | hidh_conn.c | 893 UINT16 buf_size; in hidh_conn_snd_data() local 919 buf_size = HID_CONTROL_BUF_SIZE; in hidh_conn_snd_data() 923 buf_size = HID_INTERRUPT_BUF_SIZE; in hidh_conn_snd_data() 938 p_buf = (BT_HDR *)osi_malloc(buf_size); in hidh_conn_snd_data() 948 p_buf = (BT_HDR *)osi_malloc(buf_size); in hidh_conn_snd_data()
|
/system/bt/stack/avdt/ |
D | avdt_scb_act.c | 2083 UINT16 buf_size; in avdt_scb_queue_frags() local 2115 buf_size = p_tbl->peer_mtu + BT_HDR_SIZE; in avdt_scb_queue_frags() 2117 p_tbl->peer_mtu, buf_size, num_frag); in avdt_scb_queue_frags() 2119 if (buf_size > AVDT_DATA_BUF_SIZE) in avdt_scb_queue_frags() 2120 buf_size = AVDT_DATA_BUF_SIZE; in avdt_scb_queue_frags() 2122 mtu_used = buf_size - BT_HDR_SIZE; in avdt_scb_queue_frags() 2126 BT_HDR *p_frag = (BT_HDR *)osi_malloc(buf_size); in avdt_scb_queue_frags()
|
/system/core/libnetutils/ |
D | dhcpclient.c | 239 static void hex2str(char *buf, size_t buf_size, const unsigned char *array, int len) in hex2str() argument 243 char *buf_end = buf + buf_size; in hex2str()
|
/system/bt/stack/avct/ |
D | avct_lcb_act.c | 536 UINT16 buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg() local 567 p_buf = (BT_HDR *)osi_malloc(buf_size); in avct_lcb_send_msg()
|
/system/extras/simpleperf/ |
D | record.h | 358 const char* buf, size_t buf_size);
|
D | record.cpp | 601 const char* buf, size_t buf_size) { in ReadRecordsFromBuffer() argument 604 const char* end = buf + buf_size; in ReadRecordsFromBuffer()
|
/system/bt/stack/l2cap/ |
D | l2c_fcr.c | 333 uint16_t buf_size = no_of_bytes + sizeof(BT_HDR) + new_offset + L2CAP_FCS_LEN; in l2c_fcr_clone_buf() local 339 buf_size += sizeof(uint32_t); in l2c_fcr_clone_buf() 341 BT_HDR *p_buf2 = (BT_HDR *)osi_malloc(buf_size); in l2c_fcr_clone_buf()
|
/system/bt/bta/av/ |
D | bta_av_int.h | 445 UINT16 buf_size; member
|