Home
last modified time | relevance | path

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

/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));
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_config_use.cpp111 std::vector<int> ApConfigUse::GetChannelFromDrvOrXmlByBand(const BandType &bandType) const in GetChannelFromDrvOrXmlByBand()
113 std::vector<int> preferredChannels = GetPreferredChannelByBand(bandType); in GetChannelFromDrvOrXmlByBand()
115 WIFI_LOGI("get freqs from xml success, bandType=%{public}d, channel size=%{public}d", in GetChannelFromDrvOrXmlByBand()
116 static_cast<int>(bandType), static_cast<int>(preferredChannels.size())); in GetChannelFromDrvOrXmlByBand()
121 WifiConfigCenter::GetInstance().GetApIfaceName(), static_cast<int>(bandType), freqs); in GetChannelFromDrvOrXmlByBand()
123 WifiSettings::GetInstance().SetDefaultFrequenciesByCountryBand(bandType, freqs); in GetChannelFromDrvOrXmlByBand()
124 WIFI_LOGI("get freqs from drv fail, use default, bandType=%{public}d, size=%{public}d", in GetChannelFromDrvOrXmlByBand()
125 static_cast<int>(bandType), static_cast<int>(freqs.size())); in GetChannelFromDrvOrXmlByBand()
127 WIFI_LOGI("get freqs from drv success, bandType=%{public}d, size=%{public}d", in GetChannelFromDrvOrXmlByBand()
128 static_cast<int>(bandType), static_cas in GetChannelFromDrvOrXmlByBand()
[all...]
H A Dap_config_use.h104 std::vector<int> GetChannelFromDrvOrXmlByBand(const BandType &bandType) const;
109 std::vector<int> GetPreferredChannelByBand(const BandType &bandType) const;
/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_entry.cpp230 napi_value bandType = nullptr; in WifiBandTypeInit() local
231 napi_create_object(env, &bandType); in WifiBandTypeInit()
232 SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_NONE), "WIFI_BAND_NONE"); in WifiBandTypeInit()
233 SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_2GHZ), "WIFI_BAND_2G"); in WifiBandTypeInit()
234 SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_5GHZ), "WIFI_BAND_5G"); in WifiBandTypeInit()
235 SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_6GHZ), "WIFI_BAND_6G"); in WifiBandTypeInit()
236 SetNamedPropertyByInteger(env, bandType, static_cast<int>(WifiBandTypeJS::BAND_60GHZ), "WIFI_BAND_60G"); in WifiBandTypeInit()
237 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::BAND_60GHZ, in IsBandTypeSupported()
1525 ErrCode ret = wifiDevicePtr->IsBandTypeSupported(bandType, supported); in IsBandTypeSupported()
/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()
262 BandType bandType = static_cast<BandType>(static_cast<int>(data[0]) % SIX); in GetValidChannelsFuzzTest() local
264 pApService->GetValidChannels(bandType, validChannel); in GetValidChannelsFuzzTest()
265 pApInterface->GetValidChannels(bandType, validChannel); in GetValidChannelsFuzzTest()
/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);
/foundation/communication/wifi/wifi/interfaces/kits/c/
H A Dwifi_device.h287 * @param bandType - wifi band type
291 WifiErrorCode IsBandTypeSupported(int bandType, bool *supported);
/foundation/communication/wifi/wifi/frameworks/cj/include/
H A Dwifi_ffi.h33 FFI_EXPORT int32_t FfiWifiIsBandTypeSupported(int32_t bandType, bool &ret);
/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()
/foundation/communication/wifi/wifi/interfaces/inner_api/
H A Dwifi_device.h352 * @param bandType - wifi band type
356 virtual ErrCode IsBandTypeSupported(int bandType, bool &supported) = 0;
/foundation/communication/wifi/wifi/frameworks/native/interfaces/
H A Di_wifi_device.h383 * @param bandType - wifi band type
387 virtual ErrCode IsBandTypeSupported(int bandType, bool &supported) = 0;
/foundation/communication/wifi/wifi/frameworks/native/src/
H A Dwifi_device_impl.h368 * @param bandType - wifi band type
372 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.h386 * @param bandType - wifi band type
390 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.cpp1693 ErrCode WifiDeviceProxy::IsBandTypeSupported(int bandType, bool &supported) in IsBandTypeSupported() argument
1707 data.WriteInt32(bandType); in IsBandTypeSupported()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta_sa/
H A Dwifi_device_service_impl.h164 ErrCode IsBandTypeSupported(int bandType, bool &supported) override;
H A Dwifi_device_service_impl.cpp1701 ErrCode WifiDeviceServiceImpl::IsBandTypeSupported(int bandType, bool &supported) in IsBandTypeSupported() argument
1709 if (bandType <= (int)BandType::BAND_NONE || bandType >= (int)BandType::BAND_ANY) { in IsBandTypeSupported()
1710 WIFI_LOGE("IsBandTypeSupported bandType error %{public}d!", bandType); in IsBandTypeSupported()
1715 supported = channels.find((BandType)bandType) != channels.end(); in IsBandTypeSupported()
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.cpp1073 int bandType = data.ReadInt32(); in OnIsBandTypeSupported() local
1075 ret = IsBandTypeSupported(bandType, result); in OnIsBandTypeSupported()
/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()
/foundation/communication/wifi/wifi/frameworks/cj/src/
H A Dwifi_ffi.cpp482 int32_t FfiWifiIsBandTypeSupported(int32_t bandType, bool &ret) in FfiWifiIsBandTypeSupported() argument
487 return cjWifiDevicePtr->IsBandTypeSupported(bandType, ret); in FfiWifiIsBandTypeSupported()
/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()
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifidevicestub_fuzzer/
H A Dwifidevicestub_fuzzer.cpp989 int bandType = static_cast<int>(data[0]); in IsBandTypeSupportedTest() local
991 pWifiDeviceServiceImpl->IsBandTypeSupported(bandType, supported); in IsBandTypeSupportedTest()

Completed in 30 milliseconds