Lines Matching refs:p_dest
91 void btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src)
96 p_dest->len = uuidType(p_src->uu);
98 switch (p_dest->len)
101 p_dest->uu.uuid16 = (p_src->uu[13] << 8) + p_src->uu[12];
105 p_dest->uu.uuid32 = (p_src->uu[13] << 8) + p_src->uu[12];
106 p_dest->uu.uuid32 += (p_src->uu[15] << 24) + (p_src->uu[14] << 16);
111 p_dest->uu.uuid128[i] = p_byte[i];
115 ALOGE("%s: Unknown UUID length %d!", __FUNCTION__, p_dest->len);
120 void btif_to_bta_char_id(tBTA_GATT_ID *p_dest, btgatt_char_id_t *p_src)
122 p_dest->inst_id = p_src->inst_id;
123 btif_to_bta_uuid(&p_dest->uuid, &p_src->uuid);
126 void btif_to_bta_srvc_id(tBTA_GATT_SRVC_ID *p_dest, btgatt_srvc_id_t *p_src)
128 p_dest->id.inst_id = p_src->id.inst_id;
129 btif_to_bta_uuid(&p_dest->id.uuid, &p_src->id.uuid);
130 p_dest->is_primary = p_src->is_primary;
133 void btif_to_bta_response(tBTA_GATTS_RSP *p_dest, btgatt_response_t* p_src)
135 p_dest->attr_value.auth_req = p_src->attr_value.auth_req;
136 p_dest->attr_value.handle = p_src->attr_value.handle;
137 p_dest->attr_value.len = p_src->attr_value.len;
138 p_dest->attr_value.offset = p_src->attr_value.offset;
139 memcpy(p_dest->attr_value.value, p_src->attr_value.value, GATT_MAX_ATTR_LEN);
146 void bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src)
153 p_dest->uu[i] = BASE_UUID[i];
162 p_dest->uu[12] = p_src->uu.uuid16 & 0xff;
163 p_dest->uu[13] = (p_src->uu.uuid16 >> 8) & 0xff;
167 p_dest->uu[12] = p_src->uu.uuid16 & 0xff;
168 p_dest->uu[13] = (p_src->uu.uuid16 >> 8) & 0xff;
169 p_dest->uu[14] = (p_src->uu.uuid32 >> 16) & 0xff;
170 p_dest->uu[15] = (p_src->uu.uuid32 >> 24) & 0xff;
175 p_dest->uu[i] = p_src->uu.uuid128[i];
185 void bta_to_btif_char_id(btgatt_char_id_t *p_dest, tBTA_GATT_ID *p_src)
187 p_dest->inst_id = p_src->inst_id;
188 bta_to_btif_uuid(&p_dest->uuid, &p_src->uuid);
191 void bta_to_btif_srvc_id(btgatt_srvc_id_t *p_dest, tBTA_GATT_SRVC_ID *p_src)
193 p_dest->id.inst_id = p_src->id.inst_id;
194 bta_to_btif_uuid(&p_dest->id.uuid, &p_src->id.uuid);
195 p_dest->is_primary = p_src->is_primary;
222 uint16_t set_read_value(btgatt_read_params_t *p_dest, tBTA_GATTC_READ *p_src)
228 p_dest->status = p_src->status;
229 bta_to_btif_srvc_id(&p_dest->srvc_id, &p_src->srvc_id);
230 bta_to_btif_char_id(&p_dest->char_id, &p_src->char_id);
231 bta_to_btif_uuid(&p_dest->descr_id, &p_src->descr_type);
239 p_dest->value_type = GATTC_READ_VALUE_TYPE_AGG_FORMAT;
246 p_dest->value.len = p_src->p_value->unformat.len;
249 memcpy(p_dest->value.value, p_src->p_value->unformat.p_value,
256 p_dest->value.len = 0;
259 p_dest->value_type = GATTC_READ_VALUE_TYPE_VALUE;