1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2022 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<device name="Android">
19    <!-- This is the battery capacity in mAh -->
20    <item name="battery.capacity">3000</item>
21
22    <!-- Power consumption when CPU is suspended -->
23    <item name="cpu.suspend">5</item>
24    <!-- Additional power consumption when CPU is in a kernel idle loop -->
25    <item name="cpu.idle">1.11</item>
26    <!-- Additional power consumption by CPU excluding cluster and core when  running -->
27    <item name="cpu.active">2.55</item>
28
29    <!-- Additional power consumption of CPU policy0 itself when running on related cores -->
30    <item name="cpu.scaling_policy_power.policy0">2.11</item>
31    <!-- Additional power consumption of CPU policy4 itself when running on related cores -->
32    <item name="cpu.scaling_policy_power.policy4">2.22</item>
33
34    <!-- Additional power used by a CPU related to policy3 when running at different
35     speeds. -->
36    <array name="cpu.scaling_step_power.policy0">
37        <value>10</value> <!-- 300 MHz CPU speed -->
38        <value>20</value> <!-- 1000 MHz CPU speed -->
39        <value>30</value> <!-- 1900 MHz CPU speed -->
40    </array>
41    <!-- Additional power used by a CPU related to policy3 when running at different
42         speeds. -->
43    <array name="cpu.scaling_step_power.policy4">
44        <value>25</value> <!-- 300 MHz CPU speed -->
45        <value>35</value> <!-- 1000 MHz CPU speed -->
46        <value>50</value> <!-- 2500 MHz CPU speed -->
47        <value>60</value> <!-- 3000 MHz CPU speed -->
48    </array>
49
50    <!-- Power used by display unit in ambient display mode, including back lighting-->
51    <item name="ambient.on">0.5</item>
52    <!-- Additional power used when screen is turned on at minimum brightness -->
53    <item name="screen.on">100</item>
54    <!-- Additional power used when screen is at maximum brightness, compared to
55         screen at minimum brightness -->
56    <item name="screen.full">800</item>
57
58    <!-- Average power used by the camera flash module when on -->
59    <item name="camera.flashlight">500</item>
60    <!-- Average power use by the camera subsystem for a typical camera
61         application. Intended as a rough estimate for an application running a
62         preview and capturing approximately 10 full-resolution pictures per
63         minute. -->
64    <item name="camera.avg">600</item>
65
66    <!-- Additional power used by the audio hardware, probably due to DSP -->
67    <item name="audio">100.0</item>
68
69    <!-- Additional power used by the video hardware, probably due to DSP -->
70    <item name="video">150.0</item> <!-- ~50mA -->
71
72    <!-- Additional power used when GPS is acquiring a signal -->
73    <item name="gps.on">10</item>
74
75    <!-- Additional power used when cellular radio is transmitting/receiving -->
76    <item name="radio.active">60</item>
77    <!-- Additional power used when cellular radio is paging the tower -->
78    <item name="radio.scanning">3</item>
79    <!-- Additional power used when the cellular radio is on. Multi-value entry,
80         one per signal strength (no signal, weak, moderate, strong) -->
81    <array name="radio.on"> <!-- Strength 0 to BINS-1 -->
82        <value>6</value>       <!-- none -->
83        <value>5</value>       <!-- poor -->
84        <value>4</value>       <!-- moderate -->
85        <value>3</value>       <!-- good -->
86        <value>3</value>       <!-- great -->
87    </array>
88
89    <!-- Cellular modem related values. These constants are deprecated, but still supported and
90         need to be tested -->
91    <item name="modem.controller.sleep">123</item>
92    <item name="modem.controller.idle">456</item>
93    <item name="modem.controller.rx">789</item>
94    <array name="modem.controller.tx"> <!-- Strength 0 to 4 -->
95        <value>10</value>
96        <value>20</value>
97        <value>30</value>
98        <value>40</value>
99        <value>50</value>
100    </array>
101</device>