Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 97) sorted by relevance

1234

/foundation/communication/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
Dap_config_use.cpp34 int ApConfigUse::TransformFrequencyIntoChannel(int freq) const in TransformFrequencyIntoChannel()
36 if (freq >= FREP_2G_MIN && freq <= FREP_2G_MAX) { in TransformFrequencyIntoChannel()
37 return (freq - FREP_2G_MIN) / CENTER_FREP_DIFF + CHANNEL_2G_MIN; in TransformFrequencyIntoChannel()
38 } else if (freq == CHANNEL_14_FREP) { in TransformFrequencyIntoChannel()
40 } else if (freq >= FREP_5G_MIN && freq <= FREP_5G_MAX) { in TransformFrequencyIntoChannel()
41 return (freq - FREP_5G_MIN) / CENTER_FREP_DIFF + CHANNEL_5G_MIN; in TransformFrequencyIntoChannel()
80 bool ApConfigUse::IsValid24GHz(int freq) const in IsValid24GHz()
82 return (freq >= FREP_2G_MIN) && (freq <= CHANNEL_14_FREP); in IsValid24GHz()
85 bool ApConfigUse::IsValid5GHz(int freq) const in IsValid5GHz()
87 return (freq >= FREP_5G_MIN) && (freq <= FREP_5G_MAX); in IsValid5GHz()
Dap_config_use.h59 virtual bool IsValid24GHz(int freq) const;
65 virtual bool IsValid5GHz(int freq) const;
92 virtual int TransformFrequencyIntoChannel(const int freq) const;
/foundation/communication/dsoftbus/core/connection/p2p/negotiation/src/
Dp2plink_channel_freq.c131 static int32_t GetChannelByFreq(int32_t freq) in GetChannelByFreq() argument
133 if (freq >= FREQUENCY_2G_FIRST && freq <= FREQUENCY_2G_LAST) { in GetChannelByFreq()
134 return ((freq - FREQUENCY_2G_FIRST) / FREQUENCY_STEP) + CHANNEL_2G_FIRST; in GetChannelByFreq()
135 } else if (freq >= FREQUENCY_5G_FIRST && freq <= FREQUENCY_5G_LAST) { in GetChannelByFreq()
136 return ((freq - FREQUENCY_5G_FIRST) / FREQUENCY_STEP) + CHANNEL_5G_FIRST; in GetChannelByFreq()
142 static bool Is2GBand(int32_t freq) in Is2GBand() argument
144 if (freq >= FREQUENCY_2G_FIRST && freq <= FREQUENCY_2G_LAST) { in Is2GBand()
167 int32_t freq = P2pLinkGetFrequency(); in P2pLinkUpateAndGetStationFreq() local
168 if (freq < FREQUENCY_2G_FIRST) { in P2pLinkUpateAndGetStationFreq()
171 int32_t channel = GetChannelByFreq(freq); in P2pLinkUpateAndGetStationFreq()
[all …]
/foundation/graphic/standard/frameworks/wmtest/test/
Dvsync_native_test_1.cpp76 void Vsync(int64_t, void *, uint32_t freq, int32_t data, std::function<void(int32_t)> check) in Vsync() argument
79 RequestSync(std::bind(&VsyncNativeTest1::Vsync, this, _1, _2, freq, data, check), freq); in Vsync()
82 void RequestSync(const SyncFunc syncFunc, uint32_t freq) in RequestSync() argument
85 .frequency_ = freq, in RequestSync()
/foundation/communication/wifi/tests/wifi_standard/wifi_framework/wifi_manage/wifi_ap/Mock/
Dmock_ap_config_use.h31 MOCK_CONST_METHOD1(IsValid24GHz, bool(int freq));
32 MOCK_CONST_METHOD1(IsValid5GHz, bool(int freq));
34 MOCK_CONST_METHOD1(TransformFrequencyIntoChannel, int(int freq));
/foundation/communication/dsoftbus/tests/core/discovery/manager/unittest/
Ddisc_manager_test.cpp101 .freq = LOW,
111 .freq = MID,
121 .freq = MID,
133 .freq = MID,
145 .freq = LOW,
155 .freq = MID,
165 .freq = MID,
177 .freq = MID,
211 .freq = LOW,
227 testInfo.freq = (ExchangeFreq)(SUPER_HIGH + 1);
[all …]
/foundation/graphic/standard/frameworks/vsync/src/
Dvsync_manager.cpp68 uint32_t freq = 0; in OnRemoteRequest() local
69 GSError ret = GetVsyncFrequency(freq); in OnRemoteRequest()
71 reply.WriteUint32(freq); in OnRemoteRequest()
111 GSError VsyncManager::GetVsyncFrequency(uint32_t &freq) in GetVsyncFrequency() argument
114 freq = defaultVsyncFrequency; in GetVsyncFrequency()
Dstatic_call.cpp56 GSError StaticCall::GetVsyncFrequency(sptr<IVsyncManager>& server, uint32_t &freq) in GetVsyncFrequency() argument
58 return server->GetVsyncFrequency(freq); in GetVsyncFrequency()
Dvsync_manager_proxy.cpp93 GSError VsyncManagerProxy::GetVsyncFrequency(uint32_t &freq) in GetVsyncFrequency() argument
118 freq = ret.ReadUint32(); in GetVsyncFrequency()
/foundation/graphic/standard/frameworks/vsync/test/unittest/
Dvsync_remote_manager_proxy_test.cpp129 uint32_t freq= 30; variable
130 auto ret = vc_ ->GetVsyncFrequency(freq);
137 uint32_t freq= 30; variable
138 auto ret = vc_ ->GetVsyncFrequency(freq);
145 uint32_t freq= 30; variable
146 auto ret = vc_ ->GetVsyncFrequency(freq);
Dvsync_remote_manager_stub_test.cpp111 uint32_t freq = 30; variable
112 vc_->GetVsyncFrequency(freq);
113 int result = static_cast<int>(freq);
/foundation/communication/dsoftbus/tests/sdk/discovery/unittest/
Ddisc_sdk_test.cpp73 .freq = MID,
85 .freq = MID,
95 .freq = MID,
105 .freq = MID,
162 .freq = MID,
187 testInfo.freq = (ExchangeFreq)(SUPER_HIGH + 1);
190 testInfo.freq = LOW;
251 .freq = MID,
278 testInfo.freq = (ExchangeFreq)(SUPER_HIGH + 1);
281 testInfo.freq = LOW;
/foundation/communication/dsoftbus/sdk/discovery/service/src/
Dclient_disc_service.c38 if ((info->freq < LOW) || (info->freq > SUPER_HIGH)) { in PublishInfoCheck()
73 if ((info->freq < LOW) || (info->freq > SUPER_HIGH)) { in SubscribeInfoCheck()
/foundation/communication/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
Dp2p_group_operating_state.cpp72 int freq = p2pStateMachine.GetAvailableFreqByBand(config.GetGoBand()); in ProcessCmdCreateGroup() local
85 ret = WifiP2PHalInterface::GetInstance().GroupAdd(true, netId, freq); in ProcessCmdCreateGroup()
93 …iP2PHalInterface::GetInstance().GroupAdd((netId == PERSISTENT_NET_ID) ? true : false, netId, freq); in ProcessCmdCreateGroup()
96 if (p2pStateMachine.DealCreateNewGroupWithConfig(config, freq)) { in ProcessCmdCreateGroup()
305 int freq = 0; in ProcessCmdHid2dCreateGroup() local
306 msg.GetMessageObj(freq); in ProcessCmdHid2dCreateGroup()
307 WIFI_LOGI("Create a hid2d group, frequency: %{public}d.", freq); in ProcessCmdHid2dCreateGroup()
308 ret = WifiP2PHalInterface::GetInstance().GroupAdd(true, PERSISTENT_NET_ID, freq); in ProcessCmdHid2dCreateGroup()
/foundation/communication/dsoftbus/tests/sdk/discovery/mini_test/
Ddiscover_test.c59 .freq = MID,
71 .freq = MID,
83 .freq = MID,
95 .freq = MID,
105 .freq = MID,
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/
Dbus_center_sdk_test.cpp76 .freq = MID,
88 .freq = MID,
98 .freq = MID,
108 .freq = MID,
348 g_pInfo.freq = (ExchangeFreq)(SUPER_HIGH + 1);
351 g_pInfo.freq = LOW;
423 g_sInfo.freq = (ExchangeFreq)(SUPER_HIGH + 1);
426 g_sInfo.freq = LOW;
/foundation/communication/dsoftbus/core/frame/small/init/src/
Ddisc_server_stub.c51 .freq = info->commonSerializer.freq, in ServerPublishService()
108 .freq = info->commonSerializer.freq, in ServerStartDiscovery()
/foundation/communication/dsoftbus/core/connection/p2p/adapter/
Dp2plink_adapter.h56 int32_t P2pLinkCreateGroup(int32_t freq, bool isWideBandSupport);
57 int32_t P2pLinkGetRecommendChannel(int32_t *freq);
/foundation/communication/dsoftbus/core/discovery/manager/include/
Ddisc_manager.h31 int32_t freq; member
38 int32_t freq; member
/foundation/communication/dsoftbus/sdk/discovery/ipc/small/
Ddisc_server_proxy.c87 .freq = info->freq, in ServerIpcPublishService()
151 .freq = info->freq, in ServerIpcStartDiscovery()
/foundation/communication/dsoftbus/interfaces/kits/common/
Dsoftbus_common.h299 ExchangeFreq freq; member
320 ExchangeFreq freq; member
/foundation/communication/wifi/services/wifi_standard/wifi_framework/common/utils/
Dwifi_global_func.cpp373 bool IsValid24GHz(int freq) in IsValid24GHz() argument
375 return freq > 2400 && freq < 2500; in IsValid24GHz()
378 bool IsValid5GHz(int freq) in IsValid5GHz() argument
380 return freq > 4900 && freq < 5900; in IsValid5GHz()
/foundation/communication/dsoftbus/core/discovery/interface/
Ddisc_serializer.h34 ExchangeFreq freq; member
/foundation/communication/dsoftbus/core/bus_center/lnn/disc_mgr/src/
Dlnn_coap_discovery_impl.c75 .freq = HIGH, in LnnStartCoapPublish()
99 .freq = HIGH, in LnnStartCoapDiscovery()
/foundation/graphic/standard/frameworks/vsync/include/
Divsync_manager.h30 virtual GSError GetVsyncFrequency(uint32_t &freq) = 0;

1234