Lines Matching refs:policy

110     for (const auto &policy : policyFileNames) {  in initGlobals()  local
114 StringPrintf("%s/%s/scaling_%s_frequencies", basepath, policy.c_str(), name); in initGlobals()
125 std::string path = StringPrintf("%s/%s/%s", basepath, policy.c_str(), "related_cpus"); in initGlobals()
154 static std::optional<uint32_t> getPolicyFreqIdx(uint32_t policy) { in getPolicyFreqIdx() argument
156 gPolicyCpus[policy][0]); in getPolicyFreqIdx()
159 for (uint32_t idx = 0; idx < gPolicyFreqs[policy].size(); ++idx) { in getPolicyFreqIdx()
160 if ((*freqVec)[0] == gPolicyFreqs[policy][idx]) return idx + 1; in getPolicyFreqIdx()
189 key.policy = i; in startTrackingUidTimes()
345 for (const auto &vec : ct.policy) { in verifyConcurrentTimes()
360 for (const auto &cpuList : gPolicyCpus) ret.policy.emplace_back(cpuList.size(), 0); in getUidConcurrentTimes()
379 for (uint32_t policy = 0; policy < gNPolicies; ++policy) { in getUidConcurrentTimes() local
380 if (offset >= gPolicyCpus[policy].size()) continue; in getUidConcurrentTimes()
381 auto policyBegin = ret.policy[policy].begin() + offset; in getUidConcurrentTimes()
382 auto policyEnd = nextOffset < gPolicyCpus[policy].size() ? policyBegin + CPUS_PER_ENTRY in getUidConcurrentTimes()
383 : ret.policy[policy].end(); in getUidConcurrentTimes()
385 for (const auto &cpu : gPolicyCpus[policy]) { in getUidConcurrentTimes()
386 std::transform(policyBegin, policyEnd, std::begin(vals[cpu].policy), policyBegin, in getUidConcurrentTimes()
421 for (const auto &cpuList : gPolicyCpus) retFormat.policy.emplace_back(cpuList.size(), 0); in getUidsUpdatedConcurrentTimes()
447 for (uint32_t policy = 0; policy < gNPolicies; ++policy) { in getUidsUpdatedConcurrentTimes() local
448 if (offset >= gPolicyCpus[policy].size()) continue; in getUidsUpdatedConcurrentTimes()
449 policyBegin = ret[key.uid].policy[policy].begin() + offset; in getUidsUpdatedConcurrentTimes()
450 policyEnd = nextOffset < gPolicyCpus[policy].size() ? policyBegin + CPUS_PER_ENTRY in getUidsUpdatedConcurrentTimes()
451 : ret[key.uid].policy[policy].end(); in getUidsUpdatedConcurrentTimes()
453 for (const auto &cpu : gPolicyCpus[policy]) { in getUidsUpdatedConcurrentTimes()
454 std::transform(policyBegin, policyEnd, std::begin(vals[cpu].policy), policyBegin, in getUidsUpdatedConcurrentTimes()
492 concurrent_val_t czeros = {.policy = {0}, .active = {0}}; in clearUidTimes()