Home
last modified time | relevance | path

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

12

/system/bt/btif/src/
Dbtif_gatt_util.cc49 p_dest->attr_value.auth_req = p_src->attr_value.auth_req; in btif_to_bta_response()
50 p_dest->attr_value.handle = p_src->attr_value.handle; in btif_to_bta_response()
51 p_dest->attr_value.len = p_src->attr_value.len; in btif_to_bta_response()
52 p_dest->attr_value.offset = p_src->attr_value.offset; in btif_to_bta_response()
53 memcpy(p_dest->attr_value.value, p_src->attr_value.value, GATT_MAX_ATTR_LEN); in btif_to_bta_response()
/system/bt/stack/sdp/
Dsdp_api.cc302 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in SDP_FindServiceUUIDInRec()
306 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
309 *p_uuid = Uuid::From128BitBE(p_sattr->attr_value.v.array); in SDP_FindServiceUUIDInRec()
312 *p_uuid = Uuid::From32Bit(p_sattr->attr_value.v.u32); in SDP_FindServiceUUIDInRec()
326 for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec()
333 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
345 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
372 tSDP_DISC_ATTR* p_sattr = p_attr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec_128bit()
377 *p_uuid = Uuid::From128BitBE(p_sattr->attr_value.v.array); in SDP_FindServiceUUIDInRec_128bit()
389 *p_uuid = Uuid::From128BitBE(p_attr->attr_value.v.array); in SDP_FindServiceUUIDInRec_128bit()
[all …]
Dsdp_discovery.cc877 p_attr->attr_value.v.u8 = *p++; in add_attr()
880 BE_STREAM_TO_UINT16(p_attr->attr_value.v.u16, p); in add_attr()
883 BE_STREAM_TO_UINT32(p_attr->attr_value.v.u32, p); in add_attr()
886 BE_STREAM_TO_ARRAY(p, p_attr->attr_value.v.array, (int32_t)attr_len); in add_attr()
894 BE_STREAM_TO_UINT16(p_attr->attr_value.v.u16, p); in add_attr()
897 BE_STREAM_TO_UINT32(p_attr->attr_value.v.u32, p); in add_attr()
898 if (p_attr->attr_value.v.u32 < 0x10000) { in add_attr()
901 p_attr->attr_value.v.u16 = (uint16_t)p_attr->attr_value.v.u32; in add_attr()
911 BE_STREAM_TO_UINT16(p_attr->attr_value.v.u16, p); in add_attr()
916 BE_STREAM_TO_UINT32(p_attr->attr_value.v.u32, p); in add_attr()
[all …]
Dsdp_utils.cc79 for (tSDP_DISC_ATTR* p_sattr = p_attr->attr_value.v.p_sub_attr; in sdpu_find_profile_version()
89 for (tSDP_DISC_ATTR* p_ssattr = p_sattr->attr_value.v.p_sub_attr; in sdpu_find_profile_version()
95 uint16_t uuid = p_ssattr->attr_value.v.u16; in sdpu_find_profile_version()
109 uint16_t version = version_attr->attr_value.v.u16; in sdpu_find_profile_version()
128 tSDP_DISC_ATTR* p_first_attr = p_attr->attr_value.v.p_sub_attr; in sdpu_find_most_specific_service_uuid()
131 return p_first_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
137 p_first_attr->attr_value.v.p_sub_attr; in sdpu_find_most_specific_service_uuid()
144 return p_extra_sattr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
154 return p_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
229 uint16_t supported_features = p_attr->attr_value.v.u16; in sdpu_log_attribute_metrics()
[all …]
/system/bt/stack/gap/
Dgap_ble.cc50 tGAP_BLE_ATTR_VALUE attr_value; member
124 const tGAP_BLE_ATTR_VALUE& attr_value = db_attr.attr_value; in read_attr_value() local
148 UINT16_TO_STREAM(p, attr_value.icon); in read_attr_value()
153 UINT16_TO_STREAM(p, attr_value.conn_param.int_min); /* int_min */ in read_attr_value()
154 UINT16_TO_STREAM(p, attr_value.conn_param.int_max); /* int_max */ in read_attr_value()
155 UINT16_TO_STREAM(p, attr_value.conn_param.latency); /* latency */ in read_attr_value()
156 UINT16_TO_STREAM(p, attr_value.conn_param.sp_tout); /* sp_tout */ in read_attr_value()
162 UINT8_TO_STREAM(p, attr_value.addr_resolution); in read_attr_value()
175 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read()
177 p_rsp->attr_value.handle = p_data->handle; in proc_read()
[all …]
/system/bt/stack/hid/
Dhidh_api.cc80 memcpy(str, (char*)p_attr->attr_value.v.array, name_len); in hidh_get_str_attr()
83 memcpy(str, (char*)p_attr->attr_value.v.array, max_len - 1); in hidh_get_str_attr()
118 ((p_subattr1 = p_attr->attr_value.v.p_sub_attr) == NULL) || in hidh_search_callback()
121 ((p_subattr2 = p_subattr1->attr_value.v.p_sub_attr) == NULL) || in hidh_search_callback()
130 p_nvi->dscp_info.dsc_list = (uint8_t*)&p_repdesc->attr_value; in hidh_search_callback()
134 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
140 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
146 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
152 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
158 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
[all …]
/system/bt/bta/sdp/
Dbta_sdp_act.cc66 record->mns.supported_features = p_attr->attr_value.v.u32; in bta_create_mns_sdp_record()
73 record->mns.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_mns_sdp_record()
87 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mns_sdp_record()
109 record->mas.mas_instance_id = p_attr->attr_value.v.u8; in bta_create_mas_sdp_record()
114 record->mas.supported_message_types = p_attr->attr_value.v.u8; in bta_create_mas_sdp_record()
119 record->mas.supported_features = p_attr->attr_value.v.u32; in bta_create_mas_sdp_record()
126 record->mas.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_mas_sdp_record()
140 record->mas.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mas_sdp_record()
161 record->pse.supported_repositories = p_attr->attr_value.v.u8; in bta_create_pse_sdp_record()
165 record->pse.supported_features = p_attr->attr_value.v.u32; in bta_create_pse_sdp_record()
[all …]
/system/connectivity/wificond/tests/
Dnl80211_attribute_unittest.cpp160 uint32_t attr_value; in TEST() local
161 EXPECT_TRUE(nested_attr.GetAttributeValue(1, &attr_value)); in TEST()
162 EXPECT_EQ(attr_value, kU32Value1); in TEST()
163 EXPECT_TRUE(nested_attr.GetAttributeValue(2, &attr_value)); in TEST()
164 EXPECT_EQ(attr_value, kU32Value2); in TEST()
184 uint32_t attr_value; in TEST() local
186 EXPECT_FALSE(nested_attr.GetAttributeValue(2, &attr_value)); in TEST()
195 uint16_t attr_value; in TEST() local
197 EXPECT_FALSE(nested_attr.GetAttributeValue(1, &attr_value)); in TEST()
Dnl80211_packet_unittest.cpp121 uint8_t attr_value; in TEST() local
122 EXPECT_TRUE(netlink_packet.GetAttributeValue(1, &attr_value)); in TEST()
123 EXPECT_EQ(attr_value, kU8Value1); in TEST()
182 uint8_t attr_value; in TEST() local
183 EXPECT_FALSE(netlink_packet.GetAttributeValue(2, &attr_value)); in TEST()
/system/bt/stack/gatt/
Datt_protocol.cc353 p_msg->attr_value.len, p_msg->attr_value.offset); in attp_build_sr_msg()
354 offset = p_msg->attr_value.offset; in attp_build_sr_msg()
361 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_build_sr_msg()
362 p_msg->attr_value.len, p_msg->attr_value.value); in attp_build_sr_msg()
498 offset = p_msg->attr_value.offset; in attp_send_cl_msg()
503 if (!GATT_HANDLE_IS_VALID(p_msg->attr_value.handle)) in attp_send_cl_msg()
507 tcb.payload_size, op_code, p_msg->attr_value.handle, offset, in attp_send_cl_msg()
508 p_msg->attr_value.len, p_msg->attr_value.value); in attp_send_cl_msg()
Dgatt_sr.cc165 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp()
169 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
173 p_rsp->attr_value.len); in process_read_multi_rsp()
175 len = p_rsp->attr_value.len; in process_read_multi_rsp()
178 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) { in process_read_multi_rsp()
179 memcpy(p, p_rsp->attr_value.value, len); in process_read_multi_rsp()
420 p_msg->attr_value.handle = handle; in gatt_process_read_multi_req()
422 tcb, it->p_db, op_code, handle, 0, p_msg->attr_value.value, in gatt_process_read_multi_req()
423 &p_msg->attr_value.len, GATT_MAX_ATTR_LEN, sec_flag, key_size, in gatt_process_read_multi_req()
Dgatt_utils.cc1162 msg.attr_value.handle = handle; in gatt_send_write_msg()
1163 msg.attr_value.len = len; in gatt_send_write_msg()
1164 msg.attr_value.offset = offset; in gatt_send_write_msg()
1165 memcpy(msg.attr_value.value, p_data, len); in gatt_send_write_msg()
/system/bt/bta/mce/
Dbta_mce_act.cc95 evt_data.mas[found].p_srv_name = (char*)p_attr->attr_value.v.array; in bta_mce_search_cback()
102 evt_data.mas[found].instance_id = p_attr->attr_value.v.u8; in bta_mce_search_cback()
107 evt_data.mas[found].msg_type = p_attr->attr_value.v.u8; in bta_mce_search_cback()
/system/bt/service/
Dgatt_server_old.cc235 response.attr_value.len = 0; in RequestReadCallback()
240 response.attr_value.value); in RequestReadCallback()
241 response.attr_value.len = attribute_size - attribute_offset_octets; in RequestReadCallback()
244 response.attr_value.handle = attr_handle; in RequestReadCallback()
245 response.attr_value.offset = attribute_offset_octets; in RequestReadCallback()
246 response.attr_value.auth_req = 0; in RequestReadCallback()
296 response.attr_value.handle = attr_handle; in RequestWriteCallback()
297 response.attr_value.offset = attribute_offset; in RequestWriteCallback()
298 response.attr_value.len = value.size(); in RequestWriteCallback()
299 response.attr_value.auth_req = 0; in RequestWriteCallback()
[all …]
Dgatt_server.cc160 response.attr_value.handle = handle; in SendResponse()
162 memcpy(response.attr_value.value, value.data(), value.size()); in SendResponse()
163 response.attr_value.offset = offset; in SendResponse()
164 response.attr_value.len = value.size(); in SendResponse()
/system/bt/stack/a2dp/
Da2dp_api.cc89 a2dp_svc.p_service_name = (char*)p_attr->attr_value.v.array; in a2dp_sdp_cback()
96 a2dp_svc.p_provider_name = (char*)p_attr->attr_value.v.array; in a2dp_sdp_cback()
103 a2dp_svc.features = p_attr->attr_value.v.u16; in a2dp_sdp_cback()
/system/bt/stack/srvc/
Dsrvc_eng.cc208 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req()
210 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req()
213 act = dis_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, in srvc_eng_process_read_req()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.cc255 client_cb->peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr()
266 if (p_attr->attr_value.v.u16 == 0x01) { in bta_hf_client_sdp_find_attr()
/system/bt/include/hardware/
Dbt_gatt_server.h38 btgatt_value_t attr_value; member
/system/bt/profile/avrcp/tests/
Davrcp_connection_handler_test.cc58 .attr_value.v.u16 = 0, in SetUpSdp()
61 if (browsing) fake_features.attr_value.v.u16 |= AVRC_SUPF_CT_BROWSE; in SetUpSdp()
62 if (absolute_volume) fake_features.attr_value.v.u16 |= AVRC_SUPF_CT_CAT2; in SetUpSdp()
/system/media/audio_route/
Daudio_route.c457 const XML_Char *attr_value = NULL; in start_tag() local
475 attr_value = attr[i + 1]; in start_tag()
511 value = strtol((char *)attr_value, NULL, 0); in start_tag()
514 value = (unsigned char) strtol((char *)attr_value, NULL, 16); in start_tag()
517 value = mixer_enum_string_to_value(ctl, (char *)attr_value); in start_tag()
/system/bt/bta/ag/
Dbta_ag_sdp.cc366 uint16_t sdp_features = p_attr->attr_value.v.u16; in bta_ag_sdp_find_attr()
401 if (p_attr->attr_value.v.u8) in bta_ag_sdp_find_attr()
/system/core/libprocessgroup/
Dtask_profiles.cpp386 std::string attr_value = params_val["Value"].asString(); in Load() local
391 std::make_unique<SetAttributeAction>(iter->second.get(), attr_value)); in Load()
/system/bt/stack/include/
Dsdp_api.h105 tSDP_DISC_ATVAL attr_value; /* Variable length entry data */ member
/system/bt/profile/avrcp/
Dconnection_handler.cc458 uint16_t categories = sdp_attribute->attr_value.v.u16; in SdpCb()
499 uint16_t categories = sdp_attribute->attr_value.v.u16; in SdpCb()

12