Home
last modified time | relevance | path

Searched refs:freqIdx (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp227 for (uint32_t freqIdx = 0; freqIdx < uidTimes[policyIdx].size(); ++freqIdx) { in TEST_F() local
228 allUidTimes[std::min(freqIdx, totalFreqsCount - 1)] += uidTimes[policyIdx][freqIdx]; in TEST_F()
232 for (uint32_t freqIdx = 0; freqIdx < totalFreqsCount; ++freqIdx) { in TEST_F() local
233 ASSERT_LE(allUidTimes[freqIdx], totalTimes[freqIdx]); in TEST_F()
354 for (uint32_t freqIdx = 0; freqIdx < timesAfter.size(); ++freqIdx) { in TEST_F() local
355 ASSERT_NO_FATAL_FAILURE(TestCheckDelta(timesBefore[freqIdx], timesAfter[freqIdx])); in TEST_F()
372 for (uint32_t freqIdx = 0; freqIdx < times[policy].size(); ++freqIdx) { in TEST_F() local
373 auto before = times[policy][freqIdx]; in TEST_F()
374 auto after = (*map2)[uid][policy][freqIdx]; in TEST_F()
Dcputimeinstate.cpp258 auto freqIdx = getPolicyFreqIdx(i); in startTrackingUidTimes() local
259 if (!freqIdx.has_value()) return false; in startTrackingUidTimes()
260 if (writeToMapEntry(policyFreqIdxFd, &i, &(*freqIdx), BPF_ANY)) return false; in startTrackingUidTimes()
287 for (uint32_t freqIdx = 0; freqIdx < freqCount; ++freqIdx) { in getTotalCpuFreqTimes() local
288 if (findMapEntry(gTisTotalMapFd, &freqIdx, vals.data())) return {}; in getTotalCpuFreqTimes()
290 if (freqIdx >= gPolicyFreqs[policyIdx].size()) continue; in getTotalCpuFreqTimes()
292 out[policyIdx][freqIdx] += vals[gCpuIndexMap[cpu]]; in getTotalCpuFreqTimes()
/frameworks/av/media/libaudioclient/
DToneGenerator.cpp1649 unsigned int freqIdx = 0; in prepareWave() local
1650 unsigned int frequency = mpToneDesc->segments[segmentIdx].waveFreq[freqIdx]; in prepareWave()
1660 frequency = mpNewToneDesc->segments[segmentIdx].waveFreq[++freqIdx]; in prepareWave()