/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/ |
H A D | a2dp_codec_factory.cpp | 57 auto codecIndex = static_cast<A2dpCodecIndex>(i); in Initialize() local 62 auto priority = codecPriorities_.find(codecIndex); in Initialize() 66 LOG_INFO("[CodecFactory] %{public}s codecIndex(%u) codecPriority(%u)\n", __func__, codecIndex, codecPriority); in Initialize() 67 A2dpCodecConfig *codecConfig = A2dpCodecConfig::CreateCodec(codecIndex, codecPriority); in Initialize() 72 indexedCodecs_.insert(std::make_pair(codecIndex, codecConfig)); in Initialize() 74 if (codecIndex < A2DP_SOURCE_CODEC_INDEX_MAX) { in Initialize() 102 A2dpCodecIndex codecIndex = GetSourceCodecIndex(codeInfo); in FindSourceCodec() local 103 if (codecIndex == A2DP_SOURCE_CODEC_INDEX_MAX) { in FindSourceCodec() 107 auto iter = indexedCodecs_.find(static_cast<A2dpCodecIndex>(codecIndex)); in FindSourceCodec() 119 A2dpCodecIndex codecIndex = GetSinkCodecIndex(codeInfo); FindSinkCodec() local [all...] |
H A D | a2dp_codec_config.cpp | 28 A2dpCodecCapability &codecConfig, const A2dpCodecIndex codecIndex, const A2dpCodecPriority codecPriority) in InitCodecConfig() 31 codecConfig.codecIndex_ = codecIndex; in InitCodecConfig() 59 LOG_INFO("[CodecConfig] %{public}s codecIndex:0x%x\n", __func__, codecCap_.codecIndex_); in GetCodecIndex() 190 A2dpCodecConfig *A2dpCodecConfig::CreateCodec(A2dpCodecIndex codecIndex, A2dpCodecPriority codecPriority) in CreateCodec() argument 192 LOG_INFO("[CodecConfig] %{public}s [codecIndex:%u][codecPriority:%u]\n", __func__, codecIndex, codecPriority); in CreateCodec() 194 switch (codecIndex) { in CreateCodec() 27 InitCodecConfig( A2dpCodecCapability &codecConfig, const A2dpCodecIndex codecIndex, const A2dpCodecPriority codecPriority) InitCodecConfig() argument
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/ |
H A D | avdtp_ctrl.h | 36 extern AvdtStreamCtrl *AvdtStreamCtrlAllocate(AvdtSigCtrl *sigCtrl, uint16_t codecIndex); 49 extern uint16_t AvdtCheckSepExited(uint16_t codecIndex); 51 extern AvdtStreamConfig *AvdtGetSepConfigByCodecIndex(uint16_t codecIndex); 52 extern uint16_t AvdtCheckSepIsUsed(AvdtSigCtrl *sigCtrl, uint16_t codecIndex);
|
H A D | avdtp_ctrl.c | 1139 AvdtStreamCtrl *AvdtStreamCtrlAllocate(AvdtSigCtrl *sigCtrl, uint16_t codecIndex) in AvdtStreamCtrlAllocate() argument 1141 LOG_DEBUG("[AVDT]%{public}s:codecIndex(%hu)", __func__, codecIndex); in AvdtStreamCtrlAllocate() 1145 AvdtStreamConfig *config = AvdtGetSepConfigByCodecIndex(codecIndex); in AvdtStreamCtrlAllocate() 1151 sigCtrl->streamCtrl[i].codecIndex = codecIndex; in AvdtStreamCtrlAllocate() 1569 streamCtrl = AvdtStreamCtrlAllocate(sigCtrl, g_avdtCb.localSEP[i].localConfigure.codecIndex); in AvdtCreateSEP() 1589 uint16_t AvdtCheckSepExited(uint16_t codecIndex) in AvdtCheckSepExited() argument 1591 LOG_DEBUG("[AVDT]%{public}s:codecIndex(%hu)", __func__, codecIndex); in AvdtCheckSepExited() 1639 AvdtGetSepConfigByCodecIndex(uint16_t codecIndex) AvdtGetSepConfigByCodecIndex() argument 1662 AvdtCheckSepIsUsed(AvdtSigCtrl *sigCtrl, uint16_t codecIndex) AvdtCheckSepIsUsed() argument [all...] |
H A D | avdtp_api.c | 88 * Pram[in] codecIndex Sep index. Start form 1. 92 uint16_t AVDT_CreateStream(const BtAddr *bdAddr, uint16_t *handle, uint16_t codecIndex) in AVDT_CreateStream() argument 94 LOG_INFO("[AVDT]%{public}s:bdAddr((%02x:%02x:%02x:%02x:%02x:%02x) codecIndex(%hu)", in AVDT_CreateStream() 97 codecIndex); in AVDT_CreateStream() 109 param->codecIndex = codecIndex; in AVDT_CreateStream() 123 param->ret = AvdtCreateStream(param->bdAddr, param->handle, param->codecIndex); in AvdtCreateStreamTsk() 128 uint16_t AvdtCreateStream(const BtAddr *bdAddr, uint16_t *handle, uint16_t codecIndex) in AvdtCreateStream() argument 130 LOG_DEBUG("[AVDT]%{public}s:bdAddr((%02x:%02x:%02x:%02x:%02x:%02x) codecIndex(%hu)", in AvdtCreateStream() 133 codecIndex); in AvdtCreateStream() [all...] |
H A D | avdtp_api.h | 30 uint16_t codecIndex; member 261 extern uint16_t AvdtCreateStream(const BtAddr *bdAddr, uint16_t *handle, uint16_t codecIndex);
|
H A D | avdtp_int.h | 376 uint16_t codecIndex; /* index of local sep */ member
|
H A D | avdtp_impl.c | 98 AvdtStreamConfig *streamConfig = AvdtGetSepConfigByCodecIndex(sigCtrl->streamCtrl[i].codecIndex); in AvdtActDiscoverInd() 110 __func__, sigCtrl->streamCtrl[i].codecIndex); in AvdtActDiscoverInd() 234 AvdtStreamConfig *streamConfig = AvdtGetSepConfigByCodecIndex(sigCtrl->streamCtrl[i].codecIndex); in AvdtGetSepConfig() 468 AvdtStreamConfig *streamConfig = AvdtGetSepConfigByCodecIndex(streamCtrl->codecIndex); in AvdtActSetConfigInd() 1349 AvdtStreamConfig *streamConfig = AvdtGetSepConfigByCodecIndex(streamCtrl->codecIndex); in AvdtActWriteReq()
|
H A D | avdtp_l2cap.c | 823 AvdtStreamConfig *streamConfig = AvdtGetSepConfigByCodecIndex(streamCtrl->codecIndex); in AvdtStreamDataProc() 825 streamConfig->sinkDataCback(streamCtrl->handle, packet, timeStamp, pktType, streamCtrl->codecIndex); in AvdtStreamDataProc()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_profile_peer.cpp | 82 LOG_INFO("[A2dpStream] %{public}s index(%u)\n", __func__, data.codecIndex); in SetCodecInfo() 88 LOG_INFO("[A2dpStream] %{public}s index(%u)\n", __func__, codecInfo_.codecIndex); in GetCodecInfo() 182 cfg.codecIndex = i; in RegisterSEPConfigureInfo() 183 avdtp.CreateStream(const_cast<BtAddr &>(addr), cfg.codecIndex, hdl); in RegisterSEPConfigureInfo() 185 codecData.codecIndex = static_cast<A2dpCodecIndex>(i); in RegisterSEPConfigureInfo() 213 cfg.codecIndex = i + A2DP_SINK_CODEC_INDEX_MIN; in RegisterSEPConfigureInfo() 214 avdtp.CreateStream(const_cast<BtAddr &>(addr), cfg.codecIndex, hdl); in RegisterSEPConfigureInfo() 216 codecData.codecIndex = static_cast<A2dpCodecIndex>(i + A2DP_SINK_CODEC_INDEX_MIN); in RegisterSEPConfigureInfo() 288 streamCtrl_[i].GetCodecInfo().codecIndex, in UpdatePeerCapabilityInfo() 290 if (streamCtrl_[i].GetCodecInfo().codecIndex in UpdatePeerCapabilityInfo() [all...] |
H A D | a2dp_def.h | 86 A2dpCodecIndex codecIndex; member
|
H A D | a2dp_avdtp.h | 70 static uint16_t CreateStream(const BtAddr &addr, const uint8_t codecIndex, uint16_t &handle);
|
H A D | a2dp_avdtp.cpp | 43 uint16_t A2dpAvdtp::CreateStream(const BtAddr &addr, const uint8_t codecIndex, uint16_t &handle) in CreateStream() argument 45 uint16_t ret = AVDT_CreateStream(&const_cast<BtAddr &>(addr), &handle, codecIndex); in CreateStream()
|
H A D | a2dp_profile.cpp | 452 cfg[number].codecIndex = i; in CreateSEPConfigureInfo() 475 cfg[number].codecIndex = i; in CreateSEPConfigureInfo()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/include/ |
H A D | a2dp_aac_param_ctrl.h | 34 A2dpCodecConfigAacBase(A2dpCodecIndex codecIndex, A2dpCodecPriority codecPriority, bool isSource) in A2dpCodecConfigAacBase() argument 35 : A2dpCodecConfig(codecIndex, codecPriority), isSource_(isSource) in A2dpCodecConfigAacBase()
|
H A D | a2dp_sbc_param_ctrl.h | 33 A2dpCodecConfigSbcBase(A2dpCodecIndex codecIndex, A2dpCodecPriority codecPriority, bool isSource) in A2dpCodecConfigSbcBase() argument 34 : A2dpCodecConfig(codecIndex, codecPriority), isSource_(isSource) in A2dpCodecConfigSbcBase()
|
H A D | a2dp_codec_config.h | 110 * @param[in] codecIndex The index of the codec elements. 115 static A2dpCodecConfig *CreateCodec(A2dpCodecIndex codecIndex, A2dpCodecPriority codecPriority);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | avdtp.h | 345 uint16_t codecIndex; // The handle to the a2dp stream control entry member
|