/system/update_engine/payload_generator/ |
H A D | bzip.cc | 37 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 D | logd_reader.h | 26 LIBLOG_HIDDEN ssize_t __send_log_msg(char* buf, size_t buf_size);
|
H A D | logd_reader.c | 259 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 D | extract_dtb.c | 26 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 D | util.h | 23 int write_buf_to_file(const char *filename, const void *buf, size_t buf_size);
|
H A D | util.c | 62 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 D | bta_hl_co.h | 167 * 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 D | logwrap.c | 55 /* 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 D | support.h | 36 int* buf_size);
|
H A D | support.c | 95 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 D | echo_reference.c | 50 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 D | btif_gatt_test.cc | 68 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 D | hci_layer_linux.cc | 110 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 D | line_printer.cpp | 90 COORD buf_size = { csbi.dwSize.X, 1 }; local 104 WriteConsoleOutput(console_, &char_data[0], buf_size, zero_zero, &target);
|
H A D | sysdeps_win32_test.cpp | 115 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 D | bta_hl_co.cc | 284 * 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 D | gki_debug.c | 187 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 D | gki_debug.c | 187 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 D | zip_archive.cc | 770 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 D | camera_metadata_tests.cpp | 116 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 D | libufdt.h | 299 * buf_size. 308 int ufdt_to_fdt(const struct ufdt *tree, void *buf, int buf_size);
|
/system/bt/bta/hh/ |
H A D | bta_hh_api.cc | 186 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 D | zip_archive.h | 219 typedef bool (*ProcessZipEntryFunction)(const uint8_t* buf, size_t buf_size, void* cookie);
|
/system/libufdt/ |
H A D | ufdt_convert.c | 460 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 D | hidd_conn.cc | 895 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);
|