/system/core/libsparse/ |
D | backed_block.c | 362 unsigned int max_len) in backed_block_split() argument 366 max_len = ALIGN_DOWN(max_len, bbl->block_size); in backed_block_split() 368 if (bb->len <= max_len) { in backed_block_split() 379 new_bb->len = bb->len - max_len; in backed_block_split() 380 new_bb->block = bb->block + max_len / bbl->block_size; in backed_block_split() 383 bb->len = max_len; in backed_block_split() 387 new_bb->data.data = (char *)bb->data.data + max_len; in backed_block_split() 390 new_bb->file.offset += max_len; in backed_block_split() 393 new_bb->fd.offset += max_len; in backed_block_split()
|
D | backed_block.h | 52 unsigned int max_len);
|
D | sparse.c | 300 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len, in sparse_file_resparse() argument 316 bb = move_chunks_up_to_len(in_s, s, max_len); in sparse_file_resparse()
|
/system/bt/stack/rfcomm/ |
D | port_api.c | 1223 int PORT_ReadData (UINT16 handle, char *p_data, UINT16 max_len, UINT16 *p_len) in PORT_ReadData() argument 1229 RFCOMM_TRACE_API ("PORT_ReadData() handle:%d max_len:%d", handle, max_len); in PORT_ReadData() 1258 while (max_len && p_buf) in PORT_ReadData() 1260 if (p_buf->len > max_len) in PORT_ReadData() 1262 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData() 1263 p_buf->offset += max_len; in PORT_ReadData() 1264 p_buf->len -= max_len; in PORT_ReadData() 1266 *p_len += max_len; in PORT_ReadData() 1270 p_port->rx.queue_size -= max_len; in PORT_ReadData() 1281 max_len -= p_buf->len; in PORT_ReadData() [all …]
|
/system/bt/stack/gap/ |
D | gap_conn.c | 303 UINT16 GAP_ConnReadData (UINT16 gap_handle, UINT8 *p_data, UINT16 max_len, UINT16 *p_len) in GAP_ConnReadData() argument 320 while (max_len && p_buf) in GAP_ConnReadData() 322 copy_len = (p_buf->len > max_len)?max_len:p_buf->len; in GAP_ConnReadData() 323 max_len -= copy_len; in GAP_ConnReadData() 339 if (max_len) in GAP_ConnReadData() 516 UINT16 GAP_ConnWriteData (UINT16 gap_handle, UINT8 *p_data, UINT16 max_len, UINT16 *p_len) in GAP_ConnWriteData() argument 529 while (max_len) in GAP_ConnWriteData() 543 p_buf->len = (p_ccb->rem_mtu_size < max_len) ? p_ccb->rem_mtu_size : max_len; in GAP_ConnWriteData() 549 max_len -= p_buf->len; in GAP_ConnWriteData()
|
/system/bt/stack/include/ |
D | gap_api.h | 176 UINT16 max_len, UINT16 *p_len); 235 UINT16 max_len, UINT16 *p_len);
|
D | port_api.h | 559 extern int PORT_ReadData (UINT16 handle, char *p_data, UINT16 max_len, 590 extern int PORT_WriteData (UINT16 handle, char *p_data, UINT16 max_len,
|
D | hcimsgs.h | 731 … UINT16 conn_latency, UINT16 conn_timeout, UINT16 min_len, UINT16 max_len);
|
D | btm_api.h | 3569 extern UINT16 BTM_BuildOobData(UINT8 *p_data, UINT16 max_len, BT_OCTET16 c,
|
/system/core/liblog/tests/ |
D | liblog_test.cpp | 453 ssize_t max_len = 0; in TEST() local 480 if (max_len <= (left - data)) { in TEST() 481 max_len = left - data + 1; in TEST() 484 if (max_len > 512) { in TEST() 494 EXPECT_LE(sizeof(max_payload_buf), static_cast<size_t>(max_len)); in TEST() 514 ssize_t max_len = 0; in TEST() local 541 if (max_len <= (left - data)) { in TEST() 542 max_len = left - data + 1; in TEST() 549 static_cast<size_t>(max_len)); in TEST() 551 EXPECT_EQ(ret, max_len + static_cast<ssize_t>(sizeof(big_payload_tag))); in TEST()
|
/system/bt/stack/hid/ |
D | hidh_api.c | 77 void hidh_get_str_attr( tSDP_DISC_REC *p_rec, UINT16 attr_id, UINT16 max_len, char *str ) in hidh_get_str_attr() argument 84 if((name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type)) < max_len ) in hidh_get_str_attr() 91 memcpy( str, (char *) p_attr->attr_value.v.array, max_len-1 ); in hidh_get_str_attr() 92 str[max_len-1] = '\0'; in hidh_get_str_attr()
|
/system/core/libsparse/include/sparse/ |
D | sparse.h | 260 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len,
|
/system/core/lmkd/ |
D | lmkd.c | 131 static ssize_t read_all(int fd, char *buf, size_t max_len) in read_all() argument 135 while (max_len > 0) { in read_all() 136 ssize_t r = read(fd, buf, max_len); in read_all() 145 max_len -= r; in read_all()
|
/system/bt/stack/btm/ |
D | btm_sec.c | 1760 UINT16 BTM_BuildOobData(UINT8 *p_data, UINT16 max_len, BT_OCTET16 c, in BTM_BuildOobData() argument 1770 if (p_data && max_len >= BTM_OOB_MANDATORY_SIZE) in BTM_BuildOobData() 1777 max_len -= len; in BTM_BuildOobData() 1783 if (max_len >= delta) in BTM_BuildOobData() 1789 max_len -= delta; in BTM_BuildOobData() 1794 if (max_len >= delta) in BTM_BuildOobData() 1800 max_len -= delta; in BTM_BuildOobData() 1805 if (max_len >= delta) in BTM_BuildOobData() 1811 max_len -= delta; in BTM_BuildOobData() 1821 if (max_len >= delta) in BTM_BuildOobData() [all …]
|
/system/bt/bta/jv/ |
D | bta_jv_api.c | 711 UINT16 max_len, read_len; in BTA_JvL2capReceive() local 731 max_len = (left_over > 0xFFFF)?0xFFFF:left_over; in BTA_JvL2capReceive() 732 GAP_ConnReadData ((UINT16)handle, NULL, max_len, &read_len); in BTA_JvL2capReceive()
|
/system/bt/stack/sdp/ |
D | sdp_db.c | 617 INT32 max_len = SDP_MAX_ATTR_LEN -3; in SDP_AddUuidSequence() local 633 if((p - p_buff) > max_len) in SDP_AddUuidSequence()
|
/system/bt/btif/src/ |
D | btif_dm.c | 3259 int max_len = sizeof(btif_default_local_name) - 1; in btif_get_default_local_name() local 3262 strncpy(btif_default_local_name, BTM_DEF_LOCAL_NAME, max_len); in btif_get_default_local_name() 3268 strncpy(btif_default_local_name, prop_model, max_len); in btif_get_default_local_name() 3270 btif_default_local_name[max_len] = '\0'; in btif_get_default_local_name()
|