Searched refs:buf_size (Results 1 - 25 of 38) sorted by relevance

12

/system/update_engine/payload_generator/
H A Dbzip.cc37 size_t buf_size = 40 + in.size() * 35 / 100;
38 out->resize(buf_size);
42 if (buf_size > std::numeric_limits<uint32_t>::max())
44 uint32_t data_size = buf_size;
61 buf_size *= 2;
62 out->resize(buf_size);
/system/core/liblog/
H A Dlogd_reader.h26 LIBLOG_HIDDEN ssize_t __send_log_msg(char* buf, size_t buf_size);
H A Dlogd_reader.c259 char* buf, size_t buf_size) {
271 snprintf(buf, buf_size, msg, logger ? logger->logId : (unsigned)-1);
280 len = buf_size;
285 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) {
310 ret += buf_size - len;
324 LIBLOG_HIDDEN ssize_t __send_log_msg(char* buf, size_t buf_size) { argument
325 return send_log_msg(NULL, NULL, buf, buf_size);
258 send_log_msg(struct android_log_logger* logger, const char* msg, char* buf, size_t buf_size) argument
/system/libufdt/tests/src/
H A Dextract_dtb.c26 int find_dtb_header_pos(const char *buf, size_t buf_size) { argument
27 if (buf == NULL || buf_size == 0) {
31 int pos = buf_size;
48 const char *buf, size_t buf_size) {
49 int tag_pos = find_dtb_header_pos(buf, buf_size);
63 size_t fdt_actual_size = buf_size - tag_pos;
100 size_t buf_size; local
101 buf = load_file(in_filename, &buf_size);
109 while (buf_size > 0) {
113 tag_pos = find_and_write_dtb(filename, buf, buf_size);
47 find_and_write_dtb(const char *filename, const char *buf, size_t buf_size) argument
[all...]
H A Dutil.h23 int write_buf_to_file(const char *filename, const void *buf, size_t buf_size);
H A Dutil.c62 const void *buf, size_t buf_size) {
71 if (fwrite(buf, 1, buf_size, fout) < 1) {
61 write_buf_to_file(const char *filename, const void *buf, size_t buf_size) argument
/system/bt/bta/include/
H A Dbta_hl_co.h167 * buf_size - the size of the buffer
176 uint16_t buf_size, uint8_t* p_buf,
206 * buf_size - the size of the buffer
216 uint16_t buf_size, uint8_t* p_buf,
/system/core/logwrapper/
H A Dlogwrap.c55 /* This is a simple buffer that holds up to the first beginning_buf->buf_size
62 /* buf_size is the usable space, which is one less than the allocated size */
63 size_t buf_size; member in struct:beginning_buf
67 /* This is a circular buf that holds up to the last ending_buf->buf_size bytes
68 * of output from a command after the first beginning_buf->buf_size bytes
75 /* buf_size is the usable space, which is one less than the allocated size */
76 ssize_t buf_size; member in struct:ending_buf
109 if ((line_len + b_buf->used_len) > b_buf->buf_size) {
131 if (line_len > e_buf->buf_size) {
135 free_len = e_buf->buf_size
188 print_buf_lines(struct log_info *log_info, char *buf, int buf_size) argument
[all...]
/system/tpm/trunks/ftdi/
H A Dsupport.h36 int* buf_size);
H A Dsupport.c95 int* buf_size) {
101 *buf_size = 0;
198 *buf_size = i;
91 build_block_buffer(struct mpsse_context* mpsse, uint8_t cmd, const uint8_t* data, int size, int* buf_size) argument
/system/media/audio_utils/
H A Decho_reference.c50 size_t buf_size; // main buffer size in frames member in struct:echo_reference
117 er->buf_size = 0;
265 if (er->frames_in + inFrames > er->buf_size) {
267 er->buf_size, er->frames_in + inFrames);
268 er->buf_size = er->frames_in + inFrames;
269 er->buffer = realloc(er->buffer, er->buf_size * er->rd_frame_size);
278 inFrames, er->frames_in, er->buf_size,
413 if (er->frames_in > er->buf_size) {
414 er->buf_size = er->frames_in;
415 er->buffer = realloc(er->buffer, er->buf_size * e
[all...]
/system/bt/btif/src/
H A Dbtif_gatt_test.cc68 static char* format_uuid(tBT_UUID bt_uuid, char* str_buf, size_t buf_size) { argument
70 snprintf(str_buf, buf_size, "0x%04x", bt_uuid.uu.uuid16);
72 int x = snprintf(str_buf, buf_size, "%02x%02x%02x%02x-%02x%02x-%02x%02x",
77 snprintf(&str_buf[x], buf_size - x, "%02x%02x-%02x%02x%02x%02x%02x%02x",
83 snprintf(str_buf, buf_size, "Unknown (len=%d)", bt_uuid.len);
/system/bt/hci/src/
H A Dhci_layer_linux.cc110 const size_t buf_size = 2000; local
111 uint8_t buf[buf_size];
112 ssize_t len = read(fd, buf, buf_size);
115 if (len == buf_size)
121 size_t packet_size = buf_size + BT_HDR_SIZE;
163 len = read(fd, buf, buf_size);
/system/core/adb/
H A Dline_printer.cpp90 COORD buf_size = { csbi.dwSize.X, 1 }; local
104 WriteConsoleOutput(console_, &char_data[0], buf_size, zero_zero, &target);
H A Dsysdeps_win32_test.cpp115 void TestParseCompleteUTF8(const char* buf, const size_t buf_size, argument
119 const size_t complete_bytes = internal::ParseCompleteUTF8(buf, buf + buf_size,
/system/bt/btif/co/
H A Dbta_hl_co.cc284 * buf_size - the size of the buffer
293 uint16_t buf_size, uint8_t* p_buf, uint16_t evt) {
298 BTIF_TRACE_DEBUG("%s app_id=%d mdl_handle=0x%x buf_size=%d", __func__, app_id,
299 mdl_handle, buf_size);
305 if ((p_dcb->tx_size <= buf_size) && p_dcb->p_tx_pkt) {
373 * buf_size - the size of the buffer
383 UNUSED_ATTR uint16_t buf_size,
292 bta_hl_co_get_tx_data(uint8_t app_id, tBTA_HL_MDL_HANDLE mdl_handle, uint16_t buf_size, uint8_t* p_buf, uint16_t evt) argument
381 bta_hl_co_get_echo_data(UNUSED_ATTR uint8_t app_id, tBTA_HL_MCL_HANDLE mcl_handle, UNUSED_ATTR uint16_t buf_size, UNUSED_ATTR uint8_t* p_buf, uint16_t evt) argument
/system/nfc/halimpl/bcm2079x/gki/common/
H A Dgki_debug.c187 uint16_t buf_size; local
201 buf_size = gki_cb.com.freeq[pool_id].size + BUFFER_PADDING_SIZE;
204 for (i = 0; i < num_bufs; i++, p_start += buf_size) {
206 magic = (uint32_t*)((uint8_t*)p_hdr + buf_size - sizeof(uint32_t));
/system/nfc/src/gki/common/
H A Dgki_debug.c187 uint16_t buf_size; local
201 buf_size = gki_cb.com.freeq[pool_id].size + BUFFER_PADDING_SIZE;
204 for (i = 0; i < num_bufs; i++, p_start += buf_size) {
206 magic = (uint32_t*)((uint8_t*)p_hdr + buf_size - sizeof(uint32_t));
/system/core/libziparchive/
H A Dzip_archive.cc770 virtual bool Append(uint8_t* buf, size_t buf_size) = 0;
787 virtual bool Append(uint8_t* buf, size_t buf_size) override {
788 if (bytes_written_ + buf_size > size_) {
790 size_, bytes_written_ + buf_size);
794 memcpy(buf_ + bytes_written_, buf, buf_size);
795 bytes_written_ += buf_size;
866 virtual bool Append(uint8_t* buf, size_t buf_size) override {
867 if (total_bytes_written_ + buf_size > declared_length_) {
869 declared_length_, total_bytes_written_ + buf_size);
873 const bool result = android::base::WriteFully(fd_, buf, buf_size);
[all...]
/system/media/camera/tests/
H A Dcamera_metadata_tests.cpp116 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local
119 EXPECT_TRUE(buf_size > 0);
121 buf = malloc(buf_size);
125 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity);
133 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size));
145 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local
148 EXPECT_GT(buf_size, (size_t)0);
150 buf_size--;
152 buf = malloc(buf_size);
156 m = place_camera_metadata(buf, buf_size, entry_capacit
171 size_t buf_size = calculate_camera_metadata_size(entry_capacity, local
471 size_t buf_size = get_camera_metadata_compact_size(m); local
524 size_t buf_size = get_camera_metadata_compact_size(m); local
580 size_t buf_size = get_camera_metadata_compact_size(m); local
[all...]
/system/libufdt/include/
H A Dlibufdt.h299 * buf_size.
308 int ufdt_to_fdt(const struct ufdt *tree, void *buf, int buf_size);
/system/bt/bta/hh/
H A Dbta_hh_api.cc186 uint8_t rpt_id, uint16_t buf_size) {
187 uint8_t param = (buf_size) ? (r_type | 0x08) : r_type;
189 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, buf_size,
185 BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, uint8_t rpt_id, uint16_t buf_size) argument
/system/core/include/ziparchive/
H A Dzip_archive.h219 typedef bool (*ProcessZipEntryFunction)(const uint8_t* buf, size_t buf_size, void* cookie);
/system/libufdt/
H A Dufdt_convert.c460 int ufdt_to_fdt(const struct ufdt *tree, void *buf, int buf_size) { argument
464 err = fdt_create(buf, buf_size);
495 * IMPORTANT: fdt_totalsize(buf) might be less than buf_size
498 return fdt_open_into(buf, buf, buf_size);
/system/bt/stack/hid/
H A Dhidd_conn.cc895 uint16_t buf_size; local
910 buf_size = HID_CONTROL_BUF_SIZE;
915 buf_size = HID_CONTROL_BUF_SIZE;
918 buf_size = HID_INTERRUPT_BUF_SIZE;
925 p_buf = (BT_HDR*)osi_malloc(buf_size);

Completed in 989 milliseconds

12