Home
last modified time | relevance | path

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

/system/chre/apps/wifi_offload/
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()
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()
/system/extras/cpustats/
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()
279 fscanf(file, "%u %lu\n", &new_cpus[cpu].freqs[i].freq, &new_cpus[cpu].freqs[i].time); in read_freq_stats()
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()
[all …]
/system/extras/tests/workloads/
Drecentfling.sh107 ${ADB}atrace --async_start -z -c -b 16000 freq gfx view idle sched
120 ${ADB}atrace --async_dump -z -c -b 16000 freq gfx view idle sched > trace.${cur}.out
Dchromefling.sh101 ${ADB}atrace --async_start -z -c -b 16000 freq gfx view idle sched
114 ${ADB}atrace --async_dump -z -c -b 16000 freq gfx view idle sched > trace.${cur}.out
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
Dutility.h39 int Ieee80211FrequencyToChannel(int freq);
/system/extras/simpleperf/app_api/java/com/android/simpleperf/
DRecordOptions.java72 public RecordOptions setSampleFrequency(int freq) { in setSampleFrequency() argument
73 mFreq = freq; in setSampleFrequency()
/system/bpf/progs/include/
Dbpf_timeinstate.h49 uint32_t freq; member
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp46 size_t freq = 4000; member in simpleperf::RecordOptionsImpl
70 RecordOptions& RecordOptions::SetSampleFrequency(size_t freq) { in SetSampleFrequency() argument
71 impl_->freq = freq; in SetSampleFrequency()
124 args.insert(args.end(), {"-f", std::to_string(impl_->freq)}); in ToRecordArgs()
Dsimpleperf.h58 RecordOptions& SetSampleFrequency(size_t freq);
/system/extras/simpleperf/
Devent_selection_set.h61 SampleSpeed(uint64_t freq = 0, uint64_t period = 0) : sample_freq(freq), sample_period(period) {} in sample_freq()
Devent_selection_set.cpp89 attr.freq = 0; in IsDumpingRegsForTracepointEventsSupported()
203 selection->event_attr.freq = 0; in BuildAndCheckEventSelection()
208 selection->event_attr.freq = 0; in BuildAndCheckEventSelection()
211 selection->event_attr.freq = 1; in BuildAndCheckEventSelection()
404 selection.event_attr.freq = 1; in SetSampleSpeed()
407 selection.event_attr.freq = 0; in SetSampleSpeed()
Devent_attr.cpp109 if (attr.freq != 0) { in DumpPerfEventAttr()
128 attr.exclude_idle, attr.mmap, attr.mmap2, attr.comm, attr.freq); in DumpPerfEventAttr()
Denvironment.cpp338 uint64_t freq; in SetPerfEventLimits() local
339 if (!GetMaxSampleFrequency(&freq) || freq == sample_freq) { in SetPerfEventLimits()
Devent_fd.cpp56 if (attr.freq) { in OpenEventFile()
Dcmd_record_test.cpp104 if (attr.attr->freq == 0) { in CheckEventType()
915 ASSERT_EQ(attr->freq, 0); in TEST()
Dcmd_stat_test.cpp236 ASSERT_EQ(attr.attr->freq, 0u); in TEST()
/system/chre/apps/wifi_offload/test/
Dutility.cc62 void init_frequency(uint32_t &freq, RandomGenerator &rand_gen) { in init_frequency() argument
63 freq = kAllFrequencies_Test[rand_gen.get<uint8_t>() % kNumFrequencies_Test]; in init_frequency()
/system/connectivity/wificond/net/
Dnetlink_utils.cpp492 for (auto& freq : freqs) { in handleBandFreqAttributes() local
494 if (!freq.GetAttributeValue(NL80211_FREQUENCY_ATTR_FREQ, in handleBandFreqAttributes()
500 if (freq.HasAttribute(NL80211_FREQUENCY_ATTR_DISABLED)) { in handleBandFreqAttributes()
512 if (freq.GetAttributeValue(NL80211_FREQUENCY_ATTR_DFS_STATE, in handleBandFreqAttributes()
522 if (freq.HasAttribute(NL80211_FREQUENCY_ATTR_NO_IR)) { in handleBandFreqAttributes()
/system/connectivity/wificond/scanning/
Dscan_utils.cpp145 uint32_t freq; in ParseScanResult() local
146 if (!bss.GetAttributeValue(NL80211_BSS_FREQUENCY, &freq)) { in ParseScanResult()
187 NativeScanResult(ssid, bssid, ie, freq, signal, in ParseScanResult()
/system/bpfprogs/
Dtime_in_state.c198 freq_idx_key_t key = {.policy = policy, .freq = new};