/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
H A D | ap_config_use.cpp | 112 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 D | ap_config_use.h | 104 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 D | wifi_napi_entry.cpp | 232 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 D | wifi_napi_device.cpp | 1520 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 D | mock_ap_config_use.h | 34 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 D | wifiap_fuzzer.cpp | 76 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 D | mock_wifi_ap_service.h | 106 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 D | wifi_device.h | 291 WifiErrorCode IsBandTypeSupported(int bandType, bool *supported);
|
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wificdevice_fuzzer/ |
H A D | wificdevice_fuzzer.cpp | 296 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 D | i_wifi_device.h | 387 virtual ErrCode IsBandTypeSupported(int bandType, bool &supported) = 0;
|
/ohos5.0/foundation/communication/wifi/wifi/interfaces/inner_api/ |
H A D | wifi_device.h | 355 virtual ErrCode IsBandTypeSupported(int bandType, bool &supported) = 0;
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_device_impl.h | 371 ErrCode IsBandTypeSupported(int bandType, bool &supported) override;
|
H A D | wifi_device_impl.cpp | 420 ErrCode WifiDeviceImpl::IsBandTypeSupported(int bandType, bool &supported) in IsBandTypeSupported() argument 424 return client_->IsBandTypeSupported(bandType, supported); in IsBandTypeSupported()
|
H A D | wifi_device_proxy.h | 390 ErrCode IsBandTypeSupported(int bandType, bool &supported) override;
|
H A D | wifi_device_proxy_lite.cpp | 1600 ErrCode WifiDeviceProxy::IsBandTypeSupported(int bandType, bool &supported) in IsBandTypeSupported() argument 1618 (void)WriteInt32(&req, bandType); in IsBandTypeSupported()
|
H A D | wifi_device_proxy.cpp | 1759 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 D | wifi_device_service_impl.cpp | 1715 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 D | wifi_device_service_impl.h | 164 ErrCode IsBandTypeSupported(int bandType, bool &supported) override;
|
H A D | wifi_device_stub_lite.cpp | 640 bool bandType = false; in OnIsBandTypeSupported() local 641 (void)ReadBool(req, &bandType); in OnIsBandTypeSupported() 643 ErrCode ret = IsBandTypeSupported(bandType, result); in OnIsBandTypeSupported()
|
H A D | wifi_device_stub.cpp | 1118 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 D | wifi_client.cpp | 631 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 D | wifi_c_device.cpp | 507 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 D | wifidevicestub_fuzzer.cpp | 977 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 D | wifiManagerInterface.ets | 1066 // let bandType:wifiManager.WifiBandType 1067 // wifiManager.isBandTypeSupported(bandType)
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-wifiManager.md | 1274 isBandTypeSupported(bandType: WifiBandType): boolean 1286 | bandType | [WifiBandType](#wifibandtype10) | 是 | Wifi 频段类型。 |
|