1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2009, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License")
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<device name="Android">
21  <!-- Most values are the incremental current used by a feature,
22       in mA (measured at nominal voltage).
23       The default values are deliberately incorrect values.
24       OEM's must measure and provide actual values before
25       shipping a device.
26       Example real-world values are given in comments, but they
27       are totally dependent on the platform and can vary
28       significantly, so should be measured on the shipping platform
29       with a power meter. -->
30
31  <!-- Display related values. -->
32  <!-- Average battery current draw of display0 while in ambient mode, including backlight.
33       There must be one of these for each display, labeled:
34       ambient.on.display0, ambient.on.display1, etc...
35
36       Each display suffix number should match it's ordinal in its display device config.
37  -->
38  <item name="ambient.on.display0">0.1</item>  <!-- ~100mA -->
39  <!-- Average battery current draw of display0 while on without backlight.
40       There must be one of these for each display, labeled:
41       screen.on.display0, screen.on.display1, etc...
42
43       Each display suffix number should match it's ordinal in its display device config.
44  -->
45  <item name="screen.on.display0">0.1</item>  <!-- ~100mA -->
46  <!-- Average battery current draw of the backlight at full brightness.
47       The full current draw of display N at full brightness should be the sum of screen.on.displayN
48       and screen.full.displayN
49
50       There must be one of these for each display, labeled:
51       screen.full.display0, screen.full.display1, etc...
52
53       Each display suffix number should match it's ordinal in its display device config.
54  -->
55  <item name="screen.full.display0">0.1</item>  <!-- ~100mA -->
56
57  <item name="bluetooth.active">0.1</item> <!-- Bluetooth data transfer, ~10mA -->
58  <item name="bluetooth.on">0.1</item>  <!-- Bluetooth on & connectable, but not connected, ~0.1mA -->
59  <item name="wifi.on">0.1</item>  <!-- ~3mA -->
60  <item name="wifi.active">0.1</item>  <!-- WIFI data transfer, ~200mA -->
61  <item name="wifi.scan">0.1</item>  <!-- WIFI network scanning, ~100mA -->
62  <item name="audio">0.1</item> <!-- ~10mA -->
63  <item name="video">0.1</item> <!-- ~50mA -->
64  <item name="camera.flashlight">0.1</item> <!-- Avg. power for camera flash, ~160mA -->
65  <item name="camera.avg">0.1</item> <!-- Avg. power use of camera in standard usecases, ~550mA -->
66  <item name="gps.on">0.1</item> <!-- ~50mA -->
67
68  <!-- Radio related values. For modems without energy reporting support in firmware, use
69       radio.active, radio.scanning, and radio.on. -->
70  <item name="radio.active">0.1</item> <!-- ~200mA -->
71  <item name="radio.scanning">0.1</item> <!-- cellular radio scanning for signal, ~10mA -->
72  <!-- Current consumed by the radio at different signal strengths, when paging -->
73  <array name="radio.on"> <!-- Strength 0 to BINS-1 -->
74      <value>0.2</value> <!-- ~2mA -->
75      <value>0.1</value> <!-- ~1mA -->
76  </array>
77
78  <!-- Additional power consumption by CPU excluding cluster and core when
79       running -->
80  <array name="cpu.active">
81      <value>0.1</value>
82  </array>
83
84  <!-- A list of heterogeneous CPU clusters, where the value for each cluster represents the
85       number of CPU cores for that cluster.
86
87       Ex:
88       <array name="cpu.clusters.cores">
89         <value>4</value> // cluster 0 has cpu0, cpu1, cpu2, cpu3
90         <value>2</value> // cluster 1 has cpu4, cpu5
91       </array> -->
92  <array name="cpu.clusters.cores">
93      <value>1</value> <!-- cluster 0 has cpu0 -->
94  </array>
95
96    <!-- Different CPU speeds for cluster 0 as reported in
97       /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state.
98
99       There must be one of these for each cluster, labeled:
100       cpu.speeds.cluster0, cpu.speeds.cluster1, etc... -->
101  <array name="cpu.speeds.cluster0">
102      <value>400000</value> <!-- 400 MHz CPU speed -->
103  </array>
104
105  <!-- Current at each CPU speed for cluster 0, as per 'cpu.speeds.cluster0'.
106       Like cpu.speeds.cluster0, there must be one of these present for
107       each heterogeneous CPU cluster. -->
108  <array name="cpu.active.cluster0">
109      <value>0.1</value>  <!-- ~100mA -->
110  </array>
111
112  <!-- Current when CPU is idle -->
113  <item name="cpu.idle">0.1</item>
114
115  <!-- Memory bandwidth power values in mA at the rail. There must be one value
116       for each bucket defined in the device tree. -->
117  <array name="memory.bandwidths">
118    <value>22.7</value> <!-- mA for bucket: 100mb/s-1.5 GB/s memory bandwidth -->
119  </array>
120
121  <!-- This is the battery capacity in mAh (measured at nominal voltage) -->
122  <item name="battery.capacity">1000</item>
123
124  <!-- Wifi related values. -->
125  <!-- Idle Receive current for wifi radio in mA. 0 by default-->
126  <item name="wifi.controller.idle">0</item>
127  <!-- Rx current for wifi radio in mA. 0 by default-->
128  <item name="wifi.controller.rx">0</item>
129  <!-- Tx current for wifi radio in mA. 0 by default-->
130  <item name="wifi.controller.tx">0</item>
131  <!-- Current at each of the wifi Tx levels in mA. The number of tx levels varies per device
132       and is available only of wifi chipsets which support the tx level reporting. Use
133        wifi.tx for other chipsets. none by default -->
134  <array name="wifi.controller.tx_levels"> <!-- mA -->
135  </array>
136  <!-- Operating volatage for wifi radio in mV. 0 by default-->
137  <item name="wifi.controller.voltage">0</item>
138
139  <array name="wifi.batchedscan"> <!-- mA -->
140    <value>.0002</value> <!-- 1-8/hr -->
141    <value>.002</value>  <!-- 9-64/hr -->
142    <value>.02</value>   <!-- 65-512/hr -->
143    <value>.2</value>    <!-- 513-4,096/hr -->
144    <value>2</value>    <!-- 4097-/hr -->
145  </array>
146
147  <!-- Cellular modem related values.-->
148  <modem>
149    <!-- Modem sleep drain current value in mA. -->
150    <sleep>0</sleep>
151    <!-- Modem idle drain current value in mA. -->
152    <idle>0</idle>
153    <!-- Modem active drain current values.
154         Multiple <active /> can be defined to specify current drain for different modes of
155         operation.
156         Available attributes:
157             rat - Specify the current drain for a Radio Access Technology.
158                   Available options are "LTE", "NR" and "DEFAULT".
159                   <active rat="default" /> will be used for any usage that does not match any other
160                   defined <active /> rat.
161
162             nrFrequency - Specify the current drain for a frequency level while NR is active.
163                           Available options are "LOW", "MID", "HIGH", "MMWAVE", and "DEFAULT",
164                           where,
165                           "LOW" indicated <1GHz frequencies,
166                           "MID" indicates 1GHz to 3GHz frequencies,
167                           "HIGH" indicates 3GHz to 6GHz frequencies,
168                           "MMWAVE"indicates >6GHz frequencies.
169                           <active rat="NR" nrFrequency="default"/> will be used for any usage that
170                           does not match any other defined <active rat="NR" /> nrFrequency.
171    -->
172    <active rat="DEFAULT">
173      <!-- Transmit current drain in mA. -->
174      <receive>0</receive>
175
176      <!-- Transmit current drains in mA. Must be defined for all levels (0 to 4) -->
177      <transmit level="0">0</transmit>
178      <transmit level="1">0</transmit>
179      <transmit level="2">0</transmit>
180      <transmit level="3">0</transmit>
181      <transmit level="4">0</transmit>
182    </active>
183    <!-- Additional <active /> may be defined.
184         Example:
185             <active rat="LTE"> ... </active>
186             <active rat="NR" nrFrequency="MMWAVE"> ... </active>
187             <active rat="NR" nrFrequency="DEFAULT"> ... </active>
188    -->
189  </modem>
190  <item name="modem.controller.voltage">0</item>
191
192  <!-- GPS related values. Default is 0.-->
193  <array name="gps.signalqualitybased"> <!-- Strength 0 to 1 -->
194    <value>0</value>
195    <value>0</value>
196  </array>
197  <item name="gps.voltage">0</item>
198</device>
199