Searched refs:channelArray (Results 1 - 6 of 6) sorted by relevance
/foundation/distributedhardware/distributed_audio/audiohandler/src/ |
H A D | daudio_handler.cpp | 64 cJSON *channelArray = cJSON_CreateArray(); in AddItemsToObject() local 65 CHECK_NULL_RETURN(channelArray, false); in AddItemsToObject() 66 cJSON_AddItemToObject(infoJson, "ChannelMasks", channelArray); in AddItemsToObject() 68 cJSON_AddItemToArray(channelArray, cJSON_CreateNumber(static_cast<uint32_t>(value))); in AddItemsToObject() 86 cJSON *channelArray = cJSON_CreateArray(); in AddItemsToObject() local 87 CHECK_NULL_RETURN(channelArray, false); in AddItemsToObject() 88 cJSON_AddItemToObject(infoJson, "ChannelMasks", channelArray); in AddItemsToObject() 90 cJSON_AddItemToArray(channelArray, cJSON_CreateNumber(static_cast<uint32_t>(value))); in AddItemsToObject()
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/ |
H A D | wifi_direct_utils.h | 81 static bool IsInChannelList(int32_t channel, const std::vector<int> &channelArray);
|
H A D | wifi_direct_utils.cpp | 405 bool WifiDirectUtils::IsInChannelList(int32_t channel, const std::vector<int> &channelArray) in IsInChannelList() argument 407 for (size_t i = 0; i < channelArray.size(); i++) { in IsInChannelList() 408 if (channel == channelArray[i]) { in IsInChannelList()
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/adapter/ |
H A D | p2p_adapter.cpp | 204 std::vector<int> channelArray; in GetStationFrequencyWithFilter() local 205 auto ret = P2pAdapter::GetChannel5GListIntArray(channelArray); in GetStationFrequencyWithFilter() 210 if (WifiDirectUtils::IsInChannelList(channel, channelArray)) { in GetStationFrequencyWithFilter()
|
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_utils.cpp | 393 bool WifiDirectUtils::IsInChannelList(int32_t channel, const std::vector<int> &channelArray) in IsInChannelList() argument 395 for (size_t i = 0; i < channelArray.size(); i++) { in IsInChannelList() 396 if (channel == channelArray[i]) { in IsInChannelList()
|
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/utils/ |
H A D | wifi_direct_utils_test.cpp | 247 std::vector<int> channelArray = { 35, 36, 37 }; in HWTEST_F() local 248 auto ret = WifiDirectUtils::IsInChannelList(channel, channelArray); in HWTEST_F()
|
Completed in 8 milliseconds