1244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani<?xml version="1.0" encoding="utf-8"?>
2244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani<!--
3244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani**
4244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** Copyright 2009, The Android Open Source Project
5244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani**
6244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** Licensed under the Apache License, Version 2.0 (the "License")
7244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** you may not use this file except in compliance with the License.
8244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** You may obtain a copy of the License at
9244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani**
10244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani**     http://www.apache.org/licenses/LICENSE-2.0
11244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani**
12244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** Unless required by applicable law or agreed to in writing, software
13244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** distributed under the License is distributed on an "AS IS" BASIS,
14244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** See the License for the specific language governing permissions and
16244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani** limitations under the License.
17244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani*/
18244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani-->
19244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani
20244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani<device name="Android">
21e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <!-- Most values are the incremental current used by a feature,
22e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly       in mA (measured at nominal voltage).
23e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly       The default values are deliberately incorrect dummy values.
24e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly       OEM's must measure and provide actual values before
25e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly       shipping a device.
26e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly       Example real-world values are given in comments, but they
27e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly       are totally dependent on the platform and can vary
28e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly       significantly, so should be measured on the shipping platform
29e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly       with a power meter. -->
30244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani  <item name="none">0</item>
31e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="screen.on">0.1</item>  <!-- ~200mA -->
32e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="screen.full">0.1</item>  <!-- ~300mA -->
33e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="bluetooth.active">0.1</item> <!-- Bluetooth data transfer, ~10mA -->
34e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="bluetooth.on">0.1</item>  <!-- Bluetooth on & connectable, but not connected, ~0.1mA -->
35e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="wifi.on">0.1</item>  <!-- ~3mA -->
36e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="wifi.active">0.1</item>  <!-- WIFI data transfer, ~200mA -->
37e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="wifi.scan">0.1</item>  <!-- WIFI network scanning, ~100mA -->
38e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="dsp.audio">0.1</item> <!-- ~10mA -->
39e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="dsp.video">0.1</item> <!-- ~50mA -->
40e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="radio.active">0.1</item> <!-- ~200mA -->
41e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="radio.scanning">0.1</item> <!-- cellular radio scanning for signal, ~10mA -->
42e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <item name="gps.on">0.1</item> <!-- ~50mA -->
43e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani  <!-- Current consumed by the radio at different signal strengths, when paging -->
443718aaabe6259dcf86a3666ff92d16e4be5da555Amith Yamasani  <array name="radio.on"> <!-- Strength 0 to BINS-1 -->
45e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly      <value>0.2</value> <!-- ~2mA -->
46e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly      <value>0.1</value> <!-- ~1mA -->
473718aaabe6259dcf86a3666ff92d16e4be5da555Amith Yamasani  </array>
48e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani  <!-- Different CPU speeds as reported in
49e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani       /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state -->
50e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani  <array name="cpu.speeds">
51e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani      <value>400000</value> <!-- 400 MHz CPU speed -->
52e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani  </array>
53e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <!-- Current when CPU is idle -->
54e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani  <item name="cpu.idle">0.1</item>
55e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <!-- Current at each CPU speed, as per 'cpu.speeds' -->
56e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani  <array name="cpu.active">
57e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly      <value>0.1</value>  <!-- ~100mA -->
58e43530ab571e901f94361078c7c1f970a0bd27f2Amith Yamasani  </array>
59e5ff5434486bfcfa6afbf2728c04a62fd33e2a2bNick Pelly  <!-- This is the battery capacity in mAh (measured at nominal voltage) -->
60bed865932f00eb503c775f03043413e34b0077deAmith Yamasani  <item name="battery.capacity">1000</item>
61244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1Amith Yamasani</device>
62