Home
last modified time | relevance | path

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

12

/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/bt/stack/rfcomm/
Dport_api.cc693 int PORT_ReadData(uint16_t handle, char* p_data, uint16_t max_len, in PORT_ReadData() argument
699 RFCOMM_TRACE_API("PORT_ReadData() handle:%d max_len:%d", handle, max_len); in PORT_ReadData()
723 while (max_len) { in PORT_ReadData()
727 if (p_buf->len > max_len) { in PORT_ReadData()
728 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData()
729 p_buf->offset += max_len; in PORT_ReadData()
730 p_buf->len -= max_len; in PORT_ReadData()
732 *p_len += max_len; in PORT_ReadData()
736 p_port->rx.queue_size -= max_len; in PORT_ReadData()
745 max_len -= p_buf->len; in PORT_ReadData()
[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.cpp325 int sparse_file_resparse(struct sparse_file* in_s, unsigned int max_len, struct sparse_file** out_s, in sparse_file_resparse() argument
340 bb = move_chunks_up_to_len(in_s, s, max_len); in sparse_file_resparse()
/system/bt/test/mock/
Dmock_stack_rfcomm_port_api.cc69 int PORT_ReadData(uint16_t handle, char* p_data, uint16_t max_len, in PORT_ReadData() argument
91 int PORT_WriteData(uint16_t handle, const char* p_data, uint16_t max_len, in PORT_WriteData() argument
Dmock_stack_gap_conn.cc71 uint16_t max_len, uint16_t* p_len) { in GAP_ConnReadData() argument
Dmock_stack_hidh.cc78 void hidh_get_str_attr(tSDP_DISC_REC* p_rec, uint16_t attr_id, uint16_t max_len, in hidh_get_str_attr() argument
/system/bt/stack/include/
Dport_api.h369 extern int PORT_ReadData(uint16_t handle, char* p_data, uint16_t max_len,
385 extern int PORT_WriteData(uint16_t handle, const char* p_data, uint16_t max_len,
Dgap_api.h152 uint16_t max_len, uint16_t* p_len);
Dhcimsgs.h581 uint16_t max_len);
/system/bt/stack/hid/
Dhidh_api.cc72 void hidh_get_str_attr(tSDP_DISC_REC* p_rec, uint16_t attr_id, uint16_t max_len, in hidh_get_str_attr() argument
80 if (name_len < max_len) { in hidh_get_str_attr()
84 memcpy(str, (char*)p_attr->attr_value.v.array, max_len - 1); in hidh_get_str_attr()
85 str[max_len - 1] = '\0'; in hidh_get_str_attr()
/system/core/libsparse/include/sparse/
Dsparse.h319 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len,
/system/extras/simpleperf/
Dcmd_dumprecord.cpp62 size_t max_len = std::min(data.size - field.offset, field.elem_count); in ExtractStringField() local
64 for (size_t i = 0; i < max_len && *p != '\0'; i++) { in ExtractStringField()
80 uint32_t max_len = location >> 16; in ExtractDynamicStringField() local
81 if (offset + max_len <= data.size) { in ExtractDynamicStringField()
83 for (size_t i = 0; i < max_len && *p != '\0'; i++) { in ExtractDynamicStringField()
/system/bt/stack/gap/
Dgap_conn.cc354 uint16_t max_len, uint16_t* p_len) { in GAP_ConnReadData() argument
366 while (max_len) { in GAP_ConnReadData()
371 copy_len = (p_buf->len > max_len) ? max_len : p_buf->len; in GAP_ConnReadData()
372 max_len -= copy_len; in GAP_ConnReadData()
/system/libfmq/fuzzer/
DAndroid.bp50 "max_len=50000",
/system/nfc/src/nfc/nfc/
Dnfc_ncif.cc1392 uint8_t max_len; in nfc_ncif_proc_ee_action() local
1431 max_len = ulen; in nfc_ncif_proc_ee_action()
1434 if (max_len > NFC_MAX_AID_LEN) max_len = NFC_MAX_AID_LEN; in nfc_ncif_proc_ee_action()
1435 evt_data.act_data.param.app_init.len_aid = max_len; in nfc_ncif_proc_ee_action()
1439 if (max_len > NFC_MAX_APP_DATA_LEN) in nfc_ncif_proc_ee_action()
1440 max_len = NFC_MAX_APP_DATA_LEN; in nfc_ncif_proc_ee_action()
1441 evt_data.act_data.param.app_init.len_data = max_len; in nfc_ncif_proc_ee_action()
1446 STREAM_TO_ARRAY(p_data, p, max_len); in nfc_ncif_proc_ee_action()
/system/bt/stack/btm/
Dbtm_ble_adv_filter.cc524 uint8_t max_len = len + BTM_BLE_META_UUID_LEN; in BTM_LE_PF_uuid_filter() local
525 uint8_t param[max_len]; in BTM_LE_PF_uuid_filter()
526 memset(param, 0, max_len); in BTM_LE_PF_uuid_filter()
/system/extras/simpleperf/scripts/
Dsimpleperf_report_lib.py108 offset, max_len = struct.unpack('<HH', data[self.offset:self.offset + 4])
110 while length < max_len and bytes_to_str(data[offset + length]) != '\x00':
/system/bt/stack/sdp/
Dsdp_db.cc548 int32_t max_len = SDP_MAX_ATTR_LEN - 3; in SDP_AddUuidSequence() local
560 if ((p - p_buff) > max_len) { in SDP_AddUuidSequence()
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc2805 int max_len; in nfa_ee_lmrt_to_nfcc() local
2811 max_len = (NFC_GetLmrtSize() > NFA_EE_ROUT_BUF_SIZE) ? NFC_GetLmrtSize() in nfa_ee_lmrt_to_nfcc()
2813 p = (uint8_t*)GKI_getbuf(max_len); in nfa_ee_lmrt_to_nfcc()
2839 (uint8_t)((max_len > NFA_EE_ROUT_MAX_TLV_SIZE) ? NFA_EE_ROUT_MAX_TLV_SIZE in nfa_ee_lmrt_to_nfcc()
2840 : max_len); in nfa_ee_lmrt_to_nfcc()
2852 nfa_ee_route_add_one_ecb_by_route_order(p_cb, rt, &max_len, more, p, in nfa_ee_lmrt_to_nfcc()
2861 &max_len, more, p, &cur_offset); in nfa_ee_lmrt_to_nfcc()
/system/logging/liblog/tests/
Dliblog_test.cpp954 ssize_t max_len = 0; in TEST() local
971 if (max_len <= (left - data)) { in TEST()
972 max_len = left - data + 1; in TEST()
975 if (max_len > 512) { in TEST()
982 EXPECT_LE(SIZEOF_MAX_PAYLOAD_BUF, static_cast<size_t>(max_len)); in TEST()
/system/bt/btif/src/
Dbtif_dm.cc3079 int max_len = sizeof(btif_default_local_name) - 1; in btif_get_default_local_name() local
3081 strncpy(btif_default_local_name, BTM_DEF_LOCAL_NAME, max_len); in btif_get_default_local_name()
3085 strncpy(btif_default_local_name, prop_model, max_len); in btif_get_default_local_name()
3087 btif_default_local_name[max_len] = '\0'; in btif_get_default_local_name()
/system/memory/lmkd/
Dlmkd.cpp583 static ssize_t read_all(int fd, char *buf, size_t max_len) in read_all() argument
588 while (max_len > 0) { in read_all()
589 ssize_t r = TEMP_FAILURE_RETRY(pread(fd, buf, max_len, offset)); in read_all()
599 max_len -= r; in read_all()
/system/bt/bta/dm/
Dbta_dm_act.cc3711 uint16_t max_len = controller->get_ble_maximum_tx_data_length(); in bta_dm_ble_set_data_length() local
3713 if (BTM_SetBleDataLength(bd_addr, max_len) != BTM_SUCCESS) { in bta_dm_ble_set_data_length()
3714 LOG_INFO("Unable to set ble data length:%hu", max_len); in bta_dm_ble_set_data_length()

12