Searched defs:len (Results 151 - 175 of 5216) sorted by path

1234567891011>>

/external/bluetooth/bluedroid/stack/avrc/
H A Davrc_pars_ct.c47 UINT16 len; local
60 BE_STREAM_TO_UINT16 (len, p);
61 AVRC_TRACE_DEBUG("avrc_pars_vendor_rsp() ctype:0x%x pdu:0x%x, len:%d/0x%x", p_msg->hdr.ctype, p_result->pdu, len, len);
75 if (len != 1)
H A Davrc_pars_tg.c46 UINT16 len; local
63 BE_STREAM_TO_UINT16 (len, p);
64 if ((len+4) != (p_msg->vendor_len))
78 else if (len != 1)
84 if (len != 0)
92 else if (len != 1)
99 if (len != (p_result->get_cur_app_val.num_attr+1))
122 if (p_buf && (len == ((p_result->set_app_val.num_val<<1) + 1)))
142 AVRC_TRACE_ERROR("AVRC_PDU_SET_PLAYER_APP_VALUE NULL decode buffer or bad len");
148 if (len <
[all...]
/external/bluetooth/bluedroid/stack/bnep/
H A Dbnep_api.c151 if (src_uuid->len != dst_uuid->len)
155 if (src_uuid->len != 2)
284 rem_len = p_bcb->p_pending_data->len;
379 if (p_buf->len > BNEP_MTU_SIZE)
381 BNEP_TRACE_ERROR ("BNEP_Write() length %d exceeded MTU %d", p_buf->len, BNEP_MTU_SIZE);
398 /* parse the extension headers and findout the new packet len */
399 org_len = p_buf->len;
425 p_buf->len = new_len;
476 UINT16 len,
473 BNEP_Write(UINT16 handle, UINT8 *p_dest_addr, UINT8 *p_data, UINT16 len, UINT16 protocol, UINT8 *p_src_addr, BOOLEAN fw_ext_present) argument
[all...]
H A Dbnep_utils.c40 void bnepu_process_peer_multicast_filter_set (tBNEP_CONN *p_bcb, UINT8 *p_filters, UINT16 len);
192 UINT8_TO_BE_STREAM (p, p_bcb->dst_uuid.len);
194 if (p_bcb->dst_uuid.len == 2)
200 else if (p_bcb->dst_uuid.len == 4)
207 memcpy (p, p_bcb->dst_uuid.uu.uuid128, p_bcb->dst_uuid.len);
208 p += p_bcb->dst_uuid.len;
209 memcpy (p, p_bcb->src_uuid.uu.uuid128, p_bcb->dst_uuid.len);
210 p += p_bcb->dst_uuid.len;
214 p_buf->len = (UINT16)(p - p_start);
252 p_buf->len
585 bnep_process_setup_conn_req(tBNEP_CONN *p_bcb, UINT8 *p_setup, UINT8 len) argument
788 UINT16 len, ext_len = 0; local
901 bnepu_process_peer_filter_set(tBNEP_CONN *p_bcb, UINT8 *p_filters, UINT16 len) argument
1088 bnepu_process_peer_multicast_filter_set(tBNEP_CONN *p_bcb, UINT8 *p_filters, UINT16 len) argument
1333 UINT8 len, ext; local
[all...]
/external/bluetooth/bluedroid/stack/btm/
H A Dbtm_ble.c443 void BTM_BleOobDataReply(BD_ADDR bd_addr, UINT8 res, UINT8 len, UINT8 *p_data) argument
458 SMP_OobDataReply(bd_addr, res_smp, len, p_data);
1837 ** len: length of the data to be signed.
1844 BOOLEAN BTM_BleDataSignature (BD_ADDR bd_addr, UINT8 *p_text, UINT16 len, argument
1867 if ((p_buf = (UINT8 *)GKI_getbuf((UINT16)(len + 4))) != NULL)
1874 memcpy(p_buf, p_text, len);
1875 pp = (p_buf + len);
1924 if ((ret = AES_CMAC(local_csrk, p_buf, (UINT16)(len + 4), BTM_CMAC_TLEN_SIZE, p_mac)) == TRUE)
1959 ** len: length of the signing data
1966 BOOLEAN BTM_BleVerifySignature (BD_ADDR bd_addr, UINT8 *p_orig, UINT16 len, UINT3 argument
[all...]
H A Dbtm_ble_adv_filter.c450 len = BTM_BLE_ADV_FILT_META_HDR_LENGTH; local
471 len += p_local_name->data_len;
476 len,
542 len = BTM_BLE_ADV_FILT_META_HDR_LENGTH; local
577 len += (p_srvc_data->data_len);
581 len += (p_srvc_data->data_len);
582 BTM_TRACE_DEBUG("Service data length: %d", len);
600 len += (p_manu_data->data_len + 2);
603 len += 2;
614 len
783 len = BTM_BLE_ADV_FILT_META_HDR_LENGTH; local
1047 UINT8 len =0; local
[all...]
H A Dbtm_ble_batchscan.c62 void btm_ble_batchscan_filter_track_adv_vse_cback(UINT8 len, UINT8 *p) argument
78 if (len < 10)
159 int index = 0, len = 0; local
168 BTM_TRACE_DEBUG("btm_ble_batchscan_enq_rep_data: index:%d, rep %d, num %d len : %d",
173 len = ble_batchscan_cb.main_rep_q.data_len[index];
177 p_app_data = GKI_getbuf(len + data_len);
178 memcpy(p_app_data, p_orig_data, len);
179 memcpy(p_app_data+len, p_data, data_len);
319 UINT16 len = p_params->param_len; local
330 if (len <
[all...]
H A Dbtm_ble_cont_energy.c47 UINT16 len = p_params->param_len; local
51 if (len < 17)
H A Dbtm_ble_gap.c1141 UINT16 len = BTM_BLE_AD_DATA_LEN, cp_len = 0; local
1161 len -= 3;
1166 if (len > 3 && data_mask & BTM_BLE_AD_BIT_APPEARANCE)
1171 len -= 4;
1177 if (len > MIN_ADV_LENGTH && data_mask & BTM_BLE_AD_BIT_DEV_NAME)
1179 if (strlen(btm_cb.cfg.bd_name) > (UINT16)(len - MIN_ADV_LENGTH))
1181 *p++ = len - MIN_ADV_LENGTH + 1;
1183 ARRAY_TO_STREAM(p, btm_cb.cfg.bd_name, len - MIN_ADV_LENGTH);
1192 len -= (cp_len + MIN_ADV_LENGTH);
1197 if (len > MIN_ADV_LENGT
2242 UINT8 len; local
2361 UINT8 data_len, len; local
[all...]
H A Dbtm_ble_multi_adv.c100 UINT16 len = p_params->param_len; local
104 if (len < 2)
733 void btm_ble_multi_adv_vse_cback(UINT8 len, UINT8 *p) argument
740 len--;
743 if ((sub_event == HCI_VSE_SUBCODE_BLE_MULTI_ADV_ST_CHG) && (len >= 4))
H A Dbtm_int.h668 UINT16 len; member in struct:__anon1254
H A Dbtm_sec.c1929 UINT16 len = 0; local
1939 UINT16_TO_STREAM(p, len);
1942 len = BTM_OOB_MANDATORY_SIZE;
1943 max_len -= len;
1954 len += delta;
1965 len += delta;
1976 len += delta;
1992 len += delta;
1996 /* update len */
1998 UINT16_TO_STREAM(p, len);
2022 UINT8 len, type; local
[all...]
/external/bluetooth/bluedroid/stack/gap/
H A Dgap_ble.c242 p_value->len = GATT_MAX_ATTR_LEN;
244 p_value->len = (UINT16)strlen ((char *)p_dev_name);
246 if (offset > p_value->len)
250 p_value->len -= offset;
252 ARRAY_TO_STREAM(p, p_dev_name, p_value->len);
253 GAP_TRACE_EVENT("GATT_UUID_GAP_DEVICE_NAME len=0x%04x", p_value->len);
259 p_value->len = 2;
267 p_value->len =8;
404 uuid.len
498 gap_ble_cl_op_cmpl(tGAP_CLCB *p_clcb, BOOLEAN status, UINT16 len, UINT8 *p_name) argument
606 UINT16 len; local
[all...]
/external/bluetooth/bluedroid/stack/gatt/
H A Datt_protocol.c59 p_buf->len = GATT_HDR_SIZE; /* opcode + 2 bytes mtu */
82 p_buf->len = GATT_OP_CODE_SIZE;
90 p_buf->len += 1;
123 p_buf->len = GATT_HDR_SIZE + 1 + 1;
146 p_buf->len = GATT_OP_CODE_SIZE + 4;
151 p_buf->len += gatt_build_uuid_to_stream(&p, uuid);
169 UINT16 len = p_value_type->value_len; local
176 p_buf->len = 5; /* opcode + s_handle + e_handle */
182 p_buf->len += gatt_build_uuid_to_stream(&p, p_value_type->uuid);
184 if (p_value_type->value_len + p_buf->len > payload_siz
295 attp_build_value_cmd(UINT16 payload_size, UINT8 op_code, UINT16 handle, UINT16 offset, UINT16 len, UINT8 *p_data) argument
[all...]
H A Dgatt_cl.c95 cl_req.browse.uuid.len = 2;
101 cl_req.find_type_value.uuid.len = 2;
105 cl_req.find_type_value.value_len = p_clcb->uuid.len;
107 if (p_clcb->uuid.len == LEN_UUID_32)
113 memcpy (cl_req.find_type_value.value, &p_clcb->uuid.uu, p_clcb->uuid.len);
156 msg.browse.uuid.len = LEN_UUID_16;
241 p_attr->len,
247 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE))
255 p_attr->len,
330 p_rsp_value->len !
413 gatt_process_find_type_value_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT16 len, UINT8 *p_data) argument
458 gatt_process_read_info_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
557 gatt_process_error_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
610 gatt_process_prep_write_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
658 gatt_process_notification(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
744 gatt_process_read_by_type_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
946 gatt_process_read_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
1050 gatt_process_mtu_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT16 len, UINT8 *p_data) argument
1161 gatt_client_handle_server_rsp(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
[all...]
H A Dgatt_db.c44 static BOOLEAN copy_extra_byte_in_db(tGATT_SVC_DB *p_db, void **p_dst, UINT16 len);
57 ** len: size of the memory space.
88 ** len: size of the memory space.
214 UINT16 len = 0, uuid16 = 0; local
245 len = p_attr16->p_value->uuid.len;
246 if (mtu >= p_attr16->p_value->uuid.len)
254 len = (((tGATT_ATTR16 *)(p_attr16->p_next))->uuid_type == GATT_ATTR_UUID_TYPE_16) ? 5 :19;
256 if (mtu >= len)
281 if (p_attr16->p_value->incl_handle.service_type.len
341 UINT16 len = 0; local
742 gatts_write_attr_perm_check(tGATT_SVC_DB *p_db, UINT8 op_code, UINT16 handle, UINT16 offset, UINT8 *p_data, UINT16 len, tGATT_SEC_FLAG sec_flag, UINT8 key_size) argument
928 UINT16 len = sizeof(tGATT_ATTR128); local
1078 copy_extra_byte_in_db(tGATT_SVC_DB *p_db, void **p_dst, UINT16 len) argument
[all...]
H A Dgatt_sr.c127 UINT16 ii, total_len, len; local
152 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu;
153 if ((p_buf = (BT_HDR *)GKI_getbuf(len)) == NULL)
159 memset(p_buf, 0, len);
165 p_buf->len = 1;
182 total_len = (p_buf->len + p_rsp->attr_value.len);
187 len = p_rsp->attr_value.len - (total_len - mtu);
189 GATT_TRACE_DEBUG ("multi read overflow available len
331 gatt_process_exec_write_req(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
396 gatt_process_read_multi_req(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
623 UINT16 len = *p_len; local
705 UINT16 len = *p_len; local
763 gatts_process_primary_service_req(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
834 gatts_process_find_info(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
909 gatts_process_mtu_req(tGATT_TCB *p_tcb, UINT16 len, UINT8 *p_data) argument
975 gatts_process_read_by_type_req(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
1091 gatts_process_write_req(tGATT_TCB *p_tcb, UINT8 i_rcb, UINT16 handle, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
1180 gatts_process_read_req(tGATT_TCB *p_tcb, tGATT_SR_REG *p_rcb, UINT8 op_code, UINT16 handle, UINT16 len, UINT8 *p_data) argument
1250 gatts_process_attribute_req(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
1457 gatt_server_handle_client_req(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, UINT8 *p_data) argument
[all...]
H A Dgatt_utils.c1006 if (src.len == 0 || tar.len == 0)
1012 if (src.len == LEN_UUID_16 && tar.len == LEN_UUID_16)
1018 if (src.len == LEN_UUID_32 && tar.len == LEN_UUID_32)
1024 if (src.len == LEN_UUID_16)
1030 else if (src.len == LEN_UUID_32)
1038 if (tar.len == LEN_UUID_16)
1044 else if (tar.len
1068 UINT8 len = 0; local
2063 gatt_send_write_msg(tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, UINT16 handle, UINT16 len, UINT16 offset, UINT8 *p_data) argument
[all...]
/external/bluetooth/bluedroid/stack/hcic/
H A Dhcicmds.c53 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQUIRY;
77 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQ_CANCEL;
97 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PER_INQ_MODE;
123 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_EXIT_PER_INQ;
146 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN;
148 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN - 1;
185 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_DISCONNECT;
214 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ADD_SCO_CONN;
238 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN_CANCEL;
260 p->len
1361 UINT16 len = strlen ((char *)name) + 1; local
3310 btsnd_hcic_vendor_spec_cmd(void *buffer, UINT16 opcode, UINT8 len, UINT8 *p_data, void *p_cmd_cplt_cback) argument
3329 btsnd_hcic_data(BT_HDR *p_buf, UINT16 len, UINT16 handle, UINT8 boundary, UINT8 broadcast) argument
[all...]
/external/bluetooth/bluedroid/stack/include/
H A Davdt_api.h316 UINT16 len; /* Length in bytes of the security data */ member in struct:__anon1316
743 AVDT_API extern UINT16 AVDT_SecurityReq(UINT8 handle, UINT8 *p_data, UINT16 len);
760 UINT8 *p_data, UINT16 len);
H A Dbt_types.h209 uint16_t len; member in struct:__anon1387
256 #define ARRAY_TO_STREAM(p, a, len) {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++ = (UINT8) a[ijk];}
257 #define REVERSE_ARRAY_TO_STREAM(p, a, len) {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++ = (UINT8) a[len - 1 - ijk];}
269 #define STREAM_TO_ARRAY(a, p, len) {register int ijk; for (ijk = 0; ijk < len; ijk++) ((UINT8 *) a)[ijk] = *p++;}
270 #define REVERSE_STREAM_TO_ARRAY(a, p, len) {register int ijk; register UINT8 *_pa = (UINT8 *)a + len
427 UINT16 len; member in struct:__anon1389
[all...]
H A Dbtm_ble_api.h373 UINT8 len; member in struct:__anon1478
381 UINT8 len; member in struct:__anon1479
388 UINT8 len; member in struct:__anon1480
389 UINT8 *p_val; /* number of len byte */
1150 BTM_API extern void BTM_BleOobDataReply(BD_ADDR bd_addr, UINT8 res, UINT8 len, UINT8 *p_data);
1162 ** len: length of the signing data
1169 BTM_API extern BOOLEAN BTM_BleDataSignature (BD_ADDR bd_addr, UINT8 *p_text, UINT16 len,
1180 ** len: length of the signing data
1188 UINT16 len, UINT32 counter,
H A Dgatt_api.h260 UINT16 len; member in struct:__anon1525
315 UINT16 len; /* length of attribute value */ member in struct:__anon1527
354 UINT16 len; /* length of attribute value */ member in struct:__anon1530
H A Dobx_api.h423 UINT8 len; member in struct:__anon1596
435 UINT16 len; /* Length of target header. */ member in struct:__anon1597
878 ** OBEX_HDR_OFFSET, the len as 0. The layer_specific is set to the
902 OBX_API extern BOOLEAN OBX_AddNameHdr(BT_HDR *p_pkt, UINT16 *p_name, UINT16 len);
953 OBX_API extern BOOLEAN OBX_AddLengthHdr(BT_HDR *p_pkt, UINT32 len);
979 OBX_API extern BOOLEAN OBX_AddDescrHdr(BT_HDR *p_pkt, UINT16 *p_descr, UINT16 len);
1007 OBX_API extern BOOLEAN OBX_AddTargetHdr(BT_HDR *p_pkt, UINT8 *p_target, UINT16 len);
1020 OBX_API extern BOOLEAN OBX_AddHttpHdr(BT_HDR *p_pkt, UINT8 *p_http, UINT16 len);
1035 OBX_API extern BOOLEAN OBX_AddBodyHdr(BT_HDR *p_pkt, UINT8 *p_body, UINT16 len, BOOLEAN end);
1062 OBX_API extern void OBX_AddBodyEnd(BT_HDR *p_pkt, UINT8 *p, UINT16 len, BOOLEA
[all...]
H A Dsrvc_api.h53 UINT16 len; member in struct:__anon1617

Completed in 361 milliseconds

1234567891011>>