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 dummy 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 <item name="ambient.on">0.1</item> <!-- ~100mA --> 31 <item name="screen.on">0.1</item> <!-- ~100mA --> 32 <item name="screen.full">0.1</item> <!-- ~100mA --> 33 <item name="bluetooth.active">0.1</item> <!-- Bluetooth data transfer, ~10mA --> 34 <item name="bluetooth.on">0.1</item> <!-- Bluetooth on & connectable, but not connected, ~0.1mA --> 35 <item name="wifi.on">0.1</item> <!-- ~3mA --> 36 <item name="wifi.active">0.1</item> <!-- WIFI data transfer, ~200mA --> 37 <item name="wifi.scan">0.1</item> <!-- WIFI network scanning, ~100mA --> 38 <item name="audio">0.1</item> <!-- ~10mA --> 39 <item name="video">0.1</item> <!-- ~50mA --> 40 <item name="camera.flashlight">0.1</item> <!-- Avg. power for camera flash, ~160mA --> 41 <item name="camera.avg">0.1</item> <!-- Avg. power use of camera in standard usecases, ~550mA --> 42 <item name="gps.on">0.1</item> <!-- ~50mA --> 43 44 <!-- Radio related values. For modems without energy reporting support in firmware, use 45 radio.active, radio.scanning, and radio.on. --> 46 <item name="radio.active">0.1</item> <!-- ~200mA --> 47 <item name="radio.scanning">0.1</item> <!-- cellular radio scanning for signal, ~10mA --> 48 <!-- Current consumed by the radio at different signal strengths, when paging --> 49 <array name="radio.on"> <!-- Strength 0 to BINS-1 --> 50 <value>0.2</value> <!-- ~2mA --> 51 <value>0.1</value> <!-- ~1mA --> 52 </array> 53 54 <!-- A list of heterogeneous CPU clusters, where the value for each cluster represents the 55 number of CPU cores for that cluster. 56 57 Ex: 58 <array name="cpu.clusters.cores"> 59 <value>4</value> // cluster 0 has cpu0, cpu1, cpu2, cpu3 60 <value>2</value> // cluster 1 has cpu4, cpu5 61 </array> --> 62 <array name="cpu.clusters.cores"> 63 <value>1</value> <!-- cluster 0 has cpu0 --> 64 </array> 65 66 <!-- Different CPU speeds for cluster 0 as reported in 67 /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state. 68 69 There must be one of these for each cluster, labeled: 70 cpu.speeds.cluster0, cpu.speeds.cluster1, etc... --> 71 <array name="cpu.speeds.cluster0"> 72 <value>400000</value> <!-- 400 MHz CPU speed --> 73 </array> 74 75 <!-- Current at each CPU speed for cluster 0, as per 'cpu.speeds.cluster0'. 76 Like cpu.speeds.cluster0, there must be one of these present for 77 each heterogeneous CPU cluster. --> 78 <array name="cpu.active.cluster0"> 79 <value>0.1</value> <!-- ~100mA --> 80 </array> 81 82 <!-- Current when CPU is idle --> 83 <item name="cpu.idle">0.1</item> 84 85 <!-- Memory bandwidth power values in mA at the rail. There must be one value 86 for each bucket defined in the device tree. --> 87 <array name="memory.bandwidths"> 88 <value>22.7</value> <!-- mA for bucket: 100mb/s-1.5 GB/s memory bandwidth --> 89 </array> 90 91 <!-- This is the battery capacity in mAh (measured at nominal voltage) --> 92 <item name="battery.capacity">1000</item> 93 94 <!-- Wifi related values. --> 95 <!-- Idle Receive current for wifi radio in mA. 0 by default--> 96 <item name="wifi.controller.idle">0</item> 97 <!-- Rx current for wifi radio in mA. 0 by default--> 98 <item name="wifi.controller.rx">0</item> 99 <!-- Tx current for wifi radio in mA. 0 by default--> 100 <item name="wifi.controller.tx">0</item> 101 <!-- Current at each of the wifi Tx levels in mA. The number of tx levels varies per device 102 and is available only of wifi chipsets which support the tx level reporting. Use 103 wifi.tx for other chipsets. none by default --> 104 <array name="wifi.controller.tx_levels"> <!-- mA --> 105 </array> 106 <!-- Operating volatage for wifi radio in mV. 0 by default--> 107 <item name="wifi.controller.voltage">0</item> 108 109 <array name="wifi.batchedscan"> <!-- mA --> 110 <value>.0002</value> <!-- 1-8/hr --> 111 <value>.002</value> <!-- 9-64/hr --> 112 <value>.02</value> <!-- 65-512/hr --> 113 <value>.2</value> <!-- 513-4,096/hr --> 114 <value>2</value> <!-- 4097-/hr --> 115 </array> 116 117 <!-- Cellular modem related values. Default is 0.--> 118 <item name="modem.controller.sleep">0</item> 119 <item name="modem.controller.idle">0</item> 120 <item name="modem.controller.rx">0</item> 121 <array name="modem.controller.tx"> <!-- Strength 0 to 4 --> 122 <value>0</value> 123 <value>0</value> 124 <value>0</value> 125 <value>0</value> 126 <value>0</value> 127 </array> 128 <item name="modem.controller.voltage">0</item> 129 130 <!-- GPS related values. Default is 0.--> 131 <array name="gps.signalqualitybased"> <!-- Strength 0 to 1 --> 132 <value>0</value> 133 <value>0</value> 134 </array> 135 <item name="gps.voltage">0</item> 136 137</device> 138