Home
last modified time | relevance | path

Searched refs:p_value (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/
Dbroadcaster_types.cc46 uint8_t* p_value = data.data() + old_size; in EmitHeader() local
48 UINT24_TO_STREAM(p_value, announcement_data.presentation_delay_us); in EmitHeader()
70 uint8_t* p_value = data.data() + old_size; in EmitCodecConfiguration() local
73 UINT8_TO_STREAM(p_value, config.codec_id); in EmitCodecConfiguration()
74 UINT16_TO_STREAM(p_value, config.vendor_company_id); in EmitCodecConfiguration()
75 UINT16_TO_STREAM(p_value, config.vendor_codec_id); in EmitCodecConfiguration()
78 UINT8_TO_STREAM(p_value, codec_spec_raw_sz); in EmitCodecConfiguration()
81 p_value, config.vendor_codec_specific_params->data(), in EmitCodecConfiguration()
84 p_value = ltv.RawPacket(p_value); in EmitCodecConfiguration()
98 uint8_t* p_value = data.data() + old_size; in EmitMetadata() local
[all …]
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_sr_hash.cc42 len += 4 + gatt_build_uuid_to_stream_len(attr_it->p_value->uuid); in calculate_database_info_size()
45 len += 8 + gatt_build_uuid_to_stream_len(attr_it->p_value->incl_handle.service_type); in calculate_database_info_size()
82 gatt_build_uuid_to_stream(&p_data, attr_it->p_value->uuid); in fill_database_info()
87 UINT16_TO_STREAM(p_data, attr_it->p_value->incl_handle.s_handle); in fill_database_info()
88 UINT16_TO_STREAM(p_data, attr_it->p_value->incl_handle.e_handle); in fill_database_info()
90 gatt_build_uuid_to_stream(&p_data, attr_it->p_value->incl_handle.service_type); in fill_database_info()
95 UINT8_TO_STREAM(p_data, attr_it->p_value->char_decl.property); in fill_database_info()
96 UINT16_TO_STREAM(p_data, attr_it->p_value->char_decl.char_val_handle); in fill_database_info()
112 UINT16_TO_STREAM(p_data, attr_it->p_value in fill_database_info()
113 ? attr_it->p_value->char_ext_prop in fill_database_info()
Dgatt_db.cc64 attr.p_value.reset(new tGATT_ATTR_VALUE); in gatts_init_service_db()
65 attr.p_value->uuid = service_uuid; in gatts_init_service_db()
73 return &p_db->attr_list[0].p_value->uuid; in gatts_get_service_uuid()
191 *p_len = gatt_build_uuid_to_stream_len(attr16.p_value->uuid); in read_attr_value()
194 gatt_build_uuid_to_stream(&p, attr16.p_value->uuid); in read_attr_value()
206 UINT8_TO_STREAM(p, attr16.p_value->char_decl.property); in read_attr_value()
207 UINT16_TO_STREAM(p, attr16.p_value->char_decl.char_val_handle); in read_attr_value()
220 tGATT_INCL_SRVC& incl_handle = attr16.p_value->incl_handle; in read_attr_value()
242 attr16.p_value ? attr16.p_value->char_ext_prop : 0x0000; in read_attr_value()
349 attr.p_value.reset(new tGATT_ATTR_VALUE); in gatts_add_included_service()
[all …]
Dgatt_attr.cc96 tGATT_VALUE* p_value);
98 tGATT_VALUE* p_value);
239 tGATT_VALUE* p_value, bool is_long) { in read_attr_value() argument
240 uint8_t* p = p_value->value; in read_attr_value()
247 p_value->len = sizeof(gatt_cb.gatt_svr_supported_feat_mask); in read_attr_value()
255 return gatt_sr_read_cl_supp_feat(conn_id, p_value); in read_attr_value()
262 return gatt_sr_read_db_hash(conn_id, p_value); in read_attr_value()
1119 tGATT_VALUE* p_value) { in gatt_sr_read_db_hash() argument
1122 uint8_t* p = p_value->value; in gatt_sr_read_db_hash()
1125 p_value->len = (uint16_t)db_hash.size(); in gatt_sr_read_db_hash()
[all …]
Dgatt_int.h172 std::unique_ptr<tGATT_ATTR_VALUE> p_value; member
678 uint16_t handle, uint16_t offset, uint8_t* p_value, uint16_t* p_len,
/packages/modules/Bluetooth/system/stack/gap/
Dgap_ble.cc129 tGATT_STATUS read_attr_value(uint16_t handle, tGATT_VALUE* p_value, in read_attr_value() argument
131 uint8_t* p = p_value->value; in read_attr_value()
132 uint16_t offset = p_value->offset; in read_attr_value()
148 p_value->len = GATT_MAX_ATTR_LEN; in read_attr_value()
150 p_value->len = (uint16_t)strlen((char*)p_dev_name); in read_attr_value()
152 if (offset > p_value->len) in read_attr_value()
155 p_value->len -= offset; in read_attr_value()
157 ARRAY_TO_STREAM(p, p_dev_name, p_value->len); in read_attr_value()
163 p_value->len = 2; in read_attr_value()
171 p_value->len = 8; in read_attr_value()
[all …]
/packages/modules/Bluetooth/system/stack/srvc/
Dsrvc_dis.cc122 tGATT_VALUE* p_value, bool is_long, in dis_read_attr_value() argument
125 uint8_t *p = p_value->value, i, *pp; in dis_read_attr_value()
126 uint16_t offset = p_value->offset; in dis_read_attr_value()
152 p_value->len = GATT_MAX_ATTR_LEN; in dis_read_attr_value()
154 p_value->len = (uint16_t)strlen((char*)pp); in dis_read_attr_value()
156 p_value->len = 0; in dis_read_attr_value()
158 if (offset > p_value->len) { in dis_read_attr_value()
162 p_value->len -= offset; in dis_read_attr_value()
164 ARRAY_TO_STREAM(p, pp, p_value->len); in dis_read_attr_value()
165 log::verbose("GATT_UUID_MANU_NAME len=0x{:x}", p_value->len); in dis_read_attr_value()
[all …]
Dsrvc_dis_int.h58 tGATT_VALUE* p_value, bool is_long,
/packages/modules/Bluetooth/system/bta/le_audio/
Dle_audio_types.cc464 LeAudioLtvMap LeAudioLtvMap::Parse(const uint8_t* p_value, uint8_t len, in Parse() argument
467 success = ltv_map.Parse(p_value, len); in Parse()
474 bool LeAudioLtvMap::Parse(const uint8_t* p_value, uint8_t len) { in Parse() argument
476 const auto p_value_end = p_value + len; in Parse()
478 while ((p_value_end - p_value) > 0) { in Parse()
480 STREAM_TO_UINT8(ltv_len, p_value); in Parse()
485 if (p_value_end < (p_value + ltv_len)) { in Parse()
492 STREAM_TO_UINT8(ltv_type, p_value); in Parse()
495 const auto p_temp = p_value; in Parse()
496 p_value += ltv_len; in Parse()
[all …]
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_api.cc523 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_WriteCharValue()
524 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_WriteCharValue()
559 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_WriteCharDescr()
561 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_WriteCharDescr()
600 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_PrepareWrite()
601 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_PrepareWrite()
Dbta_gattc_act.cc1087 if (p_data->api_write.p_value) in bta_gattc_write()
1088 memcpy(attr.value, p_data->api_write.p_value, p_data->api_write.len); in bta_gattc_write()
1196 p_clcb->p_q_cmd->api_write.len, p_clcb->p_q_cmd->api_write.p_value, in bta_gattc_write_cmpl()
Dbta_gattc_int.h153 uint8_t* p_value; member
/packages/modules/Bluetooth/system/stack/include/
Dgap_api.h255 void GAP_BleAttrDBUpdate(uint16_t attr_uuid, tGAP_BLE_ATTR_VALUE* p_value);
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_gatt.cpp1486 jbyte* p_value = env->GetByteArrayElements(value, NULL); in gattClientWriteCharacteristicNative() local
1487 if (p_value == NULL) return; in gattClientWriteCharacteristicNative()
1490 reinterpret_cast<uint8_t*>(p_value), in gattClientWriteCharacteristicNative()
1493 env->ReleaseByteArrayElements(value, p_value, 0); in gattClientWriteCharacteristicNative()
1514 jbyte* p_value = env->GetByteArrayElements(value, NULL); in gattClientWriteDescriptorNative() local
1515 if (p_value == NULL) return; in gattClientWriteDescriptorNative()
1518 reinterpret_cast<uint8_t*>(p_value), len); in gattClientWriteDescriptorNative()
1520 env->ReleaseByteArrayElements(value, p_value, 0); in gattClientWriteDescriptorNative()
Dcom_android_bluetooth_btservice_AdapterService.cpp1872 jbyte* p_value = env->GetByteArrayElements(value, NULL); in metadataChangedNative() local
1873 if (p_value == NULL) return; in metadataChangedNative()
1875 std::vector<uint8_t> val_vec(reinterpret_cast<uint8_t*>(p_value), in metadataChangedNative()
1876 reinterpret_cast<uint8_t*>(p_value + len)); in metadataChangedNative()
1877 env->ReleaseByteArrayElements(value, p_value, 0); in metadataChangedNative()
/packages/modules/Bluetooth/system/bta/include/
Dbta_gatt_api.h120 uint8_t* p_value; member
/packages/modules/Bluetooth/system/stack/test/gatt/
Dgatt_sr_test.cc105 uint16_t handle, uint16_t offset, uint8_t* p_value, uint16_t* p_len, in gatts_read_attr_value_by_handle() argument