Home
last modified time | relevance | path

Searched refs:attributeValue (Results 1 - 17 of 17) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/
H A Dsdp_client_parse.c1444 service->sequenceAttribute[service->sequenceAttributeNumber].attributeValue = MEM_MALLOC.alloc(length); in SdpGetSequenceAttribute()
1445 if (service->sequenceAttribute[service->sequenceAttributeNumber].attributeValue == NULL) { in SdpGetSequenceAttribute()
1449 (void)memset_s(service->sequenceAttribute[service->sequenceAttributeNumber].attributeValue, length, 0, length); in SdpGetSequenceAttribute()
1453 (void)memcpy_s(service->sequenceAttribute[service->sequenceAttributeNumber].attributeValue, in SdpGetSequenceAttribute()
1476 service->attribute[service->attributeNumber].attributeValue = MEM_MALLOC.alloc(SDP_UINT8_LENGTH); in SdpGetAttributeForBool()
1477 if (service->attribute[service->attributeNumber].attributeValue == NULL) { in SdpGetAttributeForBool()
1481 (void)memset_s(service->attribute[service->attributeNumber].attributeValue, SDP_UINT8_LENGTH, 0, SDP_UINT8_LENGTH); in SdpGetAttributeForBool()
1483 service->attribute[service->attributeNumber].attributeValue, SDP_UINT8_LENGTH, &data, SDP_UINT8_LENGTH); in SdpGetAttributeForBool()
1501 service->attribute[service->attributeNumber].attributeValue = MEM_MALLOC.alloc(SDP_UINT8_LENGTH); in SdpGetAttributeForUint()
1502 if (service->attribute[service->attributeNumber].attributeValue in SdpGetAttributeForUint()
[all...]
H A Dsdp_server.c38 uint8_t *attributeValue; member
85 MEM_MALLOC.free(item->attributeItem[i].attributeValue); in SdpFreeServiceRecord()
713 static int SdpAddAttributeForCommon(SdpDataType type, const void *attributeValue, uint8_t *buffer, uint16_t length) in SdpAddAttributeForCommon() argument
717 buffer[1] = *(uint8_t *)attributeValue; in SdpAddAttributeForCommon()
721 buffer[1] = *(uint8_t *)attributeValue; in SdpAddAttributeForCommon()
725 *(uint16_t *)(buffer + 1) = H2BE_16(*(uint16_t *)attributeValue); in SdpAddAttributeForCommon()
729 *(uint32_t *)(buffer + 1) = H2BE_32(*(uint32_t *)attributeValue); in SdpAddAttributeForCommon()
733 buffer[1] = *(int8_t *)attributeValue; in SdpAddAttributeForCommon()
737 int16_t value = *(int16_t *)attributeValue; in SdpAddAttributeForCommon()
742 *(uint32_t *)(buffer + 1) = H2BE_32(*(int32_t *)attributeValue); in SdpAddAttributeForCommon()
749 SdpAddAttribute( uint32_t handle, uint16_t attributeId, SdpDataType type, void *attributeValue, uint16_t attributeValueLength) SdpAddAttribute() argument
802 SdpAddSequenceAttribute( uint32_t handle, uint16_t attributeId, const uint8_t *attributeValue, uint16_t attributeValueLength) SdpAddSequenceAttribute() argument
985 uint8_t *attributeValue = NULL; SdpAddAttributeToServiceRecord() local
[all...]
H A Dsdp_server.h61 uint32_t handle, uint16_t attributeId, SdpDataType type, void *attributeValue, uint16_t attributeValueLength);
63 uint32_t handle, uint16_t attributeId, const uint8_t *attributeValue, uint16_t attributeValueLength);
H A Dsdp.c149 void *attributeValue; member
158 const uint8_t *attributeValue; member
1145 SdpAddAttribute(ctx->handle, ctx->attributeId, ctx->type, ctx->attributeValue, ctx->attributeValueLength); in SdpAddAttributeTask()
1152 uint32_t handle, uint16_t attributeId, SdpDataType type, void *attributeValue, uint16_t attributeValueLength) in SDP_AddAttribute()
1167 ctx->attributeValue = attributeValue; in SDP_AddAttribute()
1191 SdpAddSequenceAttribute(ctx->handle, ctx->attributeId, ctx->attributeValue, ctx->attributeValueLength); in SdpAddSequenceAttributeTask()
1198 uint32_t handle, uint16_t attributeId, const uint8_t *attributeValue, uint16_t attributeValueLength) in SDP_AddSequenceAttribute()
1212 ctx->attributeValue = attributeValue; in SDP_AddSequenceAttribute()
1151 SDP_AddAttribute( uint32_t handle, uint16_t attributeId, SdpDataType type, void *attributeValue, uint16_t attributeValueLength) SDP_AddAttribute() argument
1197 SDP_AddSequenceAttribute( uint32_t handle, uint16_t attributeId, const uint8_t *attributeValue, uint16_t attributeValueLength) SDP_AddSequenceAttribute() argument
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/
H A Dhid_host_sdp_client.cpp76 hidInf_.ctryCode = *static_cast<uint8_t*>(serviceAry[0].attribute[i].attributeValue); in SdpCallback_()
96 uint8_t *attributeValue = attribute.attributeValue + offset; in ParseHidDescInfo() local
97 uint8_t type = attributeValue[0] >> HID_SDP_DESCRIPTOR_SIZE_BIT; in ParseHidDescInfo()
98 uint8_t size = attributeValue[0] & SDP_SIZE_MASK; in ParseHidDescInfo()
101 descLength = attributeValue[1]; in ParseHidDescInfo()
105 descLength = (attributeValue[offset] << ONE_BYTE_OFFSET) | attributeValue[offset + 1]; in ParseHidDescInfo()
120 if (memcpy_s(hidInf_.descInfo.get(), descLength, attributeValue + offset, descLength) != EOK) { in ParseHidDescInfo()
140 if ((attribute.attributeValue[ in CheckAttributeValueLengthAvalid()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/
H A Dsdp.h365 * @param attributeValue Attribute value.
370 uint32_t handle, uint16_t attributeId, SdpDataType type, void *attributeValue, uint16_t attributeValueLength);
378 * @param attributeValue Attribute value.
383 uint32_t handle, uint16_t attributeId, const uint8_t *attributeValue, uint16_t attributeValueLength);
426 void *attributeValue; member
435 uint8_t *attributeValue; member
H A Datt.h180 uint8_t *attributeValue; member
228 uint8_t *attributeValue; member
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
H A Dhfp_hf_sdp_client.cpp234 attribute.attributeValue = *static_cast<uint16_t*>(serviceAry[n].attribute[k].attributeValue); in CopySdpServiceArray()
236 attribute.attributeValue = *static_cast<uint8_t*>(serviceAry[n].attribute[k].attributeValue); in CopySdpServiceArray()
325 features = HFP_HF_AG_FEATURES_BRSF_MASK & attributes[num].attributeValue; in FindProfileFeatures()
339 network = static_cast<uint8_t>(attributes[num].attributeValue); in FindProfileNetwork()
H A Dhfp_hf_sdp_server.cpp173 featuresAttr.attributeValue = &features; in AddFeatures()
188 sdpHandle_, attribute.attributeId, attribute.type, attribute.attributeValue, attribute.attributeValueLength); in AddAttribute()
H A Dhfp_hf_sdp_client.h35 uint16_t attributeValue {0};
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_sdp_server.cpp173 network.attributeValue = &networkValue; in AddNetwork()
190 featuresAttr.attributeValue = &features; in AddFeatures()
205 sdpHandle_, attribute.attributeId, attribute.type, attribute.attributeValue, attribute.attributeValueLength); in AddAttribute()
H A Dhfp_ag_sdp_client.cpp235 attribute.attributeValue = *static_cast<uint16_t*>(serviceAry[n].attribute[k].attributeValue); in CopySdpServiceArray()
237 attribute.attributeValue = *static_cast<uint8_t*>(serviceAry[n].attribute[k].attributeValue); in CopySdpServiceArray()
326 features = HFP_AG_HF_FEATURES_BRSF_MASK & attributes[num].attributeValue; in FindProfileFeatures()
H A Dhfp_ag_sdp_client.h34 uint16_t attributeValue {0};
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_server_profile.cpp422 free(serviceList[i].attributeValue); in DiscoverAllPrimaryServiceResponse()
521 valueList[0].attributeValue = (uint8_t *)malloc(len); in FindIncludedServiceResponse()
522 if (valueList[0].attributeValue == nullptr) { in FindIncludedServiceResponse()
527 valueList[0].attributeValue, len, &offset, (uint8_t *)&(isvc->startHandle_), sizeof(uint16_t)); in FindIncludedServiceResponse()
529 valueList[0].attributeValue, len, &offset, (uint8_t *)&(isvc->endHandle_), sizeof(uint16_t)); in FindIncludedServiceResponse()
533 valueList[0].attributeValue, len, &offset, (uint8_t *)&(uuid16bit), sizeof(uint16_t)); in FindIncludedServiceResponse()
537 free(valueList[0].attributeValue); in FindIncludedServiceResponse()
1340 list[num].attributeValue = (uint8_t *)malloc(UUID_16BIT_LEN); in AssembleAttReadByGroupTypeRspPackage()
1342 (void)memcpy_s(list[num].attributeValue, UUID_16BIT_LEN, &uuid16Bit, UUID_16BIT_LEN); in AssembleAttReadByGroupTypeRspPackage()
1344 list[num].attributeValue in AssembleAttReadByGroupTypeRspPackage()
[all...]
H A Dgatt_client_profile.cpp1254 (data->attReadByGroupTypeResponse.readGroupResponse.attributeData + i)->attributeValue, in DiscoverAllPrimaryServiceParsing()
1337 SplitDataPackageToUint16(data->attReadByTypeResponse.readHandleListNum.valueList->attributeValue, &offset); in FindIncludeServicesParsing()
1339 SplitDataPackageToUint16(data->attReadByTypeResponse.readHandleListNum.valueList->attributeValue, &offset); in FindIncludeServicesParsing()
1345 SplitDataPackageToUint16(data->attReadByTypeResponse.readHandleListNum.valueList->attributeValue, &offset); in FindIncludeServicesParsing()
1435 (data->attReadByTypeResponse.readHandleListNum.valueList + i)->attributeValue, &offset); in DiscoverAllCharacteristicOfServiceParsing()
1437 (data->attReadByTypeResponse.readHandleListNum.valueList + i)->attributeValue, &offset); in DiscoverAllCharacteristicOfServiceParsing()
1441 (data->attReadByTypeResponse.readHandleListNum.valueList + i)->attributeValue, in DiscoverAllCharacteristicOfServiceParsing()
1643 data->attReadByTypeResponse.readHandleListNum.valueList->attributeValue, len - sizeof(uint16_t)); in ReadUsingCharacteristicByUuidParsing()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/att/
H A Datt_send_response.c583 MEM_MALLOC.free(readByTypeResAsyncPtr->attReadByTypeRspContext.valueList[index].attributeValue); in AttReadByTypeResponseFree()
642 readByTypeResAsyncPtr->attReadByTypeRspContext.valueList[index].attributeValue, in AttReadByTypeResponseAsync()
700 attReadByTypeDataPtr[index].attributeValue = MEM_MALLOC.alloc(length - STEP_TWO); in ATT_ReadByTypeResponse()
701 if (attReadByTypeDataPtr[index].attributeValue == NULL) { in ATT_ReadByTypeResponse()
706 (void)memcpy_s(attReadByTypeDataPtr[index].attributeValue, in ATT_ReadByTypeResponse()
708 valueList[index].attributeValue, in ATT_ReadByTypeResponse()
1033 MEM_MALLOC.free(attReadByGroupResponseAsyncPtr->attReadGroupResContext.attributeData[index].attributeValue); in AttReadByGroupTypeResponseAsyncFree()
1091 attReadByGroupResponseAsyncPtr->attReadGroupResContext.attributeData[index].attributeValue, in AttReadByGroupTypeResponseAsync()
1152 attReadGroupAttrDataPtr[index].attributeValue = MEM_MALLOC.alloc(length - STEP_FOUR); in ATT_ReadByGroupTypeResponse()
1155 (void)memcpy_s(attReadGroupAttrDataPtr[index].attributeValue, in ATT_ReadByGroupTypeResponse()
[all...]
H A Datt_receive.c285 MEM_MALLOC.free(valueList->readHandleListNum.valueList[index].attributeValue); in AttReadFree()
287 MEM_MALLOC.free(valueList->readGroupResponse.attributeData[index].attributeValue); in AttReadFree()
316 attReadPtr->readGroupResponse.attributeData[indexNum].attributeValue = MEM_MALLOC.alloc(len - STEP_FOUR); in AttReadAttrAssign()
319 (void)memcpy_s(attReadPtr->readGroupResponse.attributeData[indexNum].attributeValue, in AttReadAttrAssign()
876 attReadObj.readHandleListNum.valueList[indexNum].attributeValue = MEM_MALLOC.alloc(len - STEP_TWO); in AttReadByTypeResponse()
879 (void)memcpy_s(attReadObj.readHandleListNum.valueList[indexNum].attributeValue, in AttReadByTypeResponse()

Completed in 23 milliseconds