Home
last modified time | relevance | path

Searched refs:frequency (Results 1 – 25 of 108) 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.java166 public final int frequency; field in ResponderConfig
208 boolean supports80211mc, @ChannelWidth int channelWidth, int frequency, int centerFreq0, in ResponderConfig() argument
219 this.frequency = frequency; in ResponderConfig()
247 boolean supports80211mc, @ChannelWidth int channelWidth, int frequency, int centerFreq0, in ResponderConfig() argument
254 this.frequency = frequency; in ResponderConfig()
286 @ChannelWidth int channelWidth, int frequency, int centerFreq0, int centerFreq1, in ResponderConfig() argument
293 this.frequency = frequency; in ResponderConfig()
308 int frequency = scanResult.frequency; in fromScanResult() local
328 if (heCapabilitiesPresent && ScanResult.is6GHz(frequency)) { in fromScanResult()
347 frequency, centerFreq0, centerFreq1, preamble); in fromScanResult()
[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()
DWakeupControllerTest.java145 mTestScanResult.frequency = 2412; in setUp()
209 private ScanResult createOpenScanResult(String ssid, int frequency) { in createOpenScanResult() argument
213 scanResult.frequency = frequency; in createOpenScanResult()
217 private ScanResult createOweScanResult(String ssid, int frequency) { in createOweScanResult() argument
221 scanResult.frequency = frequency; in createOweScanResult()
676 mTestScanResult.frequency = DFS_CHANNEL_FREQ; in onResultsFiltersOutDfsScanResults()
DScanTestUtil.java178 channelFreqs[i] = channels[i].frequency; in addBucketWithChannels()
346 assertEquals(prefix + "frequency", expected.frequency, actual.frequency); in assertScanResultEquals()
462 expectedChannels.add(channel.frequency); in assertNativeScanSettingsEquals()
466 actualChannels.add(channel.frequency); in assertNativeScanSettingsEquals()
513 channelSpecs[i].frequency = channels[i]; in channelsToNativeSettings()
573 foundChannelsSet.add(bucketSettings.channels[i].frequency);
/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/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.java146 int rssiDbm, int frequency, int channelUtilization) { in predictTxThroughput() argument
147 int channelUtilizationFinal = getValidChannelUtilization(frequency, in predictTxThroughput()
159 int rssiDbm, int frequency, int channelUtilization) { in predictRxThroughput() argument
160 int channelUtilizationFinal = getValidChannelUtilization(frequency, in predictRxThroughput()
182 int channelWidthAp, int rssiDbm, int frequency, int maxNumSpatialStreamAp, in predictThroughput() argument
256 .append(", freq: ").append(frequency) in predictThroughput()
260 int channelUtilization = getValidChannelUtilization(frequency, in predictThroughput()
390 private int getValidChannelUtilization(int frequency, int channelUtilizationBssLoad, in getValidChannelUtilization() argument
393 boolean is2G = ScanResult.is24GHz(frequency); in getValidChannelUtilization()
DScanDetail.java44 String caps, int level, int frequency, long tsf, in ScanDetail() argument
50 caps, level, frequency, tsf); in ScanDetail()
67 public ScanDetail(WifiSsid wifiSsid, String bssid, String caps, int level, int frequency, in ScanDetail() argument
70 mScanResult = new ScanResult(wifiSsid, bssid, 0L, -1, null, caps, level, frequency, tsf); in ScanDetail()
DVelocityBasedConnectedScore.java111 int frequency = wifiInfo.getFrequency(); in updateUsingWifiInfo() local
112 if (frequency != mFrequency) { in updateUsingWifiInfo()
116 mFrequency = frequency; in updateUsingWifiInfo()
/packages/modules/Wifi/framework/java/android/net/wifi/
DScanResult.java308 public int frequency; field in ScanResult
859 return ScanResult.is24GHz(frequency); in is24GHz()
866 return ScanResult.is5GHz(frequency); in is5GHz()
873 return ScanResult.is6GHz(frequency); in is6GHz()
880 return ScanResult.is6GHzPsc(frequency); in is6GhzPsc()
887 return ScanResult.is60GHz(frequency); in is60GHz()
1077 byte[] osuProviders, String caps, int level, int frequency, long tsf) { in ScanResult() argument
1091 this.frequency = frequency; in ScanResult()
1104 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() argument
1111 this.frequency = frequency; in ScanResult()
[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/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/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()

12345