Home
last modified time | relevance | path

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

/system/bt/stack/gap/
Dgap_ble.cc117 tGATT_STATUS read_attr_value(uint16_t handle, tGATT_VALUE* p_value, in read_attr_value() argument
119 uint8_t* p = p_value->value; in read_attr_value()
120 uint16_t offset = p_value->offset; in read_attr_value()
133 p_value->len = GATT_MAX_ATTR_LEN; in read_attr_value()
135 p_value->len = (uint16_t)strlen((char*)p_dev_name); in read_attr_value()
137 if (offset > p_value->len) in read_attr_value()
140 p_value->len -= offset; in read_attr_value()
142 ARRAY_TO_STREAM(p, p_dev_name, p_value->len); in read_attr_value()
143 DVLOG(1) << "GATT_UUID_GAP_DEVICE_NAME len=" << +p_value->len; in read_attr_value()
149 p_value->len = 2; in read_attr_value()
[all …]
/system/bt/stack/gatt/
Dgatt_db.cc67 attr.p_value.reset((tGATT_ATTR_VALUE*)(new Uuid)); in gatts_init_service_db()
68 attr.p_value->uuid = service_uuid; in gatts_init_service_db()
76 return &p_db->attr_list[0].p_value->uuid; in gatts_get_service_uuid()
185 *p_len = gatt_build_uuid_to_stream_len(attr16.p_value->uuid); in read_attr_value()
188 gatt_build_uuid_to_stream(&p, attr16.p_value->uuid); in read_attr_value()
200 UINT8_TO_STREAM(p, attr16.p_value->char_decl.property); in read_attr_value()
201 UINT16_TO_STREAM(p, attr16.p_value->char_decl.char_val_handle); in read_attr_value()
214 tGATT_INCL_SRVC& incl_handle = attr16.p_value->incl_handle; in read_attr_value()
343 attr.p_value.reset((tGATT_ATTR_VALUE*)(new tGATT_INCL_SRVC)); in gatts_add_included_service()
344 attr.p_value->incl_handle.s_handle = s_handle; in gatts_add_included_service()
[all …]
Dgatt_int.h170 std::unique_ptr<tGATT_ATTR_VALUE> p_value; member
564 uint16_t offset, uint8_t* p_value, uint16_t* p_len, uint16_t mtu,
/system/bt/stack/srvc/
Dsrvc_dis.cc115 tGATT_VALUE* p_value, bool is_long, in dis_read_attr_value() argument
118 uint8_t *p = p_value->value, i, *pp; in dis_read_attr_value()
119 uint16_t offset = p_value->offset; in dis_read_attr_value()
145 p_value->len = GATT_MAX_ATTR_LEN; in dis_read_attr_value()
147 p_value->len = (uint16_t)strlen((char*)pp); in dis_read_attr_value()
149 p_value->len = 0; in dis_read_attr_value()
151 if (offset > p_value->len) { in dis_read_attr_value()
155 p_value->len -= offset; in dis_read_attr_value()
157 ARRAY_TO_STREAM(p, pp, p_value->len); in dis_read_attr_value()
159 << +p_value->len; in dis_read_attr_value()
[all …]
Dsrvc_dis_int.h58 tGATT_VALUE* p_value, bool is_long,
Dsrvc_eng_int.h68 uint16_t len, uint8_t* p_value);
Dsrvc_eng.cc425 uint8_t* p_value) { in srvc_sr_notify() argument
429 GATTS_HandleValueNotification(conn_id, handle, len, p_value); in srvc_sr_notify()
/system/nfc/src/nfc/llcp/
Dllcp_sdp.cc386 uint8_t type, length, tid, sap, *p_value; in llcp_sdp_proc_snl() local
409 p_value = p; in llcp_sdp_proc_snl()
410 BE_STREAM_TO_UINT8(tid, p_value); in llcp_sdp_proc_snl()
411 sap = llcp_sdp_get_sap_by_name((char*)p_value, (uint8_t)(length - 1)); in llcp_sdp_proc_snl()
418 "%s: In dta mode sap == 0x00 p_value = %s", __func__, p_value); in llcp_sdp_proc_snl()
419 if ((length - 1) == strlen((const char*)p_value)) { in llcp_sdp_proc_snl()
446 p_value = p; in llcp_sdp_proc_snl()
447 BE_STREAM_TO_UINT8(tid, p_value); in llcp_sdp_proc_snl()
448 BE_STREAM_TO_UINT8(sap, p_value); in llcp_sdp_proc_snl()
/system/update_engine/update_manager/
Dfake_variable.h42 void reset(const T* p_value) { ptr_.reset(p_value); } in reset() argument
/system/nfc/src/nfa/dm/
Dnfa_dm_main.cc216 uint8_t type, len, *p_value, *p_stored, max_len; in nfa_dm_check_set_config() local
237 p_value = p_tlv_list + xx + 2; in nfa_dm_check_set_config()
371 } else if (memcmp(p_value, p_stored, len)) { in nfa_dm_check_set_config()
381 if (memcmp(p_value, p_stored, len)) { in nfa_dm_check_set_config()
395 memcpy(p_stored, p_value, len); in nfa_dm_check_set_config()
/system/bt/bta/gatt/
Dbta_gattc_api.cc486 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_WriteCharValue()
487 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_WriteCharValue()
522 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_WriteCharDescr()
524 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_WriteCharDescr()
563 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_PrepareWrite()
564 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_PrepareWrite()
Dbta_gattc_int.h124 uint8_t* p_value; member
Dbta_gattc_act.cc802 if (p_data->api_write.p_value) in bta_gattc_write()
803 memcpy(attr.value, p_data->api_write.p_value, p_data->api_write.len); in bta_gattc_write()
/system/bt/stack/include/
Dgap_api.h349 tGAP_BLE_ATTR_VALUE* p_value);
/system/bt/bta/include/
Dbta_gatt_api.h89 uint8_t* p_value; member