aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuarx2k <agent00791@gmail.com>2015-11-23 17:18:26 +0600
committerQuarx2k <agent00791@gmail.com>2015-11-23 17:19:06 +0600
commit4634cdec9545b26b19827762c3a5da79337e46c6 (patch)
tree56e40daca4d894d07bf8acdf88e76fe16d18f093
parent72f5fcd52504ee807b8a988ed08b0edd0d930bad (diff)
Move navigation bar, network types, power profles overlay to device tree
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml30
-rw-r--r--overlay/frameworks/base/core/res/res/xml/power_profile.xml42
2 files changed, 72 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..314b427
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2013, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+ <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
+ autodetected from the Configuration. -->
+ <bool name="config_showNavigationBar">false</bool>
+
+ <!-- Our modem doesn't support this query yet -->
+ <string name="config_radio_access_family">GPRS|EDGE|UMTS|HSDPA|HSUPA|HSPA|HSPAP|GSM|WCDMA</string>
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
new file mode 100644
index 0000000..d09d029
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<device name="Android">
+ <item name="none">0</item>
+ <item name="screen.on">86</item>
+ <item name="screen.full">229</item>
+ <item name="bluetooth.active">30</item>
+ <item name="bluetooth.on">3</item>
+ <item name="wifi.on">2</item>
+ <item name="wifi.active">50</item>
+ <item name="wifi.scan">100</item>
+ <item name="gps.on">70</item>
+ <item name="radio.active">250</item>
+ <item name="radio.scanning">10</item>
+ <array name="radio.on">
+ <value>10</value>
+ <value>8</value>
+ <value>6</value>
+ <value>4</value>
+ <value>2</value>
+ </array>
+ <array name="cpu.speeds">
+ <value>300000</value>
+ <value>384000</value>
+ <value>600000</value>
+ <value>787200</value>
+ <value>998400</value>
+ <value>1094400</value>
+ <value>1190400</value>
+ </array>
+ <item name="cpu.idle">3</item>
+ <item name="cpu.awake">22</item>
+ <array name="cpu.active">
+ <value>72</value>
+ <value>78</value>
+ <value>107</value>
+ <value>120</value>
+ <value>150</value>
+ <value>157</value>
+ <value>164</value>
+ </array>
+ <item name="battery.capacity">2540</item>
+</device>