Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/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 …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
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()
/frameworks/base/libs/hwui/tests/scripts/
Dprep_generic.sh112 for freq in ${cpuAvailFreq}; do
113 freqMhz=`expr ${freq} \/ 1000`
115 chosenFreq=${freq}
122 freq=${CPU_BASE}/cpu$cpu/cpufreq
126 echo ${chosenFreq} > ${freq}/scaling_max_freq
127 echo ${chosenFreq} > ${freq}/scaling_min_freq
128 echo ${chosenFreq} > ${freq}/scaling_setspeed
131 obsCur=`cat ${freq}/scaling_cur_freq`
132 obsMin=`cat ${freq}/scaling_min_freq`
133 obsMax=`cat ${freq}/scaling_max_freq`
[all …]
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"
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiChannelUtilization.java199 int freq = channelStats.frequency; in calculateChannelUtilization() local
203 ChannelStats channelStatsRef = findChanStatsReference(freq, radioOnTimeMs); in calculateChannelUtilization()
210 mChannelUtilizationMap.put(freq, utilizationRatio); in calculateChannelUtilization()
215 Log.d(TAG, sb.append(" freq: ").append(freq) in calculateChannelUtilization()
236 private ChannelStats findChanStatsReference(int freq, int radioOnTimeMs) { in findChanStatsReference() argument
247 if (channelStatsMap == null || channelStatsMap.get(freq) == null) { in findChanStatsReference()
250 ChannelStats channelStats = channelStatsMap.get(freq); in findChanStatsReference()
268 private void updateChannelStatsCache(SparseArray<ChannelStats> channelStatsMap, int freq) { in updateChannelStatsCache() argument
278 if ((isLongTimeSinceLastUpdate && !remainStationary) || isChannelStatsMapCacheEmpty(freq)) { in updateChannelStatsCache()
286 private boolean isChannelStatsMapCacheEmpty(int freq) { in isChannelStatsMapCacheEmpty() argument
[all …]
/frameworks/rs/perf-test-scripts/
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"
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"
Dget-freq94 freq=`getprop $GPU_DIR/max_gpuclk`
96 freq=`getprop /d/clock/override.gbus/rate`
101 echo " Current Frequency: $freq (Hz)"
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java198 int freq = r.freq; in filter() local
200 if (EventRecurrence.MONTHLY >= freq) { in filter()
210 if (EventRecurrence.WEEKLY >= freq) { in filter()
222 if (EventRecurrence.DAILY >= freq) { in filter()
255 if (EventRecurrence.HOURLY >= freq) { in filter()
264 if (EventRecurrence.MINUTELY >= freq) { in filter()
273 if (EventRecurrence.SECONDLY >= freq) { in filter()
286 if (freq == EventRecurrence.MONTHLY && r.bydayCount > 0) { in filter()
398 int generateByList(int count, int freq, int byFreq) in generateByList() argument
400 if (byFreq >= freq) { in generateByList()
[all …]
DEventRecurrence.java51 public int freq; // SECONDLY, MINUTELY, etc. field in EventRecurrence
326 switch (this.freq) in toString()
397 if (this.freq != WEEKLY) { in repeatsOnEveryWeekDay()
430 if (this.freq != MONTHLY) { in repeatsMonthlyOnDayCount()
480 freq == er.freq && in equals()
515 freq = count = interval = bysecondCount = byminuteCount = byhourCount = in resetFields()
727 Integer freq = sParseFreqMap.get(value); in parsePart() local
728 if (freq == null) { in parsePart()
731 er.freq = freq; in parsePart()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DCpuFrequencies.java67 final long freq = Long.parseLong(coreAndFreq[1]); in parseString() local
69 mCoreAndFrequencies.put(core, freq); in parseString()
96 final long freq = mCoreAndFrequencies.valueAt(i); in addToSysFileMap() local
101 map.put(file, Long.toString(freq)); in addToSysFileMap()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
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()
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/
DCpuProfile.java134 final Frequency freq = cluster.frequencies[j] = new Frequency(); in build() local
135 freq.speedHz = speeds[j]; in build()
136 freq.onMa = power[j]; in build()
/frameworks/av/media/libeffects/testlibs/
DAudioEqualizer.cpp210 setFrequency(band, bandCfg.freq); in setPreset()
266 uint32_t freq = mpPeakingFilters[i].getFrequency(); in getMostRelevantBand() local
267 if (freq >= targetFreq) { in getMostRelevantBand()
268 high = freq; in getMostRelevantBand()
272 low = freq; in getMostRelevantBand()
/frameworks/native/services/sensorservice/
DSensorFusion.cpp83 const float freq = 1 / dT; in process() local
84 if (freq >= 100 && freq<1000) { // filter values obviously wrong in process()
86 mEstimatedGyroRate = freq + (mEstimatedGyroRate - freq)*alpha; in process()
/frameworks/av/media/libaudioprocessing/tests/fuzzer/
Dlibaudioprocessing_resampler_fuzzer.cpp116 bool validFreq(int freq) { return freq > MIN_FREQ && freq < MAX_FREQ; } in validFreq() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java270 for (int freq : regulatoryArray) { in getAvailableChannelFreqsForBand()
271 regulatoryList.add(freq); in getAvailableChannelFreqsForBand()
371 int freq = chooseApChannel(config.getBand(), wifiNative, resources); in updateApChannelConfig() local
372 if (freq == -1) { in updateApChannelConfig()
378 ScanResult.convertFrequencyMhzToChannel(freq), convertFrequencyToBand(freq)); in updateApChannelConfig()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java278 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_2GHZ, mWifiNative, in chooseApChannel2GBandWithNoAllowedChannel() local
281 ScanResult.convertFrequencyMhzToChannel(freq)); in chooseApChannel2GBandWithNoAllowedChannel()
294 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_2GHZ, mWifiNative, in chooseApChannel2GBandWithAllowedChannels() local
296 assertEquals(2462, freq); in chooseApChannel2GBandWithAllowedChannels()
309 int freq = ApConfigUtil.chooseApChannel( in chooseApChannel5GBandWithAllowedChannels() local
311 assertTrue(ArrayUtils.contains(ALLOWED_5G_FREQS, freq)); in chooseApChannel5GBandWithAllowedChannels()
340 int freq = ApConfigUtil.chooseApChannel( in chooseApChannelWillHighBandPrefer() local
343 assertTrue(ArrayUtils.contains(ALLOWED_5G_FREQS, freq)); in chooseApChannelWillHighBandPrefer()
/frameworks/av/media/libaudioprocessing/tests/
Dtest_utils.h195 size_t channels, double sampleRate, double freq)
201 double y = sin(2. * M_PI * freq * t);
265 double freq, double sampleRate, double time)
268 createSine<T>(mAddr, mNumFrames, mChannels, mSampleRate, freq);
/frameworks/base/wifi/java/android/net/wifi/
DSoftApInfo.java104 public void setFrequency(int freq) { in setFrequency() argument
105 mFrequency = freq; in setFrequency()
/frameworks/base/cmds/incident_helper/src/parsers/
DCpuFreqParser.cpp53 int freq = toInt(record[0]); in Parse() local
58 cpucores[i].push_back(make_pair(freq, toLongLong(record[i+1]))); in Parse()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java595 int freq = 0; in p2pGroupAdd() local
598 freq = 2; in p2pGroupAdd()
601 freq = 5; in p2pGroupAdd()
605 freq = config.groupOwnerBand; in p2pGroupAdd()
612 freq, config.deviceAddress, join); in p2pGroupAdd()
/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp81 long freq = 1237; in Test01() local
84 f0 = pow(2., 32.) * freq / (float)rate; in Test01()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaEqualizerTest.java173 int freq = mEqualizer.getCenterFreq(band); in test1_1BandFrequency() local
175 (freqRange[0] <= freq) && (freqRange[1] >= freq)); in test1_1BandFrequency()

12