summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/cyanogenmod
Commit message (Collapse)AuthorAgeFilesLines
* ButtonBacklight: Preview timeout once user stops draggingZhao Wei Liew2017-01-161-2/+8
| | | | Change-Id: I0abebe1041b6ad42b10e7d24f76ea17046e64666
* Settings: Update button backlight brightness in real timenijel82017-01-161-14/+10
| | | | | | | | | | When adjusting the button backlight brightness using the seekbar, the brightness did not update in real time, but only when the RESET button is tapped. With this change, the brightness is updated instantly. Change-Id: Ib4db8b4759f2b756495dc3f9319b35cdb548d9e5
* DevelopmentSettings: Add an opt-out for recovery updaterAdrian DC2016-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | * Some devices should not have this option, for instance all Sony devices supported on CyanogenMod already include the ROM's recovery inside the ramdisk and provide their own init_sony boot selection * Makes sure a user did not enable the option on old installations by disabling it if needed * Disable the recovery updater through the new overlay * Prevent recovery updater related features to run, and pass an additional context argument from BootReceiver to initializeUpdateRecoveryOption to access resources * Similar to the original CM 11.0 commit by Dan Pasanen Change-Id: I1963e27e59353e1a7e26a4edf905bee6c9da0571
* Settings: move high touch sensitivity setting to DisplayRoman Birg2016-08-121-0/+2
| | | | | | | | | For devices that support this feature, it makes sense to place this under display settings as most people wouldn't look under language. Ticket: CYNGNOS-3250 Change-Id: Ib99f5e8c5f0f2bdae7b5b5f788a364a1d63aa146 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings : Move trust agent search index to LockscreenSettingsDanesh M2016-06-201-0/+17
| | | | | | | | Ensure smart lock takes you to LockscreenSettings instead of SecuritySettings CYNGNOS-3053 Change-Id: I2d6f4b29cfad259cebfb3ee97b055f59a131d3de
* Add option to select temperature unitLuis Vidal2016-05-061-126/+236
| | | | | | | | | | | | | Added a menu in the weather settings to select the temperature unit. This setting will be visible only if the user has at least one weather service provider installed. The weather settings layout was refactored to make room for this new preference Change-Id: I5e9f206573e0ff95fcee31a010b52530a907acc6 TICKET: CYNGNOS-2605
* Settings: fix backlight illumination wrong summaryRoman Birg2016-05-032-22/+1
| | | | | | | | | | | | This fixes the visual indicator of the button illumination summary after trying to disable. Previously after setting the timeout to never, would display a summary of "1", or with 5, it would end up displaying 6 after applying the settings. Ticket: CYNGNOS-2565 Change-Id: Ia982e4849d0099b6e208b362770a431dc89dd2f1 Signed-off-by: Roman Birg <roman@cyngn.com>
* Simplify and improve dream, LLS and weather provider layouts.Danny Baumann2016-04-272-8/+6
| | | | | | | In particular, make sure the selection ripple extends to the edges of the screen. Change-Id: Ie5694dfea8fd14810895581e4e7daef15c8890c3
* Prevent crash if weather settings activity can't be foundLuis Vidal2016-04-151-4/+20
| | | | | | | | | | | | | | Each weather provider service may define a settings activity which will be automatically launched when the user selects the provider. If such activity can't be found, an ActivityNotFoundException is thrown. This patch adds a try/catch block to avoid crashing the settings app if the activity can't be found A toast will be displayed to notify the user. Otherwise, the user would never know why the settings gear is doing nothing Change-Id: I3c3d54ce8f9131353077c34a2f821ec6b0fc0268 TICKET: CYNGNOS-2478
* SpamList: Set correct color & remove text from notifications menu itemLuK13372016-04-141-2/+1
| | | | Change-Id: I3b938becf2cabe7c58129b78d4d0d2fd2c9d9e04
* livedisplay: Update Settings for new LiveDisplay APISteve Kondik2016-04-121-2/+0
| | | | | | | | | * LiveDisplay is getting a proper API. This patch refactors the settings to use it. * Also kill off the deprecated "gamma calibration" tunable which nobody should be using at this point. Change-Id: I948b8845cd06c8c634a201cb5d5b93b5766cc51d
* Add Weather Content Provider [2/5]Luis Vidal2016-03-311-0/+343
| | | | | | | | | | Introduce a new entry in the settings menu to select the available weather provider services. This entry will be parked in the System category between Date&Time and Accessibility Change-Id: Ida230f3be72eb575a2b09504c99eaa16851c99f8
* LLS: Use LiveLockScreenManager for selecting LLSd34d2016-03-301-16/+10
| | | | Change-Id: Ib404b4fb1cdbad773703e4702490b92cc14a548e
* Settings : Add multiuser support for CMHardwareDanesh M2016-03-141-5/+23
| | | | | | | | | | - Show button for other users - Use services instead of CMHardware for vibrator and touch sensitivity - Do a one time restore of tunable settings CYNGNOS-1166 Change-Id: I0de8eef6bf73c344ee5789e9650dd96b25b1a6bc
* Split out drawable to separate from dashboard drawableDave Kover2016-02-241-1/+1
| | | | | | | | | | | | The Filter Notifications view has an action menu item which uses the same drawable reference as the dashboard category. This can create a conflicting instance for themes where the colors or style do not line up correctly. By creating a new VD, we can make sure that the different views are themed accurately & separately for maximum themage (I made that word up). Change-Id: If7ddf51489a741f6b9564f07f7034f3f9824d352 Ticket: CYNGNOS-2134
* Settings: Add CM-specific settingsDiogo Ferreira2016-02-171-0/+125
| | | | | Change-Id: Iae0f60a62a51e96893766c4fa50a60ac4a214102 Ticket: CYNGNOS-1577
* DevelopmentSettings: initialize recovery update property at bootScott Mertz2016-02-161-0/+3
| | | | | | | | | | | | | Android behavior has changed to load & trigger build.prop & default.prop at every boot. Once data is mounted, it reloads & triggers properties set by the user. If we set persist.sys.recovery_update to true in build.prop or default.prop, the user's preference will never be honored. Instead, ensure the default always comes from userdata. Accompanying patches to remove the default properties are required. OPO-490 Change-Id: I3a5245088059f083554063ba6d345783114fa7a0
* Settings: Add CMGlobalSettingSwitchPreferenceMichael Bestas2016-02-153-2/+69
| | | | | | * Also cleanup the Secure/System preference Change-Id: I10148928240561e6cb496e7cc063ae517ccddbf8
* Remove leftover profiles entry from power menuMichael Bestas2016-02-081-12/+2
| | | | | | * No longer available Change-Id: Ifac7e1181dc53af5788f54444ef75a345a888fa2
* LiveLockScreen: Add live lock screen settingsd34d2016-02-021-0/+504
| | | | | | | | This will allow the user to enable and configure their installed live lock screens. Change-Id: Id4a6963cc49d1c361c99c95b17a961aaa980ed48 TICKET: CYNGNOS-1686
* Add left QS quick pulldown (2/3)Michael Bestas2016-01-241-0/+30
| | | | Change-Id: I0e8c944039e5a6702bfbbcdbfbf89a3f734f37e3
* Settings: Add CMMetricsLogger constants to proper pages.Adnan Begovic2016-01-113-5/+6
| | | | Change-Id: I6e1d0ec2be4c6da51267c163575472827c9c50cd
* Settings : Filter settings for secondary usersDanesh M2016-01-031-1/+8
| | | | | | | | | | Filter blacklist for secondary user Filter default sms if user can't sms/call Filter phone ringtone/vibrate on calls for secondary user issue-id: CYNGNOS-904 Change-Id: I008215f885e819bd3229a4f9a6c6ca6fc09df6c5
* Settings: Fix NPE in PowerMenuActionsBadDaemon2016-01-031-0/+1
| | | | | | | | | | | | Reproduction: Open Settings->Keys->Power Key Lock Device Unlock device -> NPE Happens because UsersPref has already been removed Change-Id: I8d8cbda14d7373dca46671acb16a8abb68e9ee4a
* Settings : Update filterSpam to new contractDanesh M2016-01-031-11/+18
| | | | | | Needed for http://review.cyanogenmod.org/#/c/108424/ Change-Id: I5ad5f376d37e5bf0b213f9266581b5c503971174
* Revert "Introduce SystemSettingsCheckBoxPreference"Michael Bestas2016-01-031-67/+0
| | | | | | | | * No longer used This reverts commit c9c271d0552c1bd091b3938f88f062d44626ce94. Change-Id: I55ad36d31cea3e9370cab8ade036587d5ae618f6
* Introduce SystemSettingsCheckBoxPreferenceDanny Baumann2015-12-221-0/+67
| | | | | | | -Originally part of a3342e2 (Add back notification light settings.) Change-Id: I474a14a1b395407f5ca273a5d6a3a7f03f7e4698
* Power Menu: remove power as an optionDave Kessler2015-12-191-13/+2
| | | | | | | | | This is the only way to power the device off. Also, if the user toggles all the options off an empty dialog will open. Lets make this feature a little more user-friendly and remove power as an optional entry. Change-Id: I10b2d7c844fa40ae9583d3114ec99b0825c21cd9
* Settings : Port over reorganization from 12.1Danesh M2015-12-081-1/+1
| | | | Change-Id: I3d77bb96aba4a501d3223e72be60403694828a34
* Protected apps: get protected components settings from secure instead of systemYvonne Wong2015-12-041-2/+2
| | | | Change-Id: Iebe1a0e5587b844d29524d25da1f7556dd935599
* settings: contributors cloudJorge Ruesga2015-12-011-0/+4
| | | | | | | | | | | | | | | | Squash of: settings: remove contributors cloud margin/padding Change-Id: I120e7bd1611bd47126d91ca1f88ce5cdb964fed8 Signed-off-by: Jorge Ruesga <jorge@ruesga.com> Settings: update contributors cloud Generated date: 3rd November 2015: 09:29 Change-Id: I7bc707f3896f91b3fd7d0f9f76700e3938f1a4b2 Change-Id: If5b89e0d278b7a0c85c966e09264b60927889fc9 JIRA: CML-133 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* settings: Fix crash when saving button backlight enabled/disabledChristopher R. Palmer2015-11-251-1/+1
| | | | Change-Id: I2b6de8e9c908803dcc510a378188e40fac4141f1
* perf: Add CM secure settings for app profile prefKhalid Zubair2015-11-251-0/+66
| | | | | | | | | | Implement CMSecureSettingsSwitchPreference to handle CMSettings.Secure preferences. The `app_perf_profiles_enabled' pref is defined in CMSettings.Secure and without this fix it cannot be changed. Change-Id: Ic85def69e4d120051a95fa64e6539f9771ec6628
* Settings - Display Rotation: Checkboxes to SwitchesSTELIX2015-11-241-8/+9
| | | | | | | | | | Display rotation: Switches to checkboxes According to the guidelines, checkboxes should be used in lists Checkboxes match better than switches in this cas Change-Id: I631c0ef65985d336e1a0790b6bb07ef7524ff6b2 Signed-off-by: STELIX <ssspinni@gmail.com>
* Re-Implementation of Protected App SettingsVineet Patil2015-11-242-0/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Protected App [2/3] Protected Apps Settings -> Apps: - Added Receiver which can send in a call to PackageManager to toggle a components protected status. - Add Protected Apps activity (available from Apps fragment) - Reads from ApplicationInfo state - Requires Pattern Lock to view/modify protected apps - Updates Settings Secure DB with protected components - Support resetting protected apps pattern lock Change-Id: If07a7b69ac963ffae855621881e1944fc8754782 Protected Apps: - App Info for protected Apps doesn't allow Uninstall or Clear data - App Info menu item for launching into Protected Apps when looking at protected components - Prevent process dialog from getting dismissed on touch or back key (can cause odd behavior if cancelled mid-protect) Conflicts: src/com/android/settings/applications/InstalledAppDetails.java Change-Id: I64104d7ff3fbf9d8c393ebf262d4de0b28abbc5c Reset Pattern: - If user cancels while creating new pattern, old pattern is restored Change-Id: I55955b1ffadca2ba712c40c7d443c4fc4b0f528c Clean up protected apps code (1/2) - Work with actual ComponentNames instead of converting them between String and ComponentName all the time - Name protection state parameter in methods 'state' instead of 'protect', as a value of true actually means it's not protected. Also consistently use the respective constants for its values. - Some misc. cleanup Change-Id: I2855978c8aef3cfa14249e3398039c7cdd145ede Settings: Create a security fallback on protected apps. -- Allow a user to bypass pattern lock on protected apps by inputting their primary account information for the device. Conflicts: res/values/cm_dimens.xml res/values/cm_strings.xml Change-Id: I39e5a89a8699cfd2ffaba8aea2daa4f477f2cc9b settings: reset protected apps view instead of finish the activity Finish the app after resettings the account, will lead to the protected app selection without a valid pattern. Instead this should reset the pattern view to create a new pattern prior to go to protected apps. Change-Id: Ida41a29f4f8787940f803a23014a68a2f8beb969 Signed-off-by: Jorge Ruesga <jorge@ruesga.com> Settings: Don't show protected apps options in restricted profiles. Change-Id: I38c2e8fd3508d360f0e23703ce6c939f02f3714e JIRA: 4668 Issue: https://jira.cyanogenmod.org/browse/CYAN-4668 Follow normal lock screen convention - allow user to retry when creating pattern lock Change-Id: I6ad39b07b8de3de03146322b37b60e3f846093d1 Fix: Even when the list is entirely unchecked there may still be components which are still protected and need to cleared when Reset is triggered. https://jira.cyanogenmod.org/browse/BACON-679 https://jira.cyanogenmod.org/browse/CYAN-4835 Change-Id: Ifee3e8b87be39769aedfed0f9a5bda366c67ee45 ProtectedApps pattern lock for landscape mode. Change-Id: I9ef70a0e363d4d17510188d24f4742f458fba38e Launch Protected Apps Change-Id: I2dc2e1e05c1979118d5324c3c05adfcc6f7ee22a Protected Apps: update protected apps screens UI Change-Id: I2dd922956f8ffd9ed153c3d1aa1f9161a127e4c6 Remove unnecessary drawables for launching Protected Apps Change-Id: I58f471ef9d64c7ced79befbfc30b94d75a0085a2 ProtectedAppsReceiver: fix NPE when components are null * To reproduce: create a folder at Trebuchet, lock it and leave the screen Change-Id: I49a2e76fdaa3e375b0ea5aa2bb05eaa92528dd19 Protected Apps: Show state by component instead of by app Change-Id: Idbe1d69b376fc3f42980404d9448152f606e7f8e (cherry picked from commit 56e11c8640cb9e34d07eb11fb1b67f3283b2f6f6) Protected Apps: Increase hit target of the launch app button Change-Id: I38355aca37079d43975d287ee9d81c3a500c3575 (cherry picked from commit 47e8e46f53cdf4f536845d57cc383d3c5f0ca893) Protected Apps: Monitor unlock status Monitor the Activities unlock status so that we can rotate the screen in this activity without having to unlock again. Change-Id: I8feab5cb4d55c4df0d0d1475ab6646c046f01925 Protected Apps: add some side padding in app list view Change-Id: I2549fd8f8b662e2e2c542e67cbc20e6a366fba42 Conflicts: AndroidManifest.xml res/values/cm_dimens.xml res/values/cm_strings.xml res/values/strings.xml src/com/android/settings/applications/ApplicationsState.java src/com/android/settings/applications/InstalledAppDetails.java src/com/android/settings/applications/ManageApplications.java Conflicts: res/values/cm_dimens.xml Conflicts: res/values/cm_strings.xml . Change-Id: I065ac7965a8c7253ad67a20806201fe8fc6cec84
* Settings: Fix hiding button backlight optionKonsta2015-11-241-3/+10
| | | | | | | | | Recent change added volume rocker to hardware key configuration so config_deviceHardwareKeys is non-zero on pretty much any device. Button backlight settings are displayed on devices that don't necessarily have any hardware keys with backlight. Change-Id: I0f87b4043177e5d1b05b7d2e2565cddd298e3227
* Revert "Settings : Nav ring"LuK13372015-11-241-79/+0
| | | | | | | | * M no longer has nav ring This reverts commit 9cf9098e3f3a6d71ec600b862005452068db86b8. Change-Id: I1484c3b2b9d3656a9f928977ee2eeaec37170bbc
* Settings : Update settings reference for powerButton/bugReportDanesh M2015-11-171-2/+2
| | | | | | | Switch INCALL_POWER_BUTTON_BEHAVIOR and BUGREPORT_IN_POWER_MENU to Settings reference Change-Id: I0a14e8b1a667e3922540a77479bfc1932cad7130
* Fix profiles toggleLuK13372015-11-161-0/+156
| | | | | | * Also implement CMBaseSystemSettingSwitchBar used for it. Change-Id: I1109cf06066a6c5f57044a484b0af6bbb38dc1b1
* privacy: Actually set the blacklist preferenceDiogo Ferreira2015-11-132-7/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The preference was not being set, which caused this code to throw an NPE on devices without telephony when opening the privacy preferences. This bug also affects devices with telephony in that the preference doesn't update its text. I also got rid of the null check because the preference always exists, the null check is pointless and ended up hiding this bug. Change-Id: I95555d44349700a8f29a71a2f2ee9aedf419b49b Settings: Fix blacklist settings crash Change-Id: Idd261aa9f8e2867312aaaece26150671b177994c Settings: materialize Blacklist settings * Add a FAB * Add a (generic system) enable/disable switch bar Change-Id: I0984bf6769abef48cc7e0a643c2bdd73219954fc Signed-off-by: Roman Birg <roman@cyngn.com> Settings: add a way to open blacklist settings externally Opening the activity doesn't theme the switch bar - an alias works. Change-Id: I78efb382f4f1f4d208f122fedb0d71a86b515405 Signed-off-by: Roman Birg <roman@cyngn.com> blacklist: make it possible to unblacklist phone/messages via checkboxes Change-Id: I7d982d17818efe065e4e22f2a86a46493672584a Settings: fix blacklist settings crash On a device rotate, the MultiSelectListPreference would try and restore its state since the preferences aren't persisted. Clear the persisted flag so the MultiSelectPreference doesn't try and restore the states, as they get populated in onResume(). Change-Id: I0d0304e2367ade66e35ae7df432575d13ed0993e Signed-off-by: Roman Birg <roman@cyngn.com> Settings : Update blacklist strings Change-Id: I08ea4405f41f86a9eaf7bae74cbb61fa1fb0c8aa (cherry picked from commit 6d8cc2c697752a1357915ea88651b2fe220a54ba) Settings : Add input checks for blacklist input There can be situations where user enters invalid input. Ensure that is handled. Repro : 1. Add new blacklist entry 2. Enter / 3. Press ok 4. Enjoy crash issue-id: CYNGNOS-980 Change-Id: Ica90ac835f374569123e679ba39c3caa7179ef65 Settings : Fix blacklist delete number crash issue-id : HAM-795 Change-Id: I25306b3d4bead5487f039c3f51b631b1ef88b18d
* Move Blacklist and Notif Filter to PrivacyAbhisek Devkota2015-11-131-4/+30
| | | | | | | | | | | | | | | | Match CM 11 Change-Id: I5e3f9c26b68a89ba1622d95e2d0e4f4a93361c5e Cleanup Security/Privacy settings code Cleanup: * Mismerges * Code style * Copyright headers * File permissions Change-Id: I6c34586680f0ccbaa613a0acfee366113c32a81c
* Settings : Filter spam notificationsDanesh M2015-11-131-0/+301
| | | | Change-Id: I4056aceada3cf8397827037bcb52388de9f8b9fc
* add Voice Wakeup switchRoman Birg2015-11-132-0/+325
| | | | | | | | | | | | | | | | | | | | | | * Requires CYNGN package to do the actual work. Change-Id: I1c129adf1104dd95d3afb76224af4c9ba2b5db96 Settings: Fix build error after 70f60fa685b1eae960fe3bb25cc85bef9361e288 Change-Id: I6e83391e02fd0e6dc0d050d5a9a7dd6816a1910b Settings: Update voice wakeup icon Change-Id: Ie75e8a41f69097384f3d2eec2503ae4cfe6a2a0b Settings: Hide voice wakeup category when package isn't present Change-Id: I33a34a56b3a1d1ad04b07bde4aec6c3c230fc297 Add metrics category for VoiceWakeup Change-Id: I101729d964f9aca032a9899917b59a035c299ecf
* Settings: Move Secure settings to CMSettingsd34d2015-11-112-12/+13
| | | | Change-Id: If2e4f1e44b448c953f6fb1f3a0689b73cc3958c0
* Settings: Cleanup battery saver settingsMichael Bestas2015-11-031-0/+65
| | | | | | | * Add back auto battery saver * Add back support for battery saver on devices without perf profiles Change-Id: I562420a81592fde54a96dca88a71ed9137bb59a9
* [2/2] Settings: Privacy GuardSam Mortimer2015-11-031-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PS2: * add ic_privacy_guard*.png from frameworks/base * rebase PS3: * enable AppOpsSummaryActivity * use SubSettings on longclick PS4: * move privacyguard settings category to just below security PS5: * rebase Pulled together mostly (if not all) from: Author: Steve Kondik <shade@chemlab.org> Date: Tue Feb 25 14:02:16 2014 +0100 settings: Relocate Privacy Guard icons to framework * So we can use them in the permission dialog for MODE_ASK Change-Id: Ia9bac7dff0bbe91ae48db5d4b0d8f46feb9fdf86 Author: DvTonder <david.vantonder@gmail.com> Date: Thu Jan 16 19:01:23 2014 -0500 Settings: Fix up top level "Privacy" section Change-Id: Id4dbda10a891c793bc6eb3c42807cc0e3f6092cc Author: Danny Baumann <dannybaumann@web.de> Date: Fri Nov 8 13:37:07 2013 +0100 Add back privacy guard manager. Change-Id: Ic9fbbae137bb8425fe72a6cdb2f17117351b5709 Author: Chirayu Desai <cdesai@cyanogenmod.org> Date: Sat Dec 28 18:51:46 2013 +0530 PrivacyGuard: Specify a default value in Settings.getInt method call * While privacy guard is enabled by default, the default value specified here is returned only when the setting is not defined or not an integer. Change-Id: Iaedffcc76a23a310aa7915f6a42ccce83ba5d2a6 Author: Matt Mower <mowerm@gmail.com> Date: Wed Feb 5 19:40:37 2014 -0600 PrivacyGuard: confirm permissions reset The button to reset all application permissions to enabled looks suspiciously like a refresh button. Prompt the user with a confirmation dialog to make sure they know what they've pressed. Change-Id: I0444c5bf8e9533feccf890055d34d3200609c6f6 Change-Id: I2e10cb4d395e2e7e5141d2fadada9e9b21cd7fbf
* Remove CMHW tap to wakeMichael Bestas2015-11-021-3/+0
| | | | | | * M supports it natively Change-Id: I01f124f2b68de771c6b7dc3f513a11cc1a628bd6
* Revert "Revert "Settings : Port forward statusbar settings""Danesh M2015-10-291-0/+192
| | | | | | This reverts commit 4c7e67e680997c15195b1ae96452f8baf3895779. Change-Id: Iaecfc7a36281422a58d469361cef3c6a5659c7d7
* Settings: Map to CM Settings.Adnan Begovic2015-10-292-4/+6
| | | | Change-Id: I2236b8b6b7cf1ad5e5db4ca1ec32d84351d2a08b
* Settings: Clean up power menu options.Adnan Begovic2015-10-291-14/+27
| | | | Change-Id: I4a8a0edf776415d123ae26e8c3c6aabec0221e28