Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 22 of 22) sorted by relevance

/system/nfc/src/nfa/dm/
Dnfa_dm_main.cc216 uint8_t type, len, *p_value, *p_stored, max_len; in nfa_dm_check_set_config() local
246 max_len = NCI_PARAM_LEN_PF_RC; in nfa_dm_check_set_config()
250 max_len = NCI_PARAM_LEN_TOTAL_DURATION; in nfa_dm_check_set_config()
258 max_len = NCI_PARAM_LEN_LA_BIT_FRAME_SDD; in nfa_dm_check_set_config()
263 max_len = NCI_PARAM_LEN_LA_PLATFORM_CONFIG; in nfa_dm_check_set_config()
268 max_len = NCI_PARAM_LEN_LA_SEL_INFO; in nfa_dm_check_set_config()
273 max_len = NCI_NFCID1_MAX_LEN; in nfa_dm_check_set_config()
278 max_len = NCI_MAX_HIS_BYTES_LEN; in nfa_dm_check_set_config()
287 max_len = NCI_PARAM_LEN_LB_SENSB_INFO; in nfa_dm_check_set_config()
292 max_len = NCI_PARAM_LEN_LB_NFCID0; in nfa_dm_check_set_config()
[all …]
/system/core/libsparse/
Dbacked_block.cpp343 unsigned int max_len) { in backed_block_split() argument
346 max_len = ALIGN_DOWN(max_len, bbl->block_size); in backed_block_split()
348 if (bb->len <= max_len) { in backed_block_split()
359 new_bb->len = bb->len - max_len; in backed_block_split()
360 new_bb->block = bb->block + max_len / bbl->block_size; in backed_block_split()
363 bb->len = max_len; in backed_block_split()
367 new_bb->data.data = (char*)bb->data.data + max_len; in backed_block_split()
370 new_bb->file.offset += max_len; in backed_block_split()
373 new_bb->fd.offset += max_len; in backed_block_split()
Dbacked_block.h51 int backed_block_split(struct backed_block_list* bbl, struct backed_block* bb, unsigned int max_len
Dsparse.cpp313 int sparse_file_resparse(struct sparse_file* in_s, unsigned int max_len, struct sparse_file** out_s, in sparse_file_resparse() argument
328 bb = move_chunks_up_to_len(in_s, s, max_len); in sparse_file_resparse()
/system/bt/stack/rfcomm/
Dport_api.cc1130 int PORT_ReadData(uint16_t handle, char* p_data, uint16_t max_len, in PORT_ReadData() argument
1136 RFCOMM_TRACE_API("PORT_ReadData() handle:%d max_len:%d", handle, max_len); in PORT_ReadData()
1160 while (max_len) { in PORT_ReadData()
1164 if (p_buf->len > max_len) { in PORT_ReadData()
1165 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData()
1166 p_buf->offset += max_len; in PORT_ReadData()
1167 p_buf->len -= max_len; in PORT_ReadData()
1169 *p_len += max_len; in PORT_ReadData()
1173 p_port->rx.queue_size -= max_len; in PORT_ReadData()
1182 max_len -= p_buf->len; in PORT_ReadData()
[all …]
/system/bt/btif/src/
Dbtif_sock.cc247 uint16_t max_len = controller->get_ble_maximum_tx_data_length(); in btsock_request_max_tx_data_length() local
249 DVLOG(2) << __func__ << ": max_len=" << max_len; in btsock_request_max_tx_data_length()
251 BTA_DmBleSetDataLength(remote_device, max_len); in btsock_request_max_tx_data_length()
Dbtif_dm.cc3239 int max_len = sizeof(btif_default_local_name) - 1; in btif_get_default_local_name() local
3241 strncpy(btif_default_local_name, BTM_DEF_LOCAL_NAME, max_len); in btif_get_default_local_name()
3245 strncpy(btif_default_local_name, prop_model, max_len); in btif_get_default_local_name()
3247 btif_default_local_name[max_len] = '\0'; in btif_get_default_local_name()
/system/bt/stack/hid/
Dhidh_api.cc71 void hidh_get_str_attr(tSDP_DISC_REC* p_rec, uint16_t attr_id, uint16_t max_len, in hidh_get_str_attr() argument
79 if (name_len < max_len) { in hidh_get_str_attr()
83 memcpy(str, (char*)p_attr->attr_value.v.array, max_len - 1); in hidh_get_str_attr()
84 str[max_len - 1] = '\0'; in hidh_get_str_attr()
/system/bt/stack/include/
Dport_api.h561 extern int PORT_ReadData(uint16_t handle, char* p_data, uint16_t max_len,
590 extern int PORT_WriteData(uint16_t handle, const char* p_data, uint16_t max_len,
Dgap_api.h210 uint16_t max_len, uint16_t* p_len);
Dbtm_api.h1685 extern uint16_t BTM_BuildOobData(uint8_t* p_data, uint16_t max_len,
Dhcimsgs.h775 uint16_t max_len);
/system/core/libsparse/include/sparse/
Dsparse.h321 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len,
/system/core/liblog/tests/
Dliblog_test.cpp1083 ssize_t max_len = 0; in TEST() local
1110 if (max_len <= (left - data)) { in TEST()
1111 max_len = left - data + 1; in TEST()
1114 if (max_len > 512) { in TEST()
1125 EXPECT_LE(SIZEOF_MAX_PAYLOAD_BUF, static_cast<size_t>(max_len)); in TEST()
1221 ssize_t max_len = 0; in TEST() local
1248 if (max_len <= (left - data)) { in TEST()
1249 max_len = left - data + 1; in TEST()
1256 max_len = in TEST()
1257 max_len ? max_len : LOGGER_ENTRY_MAX_PAYLOAD - sizeof(big_payload_tag); in TEST()
[all …]
/system/bt/stack/gap/
Dgap_conn.cc373 uint16_t max_len, uint16_t* p_len) { in GAP_ConnReadData() argument
385 while (max_len) { in GAP_ConnReadData()
390 copy_len = (p_buf->len > max_len) ? max_len : p_buf->len; in GAP_ConnReadData()
391 max_len -= copy_len; in GAP_ConnReadData()
/system/nfc/src/nfc/nfc/
Dnfc_ncif.cc1166 uint8_t max_len; in nfc_ncif_proc_ee_action() local
1196 max_len = ulen; in nfc_ncif_proc_ee_action()
1199 if (max_len > NFC_MAX_AID_LEN) max_len = NFC_MAX_AID_LEN; in nfc_ncif_proc_ee_action()
1200 evt_data.act_data.param.app_init.len_aid = max_len; in nfc_ncif_proc_ee_action()
1204 if (max_len > NFC_MAX_APP_DATA_LEN) in nfc_ncif_proc_ee_action()
1205 max_len = NFC_MAX_APP_DATA_LEN; in nfc_ncif_proc_ee_action()
1206 evt_data.act_data.param.app_init.len_data = max_len; in nfc_ncif_proc_ee_action()
1211 STREAM_TO_ARRAY(p_data, p, max_len); in nfc_ncif_proc_ee_action()
/system/bt/stack/btm/
Dbtm_sec.cc1608 uint16_t BTM_BuildOobData(uint8_t* p_data, uint16_t max_len, const Octet16& c, in BTM_BuildOobData() argument
1615 if (p_data && max_len >= BTM_OOB_MANDATORY_SIZE) { in BTM_BuildOobData()
1621 max_len -= len; in BTM_BuildOobData()
1627 if (max_len >= delta) { in BTM_BuildOobData()
1632 max_len -= delta; in BTM_BuildOobData()
1637 if (max_len >= delta) { in BTM_BuildOobData()
1642 max_len -= delta; in BTM_BuildOobData()
1647 if (max_len >= delta) { in BTM_BuildOobData()
1652 max_len -= delta; in BTM_BuildOobData()
1660 if (max_len >= delta) { in BTM_BuildOobData()
[all …]
Dbtm_ble_adv_filter.cc548 uint8_t max_len = len + BTM_BLE_META_UUID_LEN; in BTM_LE_PF_uuid_filter() local
549 uint8_t param[max_len]; in BTM_LE_PF_uuid_filter()
550 memset(param, 0, max_len); in BTM_LE_PF_uuid_filter()
/system/bt/stack/sdp/
Dsdp_db.cc556 int32_t max_len = SDP_MAX_ATTR_LEN - 3; in SDP_AddUuidSequence() local
568 if ((p - p_buff) > max_len) { in SDP_AddUuidSequence()
/system/core/lmkd/
Dlmkd.c394 static ssize_t read_all(int fd, char *buf, size_t max_len) in read_all() argument
399 while (max_len > 0) { in read_all()
400 ssize_t r = TEMP_FAILURE_RETRY(pread(fd, buf, max_len, offset)); in read_all()
410 max_len -= r; in read_all()
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc2763 int max_len; in nfa_ee_lmrt_to_nfcc() local
2769 max_len = (NFC_GetLmrtSize() > NFA_EE_ROUT_BUF_SIZE) ? NFC_GetLmrtSize() in nfa_ee_lmrt_to_nfcc()
2771 p = (uint8_t*)GKI_getbuf(max_len); in nfa_ee_lmrt_to_nfcc()
2796 (uint8_t)((max_len > NFA_EE_ROUT_MAX_TLV_SIZE) ? NFA_EE_ROUT_MAX_TLV_SIZE in nfa_ee_lmrt_to_nfcc()
2797 : max_len); in nfa_ee_lmrt_to_nfcc()
2809 nfa_ee_route_add_one_ecb_by_route_order(p_cb, rt, &max_len, more, p, in nfa_ee_lmrt_to_nfcc()
2818 &max_len, more, p, &cur_offset); in nfa_ee_lmrt_to_nfcc()
/system/connectivity/wificond/net/kernel-header-latest/
Dnl80211.h4327 __u32 min_len, max_len, bufsize; member