summaryrefslogtreecommitdiffstats
path: root/packages/SettingsProvider/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2017-02-111-3/+0
|\ | | | | | | https://github.com/LineageOS/android_frameworks_base into replicant-6.0
| * Revert "Add overlay option for Settings.System.ACCELEROMETER_ROTATION_ANGLES"Zhao Wei Liew2017-01-241-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | The default of 11 (90, 270 and 360 degrees) is perfectly fine. Thus, this overlay is pretty useless. Only 1 device currently uses this (and not due to any major issue), so we aren't losing anything by removing this overlay. This reverts commit 936c4bfa7c64ce4403d519d0f0df72523da1ec21. Change-Id: I7eb81d00af1672638689daddd1e78c7e12b21c4d
* | remove analytics supportDaniel Micay2016-12-161-2/+0
| |
* | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-12-122-14/+68
|\ \ | |/ | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * SettingsProvider: fix data_enabled default lookupRoman Birg2016-07-121-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We shouldn't set the MOBILE_DATA + phoneId keys because it will cause collisions with other parts of the system that actually query MOBILE_DATA + subId - leading to incorrect defaults. TelephonyManager.getIntWithSubId() actually falls back to just MOBILE_DATA for a specific sub id query, so we do not need to touch these values, since it applies the same default to all sub ids anyways. Ticket: CYNGNOS-3171 Change-Id: I38405000b3d641029080fb630eae4d128bd44719 Signed-off-by: Roman Birg <roman@cyngn.com>
| * CMSettings : Move force_show_navbar to globalDanesh M2016-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | Keep feature inline with 12.1, only allow owner to control the feature and mirror across users. Also add additional checks for moved settings. OPO-696 Change-Id: I81c942ab106fead12020107b99c0795a5b9aac98
| * SettingsProvider : load region-specific settingsRohit Yengisetty2016-04-211-4/+48
| | | | | | | | | | | | | | | | load region specific mobile data and data roaming for EU and LATAM region for feijao. Issue-id: FEIJ-23 Change-Id: Icd250f6d2fd3978d4c34a88405e53d09e479b207
| * LockPatternUtils: Use the actual user id to set pattern sizeScott Mertz2016-04-141-1/+1
| | | | | | | | | | Ticket: CYNGNOS-2462 Change-Id: Ia68e26ec2dfc23317135d933bc25204c1380bb02
| * SettingsProvider: move SYSTEM_PROFILES_ENABLED to CMSettingsRoman Birg2016-04-141-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When upgrading from 12.1 -> 13.0, we end up losing this setting because we forward all calls for that setting directly to the CMSettings table, which would not have a default set. Most of the code assumes profiles are on by default. So if the user had profiles disabled (and potentially in a state they were unaware of), the upgrade could cause some pains as it would ignore their old setting. Ticket: OPO-620 Change-Id: I2b645dc9422fe15daf62d89e77b3e1429c668c04 Signed-off-by: Roman Birg <roman@cyngn.com>
| * SettingsProvider: fix build for volume adjust sound to be overlayedChristopher R. Palmer2016-04-061-1/+1
| | | | | | | | Change-Id: I76c5b55dad37fc2f52221c3a63de892be5b93f85
| * SettingsProvider: Allow default volume adjust sound to be overlayed.Ankit Gupta2016-04-061-0/+2
| | | | | | | | | | Issue-id: YAM-145 Change-Id: I06394c4fcfca5978b50a4186935ac6bda7b94b16
* | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-03-183-1/+33
|\ \ | |/ | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-112-1/+30
| |\ | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 22 Change-Id: I0d31899b234156a91accb61e0a7fb3d8d16d5062
| | * Merge "Add setting for declaring disabled bluetooth profiles." into cw-e-devBryce Lee2015-12-171-1/+11
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | am: cf91b45c05 * commit 'cf91b45c05358c81ddaccf3ddd4b1ea6d5295faa': Add setting for declaring disabled bluetooth profiles.
| | | * Add setting for declaring disabled bluetooth profiles.Bryce Lee2015-12-161-1/+11
| | | | | | | | | | | | | | | | | | | | Bug: 25900899 Change-Id: I420a7c590d72ba10f3e466d15dccfdbb520e810a
| | * | Don't back up / restore EAP network definitionsChristopher Tate2015-12-101-0/+19
| | |/ | | | | | | | | | | | | | | | | | | | | | Bug 25725016 Cherrypick from AOSP. Change-Id: I6aa11a76e7724a0aaad05a1aa074afa2c429370c
| * | SettingsProvider: allow ambient display/doze mode to be overlayedAnkit Gupta2016-03-041-0/+2
| | | | | | | | | | | | | | | | | | Issue-id: YAM-140 Change-Id: I3c296c645281509b7860e54d4e32790881d30ed6 (cherry picked from commit 3c1279528e3a6017ff42f2d7aa436be88c9022fa)
| * | lockscreen: Add option for showing unlock screen directly (1/3)eray orçunus2016-02-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Option appears on PIN,pattern and password methods * User should press back button to see swipe-up-to-unlock screen. * Instantly hides keyguard if Smart Lock has unlocked phone. CYNGNOS-1873 Change-Id: I2ceeed348d7e61632b8344f35431f30cba62ca4f Signed-off-by: eray orçunus <erayorcunus@gmail.com>
* | | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-02-061-4/+8
|\ \ \ | |/ / | | | | | | | | | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * | Revert "SettingsProvider : Make WIFI_IDLE_MS into an overlay"Danesh M2016-02-051-17/+1
| | | | | | | | | | | | | | | | | | This reverts commit faf68427a20c930acf5e2a1fda892eeeb21de43a. Change-Id: Ia26899db93d22975147a29b99ff43b0ea0696d68
| * | SettingsProvider : Make WIFI_IDLE_MS into an overlayDanesh M2016-02-051-1/+17
| | | | | | | | | | | | Change-Id: I327696a8cfb2a25ed7ef6adf65d36981253e2866
| * | Default time format is hard coded to 24wangjing2016-02-031-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The items "def_time/date_format" will be hard coded for Default. So should set "def_time/date_format" to be null in order to bring back the AOSP implementation of picking the date format based on the locale for Default OPO-431 Change-Id: Ia5d74662782bcc00a8173fd49604f187a116468e
* | | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-01-282-2/+26
|\ \ \ | |/ / | | | | | | | | | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * | SettingsProvider : Don't replay aosp defaults every bootDanesh M2016-01-261-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | CYNGNOS-1619 Ensure aosp defaults are only applied ONCE Change-Id: I8a0d1f11b006e3e8f7985f204d50d9af9a657ba2
| * | Support alert type profile default:Vibrator & Ringtone for settings.kaiyiz2016-01-221-1/+5
| | | | | | | | | | | | Change-Id: I9e2c1efdfabc0ffa0e9cf44cee31781f15e8894a
* | | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-01-201-0/+51
|\ \ \ | |/ / | | | | | | | | | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * | SettingsProvider: Force aosp upgrade path from 12.1.Adnan Begovic2016-01-141-0/+51
| | | | | | | | | | | | | | | | | | TICKET: CYNGNOS-1596 Change-Id: I6168befe8826b0476d9a357b95c730d143b8b815
* | | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-01-141-10/+49
|\ \ \ | |/ / | | | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * | Regional: Customize features for regional packagekaiyiz2016-01-041-10/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Customize default Date&Time display format. -Customize mock and Dock on or off for carrier. -Customize accessibility on or off for carrier. -Customize default input method. -Customize default enable data roaming or not. -Customize default enable mobile data or not. -Customize default network. TICKET: CYNGNOS-1473 Change-Id: I3a74d0113d6b730c4d7935aaa2da307ebe500566
* | | Merge remote-tracking branch 'cyanogenmod/cm-13.0' into replicant-6.0Wolfgang Wiedmeyer2015-12-262-27/+180
|\ \ \ | |/ /
| * | SettingsProvider: add mechanism to return migrated keysRoman Birg2015-12-212-27/+180
| | | | | | | | | | | | | | | Change-Id: Ic3989cbb6dfc98ac272d6c98610ce9ec42cb405b Signed-off-by: Roman Birg <roman@cyngn.com>
* | | Merge remote-tracking branch 'github/cm-13.0' into replicant-6.0Wolfgang Wiedmeyer2015-12-211-1/+1
|\ \ \ | |/ /
| * | Port over linked volumes from 12.1Adnan Begovic2015-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement linked volumes and add upgrade path. Change-Id: Ibbeff656fcaaa4a2ff79de530b48b216df271b21 frameworks: read VOLUME_LINK_NOTIFICATION from proper table Change-Id: I15e9caa18f307a51a732c7a59013bbbb234a7477 Signed-off-by: Roman Birg <roman@cyngn.com> (cherry picked from commit 1b7cfa1716017e0d03c9693428c21d8e11c5dc0a) fix Notification volume slider linking Change-Id: I0f74485f5c8c2aa7698cf9ba1c60c2c8c967798d Signed-off-by: Roman Birg <roman@cyngn.com> Improve SeekBarVolumizer behavior with unlinked streams - Fix notification stream enabling at 0 volume - Fix the notification slider being set when moving ringer stream Change-Id: If3705cc833c07f726f8ad7b1ec79a42e86e8ff22 Signed-off-by: Roman Birg <roman@cyngn.com> base: Fix notification sounds for wifi only devices The linking of voice & notification doesn't take into account the fact that a device may not actually have voice capabilities. Whenever checking whether or not to link notification and ring volumes, also verify that the device really is voice capable. Change-Id: Iae49302d3b5934d36b182e289e4975f5dd85b834 frameworks: fix setting up linked notification stream on boot updateStreamVolumeAlias() was previously responsible for checking the linked notification variable and mapping the notification stream, but the setting to read whether the notifications were linked was read in after that method had run which was responsible for linking them. Extract the logic and re-run it again after reading the persisted settings. Change-Id: Ia62bf3ca072def54ec6ebf4f9e865d9c913e3bc4 Signed-off-by: Roman Birg <roman@cyngn.com> fixup volume stream linking - Make the SeekBarVolumizer move notification and ringer streams when linked and moving ringer. - Fix initial state causing volume stream seek bar to be set to 0 initially - Clean up AudioService initialization code Change-Id: Ia11a7a392e5eb3ef862147843e365d5f20eaf90a Signed-off-by: Roman Birg <roman@cyngn.com>
* | | SettingsProvider: Correctly set animations settings and animator durationPaul Kocialkowski2015-12-181-7/+6
|/ / | | | | | | | | Change-Id: Idb53fc16696e4b3bd4aee7db3d574c6b946fa4c8 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* | Forward port CM Screen Security settings (1/2)Michael Bestas2015-12-111-1/+4
| | | | | | | | | | | | | | * Variable size pattern lockscreen * Toggle dots/error pattern visibility Change-Id: Ie109e82c1fb2fd96b07e977e1cd76ae3acb865ff
* | SettingsProvider: Don't drop tables if we're matching CM DB version.Adnan Begovic2015-11-231-2/+3
| | | | | | | | Change-Id: I8a4ff7a19f440bd088b80d76746bc97c6a5b283d
* | SettingsProvider: Provide upgrade path from cm-11 -> cm-13.Adnan Begovic2015-11-231-2/+168
| | | | | | | | Change-Id: I392dce3ae4998449c130c0f3d0aecb338311be01
* | SettingsBackupAgent : Filter out cm settings on restorationDanesh M2015-11-171-0/+33
| | | | | | | | Change-Id: If3281be2676a0cae0b534cb004a9a152925ea370
* | Merge branch 'LA.BF64.1.2.2_rb4.7' of ↵Steve Kondik2015-11-161-2/+10
|\ \ | | | | | | | | | | | | | | | git://codeaurora.org/platform/frameworks/base into cm-13.0 Change-Id: I008f052e4e27b44457c8343d20f6e1ba943c8e1f
| * | Support for configuring captive portal detection enabled by userLi Wei2015-10-221-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | 1. Add an item into default configuration so that user can overlay it 2. Enable captive portal detection by default CRs-Fixed: 822072 Change-Id: I10c58a58c5b79dd2d7ea081a71f3752dd9928868
* | | fw: Move Global settings to CMSettingsd34d2015-11-121-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves all Settings.Global.* settings, that were added to CyanogenMod and not used in boot classpath, to CMSettings. * WAKE_WHEN_PLUGGED_OR_UNPLUGGED * BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX * POWER_NOTIFICATIONS_ENABLED * POWER_NOTIFICATIONS_VIBRATE * POWER_NOTIFICATIONS_RINGTONE * ZEN_DISABLE_DUCKING_DURING_MEDIA_PLAYBACK * WIFI_AUTO_PRIORITIES_CONFIGURATION Change-Id: I5a23971b278d150c633d2b4ade49a143c4423c26
* | | fw: Move Secure settings to CMSettingsd34d2015-11-121-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves all Settings.Secure.* settings that, were added to CyanogenMod, to CMSettings. * KEYBOARD_BRIGHTNESS * BUTTON_BRIGHTNESS * BUTTON_BACKLIGHT_TIMEOUT * DEV_FORCE_SHOW_NAVBAR * ADB_NOTIFY * ADB_PORT * DEVICE_HOSTNAME * KILL_APP_LONGPRESS_BACK * PROTECTED_COMPONENTS * LIVE_DISPLAY_COLOR_MATRIX * ADVANCED_REBOOT * POWER_MENU_ACTIONS * DEFAULT_THEME_COMPONENTS * THEME_PREV_BOOT_API_LEVEL Change-Id: I49e9160177ffc727b20008817ac2b5ce5e89ead5
* | | DatabaseHelper: Add back ro.telephony.default_networkLuK13372015-11-071-4/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 71f7d9966a2cf56c310233bf44814f13d0661431 Author: Lin Ma <lma@cyngn.com> Date: Wed Mar 25 17:44:52 2015 -0700 Fix ro.telephony.default_network setting parsing * The code that parses ro.telephony.default_network is broken, instead of reading numbers separate by comma, it reads the first number and replicates it for other slots. Settings like "8,1" will be written to the db as "8,8" Conflicts: packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java Change-Id: I6b77000e00ada02ec89b09c752a9b337a6a8182b commit 23a9f51caf09642783ff004db9fd5f168fcab14d Author: kaiyiz <kaiyiz@codeaurora.org> Date: Sat Aug 16 15:54:57 2014 +0800 Regional: Customize features for regional package -Customize default Date&Time display format. -Customize mock and Dock on or off for carrier. -Customize accessibility on or off for carrier. -Customize default input method. -Customize default enable data roaming or not. -Customize default enable mobile data or not. -Customize default network. commit 43f55e5953bb974abdb07bdee2d88db3402c87f4 Author: Sandeep Gutta <sangutta@codeaurora.org> Date: Fri Aug 1 08:18:37 2014 +0530 Telephony(MSIM): Add support for MultiSim. --> Subscription specific for Mobile data, roaming and usage - Provide database flags as per subscription for both Mobile data and Data roaming options. --> Add sub based API for getAllCellInfo in TelephonyManager. --> Use Dds subId to get Sim state, roaming state in NetworkPolicyService. Change-Id: I6ee5d2a22e44fe7d0d68a41af0481ddbbbe21c3f commit d6bcfd1cd081b9fe553976a0191a814b929c583e Author: Wink Saville <wink@google.com> Date: Wed Jun 8 12:18:07 2011 -0700 Fix default preferred network. Also, for xoom-cdma-lte devices CdmaLteServiceStateTracker#getOtasp returns OTASP_NOT_NEEDED. Some cleanup. Bug: 4531115 Change-Id: I24b160062eda625ff5c3471399b9e83ae0d2869a Change-Id: I0d3a5dcf7b063ef3fdc8234304c116d56afa5e38
* | | Add overlay option for Settings.System.ACCELEROMETER_ROTATION_ANGLESHoward M. Harte2015-10-261-0/+3
| | | | | | | | | | | | | | | Change-Id: Icd5e47051554a7b2464e4fbdaac868aafda7b853 (cherry picked from commit 6bfea6065178a29d4622a89e2944c16e086923b1)
* | | protected SMS [1/4]Marcos Marado2015-10-261-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports "protected SMS" from CM11: * Add API for protected SMS receive broadcasts. Change-Id: I5dfeb94832eefac9607070e9fb29db589bac7a57 * SettingsProvider: fix load protected sms setting logic Change-Id: I7d03821c5f5ac5d24445e5c03f7911c3a81c16dd Change-Id: Ifd31eb9558e397bf92f4cdb87f9e2056bc71d22f
* | | SettingsProvider: add default overlay entry for SEND_ACTION_APP_ERRORRoman Birg2015-10-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Add a default entry for Settings.Global.SEND_ACTION_APP_ERROR so that it can be overlayed elsewhere if needed. Change-Id: Ieffc2f4a1ad8ad0df04a9e33b575150a680478af Signed-off-by: Roman Birg <roman@cyngn.com>
* | | Themes: Port to CM13 [1/3]Andy Mast2015-10-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Themes: Aapt port Id: I106d447daf7935bada65e78911d8973ce0ca27ae Themes: Port our additions to idmap Id: I2e47cc23de4e7c0b884cccbd87c7d77079ac6824 Themes: remove legacy theme support from idmap Id: I17dfe35f9985d8cef790b26a8bcda738ea65917c Themes: Forward port changes to Installer.java Id: If64e856773e50f5ed74f2358e0c590abad724689 Themes: Add clean spec for aapt Id: I68f5f63f7e83b99230860dd2d8646e96da484b62 androidfw: Port CM overlay contributions Id: Id7b7f5f35011922c668fcea3a8aec5b42bd28653 androidfw: Port addOverlayPath and removeOverlayPath Id: I279db083af28fd8941f3227f2a7512ff094742c1 androidfw: Port addCommonOverlayPath Id: I12d2fe05a04f6a7e553c330505a475346374b507 androidfw: Port addIconPath Id: Ide3db28cde0c7f93edd9e7ad626ebace8d4105cc androidfw: Allow package ID to be overriden at runtime Id: Ieca3a0ae070a6c0ad0cf2b73b5944d83397d08b9 Aapt: Zip Parsing Test Cases w/ Refactoring Id: I28f9115700e186136432138d228111ebcfbd0480 Themes: Update tests for idmap Id: I3dae5bd376d122eab397863378599ae0ac7c6734 androidfw: Add test case for overriding package id Id: I2668c529e24a55cd6bc8437406fc284b853a75e7 androidfw: Add tests for bags The overlayOverridesStyleAttribute will currently fail since our changes to allow theming styles is not currently implemented. Id: Idfacc4382baf4152c839799a22b6cbe015ef2197 androidfw: Don't consider package ids 0x60 and 0x61 as dynamic Package IDs that are not 0x01 (system) or 0x7f (app) are treated as dynamic references. Overlays are assigned specific package ids that fall within the region of shared libraries. This patch treats them the same as system and app resource packages. Id: Ieecaa889bed50490796351302405a38f77c84f4e Theme Parsing & Info Id: I3583d7e8ca704402e3d8c6e1c7cea1645b91c06f Port ThemeUtils and its dependencies This is pretty much copy/paste from cm-11.0 Id: I406860a259136ccca107b981aca0369851df445e Themes: AndroidManifest and Intent port Id: Ib97e8539301d20d120fd8b49891fdaae8205fe42 ComposedIconInfo Port (w/ stubbed IconPackHelper) IconPackHelper is stubbed out so that PMService can reference it, we'll need to port the Resource stack before porting the implementation. Id: I59b680511de525e1d375a4f3be04347686b5e81b Port PackageManagerService and other dependencies Id: I11629d1e5eee21e01c060bc6c0393aae96034b69 Themes: Add in ThemeService See also: external/selinux. The policy must be added in order for the service to start without a security exception. Change-Id: Ic6f64796b264e430e9706a17a3fd2a35085fd1ca TODO: ThemeService / Keyguard interaction TODO: SystemServer - AppsLaunchFailure Add AppsLaunchFailure Id: I09a3826f89c62cb898866408e807f269616f48fc androidfw: Update bags tests The overlayOverridesStyleAttribute was updated such that it does not check the attribute of the theme before adding the overlay. The bag is cached on the first call and the next call, after the overlay is attached, returns that pre-computed bag so the test would always fail. We now simply check that the attribute matches the one in the overlay, and if so then the test passes. This patch also adds a new test to check that an overlay can reference and access resources that are unique to the overlay. Currently this test fails. Id: I3892df3f0d9443a73eaa11b3d5e97cfe86620a73 androidfw: Add test for referencing overlay styles as parents Id: I4fa3bd447c888e96176955924ebe7ee5c784ab55 androidfw: Allow referencing and retrieving overlay resources This patch allows a theme to reference it's own resources. Overlays get their own group which contains those resources that are not idmapped. Idmapped resources end up in the target's group. Id: Ibc119ddcdb35d44a8afec3c6152bcab2909cda18 androidfw: Fill in missing attributes from overlay style Id: I74051b379b73c728c6a2aa4bc62f3cd268a40b53 Protect windowNoTitle and windowActionBar attributes This patch creates a new method to define "protected" attributes. These are attributes like windowActionBar which should not be modified by a theme. Some apps (eg gmail) use the appcompat library which has its own Actionbar classes. When an app uses its own Actionbar it must not include the default actionbar which is achieved through the windowActionBar attribute. Some themes may try to change these attributes, which can will cause the app to crash. Id: Ie3bb7285eed09f3f13facf9d142ea9eb83796eec Themes: Use SYSTEM_DEFAULT in ThemeService Id: I52794dd98ca2f64aa50046ecdd7f79f27c21dd98 androidfw: Test missing parent attributes are merged in This test checks that an overlaid style contains any attributes that were in the original style but omitted in the overlaid style. Id: I6b496ef2eb0a7ef27b4fafdfda5bdf7ccffad989 androidfw: Add test case for protected attributes For this test to pass a protected attribute, such as windowNoTitle, must be equal to the original and not the value specified in the overlay. Id: Ic03f11214a1fc4139e3c48d7e72694a80f819023 Themes: Attach theme and icon resources from java Id: I9ffa0ce96a4af603b78b32d6b190f9698d3e4b4f Themes: Icons, icons, icons! Let there be icons. Legacy icons and composed icons are included in this patch. Id: I9fedafa270f1c4dc30c9c8ffd4cf619895e688e6 Themes: Retrieve explicitly themed context and resources Id: I4e41c251aee47361b183b60089bf5666540f653e Themes: Add themeChange config change to manifest Id: Ia84c0089a79637906e4f75fa38a56e8ff3b21a2b Themes: Register THEME_SERVICE in ContextImpl Id: I608a0b65c7e2ff0d69bae7bf343916f2b985f4a0 Themes: Remove legacy theme support Id: I25887843d31f705425aa40f9a23482fd2cafaef8 androidfw: correctly index paths in idmap Since we added the mtime values for the target and overlay, the indices are increased by two. Id: Ie0f5474d425945d58a12021cd2739240d2e98c0a androidfw: Fix opening assets from theme resources Id: Iedb51163a62b046cdf7fda1ad1b55cc1ee409047 Themes: Consider overlaid resource as "best fit" Id: Ife8342a49eb9502be52f085f88161b113332e9e6 Themes: Save and restore theme config Id: I3fcd445fb458aa6ed09397c05df6eb66d9be7235 Themes: Let ThemeService process additional themes Id: I45837f26948367d5cc6c520e8c53f9da60bd1fda AAPT: Don't applyVersionForCompatibility on android When compiling themes with aapt, we do not want aapt to call applyVersionForCompatibility as this causes the entries in the resource table to have an incorrect path. Id: Ie2c69533b3659c7b7458d6e4b7bdc84946d1be8e androidfw: Don't consider package id 0x5f as dynamic Package id 0x5f is reserved for common overlay resources and needs to be reserved so that it is not considered a dynamic. Id: Id27b8e0e2231ee8541365274d512e347afcfd05b AAPT: Include resources.arsc in apk Common resources needs the resources.arsc in the resources.apk so that it can be included when processing other overlays. Without it, common resources cannot be referenced. Id: I4aee29f660e4a0aa1909240dc0ca5680f0a2d135 Themes: Add keyguard wallpaper support to theme service Id: Ib8f8acd55ab4d2b6ef06ee0a630dc50c4f870beb Themes: Don't pre-process non .9.png images When creating a resources.apk we do not need to pre-process the normal .png images as those can be referenced directly from the theme's apk. Id: Iaf846a03ead9ecb1e68c040eac6e0ecbfc6e5875 Themes: Adjust offsets for idmap hashes Idmap now has a header so the indices to the hashes need to be incremented by one. Id: If1fb183cc116ef9e3ad6cb4e17b6e44763e9e72a Themes: Use single ThemeInfo instead of an array We only ever used the first index so there is no need to use an array of ThemeInfo(s) Id: I9e2af076bc17396a0c978be3c0d31c41277db3df New converter for Kitkat -> L fonts.xml L introduced a new fonts xml format. Its great, but our themes will keep using hte old format. This provides a converter and test cases. The parser was taken from the chooser and remains mostly unchanged with the exception of a getName() helper method. Id: Ia1d42c9e50eb7b52d2d98fe6dbeee530bef3adc2 Themes: Port theme bootanimation support to CM12 Id: Ie016884b0e3b77e08732308923ac44e0975e0116 Resources: Clear drawable cache Id: I04b5b78cce703194a2baeff9c51d2e4733b8ccc9 Font switching Id: Ia43060a7db624102cdcd9b0d9dc7148441401584 Zygote changes Id: Ie3681cf0d2b9929661cf1214e899cef9a5f37471 Recreate String Blocks Id: I4747ebd1a0908b76ae7214b0584948353d426fc5 add a getter for the x and y offsets of the wallpaper window Id: I35294bcac664e85cc5d344b50b5c4335a60d3f37 Themes: Don't spam logcat with CREATING STRING CACHE When processing resources with AAPT on the device, it spams the logcat with warning messages about CREATING STRING CACHE. Change ALOGW to ALOGV so it will only show when verbose logging is enabled. Id: I5b591c3336e176dd71cebe672d60721c29651b00 SystemUI: Audio Volume Panel Id: I78c471864af401b274597339b8451e65931fdb32 AmService uiContext port Id: Ida251d7f80797b0ec78b3d20cf60a795d6c4c1f0 Cleanly detach theme assets Types from an overlay are added to the target group's TypeList and need to be removed when the overlay assets are detached. Failing to remove these types results in resources not being retieved due to the erroneous types. Id: I4a9c624e30309e61fce905ced45c55acd3ac4845 Themes: GlobalAction Port Id: Ifd87e04f94a284e77f1c48bec9fd75d69c45c47e Themes: Do not store forward locked themes in ASEC containers If a theme is in a asec container and is applied, when the device is rebooted the device will get stuck in a nasty boot loop since the theme resources must be read and the asec container is not ready yet. Id: I1d93d8175d5c40b34c222974960c43352012a5ad Use systemui's applied theme for notifications. Notifications contain RemoteViews which are inflated using the application's context for which this notification belongs to. This can look out of place if SystemUI is using a different theme than the rest of the system. This patch will use SystemUIs theme when inflating the RemoteViews, giving us a more consistent look in the notification drawer. Id: I9514ce7fcc4858bad3d3c4190f55c1f5a1441d7c SysUI: Add theme support This ports over the changes needed to facilitate a theme change in SystemUI. Id: I673fb79db90994371a9c0627746a97414132f0ba Themes: Allow composing of VectorDrawable Base icons can be vector drawables. This patch allows them to be composed. Currently, VectorDrawables cannot have filters applied since they do not have a method to get the Paint object like BitmapDrawable and PaintDrawable. Id: I762c8e1f4d1c945b8ebc164bbd7944120324bd42 Themes: Add target api to ThemesContract This will allow the ThemesProvider to track the api a theme was built for. We may want to let the user know when a theme may not be designed for the version of CM installed on their device. Id: Idf0e6cef0ce9ac5e221ce5ff7e0b155ae0258d5f Access Themed ResTables from compiled theme apk [1/2] Before this patch the ResTable for a theme/app was created and accessed seperate from the compiled APK. Since the compiled APK has its own copy of the resources.arsc, we can just reuse the table in the APK instead. Id: I106a2434e74784bc04014831098f49fe128bc7e2 Themes: Port AppsLaunchFailureReceiver to CM12 Id: I5c3265e64aef1536ba5fceed0ec89082e786b686 Themes: Bump idmap hash version to 3 Due to changes in idmap, we need to force the recreation of resource cache when upgrading from CM11 to CM12. Id: I25c1e2c598bca889818e2d685651e3214c30ab3c Remove debug logs Id: Ia5cfa83ddf6da195e20526a94ba154864b8d0ecb Send target sdk version to aapt [1/2] If vector drawables are used in a theme we must have a minSdkVersion of 21 passed to aapt or else aapt will Segfault. Id: I687ee146f9f80543bbcdd06d93891cb3b23001c4 Add missing imports to ActivityThread Id: I09fe07807ed824ccb938e0e174b06653c613c403 Themes: Dynamically add/remove content from StatusBarWindow StatusBarWindowView has logic for resizing and fading content which doesn't always behave correctly if this view is not the root. Rather than create a container, this patch uses the existing StatusBarWindowView as the container and the inflated status bar is then added to this view. Id: Ia93d25a589419145f95d75b1b56eb3c2f300f935 Themes: don't use preloaded drawables when themed If we have themed assets we should try and load those rather than pulling from the preloaded drawables. This allows us to continue and preload drawables in ZygoteInit while maintaining the ability to theme those preloaded assets. Id: I68cfc099d328ece0791b6d0e5cf11d07097fd1fd CM11 -> CM12 Upgrade [1/3] - Introduce a new secure setting "THEME_PREV_BOOT_API_LEVEL". This field will always be set to the previous api level for themes. So if we upgrade from CM11 to CM12 this value will differ from the current API causing an upgrade to trigger - When moving from CM11 -> CM12, unapply incompatible overlays - Rename "holo" to "system" in secure settings themeConfig - Provide a testing downgrade script to put the secure settings db into a state similiar to CM11 (at least for themes) Id: I71be2c0ad83e60ffe8c574f913e5eaecb9700045 Themes: Add constant for system target API Id: I0a6caf65c9e8b0feeef1ae848ba4683235304e8c Change-Id: Ide6d4e1daf535a54efb1ec7cf39ef8b2fb8cf272
* | | [1/2] Forward port power connect/disconnect notification supportSam Mortimer2015-10-261-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit info: [1/2] Power connect/disconnect notification support part 1/2: frameworks/base PowerUI and Settings http://review.cyanogenmod.org/#/c/35241/ part 2/2: packages/apps/Settings Sound settings http://review.cyanogenmod.org/#/c/35242/ V-Old_Change-Id: I36a6b9f924d2cd52191a8e83a744745b37c5b068 OldChange-Id: Ib865e1c296cb8e1d957b2a48616c88ceaba5c008 Change-Id: I5db20ef23bdb644e2af06e8dcbc8fbd0cf7ce321 Signed-off-by: STELIX <ssspinni@gmail.com>
* | | Runtime toggle of navbarTimo Wendt2015-10-211-0/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the framework support for enabling the Navigation bar on devices with hardware keys. It is toggled from Settings, and depends on device-specific support for the KeyDisabler hardware control Change-Id: I88fecb2ca1e8613591c327a93f53909b00239cd8 wm: Nullify hardkey function assignments if enabling the navbar This caused erroneous (and sometimes duplicate) events being generated due to the regular key function assignments. The navbar does its own action management, so don't try to derive from the actions usually present in hard keys. Change-Id: I82866e24547f8145cac4f07820ae90aacce09281 Update DEV_FORCE_SHOW_NAVBAR constant. Change-Id: Ie5b4317162c514d22276956f81007e064a3d0f32 Settings: Move DEV_FORCE_SHOW_NAVBAR load to loadSecureSettings. Change-Id: I6ac53b8c9f7fce6f9ca6b4ad7bf31a1c1e896863
* | Wifi: Maintain configKey generation logic same in backup agentNalla Kartheek2015-10-061-4/+4
|/ | | | | | | | | | AutoJoinController uses configKey to distinguish networks. It compares configKeys of saved network with recent ScanResult. WifiConfiguration has two different APIs to generate configKey based on input variables. Framework should use same logic to generate configkey even though input differs. This fix ensures the parity in backup agent. Change-Id: I6ee57efe1d346e50a434bce90ec8224f5203712c