diff options
Diffstat (limited to 'overlay')
14 files changed, 926 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..1c9380f --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,430 @@ +<?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. +*/ +--> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- 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> <!-- pitch black --> + <item>11</item> <!-- dark indoor --> + <item>25</item> <!-- twilight --> + <item>50</item> <!-- dim indoor --> + <item>100</item> <!-- home --> + <item>200</item> + <item>300</item> <!-- office --> + <item>500</item> <!-- sunrise --> + <item>750</item> + <item>1000</item> <!-- overcast --> + <item>5000</item> + <item>10000</item> <!-- daylight --> + </integer-array> + + <!-- 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>7</item> + <item>12</item> + <item>17</item> + <item>29</item> + <item>35</item> + <item>47</item> + <item>75</item> + <item>114</item> + <item>130</item> + <item>170</item> + <item>195</item> + <item>220</item> + <item>255</item> + </integer-array> + + <!-- Minimum screen brightness allowed by the power manager. --> + <integer name="config_screenBrightnessDim">6</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">1</integer> + + <!-- Default screen brightness setting. + Must be in the range specified by minimum and maximum. --> + <integer name="config_screenBrightnessSettingDefault">53</integer> + <!-- If this is true, the screen will come on when you unplug usb/power/whatever. --> + <bool name="config_unplugTurnsOnScreen">true</bool> + + <!-- Does the notification LED support multiple colors? + Used to decide if the user can change the colors --> + <bool name="config_multiColorNotificationLed">false</bool> + + <!-- Does the battery LED support multiple colors? + Used to decide if the user can change the colors --> + <bool name="config_multiColorBatteryLed">false</bool> + <!--Used to decide if we show pulse settings --> + <bool name="config_ledCanPulse">true</bool> + + <!-- Set to true to add links to Cell Broadcast app from Settings and MMS app. --> + <bool name="config_cellBroadcastAppLinks">true</bool> + <!-- Is the notification LED intrusive? Used to decide if there should be a disable option --> + <bool name="config_intrusiveNotificationLed">true</bool> + + <!-- Is the battery LED intrusive? Used to decide if there should be a disable option --> + <bool name="config_intrusiveBatteryLed">true</bool> + + <!-- Vibrator pattern for feedback about a long screen/key press --> + <integer-array name="config_longPressVibePattern"> + <item>0</item> + <item>1</item> + <item>20</item> + <item>21</item> + </integer-array> + + <!-- Vibrator pattern for feedback about touching a virtual key --> + <integer-array name="config_virtualKeyVibePattern"> + <item>0</item> + <item>10</item> + <item>20</item> + <item>30</item> + </integer-array> + + <!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap --> + <integer-array name="config_keyboardTapVibePattern"> + <item>40</item> + </integer-array> + + <!-- When true use the linux /dev/input/event subsystem to detect the switch changes + on the headphone/microphone jack. When false use the older uevent framework --> + <bool name="config_useDevInputEventForAudioJack">true</bool> + + <!-- Set to true to add links to Cell Broadcast app from Settings and MMS app. --> + <bool name="config_cellBroadcastAppLinks">true</bool> + + <!-- Hardware keys present on the device, stored as a bit field. + This integer should equal the sum of the corresponding value for each + of the following keys present: + 1 - Home + 2 - Back + 4 - Menu + 8 - Assistant (search) + 16 - App switch + 32 - Camera + 64 - Volume rocker + For example, a device with Home, Back and Menu keys would set this + config to 7. --> + <integer name="config_deviceHardwareKeys">83</integer> + + <!-- Hardware keys present on the device with the ability to wake, stored as a bit field. + This integer should equal the sum of the corresponding value for each + of the following keys present: + 1 - Home + 2 - Back + 4 - Menu + 8 - Assistant (search) + 16 - App switch + 32 - Camera + 64 - Volume rocker + For example, a device with Home, Back and Menu keys would set this + config to 7. --> + <integer name="config_deviceHardwareWakeKeys">64</integer> + + <!-- Control the behavior when the user long presses the home button. + 0 - Nothing + 1 - Menu key + 2 - Recent apps view in SystemUI + 3 - Launch assist intent + 4 - Voice Search + 5 - In-app Search + This needs to match the constants in + policy/src/com/android/internal/policy/impl/PhoneWindowManager.java + --> + <integer name="config_longPressOnHomeBehavior">1</integer> + + <!-- Control the behavior when the user long presses the menu button. + 0 - Nothing + 1 - Menu key + 2 - Recent apps view in SystemUI + 3 - Launch assist intent + 4 - Voice Search + 5 - In-app Search + This needs to match the constants in + policy/src/com/android/internal/policy/impl/PhoneWindowManager.java + --> + <integer name="config_longPressOnMenuBehavior">3</integer> + + <!-- Control the behavior when the user double-taps the home button. + 0 - Nothing + 1 - Menu + 2 - Recent apps view in SystemUI + 3 - Launch assist intent + 4 - Voice Search + 5 - In-app Search + This needs to match the constants in + policy/src/com/android/internal/policy/impl/PhoneWindowManager.java + --> + <integer name="config_doubleTapOnHomeBehavior">0</integer> + + <!-- Boolean indicating whether the wifi chipset has dual frequency band support --> + <bool translatable="false" name="config_wifi_dual_band_support">true</bool> + + <!-- Wifi driver supports batched scan --> + <bool translatable="false" name="config_wifi_batched_scan_supported">true</bool> + + <!-- Boolean indicating whether the wifi chipset supports background scanning mechanism. + This mechanism allows the host to remain in suspend state and the dongle to actively + scan and wake the host when a configured SSID is detected by the dongle. This chipset + capability can provide power savings when wifi needs to be always kept on. --> + <bool translatable="false" name="config_wifi_background_scan_support">true</bool> + + <!-- This string array should be overridden by the device to present a list of network + attributes. This is used by the connectivity manager to decide which networks can coexist + based on the hardware --> + <!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx], + [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] --> + <!-- the 5th element "resore-time" indicates the number of milliseconds to delay + before automatically restore the default connection. Set -1 if the connection + does not require auto-restore. --> + <!-- the 6th element indicates boot-time dependency-met value. --> + <string-array translatable="false" name="networkAttributes"> + <item>wifi,1,1,1,-1,true</item> + <item>mobile,0,0,0,-1,true</item> + <item>mobile_mms,2,0,4,60000,true</item> + <item>mobile_supl,3,0,2,60000,true</item> + <item>mobile_dun,4,0,2,60000,true</item> + <item>mobile_hipri,5,0,3,60000,true</item> + <item>mobile_fota,10,0,2,60000,true</item> + <item>mobile_ims,11,0,2,60000,true</item> + <item>mobile_cbs,12,0,2,60000,true</item> + <item>bluetooth,7,7,2,-1,true</item> + <item>ethernet,9,9,9,-1,true</item> + </string-array> + + <!-- This string array should be overridden by the device to present a list of radio + attributes. This is used by the connectivity manager to decide which networks can coexist + based on the hardware --> + <!-- An Array of "[ConnectivityManager connectionType], + [# simultaneous connection types]" --> + <string-array translatable="false" name="radioAttributes"> + <item>"1,1"</item> + <item>"0,1"</item> + <item>"7,1"</item> + </string-array> + + <!-- List of regexpressions describing the interface (if any) that represent tetherable + USB interfaces. If the device doesn't want to support tething over USB this should + be empty. An example would be "usb.*" --> + <string-array translatable="false" name="config_tether_usb_regexs"> + <item>"usb\\d"</item> + <item>"rndis\\d"</item> + </string-array> + + <!-- List of regexpressions describing the interface (if any) that represent tetherable + Wifi interfaces. If the device doesn't want to support tethering over Wifi this + should be empty. An example would be "softap.*" --> + <string-array translatable="false" name="config_tether_wifi_regexs"> + <item>"wlan0"</item> + </string-array> + + <!-- List of regexpressions describing the interface (if any) that represent tetherable + bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this + should be empty. --> + <string-array translatable="false" name="config_tether_bluetooth_regexs"> + <item>"bnep\\d"</item> + <item>"bt-pan"</item> + </string-array> + + <!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering --> + <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or + <!== [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH --> + <integer-array translatable="false" name="config_tether_upstream_types"> + <item>0</item> + <item>1</item> + <item>4</item> + <item>5</item> + <item>7</item> + </integer-array> + + <!-- Boolean indicddating if restoring network selection should be skipped --> + <!-- The restoring is handled by modem if it is true --> + <bool name="skip_restoring_network_selection">true</bool> + + <!-- MMS user agent string --> + <string name="config_mms_user_agent" translatable="false">Android-Mms/2.0</string> + + <!-- MMS user agent prolfile url --> + <string name="config_mms_user_agent_profile_url" translatable="false" + >http://www.google.com/oha/rdf/ua-profile-kila.xml</string> + + <!-- Flag indicating if the speed up audio on mt call code should be executed --> + <bool name="config_speed_up_audio_on_mt_calls">true</bool> + + <!-- If this is true, the screen will come on when you unplug usb/power/whatever. --> + <bool name="config_unplugTurnsOnScreen">true</bool> + + <!-- Whether WiFi display is supported by this device. + There are many prerequisites for this feature to work correctly. + Here are a few of them: + * The WiFi radio must support WiFi P2P. + * The WiFi radio must support concurrent connections to the WiFi display and + to an access point. + * The Audio Flinger audio_policy.conf file must specify a rule for the "r_submix" + remote submix module. This module is used to record and stream system + audio output to the WiFi display encoder in the media server. + * The remote submix module "audio.r_submix.default" must be installed on the device. + * The device must be provisioned with HDCP keys (for protected content). + --> + <bool name="config_enableWifiDisplay">true</bool> + + <!-- Set to true if the wifi display supports compositing content stored + in gralloc protected buffers. For this to be true, there must exist + a protected hardware path for surface flinger to composite and send + protected buffers to the wifi display video encoder. + + If this flag is false, we advise applications not to use protected + buffers (if possible) when presenting content to a wifi display because + the content may be blanked. + + This flag controls whether the {@link Display#FLAG_SUPPORTS_PROTECTED_BUFFERS} + flag is set for wifi displays. + --> + <bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool> + + <!-- Device specific options --> + + <!-- 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> + + <!-- Indicate whether closing the lid causes the device to go to sleep and opening + it causes the device to wake up. + The default is false. --> + <bool name="config_lidControlsSleep">true</bool> + + <!-- Indicate whether to allow the device to suspend when the screen is off + due to the proximity sensor. This resource should only be set to true + if the sensor HAL correctly handles the proximity sensor as a wake-up source. + Otherwise, the device may fail to wake out of suspend reliably. + The default is false. --> + <bool name="config_suspendWhenScreenOffDueToProximity">true</bool> + + <!-- Is the device capable of hot swapping an ICC Card --> + <bool name="config_hotswapCapable">true</bool> + + <!-- Flag indicating emergency calls will always use IMS irrespective of the state of + the IMS connection --> + <bool name="useImsAlwaysForEmergencyCall">false</bool> + + <!-- Flag specifying whether VoLTE & VT is available on device --> + <bool name="config_device_volte_available">true</bool> + + <!-- Flag specifying whether VoLTE should be available for carrier: independent of + carrier provisioning. If false: hard disabled. If true: then depends on carrier + provisioning, availability etc --> + <bool name="config_carrier_volte_available">true</bool> + + <!-- Flag specifying whether VoLTE TTY is supported --> + <bool name="config_carrier_volte_tty_supported">false</bool> + + <!-- Maximum number of supported users --> + <integer name="config_multiuserMaximumUsers">4</integer> + <!-- Whether Multiuser UI should be shown --> + <bool name="config_enableMultiUserUI">true</bool> + + <!-- Config determines whether to update phone object when voice registration + state changes. Voice radio tech change will always trigger an update of + phone object irrespective of this config --> + <bool name="config_switch_phone_on_voice_reg_state_change">false</bool> + <!-- Define Google play service package for FRP--> + <string name="config_persistentDataPackageName" translatable="false">com.google.android.gms</string> + + <!-- Screen brightness used to dim the screen while dozing in a very low power state. + May be less than the minimum allowed brightness setting + that can be set by the user. --> + <integer name="config_screenBrightnessDoze">17</integer> + + <!-- If true, the doze component is not started until after the screen has been + turned off and the screen off animation has been performed. --> + <bool name="config_dozeAfterScreenOff">true</bool> + + <!-- Power Management: Specifies whether to decouple the interactive state of the + device from the display on/off state. + When false, setInteractive(..., true) will be called before the display is turned on + and setInteractive(..., false) will be called after the display is turned off. + This mode provides best compatibility for devices that expect the interactive + state to be tied to the display state. + When true, setInteractive(...) will be called independently of whether the display + is being turned on or off. This mode enables the power manager to reduce + clocks and disable the touch controller while the display is on. + This resource should be set to "true" when a doze component has been specified + to maximize power savings but not all devices support it. + Refer to power.h for details. + --> + <bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool> + + <string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string> + + <string-array name="config_mobile_tcp_buffers"> + <item>lte:2097152,4194304,8388608,262144,524288,1048576</item> + <item>lte_ca:2097152,4194304,8388608,4096,1048576,2097152</item> + <item>umts:4094,87380,1220608,4096,16384,1220608</item> + <item>hspa:4094,87380,1220608,4096,16384,1220608</item> + <item>hsupa:4094,87380,1220608,4096,16384,1220608</item> + <item>hsdpa:4094,87380,1220608,4096,16384,1220608</item> + <item>hspap:4094,87380,1220608,4096,16384,1220608</item> + <item>edge:4093,26280,35040,4096,16384,35040</item> + <item>gprs:4092,8760,11680,4096,8760,11680</item> + <item>evdo:4094,87380,524288,4096,16384,262144</item> + </string-array> + + <!-- Configure wifi tcp buffersizes in the form: + rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max --> + <string name="config_wifi_tcp_buffers" translatable="false">524288,1048576,2097152,262144,524288,1048576</string> + + <!-- Boolean indicating if current platform supports BLE peripheral mode --> + <bool name="config_bluetooth_le_peripheral_mode_supported">true</bool> + + <!-- Operating volatage for bluetooth controller. --> + <integer name="config_bluetooth_operating_voltage_mv">3300</integer> + + <!-- Set this to true to enable the platform's auto-power-save modes like doze and + app standby. These are not enabled by default because they require a standard + cloud-to-device messaging service for apps to interact correctly with the modes + (such as to be able to deliver an instant message to the device even when it is + dozing). This should be enabled if you have such services and expect apps to + correctly use them when installed on your device. Otherwise, keep this disabled + so that applications can still use their own mechanisms. --> + <bool name="config_enableAutoPowerModes">true</bool> + + <!-- Whether device supports double tap to wake --> + <bool name="config_supportDoubleTapWake">true</bool> + + <!-- Enable overlay for all location components. --> + <string name="config_networkLocationProviderPackageName" translatable="false">com.qualcomm.location</string> + <string name="config_fusedLocationProviderPackageName" translatable="false">com.qualcomm.location</string> + + <!-- Enable blur support --> + <bool name="config_ui_blur_enabled">true</bool> +</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..fd59221 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,126 @@ +<?xml version="1.0" encoding="utf-8"?> +<device name="Android"> + <item name="none">0</item> + <item name="screen.on">68</item> + <item name="screen.full">218</item> + <item name="bluetooth.active">17</item> + <item name="bluetooth.on">0.6</item> + <item name="wifi.on">3</item> + <item name="wifi.active">155</item> + <item name="wifi.scan">110</item> + <item name="dsp.audio">37.7</item> + <item name="dsp.video">56</item> + <item name="camera.flashlight">100</item> + <item name="camera.avg">548</item> + <item name="radio.active">133</item> + <item name="radio.scanning">67</item> + <item name="gps.on">60</item> + <array name="radio.on"> + <value>3</value> + <value>2</value> + </array> + <array name="cpu.clusters.cores"> + <value>2</value> + <value>2</value> + </array> + <array name="cpu.speeds.cluster0"> + <value>307200</value> + <value>422400</value> + <value>480000</value> + <value>556800</value> + <value>652800</value> + <value>729600</value> + <value>844800</value> + <value>960000</value> + <value>1036800</value> + <value>1113600</value> + <value>1190400</value> + <value>1228800</value> + <value>1324800</value> + <value>1401600</value> + <value>1478400</value> + <value>1593600</value> + </array> + <array name="cpu.speeds.cluster1"> + <value>307200</value> + <value>403200</value> + <value>480000</value> + <value>556800</value> + <value>652800</value> + <value>729600</value> + <value>806400</value> + <value>883200</value> + <value>940800</value> + <value>1036800</value> + <value>1113600</value> + <value>1190400</value> + <value>1248000</value> + <value>1324800</value> + <value>1401600</value> + <value>1478400</value> + <value>1555200</value> + <value>1632000</value> + <value>1708800</value> + <value>1785600</value> + <value>1824000</value> + <value>1920000</value> + <value>1996800</value> + <value>2073600</value> + <value>2150400</value> + </array> + <array name="cpu.active.cluster0"> + <value>50</value> + <value>59</value> + <value>66</value> + <value>75.5</value> + <value>90.5</value> + <value>101.5</value> + <value>92</value> + <value>142.5</value> + <value>94.5</value> + <value>177</value> + <value>196</value> + <value>207</value> + <value>242</value> + <value>272</value> + <value>306</value> + <value>356</value> + </array> + <array name="cpu.active.cluster1"> + <value>53</value> + <value>63</value> + <value>70</value> + <value>77</value> + <value>92.5</value> + <value>104</value> + <value>118.5</value> + <value>110</value> + <value>113</value> + <value>156</value> + <value>176</value> + <value>188</value> + <value>199</value> + <value>125</value> + <value>243</value> + <value>151</value> + <value>255</value> + <value>315</value> + <value>349</value> + <value>383</value> + <value>410</value> + <value>458</value> + <value>515</value> + <value>559</value> + <value>655</value> + </array> + <item name="cpu.idle">4.1</item> + <item name="cpu.awake">16</item> + <item name="battery.capacity">3500</item> + <array name="wifi.batchedscan"> + <value>.0002</value> + <value>.002</value> + <value>.02</value> + <value>.2</value> + <value>2</value> + </array> +</device> diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml new file mode 100644 index 0000000..764d30e --- /dev/null +++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/** + * Copyright (c) 2012, 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> + <!-- 30 seconds for default screen timeout --> + <integer name="def_screen_off_timeout">240000</integer> + <!-- Set the automatic brightness mode on by default --> + <bool name="def_screen_brightness_automatic_mode">true</bool> + <!-- Default screen brightness, from 0 to 255. 87 is 34%. --> + <integer name="def_screen_brightness">53</integer> +</resources> diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml new file mode 100644 index 0000000..55de983 --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml @@ -0,0 +1,49 @@ +<?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> + + <!-- Control whether status bar should distinguish HSPA data icon from UMTS + data icon on devices --> + <bool name="config_hspa_data_distinguishable">true</bool> + + <!-- Should "4G" be shown instead of "LTE" when the network is NETWORK_TYPE_LTE? --> + <bool name="config_show4GForLTE">true</bool> + + <!-- Doze: should the pickup sensor be used as a pulse signal? --> + <bool name="doze_pulse_on_pick_up">true</bool> + <!-- Doze: does this device support STATE_DOZE and STATE_DOZE_SUSPEND? --> + <bool name="doze_display_state_supported">true</bool> + + <!-- Doze: when to pulse after a buzzworthy notification arrives --> + <string name="doze_pulse_schedule" translatable="false">10s,30s,60s,180s</string> + + <!-- Doze: check proximity sensor before pulsing from intent? --> + <bool name="doze_proximity_check_before_pulse_intent">true</bool> + + <!-- Doze: pulse parameter - how long does it take to fade in after an intent? --> + <integer name="doze_pulse_duration_in_intent">0</integer> + + <!-- Doze: pulse parameter - delay to wait for the screen to wake up after an intent --> + <integer name="doze_pulse_delay_in_intent">0</integer> + +</resources> + diff --git a/overlay/frameworks/opt/telephony/resources/res/values/config.xml b/overlay/frameworks/opt/telephony/resources/res/values/config.xml new file mode 100644 index 0000000..688da80 --- /dev/null +++ b/overlay/frameworks/opt/telephony/resources/res/values/config.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (c) 2015, 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> + <!--The .jar file name which has the extended implementation + of telephony base classes.--> + <string name="telephony_plugin_jar_name" translatable="false">qti-telephony-common.jar</string> + <!--Fully qualified class name of telephony extended plugin.--> + <string name="telephony_plugin_class_name" translatable="false">com.qti.internal.telephony.QtiTelephonyPlugin</string> +</resources> diff --git a/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml b/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml new file mode 100644 index 0000000..1b3fad6 --- /dev/null +++ b/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='utf-8' standalone='yes' ?> +<carrier_config_list> + <carrier_config> + <!-- Flag indicating if the phone is a world phone --> + <boolean name="world_phone_bool" value="true" /> + <!-- Flag indicating if dtmf tone type is enabled --> + <bool name="dtmf_type_enabled_bool">true</bool> + <!-- Show cdma auto network mode in (global) roaming --> + <boolean name="show_cdma_choices_bool" value="true" /> + </carrier_config> +</carrier_config_list> diff --git a/overlay/packages/apps/Dialer/res/values/config.xml b/overlay/packages/apps/Dialer/res/values/config.xml new file mode 100644 index 0000000..da46c31 --- /dev/null +++ b/overlay/packages/apps/Dialer/res/values/config.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (C) 2016 The CyanogenMod 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> + <bool name="call_recording_enabled">true</bool> + <integer name="call_recording_audio_source">4</integer> +</resources> diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml new file mode 100644 index 0000000..88ade9f --- /dev/null +++ b/overlay/packages/apps/Settings/res/values/config.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The CyanogenMod 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> + <bool name="config_show_volumeRockerWake">true</bool> + + <!-- Defines the location of the fingerprint sensor on the device + 0 = back + 1 = front + 2 = left side + 3 = right side + --> + <integer name="config_fingerprintSensorLocation">1</integer> +</resources> diff --git a/overlay/packages/apps/Settings/res/values/dimens.xml b/overlay/packages/apps/Settings/res/values/dimens.xml new file mode 100644 index 0000000..3018619 --- /dev/null +++ b/overlay/packages/apps/Settings/res/values/dimens.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- 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. +--> + +<resources> + <dimen name="fingerprint_dot_radius">5dp</dimen> + <item name="fingerprint_sensor_location_fraction_y" type="fraction">94.68%</item> +</resources> diff --git a/overlay/packages/apps/Snap/res/values/config.xml b/overlay/packages/apps/Snap/res/values/config.xml new file mode 100644 index 0000000..b05f131 --- /dev/null +++ b/overlay/packages/apps/Snap/res/values/config.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + 2015 The CyanogenMod 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. +--> + +<!-- Camera app resources that may need to be customized + for different hardware or product builds. --> +<resources> + <!-- This value may be tweaked to save memory on low RAM devices. The value + is the percentage of camera preview height/width to scale to. --> + <integer name="panorama_frame_size_reduction">100</integer> + + <!-- Restart preview for back camera onPictureTaken --> + <bool name="back_camera_restart_preview_onPictureTaken">true</bool> +</resources> diff --git a/overlay/packages/apps/Snap/res/values/qcomstrings.xml b/overlay/packages/apps/Snap/res/values/qcomstrings.xml new file mode 100644 index 0000000..513b49e --- /dev/null +++ b/overlay/packages/apps/Snap/res/values/qcomstrings.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. + Copyright (C) 2014-2016 The CyanogenMod Project + + Not a Contribution. + + Copyright (C) 2007 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> + <!-- HDR needs 1x frame --> + <string name="pref_camera_hdr_need_1x_default" translatable="false">false</string> + <string name="pref_video_quality_default" translatable="false">1920x1080</string> +</resources> diff --git a/overlay/packages/services/Telecomm/res/values/config.xml b/overlay/packages/services/Telecomm/res/values/config.xml new file mode 100644 index 0000000..f9b8d7d --- /dev/null +++ b/overlay/packages/services/Telecomm/res/values/config.xml @@ -0,0 +1,39 @@ +<?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 (subject to the limitations in the + disclaimer below) 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. + + NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 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. +--> +<!-- Telecomm app resources that may need to be customized + for different hardware or product builds. --> +<resources> + <!-- Flag indicating if the tty is enabled --> + <bool name="tty_enabled">true</bool> + <!-- Flag indicating if the speed up audio on mt call code should be executed + <bool name="config_speed_up_audio_on_mt_calls">true</bool> --> +</resources> diff --git a/overlay/packages/services/Telephony/res/values/config.xml b/overlay/packages/services/Telephony/res/values/config.xml new file mode 100644 index 0000000..88e35e7 --- /dev/null +++ b/overlay/packages/services/Telephony/res/values/config.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Copyright (c) 2013, The Linux Foundation. All rights reserved. + + Not a Contribution, Apache license notifications and license are retained + for attribution purposes only. + + 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. --> + +<!-- Phone app resources that may need to be customized + for different hardware or product builds. --> +<resources> + <!-- Determine whether we should show the "listen for instructions" screen after + successfully placing the OTA call --> + <integer name="OtaShowListeningScreen">1</integer> + + <!-- Flag indicating if the phone is a world phone --> + <bool name="world_phone">true</bool> + + <!-- Flag indicating if dtmf tone type is enabled --> + <bool name="dtmf_type_enabled">true</bool> + + <!-- Determine whether calls to mute the microphone in PhoneUtils + are routed through the android.media.AudioManager class (true) or through + the com.android.internal.telephony.Phone interface (false). --> + <bool name="send_mic_mute_to_AudioManager">true</bool> + + <!-- If this is true, the SIM card (through Customer Service Profile EF file) will be + able to prevent manual operator selection. If false, this SIM setting will be + ignored and manual operator selection will always be available. See + CPHS4_2.WW6, CPHS B.4.7.1 for more information --> + <bool name="csp_enabled">true</bool> + + <!-- Show Preferred Network Type options in No SIM case --> + <bool name="config_no_sim_display_network_modes">true</bool> + + <!-- Flag indicating if hac is enabled --> + <bool name="hac_enabled">true</bool> + + <!-- Show enabled lte option for lte device --> + <bool name="config_enabled_lte" translatable="false">true</bool> + + <!-- Show APN Settings for some CDMA carriers --> + <bool name="config_show_apn_setting_cdma">true</bool> + + <!-- Allows the telephony HFA logic to run even if we're not in setup wizard. --> + <bool name="config_allow_hfa_outside_of_setup_wizard">false</bool> +</resources> diff --git a/overlay/vendor/cmsdk/cm/res/res/values/config.xml b/overlay/vendor/cmsdk/cm/res/res/values/config.xml new file mode 100644 index 0000000..99747e3 --- /dev/null +++ b/overlay/vendor/cmsdk/cm/res/res/values/config.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015-2016 The CyanogenMod 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> + + <!-- Default value for proximity check on screen wake + NOTE ! - Enable for devices that have a fast response proximity sensor (ideally < 300ms)--> + <bool name="config_proximityCheckOnWake">true</bool> + <integer name="config_proximityCheckTimeout">100</integer> + <bool name="config_proximityCheckOnWakeEnabledByDefault">true</bool> + + + <!-- Is the notification LED brightness adjustable ? Used to decide if the user can set LED brightness --> + <bool name="config_adjustableNotificationLedBrightness">true</bool> + + <!-- Color temperature settings for LiveDisplay. These were obtained by + measuring the display at various color balance levels. --> + <integer name="config_minColorTemperature">2000</integer> + <integer name="config_maxColorTemperature">10000</integer> + + <!-- Corresponds to color balance level of zero, this is the native + display temperature --> + <integer name="config_dayColorTemperature">7000</integer> + <integer name="config_nightColorTemperature">5000</integer> + <!-- For high brightness mode --> + <integer name="config_outdoorAmbientLux">20000</integer> +</resources> |