Home
last modified time | relevance | path

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

12345

/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DKnownBandsChannelHelper.java149 .map(spec -> spec.frequency) in satisfies()
153 .map(spec -> spec.frequency) in satisfies()
176 private boolean isDfsChannel(int frequency) { in isDfsChannel() argument
179 if (frequency == dfsChannel.frequency) { in isDfsChannel()
187 private int getBandFromChannel(int frequency) { in getBandFromChannel() argument
188 if (ScanResult.is24GHz(frequency)) { in getBandFromChannel()
190 } else if (ScanResult.is5GHz(frequency)) { in getBandFromChannel()
191 if (isDfsChannel(frequency)) { in getBandFromChannel()
196 } else if (ScanResult.is6GHz(frequency)) { in getBandFromChannel()
198 } else if (ScanResult.is60GHz(frequency)) { in getBandFromChannel()
[all …]
DChannelHelper.java152 addChannel(scanSettings.channels[j].frequency); in addChannels()
174 addChannel(bucketSettings.channels[j].frequency); in addChannels()
187 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings()
203 if (containsChannel(scanSettings.channels[j].frequency)) { in partiallyContainsSettings()
220 if (!containsChannel(scanSettings.channels[j].frequency)) { in getMissingChannelsFromSettings()
221 missingChannels.add(scanSettings.channels[j].frequency); in getMissingChannelsFromSettings()
238 if (containsChannel(scanSettings.channels[j].frequency)) { in getContainingChannelsFromSettings()
239 containingChannels.add(scanSettings.channels[j].frequency); in getContainingChannelsFromSettings()
301 sb.append(channels[c].frequency); in toString()
318 sb.append(channels[c].frequency); in toString()
DScanScheduleUtil.java42 if (channel1.frequency != channel2.frequency) return false; in channelEquals()
134 return channelHelper.settingsContainChannel(settings, result.frequency); in shouldReportFullScanResultForSettings()
161 if (channelHelper.settingsContainChannel(settings, scanResult.frequency)) { in filterResultsForSettings()
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
DResponderConfig.java229 public final int frequency; field in ResponderConfig
280 boolean supports80211mc, @ChannelWidth int channelWidth, int frequency, int centerFreq0, in ResponderConfig() argument
291 this.frequency = frequency; in ResponderConfig()
321 boolean supports80211mc, @ChannelWidth int channelWidth, int frequency, int centerFreq0, in ResponderConfig() argument
328 this.frequency = frequency; in ResponderConfig()
362 @ChannelWidth int channelWidth, int frequency, int centerFreq0, int centerFreq1, in ResponderConfig() argument
369 this.frequency = frequency; in ResponderConfig()
385 int frequency = scanResult.frequency; in fromScanResult() local
408 if (ehtCapabilitiesPresent && ScanResult.is6GHz(frequency)) { in fromScanResult()
410 } else if (heCapabilitiesPresent && ScanResult.is6GHz(frequency)) { in fromScanResult()
[all …]
/packages/modules/Bluetooth/system/blueberry/utils/
Dbt_audio_utils.py23 frequency=480, argument
49 frequency, channel, sample_rate, sample_format, duration_sec)
53 sample_format, mobly_directory_path, duration_sec, frequency))
106 def measure_thdn(signal, sample_rate, q, frequency=None): argument
125 if not frequency:
126 frequency = measure_fundamental_frequency(window, sample_rate)
128 wo = frequency / (sample_rate / 2)
140 frequency=None): argument
195 frequency=frequency)
214 frequency: Optional[float] = None) -> float:
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiChannelUtilizationTest.java96 cs.frequency = freq; in verifyOneReadChanStatsWithShortRadioOnTime()
109 cs.frequency = freq; in verifyOneReadChanStatsWithLargeCcaBusyTime()
122 cs.frequency = freq; in verifyOneReadChanStatsWithLongRadioOnTime()
136 cs.frequency = freq; in verifyOneReadChanStatsWithDiffFreq()
149 cs1.frequency = freq; in verifyTwoReadChanStatsWithLargeTimeGap()
159 cs2.frequency = freq; in verifyTwoReadChanStatsWithLargeTimeGap()
177 cs1.frequency = freq; in verifyTwoReadChanStatsWithSmallTimeGap()
187 cs2.frequency = freq; in verifyTwoReadChanStatsWithSmallTimeGap()
205 cs1.frequency = freq; in verifyThreeReadChanStatsRefWithSecondLast()
215 cs2.frequency = freq; in verifyThreeReadChanStatsRefWithSecondLast()
[all …]
DScoringParamsTest.java66 private void checkThresholds(int frequency) { in checkThresholds() argument
67 assertTrue(-127 < mScoringParams.getExitRssi(frequency)); in checkThresholds()
68 assertTrue(mScoringParams.getExitRssi(frequency) in checkThresholds()
69 <= mScoringParams.getEntryRssi(frequency)); in checkThresholds()
70 assertTrue(mScoringParams.getEntryRssi(frequency) in checkThresholds()
71 <= mScoringParams.getSufficientRssi(frequency)); in checkThresholds()
72 assertTrue(mScoringParams.getSufficientRssi(frequency) in checkThresholds()
73 <= mScoringParams.getGoodRssi(frequency)); in checkThresholds()
74 assertTrue(mScoringParams.getGoodRssi(frequency) < 0); in checkThresholds()
DRttManagerTest.java70 && params1.frequency == params2.frequency; in rttParamsEquals()
81 params.frequency = 5240; in testRttParamsReadWriteParcel()
86 params2.frequency = 5220; in testRttParamsReadWriteParcel()
/packages/apps/TV/tuner/src/com/android/tv/tuner/
DTunerHal.java92 int frequency, @ModulationType String modulation, in tune() argument
94 return tuneInternal(mDeliverySystemType, frequency, modulation, channelNumber); in tune()
99 int deliverySystemType, int frequency, @ModulationType String modulation, in tune() argument
101 return tuneInternal(deliverySystemType, frequency, modulation, channelNumber); in tune()
115 int deliverySystemType, int frequency, @ModulationType String modulation, in tuneInternal() argument
142 if (mFrequency == frequency && Objects.equals(mModulation, modulation)) { in tuneInternal()
162 tuneStatus = nativeTune(getDeviceId(), frequency, modulation, timeout_ms); in tuneInternal()
166 tuneStatus = nativeTune(getDeviceId(), deliverySystemType, frequency, modulation, in tuneInternal()
181 mFrequency = frequency; in tuneInternal()
190 long deviceId, int frequency, in nativeTune() argument
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/api/
DScanChannel.java27 public final int frequency; field in ScanChannel
38 String deliverySystemType, int frequency, String modulation, in forTuner() argument
42 frequency, modulation, null, radioFrequencyNumber); in forTuner()
45 public static ScanChannel forFile(int frequency, String filename) { in forFile() argument
47 Channel.DeliverySystemType.DELIVERY_SYSTEM_UNDEFINED, frequency, "file:", in forFile()
54 int frequency, in ScanChannel() argument
60 this.frequency = frequency; in ScanChannel()
DTuner.java70 boolean tune(int frequency, @ModulationType String modulation, String channelNumber); in tune() argument
72 default boolean tune(@DeliverySystemType int deliverySystemType, int frequency, in tune() argument
74 return tune(frequency, modulation, channelNumber); in tune()
/packages/modules/Wifi/framework/java/android/net/wifi/
DScanResult.java424 public int frequency; field in ScanResult
1041 @WifiBand public static int toBand(int frequency) { in toBand() argument
1042 if (ScanResult.is24GHz(frequency)) { in toBand()
1044 } else if (ScanResult.is5GHz(frequency)) { in toBand()
1046 } else if (ScanResult.is6GHz(frequency)) { in toBand()
1048 } else if (ScanResult.is60GHz(frequency)) { in toBand()
1060 return ScanResult.toBand(this.frequency); in getBand()
1067 return ScanResult.is24GHz(frequency); in is24GHz()
1074 return ScanResult.is5GHz(frequency); in is5GHz()
1081 return ScanResult.is6GHz(frequency); in is6GHz()
[all …]
DRttManager.java361 public int frequency; field in RttManager.RttParams
491 sb.append(", frequency=" + frequency); in toString()
543 dest.writeInt(params.frequency); in writeToParcel()
574 params[i].frequency = in.readInt();
966 reconstructed.frequency = rttParams.frequency; in startRanging()
1108 public int frequency; field in RttManager.ResponderConfig
1139 .append(" frequency = ").append(frequency) in toString()
1155 dest.writeInt(frequency); in writeToParcel()
1169 config.frequency = in.readInt();
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiChannelUtilization.java128 public int getUtilizationRatio(int frequency) { in getUtilizationRatio() argument
131 if (ScanResult.is24GHz(frequency)) { in getUtilizationRatio()
135 if (ScanResult.is5GHz(frequency)) { in getUtilizationRatio()
142 return mChannelUtilizationMap.get(frequency, BssLoad.INVALID); in getUtilizationRatio()
161 public void setUtilizationRatio(int frequency, int utilizationRatio) { in setUtilizationRatio() argument
162 mChannelUtilizationMap.put(frequency, utilizationRatio); in setUtilizationRatio()
174 int frequency) { in refreshChannelStatsAndChannelUtilization() argument
187 if (frequency != UNKNOWN_FREQ) { in refreshChannelStatsAndChannelUtilization()
188 ChannelStats channelStats = channelStatsMap.get(frequency, null); in refreshChannelStatsAndChannelUtilization()
196 updateChannelStatsCache(channelStatsMap, frequency); in refreshChannelStatsAndChannelUtilization()
[all …]
DThroughputPredictor.java150 int rssiDbm, int frequency, int channelUtilization) { in predictTxThroughput() argument
151 int channelUtilizationFinal = getValidChannelUtilization(frequency, in predictTxThroughput()
155 channelUtilizationFinal, frequency); in predictTxThroughput()
163 int rssiDbm, int frequency, int channelUtilization) { in predictRxThroughput() argument
164 int channelUtilizationFinal = getValidChannelUtilization(frequency, in predictRxThroughput()
168 channelUtilizationFinal, frequency); in predictRxThroughput()
186 int channelWidthAp, int rssiDbm, int frequency, int maxNumSpatialStreamAp, in predictThroughput() argument
272 .append(", freq: ").append(frequency) in predictThroughput()
276 int channelUtilization = getValidChannelUtilization(frequency, in predictThroughput()
282 rssiDbm, maxNumSpatialStream, channelUtilization, frequency); in predictThroughput()
[all …]
DScanDetail.java51 @Nullable String bssid, @Nullable String caps, int level, int frequency, long tsf, in ScanDetail() argument
75 level, frequency, tsf); in ScanDetail()
97 int frequency, long tsf, long seen) { in ScanDetail() argument
98 this(null, wifiSsid, bssid, caps, level, frequency, tsf, null, null, null); in ScanDetail()
112 scanResult.frequency); in ScanDetail()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiFrequencyPreferenceController.java51 int frequency = connectedInfo.frequencyMhz; in updateState() local
53 if (frequency >= WifiEntry.MIN_FREQ_24GHZ && frequency < WifiEntry.MAX_FREQ_24GHZ) { in updateState()
55 } else if (frequency >= WifiEntry.MIN_FREQ_5GHZ && frequency < WifiEntry.MAX_FREQ_5GHZ) { in updateState()
58 LOG.e("Unexpected frequency " + frequency); in updateState()
/packages/apps/TV/jni/
DDvbManager.cpp118 const int frequency, const char *modulationStr, int timeout_ms) { in tune() argument
119 return tuneInternal(env, thiz, DELIVERY_SYSTEM_UNDEFINED, frequency, in tune()
124 const int deliverySystemType, const int frequency, in tune() argument
126 return tuneInternal(env, thiz, deliverySystemType, frequency, in tune()
131 const int deliverySystemType, const int frequency, in tuneInternal() argument
139 if (frequency < 0) { in tuneInternal()
194 frequencyProperty.u.data = static_cast<__u32>(frequency); in tuneInternal()
224 feParams.frequency = frequency; in tuneInternal()
DDvbManager.h80 const int frequency, const char *modulationStr, int timeout_ms);
82 const int deliverySystemType, const int frequency,
96 const int deliverySystemType, const int frequency,
Dtunertvinput_jni.cpp56 JNIEnv *env, jobject thiz, jlong deviceId, jint frequency, in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I() argument
66 int res = dvbManager->tune(env, thiz, frequency, in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I()
79 jint frequency, jstring modulation, jint timeout_ms) { in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I() argument
89 int res = dvbManager->tune(env, thiz, deliverySystemType, frequency, in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java297 public void addUnigramEntry(final String word, final int frequency, in addUnigramEntry() argument
302 addUnigramLocked(word, frequency, isNotAWord, isPossiblyOffensive, timestamp); in addUnigramEntry()
307 protected void addUnigramLocked(final String word, final int frequency, in addUnigramLocked() argument
309 if (!mBinaryDictionary.addUnigramEntry(word, frequency, in addUnigramLocked()
341 final int frequency, final int timestamp) { in addNgramEntry() argument
350 addNgramEntryLocked(ngramContext, word, frequency, timestamp); in addNgramEntry()
356 final int frequency, final int timestamp) { in addNgramEntryLocked() argument
357 if (!mBinaryDictionary.addNgramEntry(ngramContext, word, frequency, timestamp)) { in addNgramEntryLocked()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DScanFragment.java406 int frequency = scanChannel.frequency; in scanChannels() local
408 Log.i(TAG, "Tuning to " + frequency + " " + modulation); in scanChannels()
426 addCjMusicChannel(frequency, modulation); in scanChannels()
446 private void addCjMusicChannel(int frequency, String modulation) { in addCjMusicChannel() argument
447 if (frequency == CJ_MUSIC_CHANNEL_FREQUENCY in addCjMusicChannel()
456 tunerChannel.setFrequency(frequency); in addCjMusicChannel()
474 tunerChannel.setFrequency(scanChannel.frequency); in addChannelsWithoutVct()
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/
Ddecoder-oina.c39 OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BOOL enhanced, uint8_t frequency, in OI_CODEC_SBC_DecoderConfigureRaw() argument
42 if (frequency > SBC_FREQ_48000) { in OI_CODEC_SBC_DecoderConfigureRaw()
77 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java167 int frequency = cursor.getInt(COLUMN_FREQUENCY); in getDictionary() local
173 String out = name + SEPARATOR + frequency + SEPARATOR + locale + SEPARATOR + appId in getDictionary()
226 final String frequency = st.nextToken(); in restoreDictionary() local
235 int frequencyInt = Integer.parseInt(frequency); in restoreDictionary()
247 || TextUtils.isEmpty(frequency) || TextUtils.isEmpty(word)) { in restoreDictionary()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DPendingAttribute.java28 public PendingAttribute(final int frequency, final int address) { in PendingAttribute() argument
29 mFrequency = frequency; in PendingAttribute()

12345