Home
last modified time | relevance | path

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

123

/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()
/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 …]
/packages/modules/Uwb/ranging/test_app/app/src/main/java/com/android/ranging/rangingtestapp/
DRangingParameters.java52 public final int freq; field in RangingParameters.Freq
53 Freq(int freq) { in Freq() argument
54 this.freq = freq; in Freq()
57 return freq; in getFreq()
146 .setRangingUpdateRate(Freq.fromName(freqName).freq) in createRawInitiatorConfig()
152 .setRangingUpdateRate(Freq.fromName(freqName).freq) in createRawInitiatorConfig()
158 .setRangingUpdateRate(Freq.fromName(freqName).freq) in createRawInitiatorConfig()
163 .setRangingUpdateRate(Freq.fromName(freqName).freq) in createRawInitiatorConfig()
250 .setRangingUpdateRate(Freq.fromName(freqName).freq) in createRawResponderConfig()
256 .setRangingUpdateRate(Freq.fromName(freqName).freq) in createRawResponderConfig()
[all …]
DDistanceMeasurementViewModel.java105 void toggleStartStop(String technology, String freq, int duration) { in toggleStartStop() argument
109 technology, freq, duration); in toggleStartStop()
DResponderFragment.java174 String freq = mSpinnerFreq.getSelectedItem().toString(); in onViewCreated()
181 mDistanceMeasurementViewModel.toggleStartStop(methodName, freq, duration); in onViewCreated()
DInitiatorFragment.java175 String freq = mSpinnerFreq.getSelectedItem().toString(); in onViewCreated()
182 mDistanceMeasurementViewModel.toggleStartStop(methodName, freq, duration); in onViewCreated()
/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.java264 int freq = info.getFrequency(); in getWifiBand() local
266 if (freq >= 5160 && freq <= 5865) { in getWifiBand()
268 } else if (freq >= 2412 && freq <= 2484) { in getWifiBand()
270 } else if (freq >= 5945 && freq <= 7105) { in getWifiBand()
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/app/src/main/java/com/android/bluetooth/channelsoundingtestapp/
DDistanceMeasurementInitiator.java45 private final int freq; field in DistanceMeasurementInitiator.Freq
47 Freq(int freq) { in Freq() argument
48 this.freq = freq; in Freq()
52 return freq; in getFreq()
DInitiatorViewModel.java82 void toggleCsStartStop(String distanceMeasurementMethodName, String freq, int duration) { in toggleCsStartStop() argument
85 distanceMeasurementMethodName, freq, duration); in toggleCsStartStop()
DInitiatorFragment.java164 String freq = mSpinnerFreq.getSelectedItem().toString(); in onViewCreated()
171 mInitiatorViewModel.toggleCsStartStop(methodName, freq, duration); in onViewCreated()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiAvailableChannel.java135 public WifiAvailableChannel(int freq, @OpMode int opModes) { in WifiAvailableChannel() argument
136 this(freq, opModes, ScanResult.CHANNEL_WIDTH_20MHZ); in WifiAvailableChannel()
142 public WifiAvailableChannel(int freq, @OpMode int opModes, in WifiAvailableChannel() argument
144 mFrequency = freq; in WifiAvailableChannel()
DSoftApInfo.java184 public void setFrequency(int freq) { in setFrequency() argument
185 mFrequency = freq; in setFrequency()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java455 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_2GHZ, in chooseApChannel2GBandWithNoAllowedChannel() local
458 ScanResult.convertFrequencyMhzToChannelIfSupported(freq)); in chooseApChannel2GBandWithNoAllowedChannel()
472 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_2GHZ, in chooseApChannel2GBandWithAllowedChannels() local
474 assertEquals(2462, freq); in chooseApChannel2GBandWithAllowedChannels()
486 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_5GHZ, in chooseApChannel5GBandWithAllowedChannels() local
488 assertTrue(ArrayUtils.contains(ALLOWED_5G_FREQS, freq)); in chooseApChannel5GBandWithAllowedChannels()
500 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_60GHZ, in chooseApChannel60GBandWithAllowedChannels() local
502 assertTrue("freq " + freq, ArrayUtils.contains(ALLOWED_60G_FREQS, freq)); in chooseApChannel60GBandWithAllowedChannels()
532 int freq = ApConfigUtil.chooseApChannel( in chooseApChannelWillHighBandPrefer() local
535 assertTrue("freq " + freq, ArrayUtils.contains(ALLOWED_5G_FREQS, freq)); in chooseApChannelWillHighBandPrefer()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java567 public boolean p2pFind(@WifiP2pManager.WifiP2pScanType int type, int freq, int timeout) { in p2pFind() argument
568 return mSupplicantP2pIfaceHal.find(type, freq, timeout); in p2pFind()
736 int freq = 0; in p2pGroupAdd() local
743 freq = 2; in p2pGroupAdd()
746 freq = 5; in p2pGroupAdd()
749 freq = 6; in p2pGroupAdd()
753 freq = config.groupOwnerBand; in p2pGroupAdd()
794 freq, config.deviceAddress, join); in p2pGroupAdd()
DSupplicantP2pIfaceHalAidlImpl.java522 public boolean find(@WifiP2pManager.WifiP2pScanType int type, int freq, int timeout) { in find() argument
532 if (freq < 0) { in find()
533 Log.e(TAG, "Invalid freq value: " + freq); in find()
536 if (freq != WifiP2pManager.WIFI_P2P_SCAN_FREQ_UNSPECIFIED in find()
550 if (freq == WifiP2pManager.WIFI_P2P_SCAN_FREQ_UNSPECIFIED) { in find()
554 mISupplicantP2pIface.findOnSpecificFrequency(freq, timeout); in find()
1482 boolean isPersistent, int freq, String peerAddress, boolean join) { in groupAdd() argument
1508 ssid, passphrase, connectionType, isPersistent, freq, macAddress, join); in groupAdd()
1513 ssid, passphrase, isPersistent, freq, macAddress, join); in groupAdd()
1526 boolean isPersistent, int freq, byte[] macAddress, boolean join) { in addGroupWithConfigurationParams() argument
[all …]
DISupplicantP2pIfaceHal.java117 boolean find(@WifiP2pManager.WifiP2pScanType int type, int freq, int timeout); in find() argument
311 boolean isPersistent, int freq, String peerAddress, boolean join); in groupAdd() argument
DSupplicantP2pIfaceHal.java237 public boolean find(@WifiP2pManager.WifiP2pScanType int type, int freq, int timeout) { in find() argument
243 return mP2pIfaceHal.find(type, freq, timeout); in find()
580 boolean isPersistent, int freq, String peerAddress, boolean join) { in groupAdd() argument
587 isPersistent, freq, peerAddress, join); in groupAdd()
/packages/modules/Bluetooth/floss/pandora/floss/
Dsox_utils.py83 for freq in frequencies:
84 args += ['sine', str(freq)]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java417 for (int freq : dfs5gBand) { in addDfsChannelsIfNeeded()
419 ? freq : ScanResult.convertFrequencyMhzToChannelIfSupported(freq); in addDfsChannelsIfNeeded()
434 for (int freq : regulatoryArray) { in getWifiCondAvailableChannelsForBand()
436 ? freq : ScanResult.convertFrequencyMhzToChannelIfSupported(freq)); in getWifiCondAvailableChannelsForBand()
575 for (int freq : availableFreqs) { in chooseApChannel()
576 if (unsafeFreqs.contains(freq)) { in chooseApChannel()
577 availableUnsafeFreqs.add(freq); in chooseApChannel()
579 availableSafeFreqs.add(freq); in chooseApChannel()
1021 int freq = chooseApChannel(config.getBand(), coexManager, resources, in updateApChannelConfig() local
1023 if (freq == -1) { in updateApChannelConfig()
[all …]
/packages/services/Car/tools/cpu_perf/
Dconfig.py120 freq = int(pair[1])
122 config.coreMaxFreqKHz[core] = freq
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java273 int freq = WifiP2pManager.WIFI_P2P_SCAN_FREQ_UNSPECIFIED; in testFindWithType() local
276 assertTrue(mDut.find(scanType, freq, timeout)); in testFindWithType()
277 verify(mP2pIfaceHalAidlMock).find(eq(scanType), eq(freq), eq(timeout)); in testFindWithType()
473 int freq = 10; in testGroupAddWithConfig() local
477 freq, BSSID, join)); in testGroupAddWithConfig()
480 eq(freq), eq(BSSID), eq(join)); in testGroupAddWithConfig()
/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.java441 for (int freq : missingChannels) { in add6GhzPscChannels()
442 if (ScanResult.is6GHzPsc(freq)) { in add6GhzPscChannels()
443 mChannels.add(freq); in add6GhzPscChannels()

123