Searched refs:cpus (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | CpuPowerStatsCollectorTest.java | 404 SparseArray<int[]> cpus = new SparseArray<>(); in mockCpuScalingPolicies() local 406 cpus.put(0, new int[]{0, 1, 2, 3}); in mockCpuScalingPolicies() 409 cpus.put(4, new int[]{4, 5}); in mockCpuScalingPolicies() 412 mCpuScalingPolicies = new CpuScalingPolicies(cpus, freqs); in mockCpuScalingPolicies()
|
/frameworks/base/core/jni/ |
D | android_util_Process.cpp | 355 static void parse_cpuset_cpus(char *cpus, cpu_set_t *cpu_set) { in parse_cpuset_cpus() argument 357 char *cpu_range = strtok(cpus, ","); in parse_cpuset_cpus() 461 jintArray cpus; in android_os_Process_getExclusiveCores() local 469 cpus = env->NewIntArray(num_cpus); in android_os_Process_getExclusiveCores() 470 if (cpus == NULL) { in android_os_Process_getExclusiveCores() 475 jint* cpu_elements = env->GetIntArrayElements(cpus, 0); in android_os_Process_getExclusiveCores() 483 env->ReleaseIntArrayElements(cpus, cpu_elements, 0); in android_os_Process_getExclusiveCores() 484 return cpus; in android_os_Process_getExclusiveCores()
|
/frameworks/native/libs/cputimeinstate/ |
D | cputimeinstate.cpp | 129 auto cpus = readNumbersFromFile(path); in initGlobals() local 130 if (!cpus) return false; in initGlobals() 131 for (auto cpu : *cpus) { in initGlobals() 135 gPolicyCpus.emplace_back(*cpus); in initGlobals()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuUidActiveTimeReaderTest.java | 319 public void setCpus(long[] cpus) { in setCpus() argument 320 mCpus = cpus; in setCpus()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BatteryStatsImpl.java | 11416 int[] cpus = mCpuScalingPolicies.getRelatedCpus(policies[i]); in initPowerProfile() local 11421 mKernelCpuSpeedReaders[i] = new KernelCpuSpeedReader(cpus[0], freqs.length); in initPowerProfile()
|