• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## 8.4\. Power Consumption Accounting
2
3A more accurate accounting and reporting of the power consumption provides the
4app developer both the incentives and the tools to optimize the power usage
5pattern of the application.
6
7
8Device implementations:
9
10*   [SR] STRONGLY RECOMMENDED to provide a per-component power profile
11that defines the [current consumption value](
12http://source.android.com/devices/tech/power/values.html)
13for each hardware component and the approximate battery drain caused by the
14components over time as documented in the Android Open Source Project site.
15*   [SR] STRONGLY RECOMMENDED to report all power consumption values in milliampere
16hours (mAh).
17*   [SR] STRONGLY RECOMMENDED to report CPU power consumption per each process's UID.
18The Android Open Source Project meets the requirement through the
19`uid_cputime` kernel module implementation.
20*   [SR] STRONGLY RECOMMENDED to make this power usage available via the
21[`adb shell dumpsys batterystats`](
22http://source.android.com/devices/tech/power/batterystats.html)
23shell command to the app developer.
24*   SHOULD be attributed to the hardware component itself if unable to
25attribute hardware component power usage to an application.
26