/external/bluetooth/bluedroid/stack/l2cap/ |
H A D | l2c_utils.c | 342 BT_HDR *l2cu_build_header (tL2C_LCB *p_lcb, UINT16 len, UINT8 cmd, UINT8 id) argument 354 p_buf->len = len + HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; 373 UINT16_TO_STREAM (p, len + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD); 374 UINT16_TO_STREAM (p, len + L2CAP_CMD_OVERHEAD); 390 UINT16_TO_STREAM (p, len); 784 UINT16 len, cfg_len, buf_space, len1; local 791 len = BT_HDR_SIZE + HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD + L2CAP_CONFIG_RSP_LEN; 792 len1 = 0xFFFF - len; 799 p_buf = (BT_HDR *)GKI_getbuf (len 1129 UINT16 len = L2CAP_INFO_RSP_LEN; local [all...] |
/external/bluetooth/bluedroid/stack/pan/ |
H A D | pan_api.c | 422 src_uuid.len = 2; 423 dst_uuid.len = 2; 502 ** len - length of the data 510 tPAN_RESULT PAN_Write(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, UINT8 *p_data, UINT16 len, BOOLEAN ext) argument 527 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); 538 buffer->len = len; 540 memcpy((UINT8 *)buffer + sizeof(BT_HDR) + buffer->offset, p_data, buffer->len); 588 BNEP_Write(pan_cb.pcb[i].handle, dst, data, p_buf->len, protocol, src, ext);
|
H A D | pan_main.c | 116 if (remote_uuid->len == 16) 130 remote_uuid->len = 2; 132 if (remote_uuid->len == 4) 139 remote_uuid->len = 2; 150 if (local_uuid->len == 16) 164 local_uuid->len = 2; 166 if (local_uuid->len == 4) 173 local_uuid->len = 2; 186 if (remote_uuid->len != 2) 188 PAN_TRACE_ERROR ("PAN Connection failed because of wrong UUID size %d", remote_uuid->len); 435 pan_data_ind_cb(UINT16 handle, UINT8 *src, UINT8 *dst, UINT16 protocol, UINT8 *p_data, UINT16 len, BOOLEAN ext) argument 549 UINT16 i, len; local [all...] |
/external/bluetooth/bluedroid/stack/rfcomm/ |
H A D | port_api.c | 1224 if (p_buf->len > max_len) 1228 p_buf->len -= max_len; 1242 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, p_buf->len); 1244 *p_len += p_buf->len; 1245 max_len -= p_buf->len; 1249 p_port->rx.queue_size -= p_buf->len; 1253 p_data += p_buf->len; 1322 p_port->rx.queue_size -= p_buf->len; 1391 p_port->tx.queue_size += p_buf->len; 1530 && (((int)p_buf->len 1764 PORT_Test(UINT16 handle, UINT8 *p_data, UINT16 len) argument [all...] |
H A D | rfc_ts_frames.c | 58 p_buf->len = 4; 90 p_buf->len = 4; 122 p_buf->len = 4; 154 p_buf->len = 4; 174 if (p_buf->len > 127) 190 if (p_buf->len <= 127) 192 *p_data++ = RFCOMM_EA | (p_buf->len << 1); 193 p_buf->len += 3; 197 *p_data++ = (p_buf->len & 0x7f) << 1; 198 *p_data++ = p_buf->len >> RFCOMM_SHIFT_LENGTH 339 UINT8 len; local 575 UINT16 len; local [all...] |
H A D | rfc_utils.c | 78 ** Input len - number of bytes in the message 82 UINT8 rfc_calc_fcs (UINT16 len, UINT8 *p) argument 86 while (len--) 103 ** Input len - number of bytes in the message 108 BOOLEAN rfc_check_fcs (UINT16 len, UINT8 *p, UINT8 received_fcs) argument 112 while (len--)
|
/external/bluetooth/bluedroid/stack/sdp/ |
H A D | sdp_api.c | 59 ** len - (input) size (in bytes) of the memory 72 BOOLEAN SDP_InitDiscoveryDb (tSDP_DISCOVERY_DB *p_db, UINT32 len, UINT16 num_uuid, argument 79 if (p_db == NULL || (sizeof (tSDP_DISCOVERY_DB) > len) || 82 SDP_TRACE_ERROR("SDP_InitDiscoveryDb Illegal param: p_db 0x%x, len %d, num_uuid %d, num_attr %d", 83 (UINT32)p_db, len, num_uuid, num_attr); 88 memset (p_db, 0, (size_t)len); 90 p_db->mem_size = len - sizeof (tSDP_DISCOVERY_DB); 359 p_uuid->len = LEN_UUID_16; 364 p_uuid->len = LEN_UUID_128; 369 p_uuid->len 942 SDP_DiDiscover( BD_ADDR remote_device, tSDP_DISCOVERY_DB *p_db, UINT32 len, tSDP_DISC_CMPL_CB *p_cb ) argument 1008 UINT16 len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); local 1013 memcpy(dst, (char *)p_attr->attr_value.v.array, len); local [all...] |
H A D | sdp_db.c | 83 if (sdpu_compare_uuid_arrays (p_attr->value_ptr, p_attr->len, 85 p_seq->uuid_entry[yy].len)) 90 if (find_uuid_in_seq (p_attr->value_ptr, p_attr->len, 92 p_seq->uuid_entry[yy].len, 0)) 124 UINT32 len; local 133 p = sdpu_get_len_from_type (p, type, &len); 137 if (sdpu_compare_uuid_arrays (p, len, p_uuid, uuid_len)) 142 if (find_uuid_in_seq (p, len, p_uuid, uuid_len, nest_level + 1)) 145 p = p + len; 222 UINT16 xx, yy, len; local 416 UINT32 len = (attr_len > 200) ? 200 : attr_len; local 536 SDP_AddSequence(UINT32 handle, UINT16 attr_id, UINT16 num_elem, UINT8 type[], UINT8 len[], UINT8 *p_val[]) argument 902 UINT32 len; /* Number of bytes in the entry */ local 972 INT32 len = 0; /* Number of bytes in the entry */ local [all...] |
H A D | sdp_utils.c | 239 * assuming the attribute len is less than SDP_MAX_ATTR_LEN */ 247 if(p_attr->len > 0xFFFF) 250 UINT32_TO_BE_STREAM (p_out, p_attr->len); 256 if(p_attr->len > 0xFF) 259 UINT16_TO_BE_STREAM (p_out, p_attr->len); 266 UINT8_TO_BE_STREAM (p_out, p_attr->len); 269 ARRAY_TO_BE_STREAM (p_out, p_attr->value_ptr, (int)p_attr->len); 275 switch (p_attr->len) 294 UINT8_TO_BE_STREAM (p_out, p_attr->len); 298 ARRAY_TO_BE_STREAM (p_out, p_attr->value_ptr, (int)p_attr->len); 854 UINT16 len = 0; local 931 UINT16 len = 3; local 1000 sdpu_build_partial_attrib_entry(UINT8 *p_out, tSDP_ATTRIBUTE *p_attr, UINT16 len, UINT16 *offset) argument [all...] |
H A D | sdpint.h | 95 UINT16 len; member in struct:__anon1702 123 UINT32 len; /* Number of bytes in the entry */ member in struct:__anon1706 298 extern UINT8 *sdpu_build_partial_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr, UINT16 len, UINT16 *offset);
|
/external/bluetooth/bluedroid/stack/smp/ |
H A D | smp_api.c | 258 SMP_TRACE_WARNING ("SMP_PasskeyReply() - Wrong key len: %d or passkey entry fail", passkey); 283 void SMP_OobDataReply(BD_ADDR bd_addr, tSMP_STATUS res, UINT8 len, UINT8 *p_data) argument 297 if (res != SMP_SUCCESS || len == 0 || !p_data) 303 if (len > BT_OCTET16_LEN) 304 len = BT_OCTET16_LEN; 306 memcpy(p_cb->tk, p_data, len);
|
H A D | smp_cmac.c | 38 UINT16 len; member in struct:__anon1714 192 flag = ((cmac_cb.len % BT_OCTET16_LEN) == 0 && cmac_cb.len != 0) ? TRUE : FALSE; 202 padding(&cmac_cb.text[0], (UINT8)(cmac_cb.len % 16)); 297 UINT16 len, diff; local 304 len = n * BT_OCTET16_LEN; 306 SMP_TRACE_WARNING("AES128_CMAC started, allocate buffer size = %d", len); 308 if ((cmac_cb.text = (UINT8 *)GKI_getbuf(len)) != NULL) 312 memset(cmac_cb.text, 0, len); 313 diff = len [all...] |
H A D | smp_keys.c | 74 static void smp_debug_print_nbyte_little_endian (UINT8 *p, const UINT8 *key_name, UINT8 len) argument 80 for (i = 0; i < len; i ++) 87 #define smp_debug_print_nbyte_little_endian(p, key_name, len)
|
/external/bluetooth/bluedroid/stack/srvc/ |
H A D | srvc_eng.c | 470 void srvc_sr_notify(BD_ADDR remote_bda, UINT16 handle, UINT16 len, UINT8 *p_value) argument 476 GATTS_HandleValueNotification( conn_id, handle, len, p_value);
|
/external/bluetooth/bluedroid/test/bluedroidtest/ |
H A D | bluedroidtest.c | 474 static void dut_mode_recv(uint16_t UNUSED opcode, uint8_t UNUSED *buf, uint8_t UNUSED len) argument
|
/external/bluetooth/bluedroid/udrv/ulinux/ |
H A D | uipc.c | 177 socklen_t len = sizeof(struct sockaddr_un); local 193 if ((fd = accept(sfd, (struct sockaddr *)&remote, &len)) == -1) 751 UDRV_API UINT32 UIPC_Read(tUIPC_CH_ID ch_id, UINT16 *p_msg_evt, UINT8 *p_buf, UINT32 len) argument 771 //BTIF_TRACE_DEBUG("UIPC_Read : ch_id %d, len %d, fd %d, polltmo %d", ch_id, len, 774 while (n_read < (int)len) 798 n = recv(fd, p_buf+n_read, len-n_read, 0);
|
/external/bluetooth/bluedroid/utils/src/ |
H A D | bt_utils.c | 102 int len = property_get("debug.sys.noschedgroups", buf, ""); local 103 if (len > 0) {
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
H A D | NullOutputStream.java | 18 public void write(byte[] buf, int off, int len) argument
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/bc/ |
H A D | BcDigestCalculatorProvider.java | 55 public void write(byte[] bytes, int off, int len) argument 58 dig.update(bytes, off, len);
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
H A D | JcaContentSignerBuilder.java | 115 public void write(byte[] bytes, int off, int len) argument 120 sig.update(bytes, off, len);
|
H A D | JcaContentVerifierProviderBuilder.java | 267 public void write(byte[] bytes, int off, int len) argument 272 sig.update(bytes, off, len);
|
H A D | JcaDigestCalculatorProviderBuilder.java | 91 public void write(byte[] bytes, int off, int len) argument 94 dig.update(bytes, off, len);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
H A D | ASN1OutputStream.java | 58 void write(byte[] bytes, int off, int len) argument 61 os.write(bytes, off, len);
|
H A D | BEROctetStringGenerator.java | 67 public void write(byte[] b, int off, int len) throws IOException argument 69 while (len > 0) 71 int numToCopy = Math.min(len, _buf.length - _off); 84 len -= numToCopy;
|
H A D | ConstructedOctetStream.java | 20 public int read(byte[] b, int off, int len) throws IOException argument 44 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); 50 if (totalRead == len)
|