Home
last modified time | relevance | path

Searched refs:bandType (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_config_use.cpp112 std::vector<int> ApConfigUse::GetChannelFromDrvOrXmlByBand(const BandType &bandType) const in GetChannelFromDrvOrXmlByBand()
114 std::vector<int> preferredChannels = GetPreferredChannelByBand(bandType); in GetChannelFromDrvOrXmlByBand()
117 static_cast<int>(bandType), static_cast<int>(preferredChannels.size())); in GetChannelFromDrvOrXmlByBand()
122 WifiConfigCenter::GetInstance().GetApIfaceName(), static_cast<int>(bandType), freqs); in GetChannelFromDrvOrXmlByBand()
124 WifiSettings::GetInstance().SetDefaultFrequenciesByCountryBand(bandType, freqs); in GetChannelFromDrvOrXmlByBand()
126 static_cast<int>(bandType), static_cast<int>(freqs.size())); in GetChannelFromDrvOrXmlByBand()
129 static_cast<int>(bandType), static_cast<int>(freqs.size())); in GetChannelFromDrvOrXmlByBand()
209 std::vector<int> ApConfigUse::GetPreferredChannelByBand(const BandType &bandType) const in GetPreferredChannelByBand()
212 if (m_softapPreferredChannels.find(bandType) == m_softapPreferredChannels.end()) { in GetPreferredChannelByBand()
215 preferredChannelByBand = m_softapPreferredChannels.find(bandType)->second; in GetPreferredChannelByBand()
H A Dap_config_use.h104 std::vector<int> GetChannelFromDrvOrXmlByBand(const BandType &bandType) const;
109 std::vector<int> GetPreferredChannelByBand(const BandType &bandType) const;
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_entry.cpp232 napi_value bandType = nullptr; in WifiBandTypeInit() local
233 napi_create_object(env, &bandType); in WifiBandTypeInit()
234 …SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_NONE), "WIFI_BAND_N… in WifiBandTypeInit()
235 …SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_2GHZ), "WIFI_BAND_2… in WifiBandTypeInit()
236 …SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_5GHZ), "WIFI_BAND_5… in WifiBandTypeInit()
237 …SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_6GHZ), "WIFI_BAND_6… in WifiBandTypeInit()
238 …SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_60GHZ), "WIFI_BAND_… in WifiBandTypeInit()
239 return bandType; in WifiBandTypeInit()
H A Dwifi_napi_device.cpp1520 int bandType = 1; in IsBandTypeSupported() local
1521 napi_get_value_int32(env, argv[0], &bandType); in IsBandTypeSupported()
1522 …WIFI_NAPI_ASSERT(env, bandType > (int)WifiBandTypeJS::BAND_NONE && bandType <= (int)WifiBandTypeJS… in IsBandTypeSupported()
1525 ErrCode ret = wifiDevicePtr->IsBandTypeSupported(bandType, supported); in IsBandTypeSupported()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/Mock/
H A Dmock_ap_config_use.h34 MOCK_CONST_METHOD1(GetChannelFromDrvOrXmlByBand, std::vector<int>(const BandType &bandType));
39 MOCK_CONST_METHOD1(GetPreferredChannels, std::set<int>(const BandType &bandType));
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiap_fuzzer/
H A Dwifiap_fuzzer.cpp76 BandType bandType = static_cast<BandType>(static_cast<int>(data[0]) % SIX); in GetChannelFromDrvOrXmlByBandFuzzTest() local
77 pApConfigUse->GetChannelFromDrvOrXmlByBand(bandType); in GetChannelFromDrvOrXmlByBandFuzzTest()
109 BandType bandType = static_cast<BandType>(static_cast<int>(data[0]) % SIX); in GetPreferredChannelByBandFuzzTest() local
110 pApConfigUse->GetPreferredChannelByBand(bandType); in GetPreferredChannelByBandFuzzTest()
281 BandType bandType = static_cast<BandType>(static_cast<int>(data[0]) % SIX); in GetValidChannelsFuzzTest() local
283 pApService->GetValidChannels(bandType, validChannel); in GetValidChannelsFuzzTest()
284 pApInterface->GetValidChannels(bandType, validChannel); in GetValidChannelsFuzzTest()
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/fuzz_common_func/
H A Dmock_wifi_ap_service.h106 std::vector<int> GetChannelFromDrvOrXmlByBand(const BandType &bandType);
111 std::vector<int> GetPreferredChannelByBand(const BandType &bandType);
/ohos5.0/foundation/communication/wifi/wifi/interfaces/kits/c/
H A Dwifi_device.h291 WifiErrorCode IsBandTypeSupported(int bandType, bool *supported);
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wificdevice_fuzzer/
H A Dwificdevice_fuzzer.cpp296 int bandType = static_cast<int>(data[0]); in IsBandTypeSupportedTest() local
297 (void)IsBandTypeSupported(bandType, &supported); in IsBandTypeSupportedTest()
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/interfaces/
H A Di_wifi_device.h387 virtual ErrCode IsBandTypeSupported(int bandType, bool &supported) = 0;
/ohos5.0/foundation/communication/wifi/wifi/interfaces/inner_api/
H A Dwifi_device.h355 virtual ErrCode IsBandTypeSupported(int bandType, bool &supported) = 0;
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/src/
H A Dwifi_device_impl.h371 ErrCode IsBandTypeSupported(int bandType, bool &supported) override;
H A Dwifi_device_impl.cpp420 ErrCode WifiDeviceImpl::IsBandTypeSupported(int bandType, bool &supported) in IsBandTypeSupported() argument
424 return client_->IsBandTypeSupported(bandType, supported); in IsBandTypeSupported()
H A Dwifi_device_proxy.h390 ErrCode IsBandTypeSupported(int bandType, bool &supported) override;
H A Dwifi_device_proxy_lite.cpp1600 ErrCode WifiDeviceProxy::IsBandTypeSupported(int bandType, bool &supported) in IsBandTypeSupported() argument
1618 (void)WriteInt32(&req, bandType); in IsBandTypeSupported()
H A Dwifi_device_proxy.cpp1759 ErrCode WifiDeviceProxy::IsBandTypeSupported(int bandType, bool &supported) in IsBandTypeSupported() argument
1772 data.WriteInt32(bandType); in IsBandTypeSupported()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta_sa/
H A Dwifi_device_service_impl.cpp1715 ErrCode WifiDeviceServiceImpl::IsBandTypeSupported(int bandType, bool &supported) in IsBandTypeSupported() argument
1723 if (bandType <= (int)BandType::BAND_NONE || bandType >= (int)BandType::BAND_ANY) { in IsBandTypeSupported()
1724 WIFI_LOGE("IsBandTypeSupported bandType error %{public}d!", bandType); in IsBandTypeSupported()
1729 supported = channels.find((BandType)bandType) != channels.end(); in IsBandTypeSupported()
H A Dwifi_device_service_impl.h164 ErrCode IsBandTypeSupported(int bandType, bool &supported) override;
H A Dwifi_device_stub_lite.cpp640 bool bandType = false; in OnIsBandTypeSupported() local
641 (void)ReadBool(req, &bandType); in OnIsBandTypeSupported()
643 ErrCode ret = IsBandTypeSupported(bandType, result); in OnIsBandTypeSupported()
H A Dwifi_device_stub.cpp1118 int bandType = data.ReadInt32(); in OnIsBandTypeSupported() local
1120 ret = IsBandTypeSupported(bandType, result); in OnIsBandTypeSupported()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_client/
H A Dwifi_client.cpp631 int bandType = (band == "2g" ? BAND_2GHZ : BAND_5GHZ); in HandleGetSignalLevel() local
632 ErrCode ret = ptrWifiDevice->GetSignalLevel(rssi, bandType, level); in HandleGetSignalLevel()
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/
H A Dwifi_c_device.cpp507 NO_SANITIZE("cfi") WifiErrorCode IsBandTypeSupported(int bandType, bool *supported) in IsBandTypeSupported() argument
510 OHOS::Wifi::ErrCode ret = wifiDevicePtr->IsBandTypeSupported(bandType, *supported); in IsBandTypeSupported()
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifidevicestub_fuzzer/
H A Dwifidevicestub_fuzzer.cpp977 int bandType = static_cast<int>(data[0]); in IsBandTypeSupportedTest() local
979 pWifiDeviceServiceImpl->IsBandTypeSupported(bandType, supported); in IsBandTypeSupportedTest()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/entryability/model/
H A DwifiManagerInterface.ets1066 // let bandType:wifiManager.WifiBandType
1067 // wifiManager.isBandTypeSupported(bandType)
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-wifiManager.md1274 isBandTypeSupported(bandType: WifiBandType): boolean
1286 | bandType | [WifiBandType](#wifibandtype10) | 是 | Wifi 频段类型。 |

12