Home
last modified time | relevance | path

Searched refs:cpusByPolicy (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DCpuScalingPolicies.java37 public CpuScalingPolicies(@NonNull SparseArray<int[]> cpusByPolicy, in CpuScalingPolicies() argument
39 mCpusByPolicy = cpusByPolicy; in CpuScalingPolicies()
42 mPolicies = new int[cpusByPolicy.size()]; in CpuScalingPolicies()
44 mPolicies[i] = cpusByPolicy.keyAt(i); in CpuScalingPolicies()
DCpuScalingPolicyReader.java70 SparseArray<int[]> cpusByPolicy = new SparseArray<>(); in read() local
105 cpusByPolicy.put(policy, relatedCpus); in read()
111 if (cpusByPolicy.size() == 0) { in read()
113 cpusByPolicy.put(0, new int[]{0}); in read()
117 return new CpuScalingPolicies(cpusByPolicy, freqsByPolicy); in read()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryExternalStatsWorkerTest.java230 SparseArray<int[]> cpusByPolicy = new SparseArray<>(); in buildScalingPolicies() local
231 cpusByPolicy.put(0, new int[]{0, 1, 2, 3}); in buildScalingPolicies()
232 cpusByPolicy.put(4, new int[]{4, 5, 6, 7}); in buildScalingPolicies()
DMockBatteryStatsImpl.java169 SparseArray<int[]> cpusByPolicy = new SparseArray<>(); in setTestCpuScalingPolicies() local
170 cpusByPolicy.put(0, new int[]{0}); in setTestCpuScalingPolicies()