aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraudahadi <wan.audahadi@gmail.com>2016-11-27 00:28:16 +0800
committeraudahadi <wan.audahadi@gmail.com>2016-11-27 00:28:16 +0800
commit4f42340a92dca246e123945062a88f917d6c55a0 (patch)
treee584caa9aa54180936117c3d7b05549ac14e1752
parent603e2c5df2364834ffa11cfae212f81cb2ff61d0 (diff)
overlay : snatch auto brightness from stock rom
Change-Id: If92bad16cbc21947fd8b0c529cf785ab376198cd
-rwxr-xr-xoverlay/frameworks/base/core/res/res/values/config.xml80
1 files changed, 80 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 100755
index 0000000..8aa64a7
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (c) 2014, The Linux Foundation. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ * Neither the name of The Linux Foundation nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
+-->
+
+<resources>
+
+<integer-array name="config_autoBrightnessLevels">
+ <item>50</item>
+ <item>100</item>
+ <item>200</item>
+ <item>300</item>
+ <item>400</item>
+ <item>500</item>
+ <item>650</item>
+ <item>800</item>
+ <item>1000</item>
+ <item>1500</item>
+ <item>2000</item>
+ <item>3000</item>
+ <item>4000</item>
+ <item>5000</item>
+ <item>7000</item>
+ <item>10000</item>
+ <item>12500</item>
+ <item>15000</item>
+ <item>17500</item>
+ <item>20000</item>
+</integer-array>
+
+<integer-array name="config_autoBrightnessLcdBacklightValues">
+ <item>6</item>
+ <item>27</item>
+ <item>39</item>
+ <item>49</item>
+ <item>56</item>
+ <item>61</item>
+ <item>65</item>
+ <item>71</item>
+ <item>77</item>
+ <item>83</item>
+ <item>107</item>
+ <item>124</item>
+ <item>137</item>
+ <item>143</item>
+ <item>146</item>
+ <item>148</item>
+ <item>150</item>
+ <item>188</item>
+ <item>225</item>
+ <item>263</item>
+ <item>300</item>
+</integer-array>
+
+</resources>