Home
last modified time | relevance | path

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

12

/system/bt/stack/sdp/
Dsdp_api.c346 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr) in SDP_FindServiceUUIDInRec()
353 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
358 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, LEN_UUID_128); in SDP_FindServiceUUIDInRec()
363 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; in SDP_FindServiceUUIDInRec()
378 …for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; p_extra_sattr; p_extra_sattr = p_extra_satt… in SDP_FindServiceUUIDInRec()
386 p_uuid->uu.uuid16 = p_extra_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
402 p_uuid->uu.uuid16 = p_attr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
437 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr) in SDP_FindServiceUUIDInRec_128bit()
445 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, MAX_UUID_SIZE); in SDP_FindServiceUUIDInRec_128bit()
459 memcpy(p_uuid->uu.uuid128, p_attr->attr_value.v.array, MAX_UUID_SIZE); in SDP_FindServiceUUIDInRec_128bit()
[all …]
Dsdp_discovery.c935 p_attr->attr_value.v.u8 = *p++; in add_attr()
938 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p); in add_attr()
941 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p); in add_attr()
944 BE_STREAM_TO_ARRAY (p, p_attr->attr_value.v.array, (INT32)attr_len); in add_attr()
953 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p); in add_attr()
956 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p); in add_attr()
957 if (p_attr->attr_value.v.u32 < 0x10000) in add_attr()
961 p_attr->attr_value.v.u16 = (UINT16) p_attr->attr_value.v.u32; in add_attr()
973 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p); in add_attr()
979 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p); in add_attr()
[all …]
Dsdp_utils.c792 return (BOOLEAN)(p_btuuid->uu.uuid16 == p_attr->attr_value.v.u16); in sdpu_compare_uuid_with_attr()
794 return (BOOLEAN)(p_btuuid->uu.uuid32 == p_attr->attr_value.v.u32); in sdpu_compare_uuid_with_attr()
803 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.c126 p_dest->attr_value.auth_req = p_src->attr_value.auth_req; in btif_to_bta_response()
127 p_dest->attr_value.handle = p_src->attr_value.handle; in btif_to_bta_response()
128 p_dest->attr_value.len = p_src->attr_value.len; in btif_to_bta_response()
129 p_dest->attr_value.offset = p_src->attr_value.offset; in btif_to_bta_response()
130 memcpy(p_dest->attr_value.value, p_src->attr_value.value, GATT_MAX_ATTR_LEN); in btif_to_bta_response()
Dbtif_gatt_server.c506 0, rsp_struct.attr_value.handle); in btgatts_handle_event()
/system/bt/bta/sdp/
Dbta_sdp_act.c112 record->mns.supported_features = p_attr->attr_value.v.u32; in bta_create_mns_sdp_record()
118 record->mns.hdr.service_name = (char *)p_attr->attr_value.v.array; in bta_create_mns_sdp_record()
133 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mns_sdp_record()
156 record->mas.mas_instance_id = p_attr->attr_value.v.u8; in bta_create_mas_sdp_record()
161 record->mas.supported_message_types = p_attr->attr_value.v.u8; in bta_create_mas_sdp_record()
166 record->mas.supported_features = p_attr->attr_value.v.u32; in bta_create_mas_sdp_record()
172 record->mas.hdr.service_name = (char *)p_attr->attr_value.v.array; in bta_create_mas_sdp_record()
187 record->mas.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mas_sdp_record()
209 record->pse.supported_repositories = p_attr->attr_value.v.u8; in bta_create_pse_sdp_record()
213 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.h106 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.c223 p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req()
225 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req()
228 …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()
231 …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.c396 p_msg->attr_value.len, p_msg->attr_value.offset); in attp_build_sr_msg()
397 offset = p_msg->attr_value.offset; in attp_build_sr_msg()
407 p_msg->attr_value.handle, in attp_build_sr_msg()
409 p_msg->attr_value.len, in attp_build_sr_msg()
410 p_msg->attr_value.value); in attp_build_sr_msg()
588 offset = p_msg->attr_value.offset; in attp_send_cl_msg()
593 if (GATT_HANDLE_IS_VALID (p_msg->attr_value.handle)) in attp_send_cl_msg()
596 op_code, p_msg->attr_value.handle, in attp_send_cl_msg()
598 p_msg->attr_value.len, in attp_send_cl_msg()
599 p_msg->attr_value.value); in attp_send_cl_msg()
Dgatt_sr.c182 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp()
187 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
189 … GATT_TRACE_DEBUG ("multi read overflow available len=%d val_len=%d", len, p_rsp->attr_value.len ); in process_read_multi_rsp()
193 len = p_rsp->attr_value.len; in process_read_multi_rsp()
196 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) in process_read_multi_rsp()
198 memcpy (p, p_rsp->attr_value.value, len); in process_read_multi_rsp()
477 p_msg->attr_value.handle = handle; in gatt_process_read_multi_req()
483 p_msg->attr_value.value, in gatt_process_read_multi_req()
484 &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.c2074 msg.attr_value.handle = handle; in gatt_send_write_msg()
2075 msg.attr_value.len = len; in gatt_send_write_msg()
2076 msg.attr_value.offset = offset; in gatt_send_write_msg()
2078 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()
609 … 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()
613 && ( (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SINK) || in bta_hl_find_sink_or_src_srv_class_in_db()
614 (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SOURCE)) ) in bta_hl_find_sink_or_src_srv_class_in_db()
Dbta_hl_act.c1748 memcpy(p_hdp_rec->srv_name, p_attr->attr_value.v.array, name_len); in bta_hl_sdp_cback()
1758 memcpy(p_hdp_rec->srv_desp, p_attr->attr_value.v.array, name_len); in bta_hl_sdp_cback()
1769 memcpy(p_hdp_rec->provider_name, p_attr->attr_value.v.array, name_len); in bta_hl_sdp_cback()
1774 p_hdp_rec->mcap_sup_proc = p_attr->attr_value.v.u8; in bta_hl_sdp_cback()
/system/bt/stack/a2dp/
Da2d_api.c81 a2d_svc.p_service_name = (char *) p_attr->attr_value.v.array; in a2d_sdp_cback()
89 a2d_svc.p_provider_name = (char *) p_attr->attr_value.v.array; in a2d_sdp_cback()
97 a2d_svc.features = p_attr->attr_value.v.u16; in a2d_sdp_cback()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.c264 bta_hf_client_cb.scb.peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr()
276 if (p_attr->attr_value.v.u16 == 0x01) in bta_hf_client_sdp_find_attr()
/system/media/audio_route/
Daudio_route.c365 const XML_Char *attr_value = NULL; in start_tag() local
383 attr_value = attr[i + 1]; in start_tag()
413 value = (int) strtol((char *)attr_value, NULL, 0); in start_tag()
416 value = mixer_enum_string_to_value(ctl, (char *)attr_value); in start_tag()
/system/bt/bta/ag/
Dbta_ag_sdp.c374 p_scb->peer_features = p_attr->attr_value.v.u16; in bta_ag_sdp_find_attr()
382 if (p_attr->attr_value.v.u8) in bta_ag_sdp_find_attr()
/system/bt/stack/include/
Dsdp_api.h115 tSDP_DISC_ATVAL attr_value; /* Variable length entry data */ member
Dgatt_api.h326 tGATT_VALUE attr_value; /* READ, HANDLE_VALUE_IND, PREPARE_WRITE */ member
/system/bt/stack/avrc/
Davrc_bld_tg.c624 p_rsp->param.player_setting.attr_value[xx])) in avrc_bld_notify_rsp()
627 UINT8_TO_BE_STREAM(p_data, p_rsp->param.player_setting.attr_value[xx]); in avrc_bld_notify_rsp()

12