Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiChannelUtilizationTest.java94 int freq = 5180; in verifyOneReadChanStatsWithShortRadioOnTime() local
96 cs.frequency = freq; in verifyOneReadChanStatsWithShortRadioOnTime()
99 llstats.channelStatsMap.put(freq, cs); in verifyOneReadChanStatsWithShortRadioOnTime()
101 assertEquals(INVALID, mWifiChannelUtilization.getUtilizationRatio(freq)); in verifyOneReadChanStatsWithShortRadioOnTime()
107 int freq = 5180; in verifyOneReadChanStatsWithLargeCcaBusyTime() local
109 cs.frequency = freq; in verifyOneReadChanStatsWithLargeCcaBusyTime()
112 llstats.channelStatsMap.put(freq, cs); in verifyOneReadChanStatsWithLargeCcaBusyTime()
114 assertEquals(INVALID, mWifiChannelUtilization.getUtilizationRatio(freq)); in verifyOneReadChanStatsWithLargeCcaBusyTime()
120 int freq = 5180; in verifyOneReadChanStatsWithLongRadioOnTime() local
122 cs.frequency = freq; in verifyOneReadChanStatsWithLongRadioOnTime()
[all …]
DScanResults.java122 int freq = freqs[i]; in generateNativeResults() local
134 NetworkDetail nd = new NetworkDetail(bssid, ie, anqpLines, freq); in generateNativeResults()
136 bssid, "", rssi, freq, in generateNativeResults()
DScanTestUtil.java297 public static ScanResult createScanResult(int freq) { in createScanResult() argument
300 -1, null, "", 0, freq, 0); in createScanResult()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiChannelUtilization.java200 int freq = channelStats.frequency; in calculateChannelUtilization() local
204 ChannelStats channelStatsRef = findChanStatsReference(freq, radioOnTimeMs); in calculateChannelUtilization()
211 mChannelUtilizationMap.put(freq, utilizationRatio); in calculateChannelUtilization()
216 Log.d(TAG, sb.append(" freq: ").append(freq) in calculateChannelUtilization()
239 private ChannelStats findChanStatsReference(int freq, int radioOnTimeMs) { in findChanStatsReference() argument
250 if (channelStatsMap == null || channelStatsMap.get(freq) == null) { in findChanStatsReference()
253 ChannelStats channelStats = channelStatsMap.get(freq); in findChanStatsReference()
271 private void updateChannelStatsCache(SparseArray<ChannelStats> channelStatsMap, int freq) { in updateChannelStatsCache() argument
281 if ((isLongTimeSinceLastUpdate && !remainStationary) || isChannelStatsMapCacheEmpty(freq)) { in updateChannelStatsCache()
289 private boolean isChannelStatsMapCacheEmpty(int freq) { in isChannelStatsMapCacheEmpty() argument
[all …]
DDppManager.java757 int freq = ApConfigUtil.convertChannelToFrequency(channels[j], band); in isEnrolleeCompatibleWithNetwork() local
758 if (freq < 0) { in isEnrolleeCompatibleWithNetwork()
763 freqList.add(freq); in isEnrolleeCompatibleWithNetwork()
DWifiScoreReport.java756 int freq = mWifiInfo.getFrequency(); in logLinkMetrics() local
773 rssi, filteredRssi, rssiThreshold, freq, txLinkSpeed, rxLinkSpeed, in logLinkMetrics()
DWifiConnectivityManager.java296 for (Integer freq : mCachedWifiCandidates.frequencies) {
297 settings.channels[index++] = new WifiScanner.ChannelSpec(freq);
1504 for (Integer freq : freqs) { in setScanChannels()
1505 settings.channels[index++] = new WifiScanner.ChannelSpec(freq); in setScanChannels()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java295 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_2GHZ, mWifiNative, in chooseApChannel2GBandWithNoAllowedChannel() local
298 ScanResult.convertFrequencyMhzToChannelIfSupported(freq)); in chooseApChannel2GBandWithNoAllowedChannel()
311 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_2GHZ, mWifiNative, in chooseApChannel2GBandWithAllowedChannels() local
313 assertEquals(2462, freq); in chooseApChannel2GBandWithAllowedChannels()
326 int freq = ApConfigUtil.chooseApChannel( in chooseApChannel5GBandWithAllowedChannels() local
328 assertTrue(ArrayUtils.contains(ALLOWED_5G_FREQS, freq)); in chooseApChannel5GBandWithAllowedChannels()
341 int freq = ApConfigUtil.chooseApChannel( in chooseApChannel60GBandWithAllowedChannels() local
343 assertTrue(ArrayUtils.contains(ALLOWED_60G_FREQS, freq)); in chooseApChannel60GBandWithAllowedChannels()
372 int freq = ApConfigUtil.chooseApChannel( in chooseApChannelWillHighBandPrefer() local
375 assertTrue(ArrayUtils.contains(ALLOWED_5G_FREQS, freq)); in chooseApChannelWillHighBandPrefer()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DUserDictionaryCompatUtils.java29 final int freq, final String shortcut, final Locale locale) { in addWord() argument
31 addWordWithShortcut(context, word, freq, shortcut, locale); in addWord()
38 UserDictionary.Words.addWord(context, word, freq, localeType); in addWord()
45 final int freq, final String shortcut, final Locale locale) { in addWordWithShortcut() argument
46 UserDictionary.Words.addWord(context, word, freq, shortcut, locale); in addWordWithShortcut()
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DDataStallDetectionStats.java263 int freq = info.getFrequency(); in getWifiBand() local
265 if (freq >= 5160 && freq <= 5865) { in getWifiBand()
267 } else if (freq >= 2412 && freq <= 2484) { in getWifiBand()
269 } else if (freq >= 5945 && freq <= 7105) { in getWifiBand()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java369 for (int freq : regulatoryArray) { in getAvailableChannelFreqsForBand()
371 regulatoryList.add(freq); in getAvailableChannelFreqsForBand()
373 regulatoryList.add(ScanResult.convertFrequencyMhzToChannelIfSupported(freq)); in getAvailableChannelFreqsForBand()
432 for (int freq : availableFreqs) { in chooseApChannel()
433 if (unsafeFreqs.contains(freq)) { in chooseApChannel()
434 availableUnsafeFreqs.add(freq); in chooseApChannel()
436 availableSafeFreqs.add(freq); in chooseApChannel()
566 int freq = chooseApChannel(config.getBand(), wifiNative, coexManager, resources); in updateApChannelConfig() local
567 if (freq == -1) { in updateApChannelConfig()
573 ScanResult.convertFrequencyMhzToChannelIfSupported(freq), in updateApChannelConfig()
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/bands/
DProgramType.java136 long freq = sel.getFirstId(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY); in fromSelector() local
137 if (ProgramSelectorExt.isAmFrequency(freq)) return AM; in fromSelector()
138 if (ProgramSelectorExt.isFmFrequency(freq)) return FM; in fromSelector()
140 Log.e(TAG, "AM/FM program selector with frequency out of range: " + freq); in fromSelector()
DAMFMProgramType.java62 int freq = rnd.nextInt(band.getUpperLimit() - band.getLowerLimit()) + band.getLowerLimit(); in tuneToDefault() local
63 freq /= band.getSpacing(); in tuneToDefault()
64 freq *= band.getSpacing(); in tuneToDefault()
67 tuner.tune(ProgramSelectorExt.createAmFmSelector(freq), succeeded -> { in tuneToDefault()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java575 int freq = 0; in p2pGroupAdd() local
578 freq = 2; in p2pGroupAdd()
581 freq = 5; in p2pGroupAdd()
585 freq = config.groupOwnerBand; in p2pGroupAdd()
592 freq, config.deviceAddress, join); in p2pGroupAdd()
DSupplicantP2pIfaceHal.java1283 boolean isPersistent, int freq, String peerAddress, boolean join) { in groupAdd() argument
1301 + ", " + isPersistent + ", " + freq in groupAdd()
1305 ssid, passphrase, isPersistent, freq, macAddress, join)); in groupAdd()
1499 int freq = (operatingChannel <= 14 ? 2407 : 5000) + operatingChannel * 5; in setOperatingChannel() local
1502 range1.max = freq - 5; in setOperatingChannel()
1504 range2.min = freq + 5; in setOperatingChannel()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiAvailableChannel.java124 public WifiAvailableChannel(int freq, @OpMode int opModes) { in WifiAvailableChannel() argument
125 mFrequency = freq; in WifiAvailableChannel()
DSoftApInfo.java155 public void setFrequency(int freq) { in setFrequency() argument
156 mFrequency = freq; in setFrequency()
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DFileTsStreamer.java425 int freq = FileTsStreamer.FREQ_BASE; in addLocalStreamFiles() local
428 output.add(ScanChannel.forFile(freq, file.getName())); in addLocalStreamFiles()
429 freq += 100; in addLocalStreamFiles()
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DKnownBandsChannelHelper.java410 for (int freq : missingChannels) { in add6GhzPscChannels()
411 if (ScanResult.is6GHzPsc(freq)) { in add6GhzPscChannels()
412 mChannels.add(freq); in add6GhzPscChannels()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pGroup.java296 public void setFrequency(int freq) { in setFrequency() argument
297 this.mFrequency = freq; in setFrequency()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/
DBrowseTree.java205 final int freq = band.getLowerLimit(); in setAmFmRegionConfig() local
206 if (ProgramSelectorExt.isAmFrequency(freq)) { in setAmFmRegionConfig()
208 } else if (ProgramSelectorExt.isFmFrequency(freq)) { in setAmFmRegionConfig()
/packages/screensavers/Basic/src/com/android/dreams/basic/
DColorsGLRenderer.java414 final float freq = (float) Math.sin(2 * Math.PI * t / cornerFrequencies[i]); in draw() local
417 _tmphsv[2] = freq * 0.25f + 0.75f; in draw()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
DProgramSelectorExt.java272 long freq = sel.getFirstId(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY); in getDisplayName() local
273 return formatAmFmFrequency(freq, flags); in getDisplayName()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DNetworkDetail.java134 List<String> anqpLines, int freq) { in NetworkDetail() argument
302 mPrimaryFreq = freq; in NetworkDetail()
/packages/modules/NeuralNetworks/runtime/
DMemory.h226 int addRole(const CompilationBuilder& compilation, IOType ioType, uint32_t index, float freq);

12