Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 22 of 22) 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/bpfprogs/
Dtime_in_state.c21 uint32_t freq; member
50 uint32_t* freq = bpf_cpu_freq_map_lookup_elem(&cpu); in tp_sched_switch() local
51 if (args->prev_pid && old_last && freq && *freq) { in tp_sched_switch()
53 time_key key = {.uid = uid, .freq = *freq}; in tp_sched_switch()
/system/chre/platform/slpi/smgr/
Dplatform_sensor_util.cc56 uint64_t freq = kMaxFreq; in intervalToSmgrQ16ReportRate() local
59 freq = (Seconds(1).toRawNanoseconds() << 16) / interval.toRawNanoseconds(); in intervalToSmgrQ16ReportRate()
62 return (freq > kMaxFreq) ? kMaxFreq : static_cast<uint32_t>(freq); in intervalToSmgrQ16ReportRate()
/system/extras/cpustats/
Dcpustats.c40 unsigned freq; member
218 long unsigned freq; in get_freq_scales_count() local
225 freq = 0; in get_freq_scales_count()
226 fscanf(file, "%lu %*d\n", &freq); in get_freq_scales_count()
227 if (freq) count++; in get_freq_scales_count()
228 } while(freq); in get_freq_scales_count()
275 fscanf(file, "%u %lu\n", &new_cpus[cpu].freqs[i].freq, in read_freq_stats()
279 new_cpus[cpu].freqs[i].freq = old_cpus[cpu].freqs[i].freq; in read_freq_stats()
283 new_total_cpu.freqs[i].freq = new_cpus[cpu].freqs[i].freq; in read_freq_stats()
367 printf("%ukHz %ld", new_cpu->freqs[i].freq, delta_time); in print_freq_stats()
[all …]
/system/extras/simpleperf/app_api/java/com/android/simpleperf/
DRecordOptions.java64 public RecordOptions setSampleFrequency(int freq) { in setSampleFrequency() argument
65 this.freq = freq; in setSampleFrequency()
127 args.add(String.valueOf(freq)); in toRecordArgs()
166 private int freq = 4000; field in RecordOptions
/system/extras/tests/workloads/
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
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
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
Dutility.h39 int Ieee80211FrequencyToChannel(int freq);
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp44 size_t freq = 4000; member in simpleperf::RecordOptionsImpl
69 RecordOptions& RecordOptions::SetSampleFrequency(size_t freq) { in SetSampleFrequency() argument
70 impl_->freq = freq; in SetSampleFrequency()
123 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.h64 SampleSpeed(uint64_t freq = 0, uint64_t period = 0) : sample_freq(freq), sample_period(period) {} in sample_freq()
Devent_attr.cpp107 if (attr.freq != 0) { in DumpPerfEventAttr()
126 attr.exclude_idle, attr.mmap, attr.mmap2, attr.comm, attr.freq); in DumpPerfEventAttr()
Devent_selection_set.cpp76 attr.freq = 0; in IsDumpingRegsForTracepointEventsSupported()
165 selection->event_attr.freq = 0; in BuildAndCheckEventSelection()
168 selection->event_attr.freq = 1; in BuildAndCheckEventSelection()
354 selection.event_attr.freq = 1; in SetSampleSpeed()
357 selection.event_attr.freq = 0; in SetSampleSpeed()
DInplaceSamplerClient.cpp44 if (attr_.freq) { in InplaceSamplerClient()
Devent_fd.cpp56 if (attr.freq) { in OpenEventFile()
Denvironment.cpp414 uint64_t freq; in SetPerfEventLimits() local
415 if (!GetMaxSampleFrequency(&freq) || freq == sample_freq) { in SetPerfEventLimits()
Dcmd_stat_test.cpp220 ASSERT_EQ(attr.attr->freq, 0u); in TEST()
Dcmd_record_test.cpp80 if (attr.attr->freq == 0) { in CheckEventType()
/system/connectivity/wificond/net/
Dnetlink_utils.cpp433 for (auto& freq : freqs) { in ParseBandInfo() local
435 if (!freq.GetAttributeValue(NL80211_FREQUENCY_ATTR_FREQ, in ParseBandInfo()
441 if (freq.HasAttribute(NL80211_FREQUENCY_ATTR_DISABLED)) { in ParseBandInfo()
452 if (freq.GetAttributeValue(NL80211_FREQUENCY_ATTR_DFS_STATE, in ParseBandInfo()
462 if (freq.HasAttribute(NL80211_FREQUENCY_ATTR_NO_IR)) { in ParseBandInfo()
/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/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()