Update overlay
This commit is contained in:
parent
3c8f80f6b5
commit
04a2d26ce7
|
@ -1,5 +1,5 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.xiaomi.redminote6pro.systemui"
|
||||
package="me.phh.treble.overlay.oneplus.op6t.systemui"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="com.android.systemui"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.oneplus.op6"
|
||||
package="me.phh.treble.overlay.oneplus.op6t"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="android"
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2017, 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.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<!-- Height of the status bar -->
|
||||
<dimen name="status_bar_height">80px</dimen>
|
||||
</resources>
|
|
@ -1,70 +1,121 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="config_autoBrightnessResetAmbientLuxAfterWarmUp">true</bool>
|
||||
<!-- Copyright (C) 2009 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. Do not translate. -->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
|
||||
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
||||
<bool name="config_automatic_brightness_available">true</bool>
|
||||
<integer name="config_autoBrightnessAmbientLightHorizon">10000</integer>
|
||||
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
|
||||
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
|
||||
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
|
||||
<integer name="config_autoBrightnessLightSensorRate">250</integer>
|
||||
<integer name="config_brightness_ramp_rate_fast">180</integer>
|
||||
<integer name="config_brightness_ramp_rate_slow">60</integer>
|
||||
<integer-array name="config_autoBrightnessLcdBacklightValues" />
|
||||
|
||||
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
|
||||
The N entries of this array define N 1 zones as follows:
|
||||
|
||||
Zone 0: 0 <= LUX < array[0]
|
||||
Zone 1: array[0] <= LUX < array[1]
|
||||
...
|
||||
Zone N: array[N - 1] <= LUX < array[N]
|
||||
Zone N + 1 array[N] <= LUX < infinity
|
||||
|
||||
Must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessLevels">
|
||||
<item>1</item>
|
||||
<item>4</item>
|
||||
<item>12</item>
|
||||
<item>20</item>
|
||||
<item>40</item>
|
||||
<item>65</item>
|
||||
<item>95</item>
|
||||
<item>140</item>
|
||||
<item>200</item>
|
||||
<item>350</item>
|
||||
<item>650</item>
|
||||
<item>1300</item>
|
||||
<item>2000</item>
|
||||
<item>45</item>
|
||||
<item>1025</item>
|
||||
<item>1480</item>
|
||||
<item>2250</item>
|
||||
<item>3300</item>
|
||||
<item>6000</item>
|
||||
<item>10000</item>
|
||||
</integer-array>
|
||||
|
||||
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
|
||||
<bool name="config_sustainedPerformanceModeSupported">true</bool>
|
||||
<bool name="config_supportAudioSourceUnprocessed">true</bool>
|
||||
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
|
||||
<integer name="config_overrideHasPermanentMenuKey">2</integer>
|
||||
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
|
||||
<bool name="config_dozeAfterScreenOff">true</bool>
|
||||
<bool name="config_showNavigationBar">true</bool>
|
||||
<bool name="skip_restoring_network_selection">true</bool>
|
||||
<integer name="config_bluetooth_operating_voltage_mv">3300</integer>
|
||||
<bool name="config_bluetooth_hfp_inband_ringing_support">true</bool>
|
||||
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
|
||||
<integer name="config_screenBrightnessDark">2</integer>
|
||||
<!-- Array of output values for LCD backlight corresponding to the LUX values
|
||||
in the config_autoBrightnessLevels array. This array should have size one greater
|
||||
than the size of the config_autoBrightnessLevels array.
|
||||
This must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessLcdBacklightValues">
|
||||
<item>24</item>
|
||||
<item>40</item>
|
||||
<item>80</item>
|
||||
<item>184</item>
|
||||
<item>312</item>
|
||||
<item>512</item>
|
||||
<item>880</item>
|
||||
<item>1023</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Screen brightness used to dim the screen when the user activity
|
||||
timeout expires. May be less than the minimum allowed brightness setting
|
||||
that can be set by the user. -->
|
||||
<integer name="config_screenBrightnessDim">6</integer>
|
||||
<bool name="config_allowAutoBrightnessWhileDozing">true</bool>
|
||||
<integer name="config_screenBrightnessDoze">17</integer>
|
||||
|
||||
<!-- Default screen brightness setting.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<integer name="config_screenBrightnessSettingDefault">184</integer>
|
||||
|
||||
<!-- Minimum screen brightness setting allowed by the power manager.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<integer name="config_screenBrightnessSettingMinimum">2</integer>
|
||||
<bool name="config_hotswapCapable">true</bool>
|
||||
|
||||
<integer-array name="config_longPressVibePattern">
|
||||
<item>0</item>
|
||||
<item>10</item>
|
||||
</integer-array>
|
||||
<integer-array name="config_virtualKeyVibePattern">
|
||||
<item>0</item>
|
||||
<item>10</item>
|
||||
</integer-array>
|
||||
<integer-array name="config_keyboardTapVibePattern">
|
||||
<item>10</item>
|
||||
</integer-array>
|
||||
<bool name="config_lidControlsSleep">true</bool>
|
||||
<bool name="config_wifi_batched_scan_supported">true</bool>
|
||||
<bool name="config_wifi_background_scan_support">true</bool>
|
||||
<bool name="config_wifi_dual_band_support">true</bool>
|
||||
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
|
||||
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
||||
when adapting to brighter or darker environments. This parameter controls how quickly
|
||||
brightness changes occur in response to an observed change in light level that exceeds the
|
||||
hysteresis threshold. -->
|
||||
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
|
||||
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
|
||||
|
||||
<!-- The maximum range of gamma adjustment possible using the screen
|
||||
auto-brightness adjustment setting. -->
|
||||
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300%</fraction>
|
||||
|
||||
<!-- Period of time in which to consider light samples in milliseconds. -->
|
||||
<integer name="config_autoBrightnessAmbientLightHorizon">10000</integer>
|
||||
|
||||
<!-- Amount of time it takes for the light sensor to warm up in milliseconds.
|
||||
For this time after the screen turns on, the Power Manager
|
||||
will not debounce light sensor readings -->
|
||||
<integer name="config_lightSensorWarmupTime">200</integer>
|
||||
|
||||
<!-- The bounding path of the cutout region of the main built-in display.
|
||||
Must either be empty if there is no cutout region, or a string that is parsable by
|
||||
{@link android.util.PathParser}.
|
||||
|
||||
The path is assumed to be specified in display coordinates with pixel units and in
|
||||
the display's native orientation, with the origin of the coordinate system at the
|
||||
center top of the display.
|
||||
|
||||
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
|
||||
appended after the path string to interpret coordinates in dp instead of px units.
|
||||
Note that a physical cutout should be configured in pixels for the best results.
|
||||
-->
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
||||
M 0,0
|
||||
L -183, 0
|
||||
A 24.0, 24.0, 0, 0, 1, -159.0, 22.0
|
||||
A 64.0, 64.0, 0, 0, 0, -95.0, 80.0
|
||||
L 95.0, 80.0 A 64.0, 64.0, 0, 0, 0, 159.0, 22.0
|
||||
A 24.0, 24.0, 0, 0, 1, 183.0, 0
|
||||
Z
|
||||
</string>
|
||||
|
||||
<!-- Height of the status bar -->
|
||||
<dimen name="status_bar_height_portrait">80px</dimen>
|
||||
<dimen name="status_bar_height_landscape">80px</dimen>
|
||||
|
||||
<!-- Screen off delay -->
|
||||
<integer name="config_screen_off_delay">1800</integer>
|
||||
|
||||
<!--<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
|
||||
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
||||
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>-->
|
||||
</resources>
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2017, 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.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<!-- Height of the status bar in portrait -->
|
||||
<dimen name="status_bar_height_portrait">80px</dimen>
|
||||
<!-- Height of the status bar -->
|
||||
<dimen name="status_bar_height">80px</dimen>
|
||||
<!-- Height of the status bar in landscape -->
|
||||
<dimen name="status_bar_height_landscape">24dp</dimen>
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -160,0 L -160,80 L 160,80 L 160,0 Z</string>
|
||||
</resources>
|
130
OnePlus/OP6T/res/xml/power_profile.xml
Normal file
130
OnePlus/OP6T/res/xml/power_profile.xml
Normal file
|
@ -0,0 +1,130 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<device name="Android">
|
||||
<item name="none">0</item>
|
||||
<item name="screen.on">70</item>
|
||||
<item name="screen.full">205</item>
|
||||
<item name="bluetooth.active">36</item>
|
||||
<item name="bluetooth.on">2</item>
|
||||
<item name="wifi.on">8</item>
|
||||
<item name="wifi.active">160</item>
|
||||
<item name="wifi.scan">166</item>
|
||||
<item name="dsp.audio">37</item>
|
||||
<item name="dsp.video">64</item>
|
||||
<item name="camera.flashlight">118</item>
|
||||
<item name="camera.avg">547</item>
|
||||
<item name="radio.active">103</item>
|
||||
<item name="radio.scanning">1</item>
|
||||
<item name="gps.on">80</item>
|
||||
<array name="radio.on">
|
||||
<value>3</value>
|
||||
<value>2</value>
|
||||
</array>
|
||||
<array name="cpu.clusters.cores">
|
||||
<value>4</value>
|
||||
<value>4</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster0">
|
||||
<value>300000</value>
|
||||
<value>403200</value>
|
||||
<value>480000</value>
|
||||
<value>576000</value>
|
||||
<value>652800</value>
|
||||
<value>748800</value>
|
||||
<value>825600</value>
|
||||
<value>902400</value>
|
||||
<value>979200</value>
|
||||
<value>1056000</value>
|
||||
<value>1132800</value>
|
||||
<value>1228800</value>
|
||||
<value>1324800</value>
|
||||
<value>1420800</value>
|
||||
<value>1516800</value>
|
||||
<value>1612800</value>
|
||||
<value>1689600</value>
|
||||
<value>1766400</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster1">
|
||||
<value>825600</value>
|
||||
<value>902400</value>
|
||||
<value>979200</value>
|
||||
<value>1056000</value>
|
||||
<value>1132800</value>
|
||||
<value>1209600</value>
|
||||
<value>1286400</value>
|
||||
<value>1363200</value>
|
||||
<value>1459200</value>
|
||||
<value>1536000</value>
|
||||
<value>1612800</value>
|
||||
<value>1689600</value>
|
||||
<value>1766400</value>
|
||||
<value>1843200</value>
|
||||
<value>1920000</value>
|
||||
<value>1996800</value>
|
||||
<value>2092800</value>
|
||||
<value>2169600</value>
|
||||
<value>2246400</value>
|
||||
<value>2323200</value>
|
||||
<value>2400000</value>
|
||||
<value>2476800</value>
|
||||
<value>2553600</value>
|
||||
<value>2649600</value>
|
||||
<value>2803200</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster0">
|
||||
<value>23</value>
|
||||
<value>24.2</value>
|
||||
<value>25.4</value>
|
||||
<value>26.6</value>
|
||||
<value>27.6</value>
|
||||
<value>29.1</value>
|
||||
<value>30.2</value>
|
||||
<value>31.3</value>
|
||||
<value>32.5</value>
|
||||
<value>33.9</value>
|
||||
<value>35.7</value>
|
||||
<value>37.1</value>
|
||||
<value>39.9</value>
|
||||
<value>43.1</value>
|
||||
<value>46.1</value>
|
||||
<value>49.9</value>
|
||||
<value>53.5</value>
|
||||
<value>57.6</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster1">
|
||||
<value>63.7</value>
|
||||
<value>69.1</value>
|
||||
<value>74.9</value>
|
||||
<value>80.6</value>
|
||||
<value>86.3</value>
|
||||
<value>90.5</value>
|
||||
<value>96</value>
|
||||
<value>103</value>
|
||||
<value>112.9</value>
|
||||
<value>119.7</value>
|
||||
<value>128.2</value>
|
||||
<value>134.3</value>
|
||||
<value>145.5</value>
|
||||
<value>153.1</value>
|
||||
<value>185.8</value>
|
||||
<value>196.9</value>
|
||||
<value>224.5</value>
|
||||
<value>233.3</value>
|
||||
<value>240.7</value>
|
||||
<value>271.7</value>
|
||||
<value>287.3</value>
|
||||
<value>313.4</value>
|
||||
<value>337.7</value>
|
||||
<value>400.8</value>
|
||||
<value>469.3</value>
|
||||
</array>
|
||||
<item name="cpu.idle">5</item>
|
||||
<item name="cpu.awake">8</item>
|
||||
<item name="battery.capacity">3300</item>
|
||||
<array name="wifi.batchedscan">
|
||||
<value>.0002</value>
|
||||
<value>.002</value>
|
||||
<value>.02</value>
|
||||
<value>.2</value>
|
||||
<value>2</value>
|
||||
</array>
|
||||
</device>
|
0
tests/tests.sh
Normal file → Executable file
0
tests/tests.sh
Normal file → Executable file
Loading…
Reference in a new issue