Home
last modified time | relevance | path

Searched refs:attr_value (Results 1 – 25 of 31) sorted by relevance

12

/system/bt/stack/sdp/
Dsdp_api.c348 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr) in SDP_FindServiceUUIDInRec()
355 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
361 p_uuid->uu.uuid128[i] = p_sattr->attr_value.v.array[LEN_UUID_128-i-1]; in SDP_FindServiceUUIDInRec()
366 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; in SDP_FindServiceUUIDInRec()
381 …for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; p_extra_sattr; p_extra_sattr = p_extra_satt… in SDP_FindServiceUUIDInRec()
389 p_uuid->uu.uuid16 = p_extra_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
405 p_uuid->uu.uuid16 = p_attr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
437 tSDP_DISC_ATTR *p_sattr = p_attr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec_128bit()
447 p_uuid->uu.uuid128[i] = p_sattr->attr_value.v.array[LEN_UUID_128-i-1]; in SDP_FindServiceUUIDInRec_128bit()
464 p_uuid->uu.uuid128[i] = p_attr->attr_value.v.array[LEN_UUID_128-i-1]; in SDP_FindServiceUUIDInRec_128bit()
[all …]
Dsdp_discovery.c906 p_attr->attr_value.v.u8 = *p++; in add_attr()
909 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p); in add_attr()
912 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p); in add_attr()
915 BE_STREAM_TO_ARRAY (p, p_attr->attr_value.v.array, (INT32)attr_len); in add_attr()
924 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p); in add_attr()
927 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p); in add_attr()
928 if (p_attr->attr_value.v.u32 < 0x10000) in add_attr()
932 p_attr->attr_value.v.u16 = (UINT16) p_attr->attr_value.v.u32; in add_attr()
944 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p); in add_attr()
950 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p); in add_attr()
[all …]
Dsdp_utils.c781 return (BOOLEAN)(p_btuuid->uu.uuid16 == p_attr->attr_value.v.u16); in sdpu_compare_uuid_with_attr()
783 return (BOOLEAN)(p_btuuid->uu.uuid32 == p_attr->attr_value.v.u32); in sdpu_compare_uuid_with_attr()
792 else if (!memcmp (p_btuuid->uu.uuid128,(void*) p_attr->attr_value.v.array, MAX_UUID_SIZE)) in sdpu_compare_uuid_with_attr()
/system/bt/stack/hid/
Dhidh_api.c86 memcpy( str, (char *) p_attr->attr_value.v.array, name_len ); in hidh_get_str_attr()
91 memcpy( str, (char *) p_attr->attr_value.v.array, max_len-1 ); in hidh_get_str_attr()
131 || ((p_subattr1 = p_attr->attr_value.v.p_sub_attr) == NULL) in hidh_search_callback()
133 || ((p_subattr2 = p_subattr1->attr_value.v.p_sub_attr) == NULL) in hidh_search_callback()
142 p_nvi->dscp_info.dsc_list = (UINT8 *) &p_repdesc->attr_value; in hidh_search_callback()
145 (p_attr->attr_value.v.u8) ) in hidh_search_callback()
151 (p_attr->attr_value.v.u8) ) in hidh_search_callback()
157 (p_attr->attr_value.v.u8) ) in hidh_search_callback()
163 (p_attr->attr_value.v.u8) ) in hidh_search_callback()
169 (p_attr->attr_value.v.u8) ) in hidh_search_callback()
[all …]
/system/bt/btif/src/
Dbtif_gatt_util.c114 p_dest->attr_value.auth_req = p_src->attr_value.auth_req; in btif_to_bta_response()
115 p_dest->attr_value.handle = p_src->attr_value.handle; in btif_to_bta_response()
116 p_dest->attr_value.len = p_src->attr_value.len; in btif_to_bta_response()
117 p_dest->attr_value.offset = p_src->attr_value.offset; in btif_to_bta_response()
118 memcpy(p_dest->attr_value.value, p_src->attr_value.value, GATT_MAX_ATTR_LEN); in btif_to_bta_response()
/system/bt/bta/sdp/
Dbta_sdp_act.c108 record->mns.supported_features = p_attr->attr_value.v.u32; in bta_create_mns_sdp_record()
114 record->mns.hdr.service_name = (char *)p_attr->attr_value.v.array; in bta_create_mns_sdp_record()
129 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mns_sdp_record()
151 record->mas.mas_instance_id = p_attr->attr_value.v.u8; in bta_create_mas_sdp_record()
156 record->mas.supported_message_types = p_attr->attr_value.v.u8; in bta_create_mas_sdp_record()
161 record->mas.supported_features = p_attr->attr_value.v.u32; in bta_create_mas_sdp_record()
167 record->mas.hdr.service_name = (char *)p_attr->attr_value.v.array; in bta_create_mas_sdp_record()
182 record->mas.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mas_sdp_record()
203 record->pse.supported_repositories = p_attr->attr_value.v.u8; in bta_create_pse_sdp_record()
207 record->pse.supported_features = p_attr->attr_value.v.u32; in bta_create_pse_sdp_record()
[all …]
/system/bt/stack/gap/
Dgap_ble.c251 UINT16_TO_STREAM(p, p_db_attr->attr_value.icon); in gap_read_attr_value()
256 UINT16_TO_STREAM(p, p_db_attr->attr_value.conn_param.int_min); /* int_min */ in gap_read_attr_value()
257 UINT16_TO_STREAM(p, p_db_attr->attr_value.conn_param.int_max); /* int_max */ in gap_read_attr_value()
258 UINT16_TO_STREAM(p, p_db_attr->attr_value.conn_param.latency); /* latency */ in gap_read_attr_value()
259 UINT16_TO_STREAM(p, p_db_attr->attr_value.conn_param.sp_tout); /* sp_tout */ in gap_read_attr_value()
265 UINT8_TO_STREAM(p, p_db_attr->attr_value.addr_resolution); in gap_read_attr_value()
284 p_rsp->attr_value.offset = p_data->offset; in gap_proc_read()
286 p_rsp->attr_value.handle = p_data->handle; in gap_proc_read()
288 status = gap_read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long); in gap_proc_read()
421 p_db_attr->attr_value.conn_param.int_max = GAP_PREFER_CONN_INT_MAX; /* 6 */ in gap_attr_db_init()
[all …]
Dgap_int.h110 tGAP_BLE_ATTR_VALUE attr_value; member
/system/bt/stack/srvc/
Dsrvc_battery.c331 rsp.attr_value.handle = p_inst->pending_handle; in Battery_Rsp()
332 rsp.attr_value.len = 2; in Battery_Rsp()
333 pp = rsp.attr_value.value; in Battery_Rsp()
339 rsp.attr_value.handle = p_inst->pending_handle; in Battery_Rsp()
340 rsp.attr_value.len = 1; in Battery_Rsp()
341 pp = rsp.attr_value.value; in Battery_Rsp()
351 rsp.attr_value.handle = p_inst->pending_handle; in Battery_Rsp()
352 rsp.attr_value.len = 2; in Battery_Rsp()
353 pp = rsp.attr_value.value; in Battery_Rsp()
Dsrvc_eng.c221 p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req()
223 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req()
226 …act = dis_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, p_data->is_long, p_status); in srvc_eng_process_read_req()
229 …act = battery_s_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, p_data->is_long, p_s… in srvc_eng_process_read_req()
/system/bt/stack/gatt/
Datt_protocol.c368 p_msg->attr_value.len, p_msg->attr_value.offset); in attp_build_sr_msg()
369 offset = p_msg->attr_value.offset; in attp_build_sr_msg()
379 p_msg->attr_value.handle, in attp_build_sr_msg()
381 p_msg->attr_value.len, in attp_build_sr_msg()
382 p_msg->attr_value.value); in attp_build_sr_msg()
560 offset = p_msg->attr_value.offset; in attp_send_cl_msg()
565 if (GATT_HANDLE_IS_VALID (p_msg->attr_value.handle)) in attp_send_cl_msg()
568 op_code, p_msg->attr_value.handle, in attp_send_cl_msg()
570 p_msg->attr_value.len, in attp_send_cl_msg()
571 p_msg->attr_value.value); in attp_send_cl_msg()
Dgatt_sr.c174 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp()
179 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
181 … GATT_TRACE_DEBUG ("multi read overflow available len=%d val_len=%d", len, p_rsp->attr_value.len ); in process_read_multi_rsp()
185 len = p_rsp->attr_value.len; in process_read_multi_rsp()
188 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) in process_read_multi_rsp()
190 memcpy (p, p_rsp->attr_value.value, len); in process_read_multi_rsp()
464 p_msg->attr_value.handle = handle; in gatt_process_read_multi_req()
470 p_msg->attr_value.value, in gatt_process_read_multi_req()
471 &p_msg->attr_value.len, in gatt_process_read_multi_req()
Dgatt_int.h120 tGATT_VALUE attr_value; /* write request */ member
141 tGATT_VALUE attr_value; /* READ, HANDLE_VALUE_IND, PREPARE_WRITE */ member
Dgatt_utils.c2130 msg.attr_value.handle = handle; in gatt_send_write_msg()
2131 msg.attr_value.len = len; in gatt_send_write_msg()
2132 msg.attr_value.offset = offset; in gatt_send_write_msg()
2134 memcpy (msg.attr_value.value, p_data, len); in gatt_send_write_msg()
/system/bt/bta/mce/
Dbta_mce_act.c98 evt_data.mas[found].p_srv_name = (char *) p_attr->attr_value.v.array; in bta_mce_search_cback()
104 evt_data.mas[found].instance_id = p_attr->attr_value.v.u8; in bta_mce_search_cback()
109 evt_data.mas[found].msg_type = p_attr->attr_value.v.u8; in bta_mce_search_cback()
/system/bt/bta/hl/
Dbta_hl_sdp.c46 for (p_attr = p_attr->attr_value.v.p_sub_attr; p_attr; p_attr = p_attr->p_next_attr) in bta_hl_fill_sup_feature_list()
56 …for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr && (item_cnt < 4) ; p_sattr = p_sattr->p_n… in bta_hl_fill_sup_feature_list()
64 p_list->list_elem[list_cnt].mdep_id = p_sattr->attr_value.v.u8; in bta_hl_fill_sup_feature_list()
67 p_list->list_elem[list_cnt].data_type = p_sattr->attr_value.v.u16; in bta_hl_fill_sup_feature_list()
70 … p_list->list_elem[list_cnt].mdep_role = (tBTA_HL_MDEP_ROLE) p_sattr->attr_value.v.u8; in bta_hl_fill_sup_feature_list()
73 … p_list->list_elem[list_cnt].p_mdep_desp = (char *) p_sattr->attr_value.v.array; in bta_hl_fill_sup_feature_list()
608 … for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr) in bta_hl_find_sink_or_src_srv_class_in_db()
612 && ( (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SINK) || in bta_hl_find_sink_or_src_srv_class_in_db()
613 (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SOURCE)) ) in bta_hl_find_sink_or_src_srv_class_in_db()
/system/bt/service/
Dgatt_server_old.cpp188 response.attr_value.len = 0; in RequestReadCallback()
193 response.attr_value.value); in RequestReadCallback()
194 response.attr_value.len = attribute_size - attribute_offset_octets; in RequestReadCallback()
197 response.attr_value.handle = attr_handle; in RequestReadCallback()
198 response.attr_value.offset = attribute_offset_octets; in RequestReadCallback()
199 response.attr_value.auth_req = 0; in RequestReadCallback()
249 response.attr_value.handle = attr_handle; in RequestWriteCallback()
250 response.attr_value.offset = attribute_offset; in RequestWriteCallback()
251 response.attr_value.len = length; in RequestWriteCallback()
252 response.attr_value.auth_req = 0; in RequestWriteCallback()
[all …]
Dgatt_server.cpp349 response.attr_value.handle = handle; in SendResponse()
351 memcpy(response.attr_value.value, value.data(), value.size()); in SendResponse()
352 response.attr_value.offset = offset; in SendResponse()
353 response.attr_value.len = value.size(); in SendResponse()
/system/bt/stack/a2dp/
Da2d_api.c82 a2d_svc.p_service_name = (char *) p_attr->attr_value.v.array; in a2d_sdp_cback()
90 a2d_svc.p_provider_name = (char *) p_attr->attr_value.v.array; in a2d_sdp_cback()
98 a2d_svc.features = p_attr->attr_value.v.u16; in a2d_sdp_cback()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.c259 bta_hf_client_cb.scb.peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr()
271 if (p_attr->attr_value.v.u16 == 0x01) in bta_hf_client_sdp_find_attr()
/system/bt/bta/ag/
Dbta_ag_sdp.c372 p_scb->peer_features = p_attr->attr_value.v.u16; in bta_ag_sdp_find_attr()
380 if (p_attr->attr_value.v.u8) in bta_ag_sdp_find_attr()
/system/media/audio_route/
Daudio_route.c438 const XML_Char *attr_value = NULL; in start_tag() local
456 attr_value = attr[i + 1]; in start_tag()
486 value = strtol((char *)attr_value, NULL, 0); in start_tag()
489 value = (unsigned char) strtol((char *)attr_value, NULL, 16); in start_tag()
492 value = mixer_enum_string_to_value(ctl, (char *)attr_value); in start_tag()
/system/bt/stack/include/
Dsdp_api.h115 tSDP_DISC_ATVAL attr_value; /* Variable length entry data */ member
/system/bt/stack/avrc/
Davrc_bld_tg.c630 p_rsp->param.player_setting.attr_value[xx])) in avrc_bld_notify_rsp()
633 UINT8_TO_BE_STREAM(p_data, p_rsp->param.player_setting.attr_value[xx]); in avrc_bld_notify_rsp()
Davrc_pars_ct.c127 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.attr_value[index], p_stream); in avrc_parse_notification_rsp()

12