Home
last modified time | relevance | path

Searched refs:cpu (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerProfileTest.java72 final CpuProfile cpu = (CpuProfile)profile.getComponent(Component.CPU); in testReadGood() local
73 Assert.assertEquals(1.3f, cpu.suspendMa, EPSILON); in testReadGood()
74 Assert.assertEquals(3.9f, cpu.idleMa, EPSILON); in testReadGood()
75 Assert.assertEquals(18.33f, cpu.activeMa, EPSILON); in testReadGood()
76 Assert.assertEquals(2, cpu.clusters.length); in testReadGood()
78 Assert.assertEquals(4, cpu.clusters[0].coreCount); in testReadGood()
79 Assert.assertEquals(2.41f, cpu.clusters[0].onMa, EPSILON); in testReadGood()
80 Assert.assertEquals(9, cpu.clusters[0].frequencies.length, EPSILON); in testReadGood()
81 Assert.assertEquals(100000, cpu.clusters[0].frequencies[0].speedHz); in testReadGood()
82 Assert.assertEquals(0.29f, cpu.clusters[0].frequencies[0].onMa, EPSILON); in testReadGood()
[all …]
/frameworks/base/libs/hwui/tests/scripts/
Dprep_buller.sh4 cpubase=/sys/devices/system/cpu
18 cpu=0
20 while [ $((cpu < 4)) -eq 1 ]; do
21 echo "Setting cpu $cpu to $S hz"
22 adb shell "echo 1 > $cpubase/cpu${cpu}/online"
23 adb shell "echo userspace > $cpubase/cpu${cpu}/$gov"
24 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"
25 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"
26 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed"
27 cpu=$(($cpu + 1))
[all …]
Dprep_taieye.sh2 cpubase=/sys/devices/system/cpu
10 cpu=0
13 while [ $((cpu < 4)) -eq 1 ]; do
14 echo "Setting cpu ${cpu} to $S hz"
15 adb shell "echo userspace > $cpubase/cpu${cpu}/cpufreq/scaling_governor"
16 adb shell "echo 1 > $cpubase/cpu${cpu}/online"
17 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"
18 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"
19 cpu=$(($cpu + 1))
22 while [ $((cpu < $nr)) -eq 1 ]; do
[all …]
Dprep_fugu.sh3 cpubase=/sys/devices/system/cpu
31 cpu=0
33 while [ $((cpu < 3)) -eq 1 ]; do
34 echo "Setting cpu ${cpu} & $(($cpu + 1)) cluster to $S hz"
36 adb shell "echo 1 > $cpubase/cpu${cpu}/online" &> /dev/null
37 adb shell "echo userspace > $cpubase/cpu${cpu}/$gov"
38 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"
39 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"
40 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed"
41 cpu=$(($cpu + 2))
Dprep_generic.sh108 CPU_BASE=/sys/devices/system/cpu
120 cpu=0
121 while [ -d ${CPU_BASE}/cpu${cpu}/cpufreq ]; do
126 if [ -f "$CPU_BASE/cpu$cpu/online" ]; then
127 echo 1 > ${CPU_BASE}/cpu${cpu}/online || true
131 echo userspace > ${CPU_BASE}/cpu${cpu}/${GOV}
133 maxFreq=`cat ${CPU_BASE}/cpu$cpu/cpufreq/cpuinfo_max_freq`
134 availFreq=`cat ${CPU_BASE}/cpu$cpu/cpufreq/scaling_available_frequencies`
148 enableIndices=${cpu}
150 enableIndices="$enableIndices $cpu"
[all …]
Dprep_marlfish.sh3 cpubase=/sys/devices/system/cpu
19 cpu=0
22 while [ $((cpu < 3)) -eq 1 ]; do
24 echo "Setting cpu ${cpu} & $(($cpu + 1)) cluster to $S hz"
25 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"
26 adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"
27 cpu=$(($cpu + 2))
Dprep_volantis.sh30 echo "set cpu $cpu to $S hz";
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp207 for (auto &cpu : gPolicyCpus[i]) { in startTrackingUidTimes() local
208 if (writeToMapEntry(cpuPolicyFd, &cpu, &i, BPF_ANY)) return false; in startTrackingUidTimes()
279 for (const auto &cpu : gPolicyCpus[policyIdx]) { in getTotalCpuFreqTimes() local
280 out[policyIdx][freqIdx] += vals[cpu]; in getTotalCpuFreqTimes()
318 for (const auto &cpu : gPolicyCpus[j]) { in getUidCpuFreqTimes() local
319 std::transform(begin, end, std::begin(vals[cpu].ar), begin, std::plus<uint64_t>()); in getUidCpuFreqTimes()
384 for (const auto &cpu : gPolicyCpus[i]) { in getUidsUpdatedCpuFreqTimes() local
385 std::transform(begin, end, std::begin(vals[cpu].ar), begin, std::plus<uint64_t>()); in getUidsUpdatedCpuFreqTimes()
427 for (uint32_t cpu = 0; cpu < gNCpus; ++cpu) { in getUidConcurrentTimes() local
428 std::transform(activeBegin, activeEnd, std::begin(vals[cpu].active), activeBegin, in getUidConcurrentTimes()
[all …]
/frameworks/base/core/proto/android/os/
Dcpuinfo.proto26 * 'top -b -n 1 -H -s 6 -o pid,tid,user,pr,ni,%cpu,s,virt,res,pcy,cmd,name'
36 optional int32 total = 1; // total number of cpu tasks
59 optional int32 cpu = 1; // 400% cpu indicates 4 cores field
77 optional string user = 3; // the process name which uses cpu
80 optional float cpu = 6; // precentage of cpu usage of the task field
Dcpufreq.proto24 // cpu frequency time from /sys/devices/system/cpu/cpufreq/all_time_in_state
30 // frequency time pre cpu, unit in jiffy.
39 optional int32 state_khz = 1; // cpu frequency
Dbatteryusagestats.proto66 // Represents a slice of power attribution, e.g. "cpu while in the background"
Dincident.proto220 (section).args = "top -b -n 1 -H -s 6 -o pid,tid,user,pr,ni,%cpu,s,virt,res,pcy,cmd,name"
225 (section).args = "/sys/devices/system/cpu/cpufreq/all_time_in_state"
Dbatterystats.proto571 // CPU time broken down by CPU frequency (go/cpu-battery-metrics).
609 optional Cpu cpu = 7; field
/frameworks/base/tests/JankBench/app/src/main/jni/
DWorkerPool.cpp158 int cpu = sysconf(_SC_NPROCESSORS_CONF); in init() local
160 cpu = threadCount; in init()
162 if (cpu < 1) { in init()
165 mCount = (uint32_t)cpu; in init()
/frameworks/rs/perf-test-scripts/
Dget-freq40 cores=`adb shell ls /sys/devices/system/cpu/ | grep cpu[0-9].* | tr -d '\r'`
Dset-cpu-freq46 cores=`adb shell ls /sys/devices/system/cpu/ | grep cpu[0-9].* | tr -d '\r'`
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp53 RsdCpuReferenceImpl *cpu = new RsdCpuReferenceImpl(rsc); in create() local
54 if (!cpu) { in create()
57 if (!cpu->init(version_major, version_minor, lfn, slfn)) { in create()
58 delete cpu; in create()
62 cpu->setSelectRTCallback(pSelectRTCallback); in create()
64 cpu->setBccPluginName(pBccPluginName); in create()
67 return cpu; in create()
237 int cpu = sysconf(_SC_NPROCESSORS_CONF); in init() local
239 cpu = mRSC->props.mDebugMaxThreads; in init()
241 if (cpu < 2) { in init()
[all …]
/frameworks/base/cmds/incident_helper/testdata/
Dcpuinfo.txt7 400%cpu 17%user 0%nice 43%sys 338%idle 0%iow 0%irq 1%sirq 0%host
Dsystem_properties.txt14 [ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
/frameworks/native/libs/binder/tests/
Dschd-dbg.cpp135 int cpu = sched_getcpu(); in onTransact() local
137 if (cpu != cpu_caller) { in onTransact()
265 static void parcel_fill(Parcel& data, int sz, int priority, int cpu) { in parcel_fill() argument
268 data.writeInt32(cpu); in parcel_fill()
/frameworks/base/services/core/java/com/android/server/am/
DEventLogTags.logtags6 2721 cpu (total|1|6),(user|1|6),(system|1|6),(iowait|1|6),(irq|1|6),(softirq|1|6)
/frameworks/base/core/proto/android/service/
Dprocstats.proto160 optional int32 cpu = 1; field
/frameworks/compile/mclinker/tools/mcld/
DOptions.td480 HelpText<"Set a specific cpu type">;
/frameworks/base/core/proto/android/server/
Dactivitymanagerservice.proto882 optional float ultilization = 3; // ratio of cpu time usage
/frameworks/proto_logging/stats/
Datoms.proto1233 * Logs when app is using too much cpu, according to ActivityManagerService.
8412 optional int32 cpu = 1; field
8880 * in the system and returns cpu stats for those that are working at the time.
8888 // Process cpu time in user space, cumulative from boot/process start
8890 // Process cpu time in system space, cumulative from boot/process start
9129 // Represents a slice of power attribution, e.g. "cpu while in the background"
19440 // Did the compilation had to fallback to cpu due to an error?