Home
last modified time | relevance | path

Searched refs:frequency (Results 1 – 25 of 29) sorted by relevance

12

/system/connectivity/apmanager/
Dconfig_unittest.cc165 uint32_t frequency; in TEST_F() local
167 EXPECT_FALSE(Config::GetFrequencyFromChannel(0, &frequency)); in TEST_F()
168 EXPECT_FALSE(Config::GetFrequencyFromChannel(166, &frequency)); in TEST_F()
169 EXPECT_FALSE(Config::GetFrequencyFromChannel(14, &frequency)); in TEST_F()
170 EXPECT_FALSE(Config::GetFrequencyFromChannel(33, &frequency)); in TEST_F()
177 EXPECT_TRUE(Config::GetFrequencyFromChannel(1, &frequency)); in TEST_F()
178 EXPECT_EQ(kChannel1Frequency, frequency); in TEST_F()
179 EXPECT_TRUE(Config::GetFrequencyFromChannel(13, &frequency)); in TEST_F()
180 EXPECT_EQ(kChannel13Frequency, frequency); in TEST_F()
181 EXPECT_TRUE(Config::GetFrequencyFromChannel(34, &frequency)); in TEST_F()
[all …]
Ddevice.cc116 shill::AttributeListConstRefPtr frequency; in ParseWiphyCapability() local
118 &frequency)) { in ParseWiphyCapability()
121 if (frequency->GetU32AttributeValue(NL80211_FREQUENCY_ATTR_FREQ, in ParseWiphyCapability()
351 uint32_t frequency; in GetBandCapability() local
352 if (!Config::GetFrequencyFromChannel(channel, &frequency)) { in GetBandCapability()
360 frequency) != band.frequencies.end()) { in GetBandCapability()
Ddevice_unittest.cc98 shill::AttributeListRefPtr frequency; in AddWiphyBandAttribute() local
101 frequencies->GetNestedAttributeList(i, &frequency); in AddWiphyBandAttribute()
102 frequency->CreateU32Attribute(NL80211_FREQUENCY_ATTR_FREQ, in AddWiphyBandAttribute()
104 frequency->SetU32AttributeValue(NL80211_FREQUENCY_ATTR_FREQ, in AddWiphyBandAttribute()
/system/bt/embdrv/sbc/decoder/srce/
Ddecoder-oina.c41 OI_UINT8 frequency, in OI_CODEC_SBC_DecoderConfigureRaw() argument
48 if (frequency > SBC_FREQ_48000) { in OI_CODEC_SBC_DecoderConfigureRaw()
83 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw()
Dframing-sbc.c44 printf(" frequency: %d\n", frameInfo->frequency); in OI_CODEC_SBC_DumpConfig()
Dframing.c201 frame->frequency = freq_values[frame->freqIndex]; in OI_SBC_ExpandFrameFields()
Ddecoder-private.c105 frame->frequency = freq_values[frame->freqIndex]; in OI_SBC_ReadHeader()
Dbitalloc.c80 return DIVIDE(8 * internal_CalculateFramelen(frame) * frame->frequency, blocksbands); in internal_CalculateBitrate()
/system/connectivity/shill/
Dmetrics.cc455 Metrics::WiFiChannel Metrics::WiFiFrequencyToChannel(uint16_t frequency) { in WiFiFrequencyToChannel() argument
457 if (kWiFiFrequency2412 <= frequency && frequency <= kWiFiFrequency2472) { in WiFiFrequencyToChannel()
458 if (((frequency - kWiFiFrequency2412) % kWiFiBandwidth5MHz) == 0) in WiFiFrequencyToChannel()
461 (frequency - kWiFiFrequency2412) / kWiFiBandwidth5MHz); in WiFiFrequencyToChannel()
462 } else if (frequency == kWiFiFrequency2484) { in WiFiFrequencyToChannel()
464 } else if (kWiFiFrequency5170 <= frequency && in WiFiFrequencyToChannel()
465 frequency <= kWiFiFrequency5230) { in WiFiFrequencyToChannel()
466 if ((frequency % kWiFiBandwidth20MHz) == 0) in WiFiFrequencyToChannel()
469 (frequency - kWiFiFrequency5180) / kWiFiBandwidth20MHz); in WiFiFrequencyToChannel()
470 if ((frequency % kWiFiBandwidth20MHz) == 10) in WiFiFrequencyToChannel()
[all …]
Dmetrics.h789 static WiFiChannel WiFiFrequencyToChannel(uint16_t frequency);
/system/connectivity/shill/wifi/
Dscan_session.cc87 seen_frequencies.insert(freq_conn.frequency); in ScanSession()
98 SLOG(this, 6) << " freq[" << freq_conn.frequency << "] = " in ScanSession()
133 uint16_t frequency = freq_connect->frequency; in GetScanFrequencies() local
136 frequencies.push_back(frequency); in GetScanFrequencies()
137 SLOG(this, 7) << " freq[" << frequency << "] = " << connection_count; in GetScanFrequencies()
Dwifi_endpoint.h95 uint16_t frequency() const;
135 uint16_t frequency,
145 uint16_t frequency,
167 uint16_t frequency);
Dwifi_endpoint.cc223 uint16_t WiFiEndpoint::frequency() const { in frequency() function in shill::WiFiEndpoint
262 uint16_t frequency, in MakeOpenEndpoint() argument
265 frequency, signal_dbm, false, false); in MakeOpenEndpoint()
275 uint16_t frequency, in MakeEndpoint() argument
289 args.SetUint16(WPASupplicant::kBSSPropertyFrequency, frequency); in MakeEndpoint()
385 const KeyValueStore& properties, uint16_t frequency) { in DeterminePhyModeFromFrequency() argument
396 if (frequency < 3000) { in DeterminePhyModeFromFrequency()
Dwifi_provider.h59 FrequencyCount() : frequency(0), connection_count(0) {} in FrequencyCount()
61 : frequency(freq), connection_count(conn) {} in FrequencyCount()
62 uint16_t frequency; member
Dmock_wifi_provider.h53 MOCK_METHOD1(IncrementConnectCount, void(uint16_t frequency));
Dwifi_service.cc786 frequency_ != representative_endpoint->frequency()) { in UpdateFromEndpoints()
794 << "frequency: " << representative_endpoint->frequency(); in UpdateFromEndpoints()
813 frequency_set.insert(endpoint->frequency()); in UpdateFromEndpoints()
820 uint16_t frequency = 0; in UpdateFromEndpoints() local
829 frequency = representative_endpoint->frequency(); in UpdateFromEndpoints()
838 if (frequency_ != frequency) { in UpdateFromEndpoints()
839 frequency_ = frequency; in UpdateFromEndpoints()
Dwifi_unittest.cc844 uint16_t frequency, in MakeNewEndpointAndService() argument
858 ReportBSS(path, ssid, bssid, signal_strength, frequency, mode); in MakeNewEndpointAndService()
870 uint16_t frequency, in AddEndpointToService() argument
880 ReportBSS(path, ssid, bssid, signal_strength, frequency, mode); in AddEndpointToService()
1035 uint16_t frequency,
1042 uint16_t frequency,
1404 uint16_t frequency, in CreateBSSProperties() argument
1416 bss_properties.SetUint16(WPASupplicant::kBSSPropertyFrequency, frequency); in CreateBSSProperties()
1426 uint16_t frequency, in ReportBSS() argument
1430 CreateBSSProperties(ssid, bssid, signal_strength, frequency, mode)); in ReportBSS()
[all …]
Dwifi.cc476 << "frequency: " << service->frequency(); in ConnectTo()
1255 << "frequency: " << endpoint->frequency(); in BSSAddedTask()
1629 provider_->IncrementConnectCount(affected_service->frequency()); in StateChanged()
1808 Metrics::WiFiFrequencyToChannel(endpoint->frequency()))); in GetGeolocationObjects()
2442 AttributeListConstRefPtr frequency; in OnNewWiphy() local
2444 &frequency)) { in OnNewWiphy()
2447 if (frequency->GetU32AttributeValue(NL80211_FREQUENCY_ATTR_FREQ, in OnNewWiphy()
Dwifi_service_unittest.cc122 uint16_t frequency, int16_t signal_dbm, in MakeEndpoint() argument
126 frequency, signal_dbm, has_wpa_property, has_rsn_property); in MakeEndpoint()
129 uint16_t frequency, int16_t signal_dbm) { in MakeOpenEndpoint() argument
132 frequency, signal_dbm); in MakeOpenEndpoint()
137 uint16_t frequency, in MakeOpenEndpointWithWiFi() argument
141 frequency, signal_dbm); in MakeOpenEndpointWithWiFi()
1754 simple_ssid_string(), "aa:bb:cc:dd:ee:ff", ok_endpoint->frequency(), 0); in TEST_F()
1763 EXPECT_EQ(vector<uint16_t>{same_freq_as_ok_endpoint->frequency()}, in TEST_F()
Dwifi_service.h112 uint16_t frequency() const { return frequency_; } in frequency() function
/system/bt/embdrv/sbc/decoder/include/
Doi_codec_sbc.h128 OI_UINT16 frequency; /**< The sampling frequency. Input parameter. */ member
291 OI_UINT8 frequency,
/system/bt/btif/include/
Dbtif_media.h293 int btif_a2dp_get_track_frequency(UINT8 frequency);
/system/core/metricsd/
Dmetrics_collector.cc698 const unique_ptr<PersistentInteger>& frequency) { in SendAndResetCrashFrequencySample() argument
699 SendSample(frequency->Name(), in SendAndResetCrashFrequencySample()
700 frequency->GetAndClear(), in SendAndResetCrashFrequencySample()
Dmetrics_collector.h164 const unique_ptr<PersistentInteger>& frequency);
/system/bt/btif/src/
Dbtif_media_task.c2240 int btif_a2dp_get_track_frequency(UINT8 frequency) { in btif_a2dp_get_track_frequency() argument
2242 switch (frequency) { in btif_a2dp_get_track_frequency()

12