Home
last modified time | relevance | path

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

12345

/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DWifiChannelUtilizationTest.java94 int freq = 5180; in verifyOneReadChanStatsWithShortRadioOnTime() local
107 int freq = 5180; in verifyOneReadChanStatsWithLargeCcaBusyTime() local
120 int freq = 5180; in verifyOneReadChanStatsWithLongRadioOnTime() local
134 int freq = 5180; in verifyOneReadChanStatsWithDiffFreq() local
147 int freq = 5180; in verifyTwoReadChanStatsWithLargeTimeGap() local
175 int freq = 5180; in verifyTwoReadChanStatsWithSmallTimeGap() local
203 int freq = 5180; in verifyThreeReadChanStatsRefWithSecondLast() local
246 int freq = 5180; in verifyThreeReadChanStatsLargeTimeGap() local
284 int freq = 5180; in verifyThreeReadChanStatsSmallTimeGap() local
317 int freq = 5180; in verifyThreeReadChanStatsInitAfterOneRead() local
[all …]
/aosp12/frameworks/av/media/codecs/mp3dec/src/
H A Dpvmp3_reorder.cpp131 int32 freq; in pvmp3_reorder() local
153 for (freq = 0; freq < 3*sfb_lines; freq += 3) in pvmp3_reorder()
159 Scratch_mem[freq ] = tmp1; in pvmp3_reorder()
160 Scratch_mem[freq+1] = tmp2; in pvmp3_reorder()
161 Scratch_mem[freq+2] = tmp3; in pvmp3_reorder()
174 for (freq = 0; freq < 3*sfb_lines; freq += 3) in pvmp3_reorder()
180 Scratch_mem[freq ] = tmp1; in pvmp3_reorder()
181 Scratch_mem[freq+1] = tmp2; in pvmp3_reorder()
182 Scratch_mem[freq+2] = tmp3; in pvmp3_reorder()
/aosp12/frameworks/base/libs/hwui/tests/scripts/
H A Dprep_generic.sh173 for freq in ${cpuAvailFreq}; do
174 freqMhz=$(( ${freq} / 1000 ))
178 chosenFreq=${freq}
219 freq=${CPU_BASE}/cpu$cpu/cpufreq
289 for freq in ${gpuAvailFreq}; do
291 gpuMaxFreq=${freq}
301 for freq in ${gpuAvailFreq}; do
302 freqMhz=$(( ${freq} / 1000000 ))
305 chosenFreq=${freq}
355 for freq in $list; do
[all …]
H A Dprep_buller.sh48 freq=0
52 freq=300000000
55 freq=305000000
57 echo "performance mode, $freq Hz"
59 adb shell "echo $freq > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq"
60 adb shell "echo $freq > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq"
/aosp12/system/chre/apps/wifi_offload/
H A Dutility.cc75 int Ieee80211FrequencyToChannel(int freq) { in Ieee80211FrequencyToChannel() argument
77 if (freq == 2484) in Ieee80211FrequencyToChannel()
79 else if (freq < 2484) in Ieee80211FrequencyToChannel()
80 return (freq - 2407) / 5; in Ieee80211FrequencyToChannel()
81 else if (freq >= 4910 && freq <= 4980) in Ieee80211FrequencyToChannel()
82 return (freq - 4000) / 5; in Ieee80211FrequencyToChannel()
83 else if (freq <= 45000) /* DMG band lower limit */ in Ieee80211FrequencyToChannel()
84 return (freq - 5000) / 5; in Ieee80211FrequencyToChannel()
85 else if (freq >= 58320 && freq <= 64800) in Ieee80211FrequencyToChannel()
86 return (freq - 56160) / 2160; in Ieee80211FrequencyToChannel()
H A Dscan_params.cc58 for (const auto &freq : *freq_vec) { in Deserialize()
59 if (!ChannelHistogram::IsSupportedFrequency(freq)) { in Deserialize()
63 frequencies_to_scan_mhz_.push_back(freq); in Deserialize()
80 for (const auto &freq : frequencies_to_scan_mhz_) { in Log() local
81 LOGI(" frequency: %" PRIu32, freq); in Log()
/aosp12/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
H A DUtils.java33 static FrequencyBand getBand(int freq) { in getBand() argument
35 if (freq < 30) return FrequencyBand.UNKNOWN; in getBand()
36 if (freq < 500) return FrequencyBand.AM_LW; in getBand()
37 if (freq < 1705) return FrequencyBand.AM_MW; in getBand()
38 if (freq < 30000) return FrequencyBand.AM_SW; in getBand()
39 if (freq < 60000) return FrequencyBand.UNKNOWN; in getBand()
40 if (freq < 110000) return FrequencyBand.FM; in getBand()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A 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 …]
/aosp12/system/extras/cpustats/
H A Dcpustats.c40 unsigned freq; member
222 long unsigned freq; in get_freq_scales_count() local
229 freq = 0; in get_freq_scales_count()
230 fscanf(file, "%lu %*d\n", &freq); in get_freq_scales_count()
231 if (freq) count++; in get_freq_scales_count()
232 } while (freq); in get_freq_scales_count()
282 new_cpus[cpu].freqs[i].freq = old_cpus[cpu].freqs[i].freq; in read_freq_stats()
286 new_total_cpu.freqs[i].freq = new_cpus[cpu].freqs[i].freq; in read_freq_stats()
361 printf("%ukHz %ld", new_cpu->freqs[i].freq, delta_time); in print_freq_stats()
371 printf(",%u,%ld", new_cpu->freqs[i].freq, in print_freq_stats()
[all …]
/aosp12/frameworks/rs/perf-test-scripts/
H A Dset-gpu-freq66 freq=`printf "%d\n" "${frequencies[@]}" | awk -v closest=${frequencies[0]} -v target=$targetFreq 'B…
67 echo Selected: $freq
83 setprop $DIR/max_gpuclk $freq
84 setprop $DIR/gpuclk $freq
86 setprop /d/clock/override.gbus/rate $freq
89 echo "GPU Frequency set to $freq"
H A Dset-cpu-freq82freq=`printf "%d\n" "${frequencies[@]}" | awk -v c=${frequencies[0]} -v t=$targetFreq 'BEGIN{d=$0-…
83 selectedFreq[$core]=$freq
86 adb shell "echo -n $freq > $DIR/$core/cpufreq/scaling_min_freq"
87 adb shell "echo -n $freq > $DIR/$core/cpufreq/scaling_max_freq"
141 adb shell "echo -n $freq > $DIR/$core/cpufreq/scaling_min_freq"
142 adb shell "echo -n $freq > $DIR/$core/cpufreq/scaling_max_freq"
H A Dget-freq94 freq=`getprop $GPU_DIR/max_gpuclk`
96 freq=`getprop /d/clock/override.gbus/rate`
101 echo " Current Frequency: $freq (Hz)"
/aosp12/hardware/interfaces/wifi/supplicant/1.2/vts/functional/
H A Dsupplicant_p2p_iface_hidl_test.cpp63 int freq = 0; in TEST_P() local
69 p2p_iface_->addGroup_1_2(ssid, passphrase, persistent, freq, zero_mac_addr, in TEST_P()
82 int freq = 0; in TEST_P() local
89 ssid, passphrase, persistent, freq, zero_mac_addr, is_join, in TEST_P()
101 int freq = 0; in TEST_P() local
108 ssid, passphrase, persistent, freq, zero_mac_addr, is_join, in TEST_P()
120 int freq = 9999; in TEST_P() local
127 ssid, passphrase, persistent, freq, zero_mac_addr, is_join, in TEST_P()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A 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()
/aosp12/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/
H A Dsimulate_wifi.py820 def addFakeOpenScan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
821 addFakeScan(ssid, bssid, "[ESS]", freq, dbm)
823 def addFakeWpa2Scan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
824 addFakeScan(ssid, bssid, "[WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS]", freq, dbm)
826 def addFakeWpa3Scan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
827 addFakeScan(ssid, bssid, "[RSN-SAE+FT/SAE-CCMP][ESS]", freq, dbm)
829 def addFakeOweScan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
830 addFakeScan(ssid, bssid, "[RSN-OWE-CCMP]", freq, dbm)
833 addFakeScan(ssid, bssid, "[WPA2-PSK-CCMP][RSN-PSK+SAE-CCMP][ESS][MFPC]", freq, dbm)
836 addFakeScan(ssid, bssid, "[RSN-OWE_TRANSITION-CCMP][ESS]", freq, dbm)
[all …]
/aosp12/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java196 int freq = r.freq; in filter() local
198 if (EventRecurrence.MONTHLY >= freq) { in filter()
208 if (EventRecurrence.WEEKLY >= freq) { in filter()
220 if (EventRecurrence.DAILY >= freq) { in filter()
253 if (EventRecurrence.HOURLY >= freq) { in filter()
262 if (EventRecurrence.MINUTELY >= freq) { in filter()
271 if (EventRecurrence.SECONDLY >= freq) { in filter()
398 if (byFreq >= freq) { in generateByList()
411 return freq > freqConstant && count > 0; in useBYX()
773 int freq = r.freq; in expand() local
[all …]
H A DEventRecurrence.java49 public int freq; // SECONDLY, MINUTELY, etc. field in EventRecurrence
324 switch (this.freq) in toString()
395 if (this.freq != WEEKLY) { in repeatsOnEveryWeekDay()
428 if (this.freq != MONTHLY) { in repeatsMonthlyOnDayCount()
478 freq == er.freq && in equals()
513 freq = count = interval = bysecondCount = byminuteCount = byhourCount = in resetFields()
725 Integer freq = sParseFreqMap.get(value); in parsePart() local
726 if (freq == null) { in parsePart()
729 er.freq = freq; in parsePart()
/aosp12/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
H A 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()
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DEnergyProbe.java56 public int capture(int freq) throws InterruptedException { in capture() argument
60 if (freq > mMaxFrequency) { in capture()
69 if (freq == mMaxFrequency) { in capture()
72 int bin = 2 * (freq * CAPTURE_SIZE / mMaxFrequency / 2); in capture()
/aosp12/hardware/interfaces/broadcastradio/common/utils2x/
H A DUtils.cpp82 FrequencyBand getBand(uint64_t freq) { in getBand() argument
85 if (freq < 30) return FrequencyBand::UNKNOWN; in getBand()
86 if (freq < 500) return FrequencyBand::AM_LW; in getBand()
87 if (freq < 1705) return FrequencyBand::AM_MW; in getBand()
88 if (freq < 30000) return FrequencyBand::AM_SW; in getBand()
89 if (freq < 60000) return FrequencyBand::UNKNOWN; in getBand()
90 if (freq < 110000) return FrequencyBand::FM; in getBand()
231 auto freq = val & 0x3FFFF; // 18bit in isValid() local
234 expect(freq > 100u, "f > 100kHz"); in isValid()
235 expect(freq < 10000000u, "f < 10GHz"); in isValid()
/aosp12/frameworks/base/services/core/java/com/android/server/power/batterysaver/
H A DCpuFrequencies.java69 final long freq = Long.parseLong(coreAndFreq[1]); in parseString() local
71 mCoreAndFrequencies.put(core, freq); in parseString()
98 final long freq = mCoreAndFrequencies.valueAt(i); in addToSysFileMap() local
103 map.put(file, Long.toString(freq)); in addToSysFileMap()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A DApConfigUtilTest.java313 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
372 int freq = ApConfigUtil.chooseApChannel( in chooseApChannelWillHighBandPrefer() local
375 assertTrue(ArrayUtils.contains(ALLOWED_5G_FREQS, freq)); in chooseApChannelWillHighBandPrefer()
399 int freq = ApConfigUtil.chooseApChannel( in chooseApChannelWithUnsafeChannelsPreferSafe() local
403 assertTrue(ArrayUtils.contains(ALLOWED_2G_FREQS, freq)); in chooseApChannelWithUnsafeChannelsPreferSafe()
408 freq = ApConfigUtil.chooseApChannel( in chooseApChannelWithUnsafeChannelsPreferSafe()
438 int freq = ApConfigUtil.chooseApChannel( in chooseApChannelWithAllSoftUnsafePreferHighBand() local
[all …]
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/bands/
H A 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()
H A 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()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A 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 …]

12345