The actual answer to the question is straight-forward - can be calculated from the first line of android top's output
User 5%, system 15%, IOW 0%, IRQ 0%
Total = sum of all the percentages = 5+15 = 20%
The other answer about second line is so wrong. The second line actually gives scheduler time spent in that particular state - user/sys/idle/iow in jiffies
(normally 10ms) between one output of top and the next output of top - in OP's case top -d 1
- which prints usage every second - the total number of jiffies per core would be ~100 (assuming 10ms per jiffy) - which would be similar to percentage values.
User 5 + Nice 0 + Sys 14 + Idle 73 + IOW 0 + IRQ 0 + SIRQ 0 = 92
Whereas, the values would be more if the -d
is higher or if there are more than one cores
User 21 + Nice 0 + Sys 16 + Idle 270 + IOW 0 + IRQ 3 + SIRQ 0 = 310
This is probably without any -d
option, so top
takes default delay of 3 seconds = 300 jiffies.
Refer AOSP top sourcecode to get the complete logic of how each value is calculated.