• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2018 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<!-- Test power profile that parses correctly. -->
19<device>
20    <item name="battery.capacity">2915</item>
21
22    <!-- Number of cores each CPU cluster contains -->
23    <array name="cpu.clusters.cores">
24        <value>4</value>
25        <value>2</value>
26    </array>
27
28    <!-- Power consumption when CPU is suspended -->
29    <item name="cpu.suspend">1.3</item>
30
31    <!-- Additional power consumption when CPU is in a kernel idle loop -->
32    <item name="cpu.idle">3.9</item>
33
34    <!-- Additional power consumption by CPU excluding cluster and core when
35         running -->
36    <item name="cpu.active">18.33</item>
37
38    <!-- Additional power consumption by CPU cluster0 itself when running
39         excluding cores in it -->
40    <item name="cpu.cluster_power.cluster0">2.41</item>
41
42    <!-- Additional power consumption by CPU cluster1 itself when running
43         excluding cores in it -->
44    <item name="cpu.cluster_power.cluster1">5.29</item>
45
46    <!-- Different CPU speeds as reported in
47         /sys/devices/system/cpu/cpu0/cpufreq/stats/scaling_available_frequencies -->
48    <array name="cpu.core_speeds.cluster0">
49        <value>100000</value>
50        <value>303200</value>
51        <value>380000</value>
52        <value>476000</value>
53        <value>552800</value>
54        <value>648800</value>
55        <value>725600</value>
56        <value>802400</value>
57        <value>879200</value>
58    </array>
59
60    <!-- Different CPU speeds as reported in
61         /sys/devices/system/cpu/cpu4/cpufreq/stats/scaling_available_frequencies -->
62    <array name="cpu.core_speeds.cluster1">
63        <value>825600</value>
64        <value>902400</value>
65        <value>979200</value>
66        <value>1056000</value>
67        <value>1209600</value>
68        <value>1286400</value>
69        <value>1363200</value>
70    </array>
71
72    <!-- Additional power used by a CPU core from cluster 0 when running at
73         different speeds, excluding cluster and active cost -->
74    <array name="cpu.core_power.cluster0">
75        <value>0.29</value>
76        <value>0.63</value>
77        <value>1.23</value>
78        <value>1.24</value>
79        <value>2.47</value>
80        <value>2.54</value>
81        <value>3.60</value>
82        <value>3.64</value>
83        <value>4.42</value>
84    </array>
85
86    <!-- Additional power used by a CPU core from cluster 1 when running at
87         different speeds, excluding cluster and active cost -->
88    <array name="cpu.core_power.cluster1">
89        <value>28.98</value>
90        <value>31.40</value>
91        <value>33.33</value>
92        <value>40.12</value>
93        <value>44.10</value>
94        <value>90.14</value>
95        <value>100</value>
96    </array>
97
98    <!-- Additional power used when screen is ambient mode -->
99    <item name="ambient.on">12</item>
100
101    <!-- Additional power used when screen is turned on at minimum brightness -->
102    <item name="screen.on">102.4</item>
103    <!-- Additional power used when screen is at maximum brightness, compared to
104         screen at minimum brightness -->
105    <item name="screen.full">1234</item>
106
107    <!-- Average power used by the camera flash module when on -->
108    <item name="camera.flashlight">1233.47</item>
109
110    <!-- Average power use by the camera subsystem for a typical camera
111         application. Intended as a rough estimate for an application running a
112         preview and capturing approximately 10 full-resolution pictures per
113         minute. -->
114    <item name="camera.avg">941</item>
115
116    <!-- Additional power used when video is playing -->
117    <item name="video">123</item>
118
119    <!-- Additional power used when audio is playing -->
120    <item name="audio">12</item>
121
122    <!-- Cellular modem related values.-->
123    <item name="modem.controller.sleep">1</item>
124    <item name="modem.controller.idle">44</item>
125    <item name="modem.controller.rx">11</item>
126    <array name="modem.controller.tx"> <!-- Strength 0 to 4 -->
127      <value>16</value>
128      <value>19</value>
129      <value>22</value>
130      <value>73</value>
131      <value>132</value>
132    </array>
133    <item name="modem.controller.voltage">1400</item>
134    <item name="radio.scanning">12</item>
135
136    <!-- GPS related values.-->
137    <item name="gps.on">1</item>
138    <array name="gps.signalqualitybased"> <!-- Strength 0 to 1 -->
139      <value>88</value>
140      <value>07</value>
141    </array>
142    <item name="gps.voltage">1500</item>
143
144    <!-- Idle Receive current for wifi radio in mA.-->
145    <item name="wifi.controller.idle">2</item>
146
147    <!-- Rx current for wifi radio in mA.-->
148    <item name="wifi.controller.rx">123</item>
149
150    <!-- Tx current for wifi radio in mA-->
151    <item name="wifi.controller.tx">333</item>
152
153    <!-- Operating volatage for wifi radio in mV.-->
154    <item name="wifi.controller.voltage">3700</item>
155
156    <!-- Idle current for bluetooth in mA.-->
157    <item name="bluetooth.controller.idle">0.02</item>
158
159    <!-- Rx current for bluetooth in mA.-->
160    <item name="bluetooth.controller.rx">3</item>
161
162    <!-- Tx current for bluetooth in mA-->
163    <item name="bluetooth.controller.tx">5</item>
164
165    <!-- Operating voltage for bluetooth in mV.-->
166    <item name="bluetooth.controller.voltage">3300</item>
167
168</device>
169
170
171