/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/ |
H A D | rfcomm_channel_fsm.c | 18 typedef int (*ChannelActionFunc)(RfcommChannelInfo *channel, const void *data); 24 static int RfcommOpenChannel(RfcommChannelInfo *channel, const void *data); 25 static int RfcommCloseChannel(RfcommChannelInfo *channel, const void *data); 26 static int RfcommRecvSecurityRslt(RfcommChannelInfo *channel, const void *data); 27 static int RfcommRecvSabm(RfcommChannelInfo *channel, const void *data); 28 static int RfcommRecvDisc(RfcommChannelInfo *channel, const void *data); 29 static int RfcommRecvUa(RfcommChannelInfo *channel, const void *data); 30 static int RfcommRecvDm(RfcommChannelInfo *channel, const void *data); 31 static int RfcommRecvPnReq(RfcommChannelInfo *channel, const void *data); 32 static int RfcommRecvPnRsp(RfcommChannelInfo *channel, cons 88 RfcommChannelEvtFsm(RfcommChannelInfo *channel, RfcommChannelEvent event, const void *data) RfcommChannelEvtFsm() argument 111 RfcommOpenChannel(RfcommChannelInfo *channel, const void *data) RfcommOpenChannel() argument 162 RfcommRecvSecurityRslt(RfcommChannelInfo *channel, const void *data) RfcommRecvSecurityRslt() argument 228 RfcommRecvUa(RfcommChannelInfo *channel, const void *data) RfcommRecvUa() argument 302 RfcommRecvDm(RfcommChannelInfo *channel, const void *data) RfcommRecvDm() argument 357 RfcommRecvRpnCmd(RfcommChannelInfo *channel, const void *data) RfcommRecvRpnCmd() argument 391 RfcommRecvRpnReq(RfcommChannelInfo *channel, const void *data) RfcommRecvRpnReq() argument 412 RfcommRecvPnReq(RfcommChannelInfo *channel, const void *data) RfcommRecvPnReq() argument 479 RfcommRecvPnRsp(RfcommChannelInfo *channel, const void *data) RfcommRecvPnRsp() argument 523 RfcommRecvSabm(RfcommChannelInfo *channel, const void *data) RfcommRecvSabm() argument 556 RfcommRecvDisc(RfcommChannelInfo *channel, const void *data) RfcommRecvDisc() argument 619 RfcommRecvAcceptRsp(RfcommChannelInfo *channel, const void *data) RfcommRecvAcceptRsp() argument 643 RfcommRecvRejectRsp(RfcommChannelInfo *channel, const void *data) RfcommRecvRejectRsp() argument 671 RfcommCloseChannel(RfcommChannelInfo *channel, const void *data) RfcommCloseChannel() argument 730 RfcommTimeOut(RfcommChannelInfo *channel, const void *data) RfcommTimeOut() argument 768 RfcommRecvMscReq(RfcommChannelInfo *channel, const void *data) RfcommRecvMscReq() argument 820 RfcommRecvMscRsp(RfcommChannelInfo *channel, const void *data) RfcommRecvMscRsp() argument 857 RfcommRecvRpnRsp(RfcommChannelInfo *channel, const void *data) RfcommRecvRpnRsp() argument 875 RfcommRecvRlsReq(RfcommChannelInfo *channel, const void *data) RfcommRecvRlsReq() argument 904 RfcommRecvRlsRsp(RfcommChannelInfo *channel, const void *data) RfcommRecvRlsRsp() argument 922 RfcommRecvRevData(RfcommChannelInfo *channel, const void *data) RfcommRecvRevData() argument 970 RfcommWriteData(RfcommChannelInfo *channel, const void *data) RfcommWriteData() argument 1023 RfcommSendRpnCmd(RfcommChannelInfo *channel, const void *data) RfcommSendRpnCmd() argument 1046 RfcommSendRpnReq(RfcommChannelInfo *channel, const void *data) RfcommSendRpnReq() argument 1067 RfcommSendRlsReq(RfcommChannelInfo *channel, const void *data) RfcommSendRlsReq() argument 1100 RfcommSendMscReq(RfcommChannelInfo *channel, const void *data) RfcommSendMscReq() argument [all...] |
H A D | rfcomm_channel.c | 41 * @brief Create channel list when RFCOMM initialize. 58 * @brief Free channel list when RFCOMM finalize. 64 RfcommChannelInfo *channel = NULL; in RfcommDestroyChannelList() local 76 // Release channel information. in RfcommDestroyChannelList() 79 channel = ListGetNodeData(node); in RfcommDestroyChannelList() 81 RfcommRemoveChannel(channel); in RfcommDestroyChannelList() 84 // Free channel list. in RfcommDestroyChannelList() 135 * @brief Initialize channel information. 137 * @param channel The pointer of the channel i 139 RfcommInitChannelInfo(RfcommChannelInfo *channel) RfcommInitChannelInfo() argument 203 RfcommStartChannelTimer(RfcommChannelInfo *channel, uint8_t timeout) RfcommStartChannelTimer() argument 220 RfcommStopChannelTimer(RfcommChannelInfo *channel) RfcommStopChannelTimer() argument 255 RfcommChannelInfo *channel = malloc(sizeof(RfcommChannelInfo)); RfcommCreateChannel() local 321 RfcommChannelInfo *channel = RfcommCreateChannel(&createChannelInfo); RfcommCreateChannelOfServer() local 331 RfcommRemoveChannel(RfcommChannelInfo *channel) RfcommRemoveChannel() argument 363 RfcommReleaseCachePkt(RfcommChannelInfo *channel) RfcommReleaseCachePkt() argument 403 RfcommResetChannelInfo(RfcommChannelInfo *channel) RfcommResetChannelInfo() argument 444 RfcommNotifyEvtToUpper(const RfcommChannelInfo *channel, uint32_t eventId, const void *eventData) RfcommNotifyEvtToUpper() argument 478 RfcommChannelInfo *channel = NULL; RfcommGetChannelByDlci() local 508 RfcommChannelInfo *channel = NULL; RfcommGetFirstChannelOnSession() local 538 RfcommChannelInfo *channel = NULL; RfcommGetChannelByHandle() local 567 RfcommChannelInfo *channel = NULL; RfcommCheckSessionValid() local 590 RfcommIsChannelValid(const RfcommChannelInfo *channel) RfcommIsChannelValid() argument 627 RfcommChannelInfo *channel = NULL; RfcommOpenAllChannelOnSession() local 651 RfcommChannelInfo *channel = NULL; RfcommResetAllChannelOnSession() local 673 RfcommChannelInfo *channel = NULL; RfcommSendAllCachePktOnSession() local 697 RfcommChannelInfo *channel = NULL; RfcommNotifyAllChannelEvtOnSession() local 722 RfcommChannelInfo *channel = NULL; RfcommRemoveAllChannelOnSession() local 746 RfcommChannelInfo *channel = NULL; RfcommRemoveInvalidChannelOnSession() local 800 RfcommChannelInfo *channel = NULL; RfcommRemoveChannelCallback() local 819 RfcommSendCachePkt(RfcommChannelInfo *channel) RfcommSendCachePkt() argument 873 RfcommSetFlcToUpper(RfcommChannelInfo *channel) RfcommSetFlcToUpper() argument 889 RfcommSendCredits(const RfcommChannelInfo *channel, uint8_t credits) RfcommSendCredits() argument 902 RfcommSetFlcToPeer(RfcommChannelInfo *channel, bool enable) RfcommSetFlcToPeer() argument 946 RfcommSetPeerModemStatus(RfcommChannelInfo *channel, const RfcommModemStatusInfo *modemSts) RfcommSetPeerModemStatus() argument 986 RfcommDeterminePeerMtu(RfcommChannelInfo *channel) RfcommDeterminePeerMtu() argument 1027 RfcommChannelInfo *channel = NULL; RfcommUpdateChannelDirectionBit() local [all...] |
H A D | rfcomm.c | 117 * @brief The function is used by the client to establish a connection of the channel. 120 * @param handle The handle of the channel created by rfcomm 147 // Determine whether the channel has been created. in RfcommConnectChannel() 148 RfcommChannelInfo *channel = RfcommGetChannelByDlci(session, dlci); in RfcommConnectChannel() local 149 if (channel != NULL) { in RfcommConnectChannel() 151 *handle = channel->handle; in RfcommConnectChannel() 164 // If the channel does not exist, create a channel. in RfcommConnectChannel() 165 channel = RfcommCreateChannel(&createChannelInfo); in RfcommConnectChannel() 166 if (channel in RfcommConnectChannel() 226 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommAcceptConnection() local 248 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommRejectConnection() local 268 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommDisconnectChannel() local 316 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommSetPortConfig() local 336 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommReqPortConfig() local 357 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommSendRemoteLineStatus() local 378 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommSetModemStatus() local 399 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommGetPortState() local 425 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommRead() local 460 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommWrite() local 487 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); RfcommSendTestCmd() local [all...] |
/foundation/communication/dsoftbus/sdk/frame/small/src/ |
H A D | trans_client_stub.c | 28 ChannelInfo channel = {0}; in ClientOnChannelOpened() local 30 ReadInt32(data, &(channel.channelId)); in ClientOnChannelOpened() 31 ReadInt32(data, &(channel.channelType)); in ClientOnChannelOpened() 32 ReadBool(data, &(channel.isServer)); in ClientOnChannelOpened() 33 ReadBool(data, &(channel.isEnabled)); in ClientOnChannelOpened() 34 ReadBool(data, &(channel.isEncrypt)); in ClientOnChannelOpened() 35 ReadInt32(data, &(channel.peerUid)); in ClientOnChannelOpened() 36 ReadInt32(data, &(channel.peerPid)); in ClientOnChannelOpened() 37 channel.groupId = (char *)ReadString(data, &size); in ClientOnChannelOpened() 38 ReadUint32(data, &(channel in ClientOnChannelOpened() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/src/ |
H A D | sbc_frame.cpp | 105 int Frame::SbcCalculateLoudness(const Frame& frame, int channel, int subband) in SbcCalculateLoudness() argument 110 loudness = frame.scaleFactor_[channel][subband] - SBC_OFFSET_4[frame.frequency_][subband]; in SbcCalculateLoudness() 112 loudness = frame.scaleFactor_[channel][subband] - SBC_OFFSET_8[frame.frequency_][subband]; in SbcCalculateLoudness() 123 for (int channel = 0; channel < frame.channels_; channel++) { in SbcCalculateBitsNormal() 124 int bitSlice = SbcCalculateBitsMax(frame, channel, subbands, bitNeed); in SbcCalculateBitsNormal() 125 int bitCount = SbcCalculateBitsSliceNormal(frame.bitpool_, subbands, bitNeed, channel, &bitSlice); in SbcCalculateBitsNormal() 128 if (bitNeed[channel][subband] < bitSlice + VALUE_OF_TWO) { in SbcCalculateBitsNormal() 129 bits[channel][subban in SbcCalculateBitsNormal() 157 SbcCalculateBitsSliceNormal(const uint8_t bitPool, const int subbands, int (*bits)[8], int channel, int *bitSlice) const SbcCalculateBitsSliceNormal() argument 186 SbcCalculateBitsMax(const Frame& frame, const int channel, int subbands, int (*bits)[VALUE8]) SbcCalculateBitsMax() argument 304 int channel = VALUE_ZERO; SbcCalculateBitsStereo() local [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/common/src/ |
H A D | client_trans_udp_manager.c | 35 static int32_t ClientTransAddUdpChannel(UdpChannel *channel) in ClientTransAddUdpChannel() argument 38 TRANS_LOGE(TRANS_INIT, "udp channel manager hasn't init."); in ClientTransAddUdpChannel() 42 if (channel == NULL) { in ClientTransAddUdpChannel() 53 if (channelNode->channelId == channel->channelId) { in ClientTransAddUdpChannel() 54 TRANS_LOGE(TRANS_SDK, "udp channel has exited.channelId=%{public}d.", channel->channelId); in ClientTransAddUdpChannel() 59 ListInit(&(channel->node)); in ClientTransAddUdpChannel() 60 ListAdd(&(g_udpChannelMgr->list), &(channel->node)); in ClientTransAddUdpChannel() 61 TRANS_LOGI(TRANS_SDK, "add channelId=%{public}d", channel->channelId); in ClientTransAddUdpChannel() 71 TRANS_LOGE(TRANS_INIT, "udp channel manage in TransDeleteUdpChannel() 95 TransGetUdpChannel(int32_t channelId, UdpChannel *channel) TransGetUdpChannel() argument 154 UdpChannel channel; OnUdpChannelOpened() local 198 ConvertChannelInfoToUdpChannel(const char *sessionName, const ChannelInfo *channel) ConvertChannelInfoToUdpChannel() argument 251 TransOnUdpChannelOpened(const char *sessionName, const ChannelInfo *channel, int32_t *udpPort) TransOnUdpChannelOpened() argument 302 TransDeleteBusinnessChannel(UdpChannel *channel) TransDeleteBusinnessChannel() argument 323 UdpChannel channel; TransOnUdpChannelOpenFailed() local 371 NotifyCallback(UdpChannel *channel, int32_t channelId, ShutdownReason reason) NotifyCallback() argument 390 CloseUdpChannelProc(UdpChannel *channel, int32_t channelId, ShutdownReason reason) CloseUdpChannelProc() argument 436 UdpChannel channel; CloseUdpChannel() local 462 UdpChannel channel; TransOnUdpChannelQosEvent() local 495 UdpChannel channel; TransUdpChannelSendStream() local 510 UdpChannel channel; TransUdpChannelSetStreamMultiLayer() local 584 UdpChannel channel; OnRawStreamEncryptOptGet() local 653 UdpChannel *channel = NULL; ClientTransUdpMgrDeinit() local 670 UdpChannel channel; TransUdpChannelSendFile() local 724 UdpChannel channel; TransLimitChange() local 761 UdpChannel channel; ClientEmitFileEvent() local [all...] |
/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | volume_tools.cpp | 49 if (vols.channel > CHANNEL_16 || vols.channel < MONO) { in IsVolumeValid() 52 for (size_t i = 0; i < vols.channel; i++) { in IsVolumeValid() 72 ChannelVolumes VolumeTools::GetChannelVolumes(AudioChannel channel, int32_t volStart, int32_t volEnd) in GetChannelVolumes() argument 75 if (!IsVolumeValid(volStart) || !IsVolumeValid(volEnd) || channel > CHANNEL_16 || channel < MONO) { in GetChannelVolumes() 76 AUDIO_ERR_LOG("GetChannelVolumes failed with invalid vol:%{public}d %{public}d channel: %{public}d", volStart, in GetChannelVolumes() 77 volEnd, channel); in GetChannelVolumes() 80 for (size_t i = 0; i < channel; i++) { in GetChannelVolumes() 84 vols.channel in GetChannelVolumes() 88 GetChannelVolumes(AudioChannel channel, float volStart, float volEnd) GetChannelVolumes() argument 253 CountU8Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountU8Volume() argument 286 CountS16Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountS16Volume() argument 319 CountS24Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountS24Volume() argument 353 CountS32Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountS32Volume() argument 387 CountF32Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountF32Volume() argument 421 CountVolumeLevel(const BufferDesc &buffer, AudioSampleFormat format, AudioChannel channel) CountVolumeLevel() argument [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/common/ |
H A D | client_trans_udp_manager_test.cpp | 63 static int32_t OnSessionOpened(const char *sessionName, const ChannelInfo *channel, SessionType flag) in OnSessionOpened() argument 102 ChannelInfo channel; in InitChannelInfo() local 105 channel.channelId = TEST_CHANNELID; in InitChannelInfo() 106 channel.businessType = BUSINESS_TYPE_STREAM; in InitChannelInfo() 107 channel.channelType = TEST_CHANNELTYPE; in InitChannelInfo() 108 channel.fd = TEST_DATA_TYPE; in InitChannelInfo() 109 channel.isServer = true; in InitChannelInfo() 110 channel.isEnabled = true; in InitChannelInfo() 111 channel.peerUid = TEST_CHANNELID; in InitChannelInfo() 112 channel in InitChannelInfo() 136 ChannelInfo channel = InitChannelInfo(); HWTEST_F() local 158 ChannelInfo channel = InitChannelInfo(); HWTEST_F() local 191 ChannelInfo channel = InitChannelInfo(); HWTEST_F() local 244 ChannelInfo channel = InitChannelInfo(); HWTEST_F() local 306 ChannelInfo channel = InitChannelInfo(); HWTEST_F() local 384 ChannelInfo channel = InitChannelInfo(); HWTEST_F() local [all...] |
H A D | client_trans_udp_manager_static_test.cpp | 55 * @tc.desc: udp channel on bind test, use the invalid parameter. 88 * @tc.desc: trans delete businness channel test, use the wrong or normal parameter. 132 UdpChannel channel; in HWTEST_F() local 133 ret = TransGetUdpChannel(TEST_CHANNELID, &channel); in HWTEST_F() 185 * @tc.desc: client trans add udp channel test, use the wrong or normal parameter. 221 * @tc.desc: trans delete businness channel test, use the wrong or normal parameter. 227 UdpChannel channel; in HWTEST_F() local 228 channel.businessType = BUSINESS_TYPE_STREAM; in HWTEST_F() 229 channel.channelId = ERR_CHANNELID; in HWTEST_F() 230 channel in HWTEST_F() 304 UdpChannel channel; HWTEST_F() local [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audioutils/src/ |
H A D | audio_channel_blend.cpp | 32 AudioBlend::AudioBlend(ChannelBlendMode blendMode, uint8_t format, uint8_t channel) in AudioBlend() argument 33 :blendMode_(blendMode), format_(format), channels_(channel) in AudioBlend() 37 void AudioBlend::SetParams(ChannelBlendMode blendMode, uint8_t format, uint8_t channel) in SetParams() argument 43 channels_ = channel; in SetParams() 109 void AudioBlend::ProcessBlendLRModeWithFormat(T *buffer, size_t count, AudioChannel channel) in ProcessBlendLRModeWithFormat() argument 112 switch (channel) { in ProcessBlendLRModeWithFormat() 132 buffer += (int8_t)channel; in ProcessBlendLRModeWithFormat() 137 void AudioBlend::ProcessAllLeftModeWithFormat(T *buffer, size_t count, AudioChannel channel) in ProcessAllLeftModeWithFormat() argument 140 switch (channel) { in ProcessAllLeftModeWithFormat() 160 buffer += (int8_t)channel; in ProcessAllLeftModeWithFormat() 165 ProcessAllRightModeWithFormat(T *buffer, size_t count, AudioChannel channel) ProcessAllRightModeWithFormat() argument [all...] |
/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/ |
H A D | trans_channel_callback.c | 39 static int32_t TransAddTcpChannel(const ChannelInfo *channel, const char *pkgName, int32_t pid) in TransAddTcpChannel() argument 41 TcpChannelInfo *info = CreateTcpChannelInfo(channel); in TransAddTcpChannel() 61 const ChannelInfo *channel) in TransServerOnChannelOpened() 63 if (pkgName == NULL || sessionName == NULL || channel == NULL) { in TransServerOnChannelOpened() 67 if (channel->isEncrypt) { in TransServerOnChannelOpened() 68 GetRemoteUdidWithNetworkId(channel->peerDeviceId, peerUdid, sizeof(peerUdid)); in TransServerOnChannelOpened() 71 GetOsTypeByNetworkId(channel->peerDeviceId, &osType); in TransServerOnChannelOpened() 75 TransGetRemoteDeviceVersion(channel->peerDeviceId, channel->isEncrypt ? CATEGORY_NETWORK_ID : CATEGORY_UDID, in TransServerOnChannelOpened() 77 int64_t timeStart = channel in TransServerOnChannelOpened() 60 TransServerOnChannelOpened(const char *pkgName, int32_t pid, const char *sessionName, const ChannelInfo *channel) TransServerOnChannelOpened() argument [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/tcp_direct/src/ |
H A D | client_trans_tcp_direct_manager.c | 94 TRANS_LOGE(TRANS_SDK, "channel not found, channelId=%{public}d", channelId); in TransTdcSetListenerStateById() 173 static TcpDirectChannelInfo *TransGetNewTcpChannel(const ChannelInfo *channel) in TransGetNewTcpChannel() argument 175 if (channel == NULL) { in TransGetNewTcpChannel() 184 item->channelId = channel->channelId; in TransGetNewTcpChannel() 185 item->detail.fd = channel->fd; in TransGetNewTcpChannel() 186 item->detail.channelType = channel->channelType; in TransGetNewTcpChannel() 192 if (memcpy_s(item->detail.sessionKey, SESSION_KEY_LENGTH, channel->sessionKey, SESSION_KEY_LENGTH) != EOK) { in TransGetNewTcpChannel() 198 if (strcpy_s(item->detail.myIp, IP_LEN, channel->myIp) != EOK) { in TransGetNewTcpChannel() 262 static int32_t ClientTransTdcHandleListener(const char *sessionName, const ChannelInfo *channel) in ClientTransTdcHandleListener() argument 267 TRANS_LOGE(TRANS_SDK, "get channel socke in ClientTransTdcHandleListener() 312 ClientTransTdcOnChannelOpened(const char *sessionName, const ChannelInfo *channel) ClientTransTdcOnChannelOpened() argument 411 TcpDirectChannelInfo channel; TransTdcGetSessionKey() local 429 TcpDirectChannelInfo channel; TransTdcGetHandle() local 440 TcpDirectChannelInfo channel; TransDisableSessionListener() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Avbuffer/src/ |
H A D | param_check_test.cpp | 154 * @tc.name : Configure - channel(OH_AVCODEC_MIMETYPE_AUDIO_AAC) param check 161 int32_t channel = 2; in HWTEST_F() local 167 channel = 1; in HWTEST_F() 168 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 175 channel = 8; in HWTEST_F() 176 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 183 channel = 0; in HWTEST_F() 184 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 191 channel = 9; in HWTEST_F() 192 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRat in HWTEST_F() 208 int32_t channel = 2; HWTEST_F() local 335 int32_t channel = 2; HWTEST_F() local 382 int32_t channel = 2; // 2 channel HWTEST_F() local 485 int32_t channel = 2; HWTEST_F() local 532 int32_t channel = 2; // 2 chan HWTEST_F() local 635 int32_t channel = 1; HWTEST_F() local 674 int32_t channel = 1; HWTEST_F() local 713 int32_t channel = 1; HWTEST_F() local 752 int32_t channel = 1; HWTEST_F() local 791 int32_t channel = 1; HWTEST_F() local 830 int32_t channel = 1; HWTEST_F() local 869 int32_t channel = 1; HWTEST_F() local 904 int32_t channel = 1; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/core/common/network/ |
H A D | softbus_network_utils.c | 32 int SoftBusChannelToFrequency(int channel) in SoftBusChannelToFrequency() argument 34 if (channel >= CHANNEL_2G_FIRST && channel <= CHANNEL_2G_LAST) { in SoftBusChannelToFrequency() 35 return (channel - CHANNEL_2G_FIRST) * FREQUENCY_STEP + FREQUENCY_2G_FIRST; in SoftBusChannelToFrequency() 36 } else if (channel >= CHANNEL_5G_FIRST && channel <= CHANNEL_5G_LAST) { in SoftBusChannelToFrequency() 37 return (channel - CHANNEL_5G_FIRST) * FREQUENCY_STEP + FREQUENCY_5G_FIRST; in SoftBusChannelToFrequency()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_channel_helper.cpp | 107 int32_t channel = TransformFrequencyIntoChannel(*iter); in UpdateValidChannels() local 108 if (channel == INVALID_FREQ_OR_CHANNEL) { in UpdateValidChannels() 111 chanTbs[BandType::BAND_2GHZ].push_back(channel); in UpdateValidChannels() 114 int32_t channel = TransformFrequencyIntoChannel(*iter); in UpdateValidChannels() local 115 if (channel == INVALID_FREQ_OR_CHANNEL) { in UpdateValidChannels() 118 chanTbs[BandType::BAND_5GHZ].push_back(channel); in UpdateValidChannels() 231 int channel; in TransformFrequencyIntoChannel() local 233 channel = TransformFrequencyIntoChannel(freqVector[i]); in TransformFrequencyIntoChannel() 234 if (channel == -1) { in TransformFrequencyIntoChannel() 238 chanVector.push_back(channel); in TransformFrequencyIntoChannel() 254 TransformChannelToFrequency(int channel) TransformChannelToFrequency() argument 276 TransformChannelToBand(int channel) TransformChannelToBand() argument 296 IsValid24GChannel(int channel) IsValid24GChannel() argument 301 IsValid5GChannel(int channel) IsValid5GChannel() argument [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/src/ |
H A D | client_trans_stream.c | 33 TRANS_LOGE(TRANS_STREAM, "udp channel callback is invalid"); in RegisterStreamCb() 48 TRANS_LOGE(TRANS_STREAM, "udp channel callback is null."); in SetStreamChannelStatus() 81 TRANS_LOGE(TRANS_STREAM, "udp channel callback on stream received is null."); in OnStreamReceived() 127 TRANS_LOGE(TRANS_STREAM, "udp channel callback is null."); in GetRawStreamEncryptOptByChannelId() 131 TRANS_LOGE(TRANS_STREAM, "OnRawStreamEncryptOptGet of udp channel callback is null."); in GetRawStreamEncryptOptByChannelId() 140 TRANS_LOGE(TRANS_STREAM, "udp channel callback on udp channel opened is null channelId=%{public}d", channelId); in OnStreamUdpChannelOpened() 153 int32_t TransOnstreamChannelOpened(const ChannelInfo *channel, int32_t *streamPort) in TransOnstreamChannelOpened() argument 156 if (channel == NULL || streamPort == NULL) { in TransOnstreamChannelOpened() 160 StreamType streamType = (StreamType)channel in TransOnstreamChannelOpened() [all...] |
/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/ |
H A D | trans_udp_negotiation.c | 67 TRANS_LOGE(TRANS_CTRL, "generate udp channel id lock failed"); in GenerateUdpChannelId() 86 TRANS_LOGE(TRANS_CTRL, "release udp channel id lock failed"); in ReleaseUdpChannelId() 173 TRANS_LOGE(TRANS_CTRL, "on channel closed failed, ret=%{public}d.", ret); in NotifyUdpChannelClosed() 189 TRANS_LOGE(TRANS_CTRL, "on channel bind failed, ret=%{public}d, channelId=%{public}" PRId64, ret, in NotifyUdpChannelBind() 245 TRANS_LOGE(TRANS_CTRL, "notify udp channel open failed err."); in NotifyUdpChannelOpenFailed() 291 TRANS_LOGE(TRANS_CTRL, "new udp channel failed."); in NewUdpChannelByAppInfo() 312 TRANS_LOGI(TRANS_CTRL, "process udp channel open state[as server]."); in AcceptUdpChannelAsServer() 315 TRANS_LOGE(TRANS_CTRL, "generate udp channel id failed."); in AcceptUdpChannelAsServer() 334 TRANS_LOGE(TRANS_CTRL, "add new udp channel failed."); in AcceptUdpChannelAsServer() 344 TRANS_LOGI(TRANS_CTRL, "process udp channel ope in AcceptUdpChannelAsClient() 583 UdpChannelInfo channel; TransOnExchangeUdpInfoReply() local 725 StartExchangeUdpInfo(UdpChannelInfo *channel, AuthHandle authHandle, int64_t seq) StartExchangeUdpInfo() argument 793 UdpChannelInfo *channel = (UdpChannelInfo *)SoftBusCalloc(sizeof(UdpChannelInfo)); UdpOnAuthConnOpened() local 834 UdpChannelInfo *channel = (UdpChannelInfo *)SoftBusCalloc(sizeof(UdpChannelInfo)); UdpOnAuthConnOpenFailed() local 867 UdpChannelInfo *channel = (UdpChannelInfo *)SoftBusCalloc(sizeof(UdpChannelInfo)); TransCloseUdpChannelByRequestId() local 886 UdpChannelInfo channel; CheckAuthConnStatus() local 938 OpenAuthConnForUdpNegotiation(UdpChannelInfo *channel) OpenAuthConnForUdpNegotiation() argument 1092 UdpChannelInfo channel; TransCloseUdpChannel() local [all...] |
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/ |
H A D | trans_udp_nego_test.cpp | 321 UdpChannelInfo *channel = CreateUdpChannelPackTest(); in HWTEST_F() local 322 ASSERT_TRUE(channel != nullptr); in HWTEST_F() 323 channel->info.udpChannelOptType = TYPE_UDP_CHANNEL_CLOSE; in HWTEST_F() 324 channel->info.myData.channelId = 1; in HWTEST_F() 325 int32_t ret = TransAddUdpChannel(channel); in HWTEST_F() 330 TransOnExchangeUdpInfoReply(authId, channel->seq, msg); in HWTEST_F() 370 UdpChannelInfo *channel = CreateUdpChannelPackTest(); in HWTEST_F() local 371 ASSERT_TRUE(channel != nullptr); in HWTEST_F() 372 channel->info.udpChannelOptType = TYPE_UDP_CHANNEL_CLOSE; in HWTEST_F() 373 int32_t ret = TransAddUdpChannel(channel); in HWTEST_F() 395 UdpChannelInfo channel; HWTEST_F() local 417 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 516 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 536 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 574 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 651 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 690 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 733 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 754 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 775 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local 805 UdpChannelInfo *channel = CreateUdpChannelPackTest(); HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/core/transmission/ipc/standard/src/ |
H A D | trans_client_proxy_standard.cpp | 56 int32_t TransClientProxy::MessageParcelWrite(MessageParcel &data, const char *sessionName, const ChannelInfo *channel) in MessageParcelWrite() argument 63 WRITE_PARCEL_WITH_RET(data, Int32, channel->channelId, SOFTBUS_IPC_ERR); in MessageParcelWrite() 64 WRITE_PARCEL_WITH_RET(data, Int32, channel->channelType, SOFTBUS_IPC_ERR); in MessageParcelWrite() 65 WRITE_PARCEL_WITH_RET(data, Uint64, channel->laneId, SOFTBUS_IPC_ERR); in MessageParcelWrite() 66 WRITE_PARCEL_WITH_RET(data, Int32, channel->connectType, SOFTBUS_IPC_ERR); in MessageParcelWrite() 68 if (channel->channelType == CHANNEL_TYPE_TCP_DIRECT) { in MessageParcelWrite() 69 WRITE_PARCEL_WITH_RET(data, FileDescriptor, channel->fd, SOFTBUS_IPC_ERR); in MessageParcelWrite() 70 WRITE_PARCEL_WITH_RET(data, CString, channel->myIp, SOFTBUS_IPC_ERR); in MessageParcelWrite() 72 WRITE_PARCEL_WITH_RET(data, Bool, channel->isServer, SOFTBUS_IPC_ERR); in MessageParcelWrite() 73 WRITE_PARCEL_WITH_RET(data, Bool, channel in MessageParcelWrite() 142 OnChannelOpened(const char *sessionName, const ChannelInfo *channel) OnChannelOpened() argument [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Avbuffer/src/ |
H A D | param_check_test.cpp | 104 * @tc.name : Configure - channel(OH_AVCODEC_MIMETYPE_AUDIO_G711MU) param check 111 int32_t channel = 1; //channel1 in HWTEST_F() local 121 channel = 1; in HWTEST_F() 122 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F() 130 channel = 2; in HWTEST_F() 131 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F() 139 channel = 0; in HWTEST_F() 140 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F() 148 channel = 3; in HWTEST_F() 149 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRat in HWTEST_F() 166 int32_t channel = 1; //channel1 HWTEST_F() local 248 int32_t channel = 1; //channel1 HWTEST_F() local 285 int32_t channel = 1; //channel1 HWTEST_F() local 313 int32_t channel = 1; //channel1 HWTEST_F() local 368 int32_t channel = 1; HWTEST_F() local 414 int32_t channel = 1; HWTEST_F() local 460 int32_t channel = 1; HWTEST_F() local 515 int32_t channel = 1; HWTEST_F() local 543 int32_t channel = 1; HWTEST_F() local 598 int32_t channel = 1; //channel1 HWTEST_F() local 650 int32_t channel = 1; //channel1 HWTEST_F() local 702 int32_t channel = 1; //channel1 HWTEST_F() local [all...] |
/foundation/CastEngine/castengine_wifi_display/services/mediachannel/ |
H A D | channel_manager.cpp | 47 auto channel = std::make_shared<MediaChannel>(); in HandleMediaChannelCreate() local 48 channel->SetContextId(eventMsg->srcId); in HandleMediaChannelCreate() 49 eventMsg->srcId = channel->GetId(); in HandleMediaChannelCreate() 52 mediaChannels_.emplace(channel->GetId(), channel); in HandleMediaChannelCreate() 68 auto channel = mediaChannels_.find(eventMsg->dstId); in HandleMediaChannelDestroy() local 69 if (channel != mediaChannels_.end()) { in HandleMediaChannelDestroy() 70 mediaChannels_.erase(channel); in HandleMediaChannelDestroy() 117 SHARING_LOGE("distribute event channel not exist channelId: %{public}d.", mediaChannelId); in HandleEvent() 131 auto channel in GetMediaChannel() local [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/statistics/src/ |
H A D | client_trans_statistics.c | 35 static void CreateSocketResource(SocketResource *item, const char *sessionName, const ChannelInfo *channel) in CreateSocketResource() argument 37 if (item == NULL || sessionName == NULL || channel == NULL) { in CreateSocketResource() 41 item->laneId = channel->laneId; in CreateSocketResource() 42 item->channelId = channel->channelId; in CreateSocketResource() 43 item->channelType = channel->channelType; in CreateSocketResource() 54 void AddSocketResource(const char *sessionName, const ChannelInfo *channel) in AddSocketResource() argument 56 if (sessionName == NULL || channel == NULL || channel->isServer) { in AddSocketResource() 60 if (channel->connectType != CONNECT_BR && channel in AddSocketResource() [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/ |
H A D | trans_sdk_tcp_direct_test.cpp | 93 static int32_t OnSessionOpened(const char *sessionName, const ChannelInfo *channel, SessionType flag) in OnSessionOpened() argument 171 ChannelInfo *channel = TestGetChannelInfo(); in HWTEST_F() local 172 ASSERT_TRUE(channel != nullptr); in HWTEST_F() 173 int32_t ret = ClientTransTdcOnChannelOpened(nullptr, channel); in HWTEST_F() 179 ret = ClientTransTdcOnChannelOpened(g_sessionName, channel); in HWTEST_F() 182 SoftBusFree(channel); in HWTEST_F() 194 ChannelInfo *channel = TestGetChannelInfo(); in HWTEST_F() local 195 ASSERT_TRUE(channel != nullptr); in HWTEST_F() 201 int32_t ret = ClientTransTdcOnChannelOpened(g_sessionName, channel); in HWTEST_F() 209 SoftBusFree(channel); in HWTEST_F() 222 ChannelInfo *channel = TestGetChannelInfo(); HWTEST_F() local 251 ChannelInfo *channel = TestGetChannelInfo(); HWTEST_F() local 320 ChannelInfo *channel = TestGetChannelInfo(); HWTEST_F() local 352 ChannelInfo *channel = TestGetChannelInfo(); HWTEST_F() local 384 ChannelInfo *channel = TestGetChannelInfo(); HWTEST_F() local 587 ChannelInfo *channel = TestGetChannelInfo(); HWTEST_F() local 618 ChannelInfo *channel = TestGetChannelInfo(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/imagefilter/ |
H A D | filter_blur.h | 42 void BoxBlur(Img& img, uint16_t radius, int32_t channel, int32_t stride) in BoxBlur() argument 54 integral_ = (int32_t*)malloc((width + 1) * (height + 1) * channel * sizeof(int32_t)); in BoxBlur() 57 if (channel == FOUR_TIMES) { in BoxBlur() 98 int32_t channel = FOUR_TIMES; in GetRGBAIntegralImage() local 100 int32_t integralSize = (width + 1) * channel * sizeof(int32_t); in GetRGBAIntegralImage() 106 int32_t* linePL = integral_ + y * (width + 1) * channel + channel; in GetRGBAIntegralImage() 108 int32_t* linePD = integral_ + (y + 1) * (width + 1) * channel + channel; in GetRGBAIntegralImage() 123 linePS += channel; in GetRGBAIntegralImage() [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/ |
H A D | client_trans_stream_test.cpp | 223 ChannelInfo *channel = (ChannelInfo*)SoftBusCalloc(sizeof(ChannelInfo)); in HWTEST_F() local 224 ASSERT_TRUE(channel != nullptr); in HWTEST_F() 230 ret = TransOnstreamChannelOpened(channel, NULL); in HWTEST_F() 237 channel->streamType = INVALID; in HWTEST_F() 238 ret = TransOnstreamChannelOpened(channel, &streamPort); in HWTEST_F() 241 channel->streamType = VIDEO_SLICE_STREAM; in HWTEST_F() 242 ret = TransOnstreamChannelOpened(channel, &streamPort); in HWTEST_F() 245 channel->streamType = RAW_STREAM; in HWTEST_F() 246 channel->isServer = false; in HWTEST_F() 247 channel in HWTEST_F() [all...] |