aboutsummaryrefslogtreecommitdiffstats
path: root/packages/CMSettingsProvider/src
Commit message (Collapse)AuthorAgeFilesLines
* CMSettingsProvider: remove per-user cursor observationDanny Baumann2017-03-131-11/+0
| | | | | | | | We don't need it because we don't support using the returned cursor directly, and it can cause deadlocks when being called from platform code. Change-Id: I2f85be1152569ba27e4622d310d867e20965faa3
* CMSettings: Add default overlay for forward and reverse lookupArne Coucheron2016-07-291-0/+6
| | | | Change-Id: I3510a3e136ef86a8d45847a0bf7a35fb426212f9
* LLS: Allow default enabled events to be overlaidd34d2016-06-261-0/+4
| | | | | Change-Id: I4607c0cace28c0987c2ed13d04db7c1eb67a1d0b TICKET: CYNGNOS-3103
* CMSettingsProvider: load provisioned flag when creating DBRoman Birg2016-06-091-12/+19
| | | | | | | | | | | | | If the database needs to be created, it will not be upgraded. So, if the device was provisioned and the table wasn't created, we don't upgrade and so we cannot bring the old flag to the new location. Fix this by setting the new cm provisioned flag on database creation. Ticket: CYNGNOS-3017 Change-Id: I1e961f1cb2d06c55c1e92ef63c6dbaee17dbc304 Signed-off-by: Roman Birg <roman@cyngn.com>
* CMSettings : Move force_show_navbar to globalDanesh M2016-05-131-1/+45
| | | | | | | | | Keep feature inline with 12.1, only allow owner to control the feature and mirror across users. Also add additional checks for moved settings. Change-Id: Ida11b71bc5ce9463628f8c5d76e59902d47d59bb
* CMSettings: don't trample user metrics setting on upgradeRoman Birg2016-05-111-0/+8
| | | | | | | | | | | | During an upgrade, we try to migrate values which are considered to be LEGACY settings to the new provider, however because of a bad upgrade path, we need to check if the key exists in the new database AND the old database, and then we can skip it in that case. Ticket: CYNGNOS-2740 Change-Id: I5d6bc8399ccc328f4190ed7508c27bd9d5de1b9d Signed-off-by: Roman Birg <roman@cyngn.com>
* CMSettings: Fix upgrade from cm-12.1 after weather changesMichael Bestas2016-05-081-11/+13
| | | | | | * Only the owner can write to the global db Change-Id: Iec7736c28ff0bc7a35dae8bbc85ca2b1c137da49
* Set a default temperature unitLuis Vidal2016-05-061-1/+20
| | | | | | | | Bump the DB version and set a default temperature unit in global settings Change-Id: I14f80e1b3fa3ae4a47769c02b5ebd6a905a53e46 TICKET: CYNGNOS-2751
* CMSettings: add CM_SETUP_WIZARD_COMPLETED keyRoman Birg2016-04-221-1/+18
| | | | | | | | | | | | We need to store the state of _our_ setup wizard. To not break existing devices' provisioning, copy the current state of the global provisioned flag to the new key value. Ticket: CYNGNOS-2431 Change-Id: I3d88361edc126788f42b28efd11f3c7598117138 Signed-off-by: Roman Birg <roman@cyngn.com>
* Revert "Allow to ignore presentation indicator of outgoing calls [1/3]"Adnan Begovic2016-03-101-3/+0
| | | | | | | | | | | This adds public cmsdk symbols to the bootclasspath. :( 2) testBootClassPathIsClean(org.cyanogenmod.tests.versioning.unit.ClassPathTest) java.lang.AssertionError: Jar file /system/framework/telephony-common.jar should not have cyanogenmod.alarmclock.ClockContract$AlarmsColumns ! This reverts commit 3a590c305737a8533f40235fc7dbdcfaee30bdcb. Change-Id: I03cc2796e84e602933e7132f9181a5822c7f327c
* Allow to ignore presentation indicator of outgoing calls [1/3]Gabriele M2016-03-071-0/+3
| | | | | | | | | | With some mobile network operators, the presentation indicator of outgoing calls is always set to either "unknown" or "restricted". As consequence, the dialed number doesn't show up in clear in the call history. Allow to ignore the presentation indicator of outgoing calls to never hide the dialed numbers. Change-Id: Ia7b9fef3a929e512d8ecb704204b36e3836a056b
* cmsdk: insert dnd & edit tiles for 12.1 -> 13.0 upgradeRoman Birg2016-02-191-0/+39
| | | | | | | Ref: CYNGNOS-1924 Change-Id: I6d221e143dc91ec3dbc1c9a1877754f2b98b732e Signed-off-by: Roman Birg <roman@cyngn.com>
* CMSettingsProvider: Define battery style default.Adnan Begovic2016-02-171-0/+3
| | | | | Change-Id: Ic0cea75783ee5a0a7be3d0a24e57588ca177169a TICKET: CYNGNOS-2041
* CMSettings: Enforce correct permission for writing settingsd34d2016-02-111-6/+13
| | | | | | | | If an application is writing to SECURE or GLOBAL they should only be required to hold the WRITE_SECURE_SETTINGS permission and not both. Change-Id: Ife14b5e19340f04e2e3b7ebba121104253d1dc88
* CMSettingsProvider: Get rid of redundant qs tile defaults.Adnan Begovic2016-02-081-1/+2
| | | | | | | | | | | | If you've git blamed this commit because your build broke, move your default tiles overlay to `vendor/cmsdk/cm/res/res/values/config.xml` with the entry value of config_defaultQuickSettingsTiles TICKET: CYNGNOS-1908 Change-Id: Id721136ce669d420fde46322a339b9517b1a3677
* CMSettingsProvider: Don't trample default values on migrate.Adnan Begovic2016-01-261-0/+8
| | | | | | | | | | Since the migration is invoked even on a clean flash, with no means of knowing what scenario we're coming from. Assume that all null values are to be dropped and default values are to be given precedence. Change-Id: I10eb2f4650c379422268423dbc011b49f77ed910 TICKET: CYNGNOS-1721
* CMSettings: Fix defaults load on provider creation.Adnan Begovic2016-01-252-97/+89
| | | | | | | | | | | | | The database is innaccessible during creation through the android resolver interfaces, thus, no defaults were loaded even though the code would execute. So rewrite the DatabaseHelper to create a singular bulk transaction per table when default settings are to be loaded, and provide verification tests for the CMSettingsProvider. TICKET: CYNGNOS-1706 Change-Id: I3d8c5f25704ec9620fe57b82865531fb976a516f
* CMSettings: Introduce concept of protected apps managers.Adnan Begovic2016-01-221-1/+31
| | | | | TICKET: CYNGNOS-84 Change-Id: I06245b0a69eea3474c1c093c5843bd59b5c53a80
* Add overlay for SWAP_VOLUME_KEYS_ON_ROTATIONRicardo Cerqueira2016-01-221-0/+3
| | | | | | This got lost along the transition Change-Id: I35f5c6cdd73ff1d4a590fa6980d3214dda2bd740
* cmsdk: Load notification led customization defaultsEdward Wang2016-01-131-0/+9
| | | | | | Issue-Id: YAM-34 Change-Id: I67395465eb830ae994d8d796a4dbdae08ade5b01
* cmsdk: Fix quick pulldown settings, and unhide numerous system settings.Adnan Begovic2016-01-021-1/+1
| | | | Change-Id: Ibfc41a74ca5e5902ea704919ce076d8442258406
* CMSettings : Add default overlay for people lookupDanesh M2015-12-221-0/+3
| | | | Change-Id: I64db011fbe66045b52536f2c4b9d92e42603bd30
* Profiles: add isEnabled(); send state changesRoman Birg2015-12-211-0/+3
| | | | | | Ref: CYNGNOS-1461 Change-Id: Idee9417a2f0b181c8d15cd763859c0a0e581dce6 Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: add LOCKSCREEN_VISUALIZER_ENABLEDRoman Birg2015-12-161-0/+3
| | | | | Change-Id: Ia8b11083a54195acfebab76c646987962b798c16 Signed-off-by: Roman Birg <roman@cyngn.com>
* CMSettingsProvider: Split default load, don't load global for non-owner.Adnan Begovic2015-12-141-9/+23
| | | | | | | | Any "CALL" into the CMSettingsProvider on a new user triggers the load default settings mechanism which may lead to attempting to load "global" settings for non owner which is impossible. Change-Id: Ic8535e3c211aeaccfd3d72c3f9b11eef4d9087b8
* CMSettings: Add secure validators and relocate protected apps validatorYvonne Wong2015-12-071-3/+18
| | | | | | | | Move validators from CMSettings.System into CMSettings, add validators for CMSettings.Secure, and move protected apps validator from CMSettings.System to CMSettings.Secure Change-Id: I9f4e1bef7ff5be100376d2d03d34483d12938158
* Fix build breakage caused by "add default value for QS_USE_MAIN_TILES"Alexander Martinz2015-12-071-1/+1
| | | | | | | * commit 204ffe00a3c2dc205e5e1f90a1b2f10025d40ca9 Change-Id: I84d58a31e7f91e448865a05cf947f1e7d3442653 Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* add default value for QS_USE_MAIN_TILESRoman Birg2015-12-071-0/+3
| | | | | Change-Id: I22f1430841b7eec3a01431bfd12ed1591361f46d Signed-off-by: Roman Birg <roman@cyngn.com>
* CMSettingsProvider: Only enable component if already disabled.Adnan Begovic2015-12-031-4/+7
| | | | | | | Each CALL method would renable and already enabled component, cut down on log spam. Change-Id: Ie58c75e32c828b1ce8b1017620b5a3b073830bbd
* CMSettingsProvider: Change migration pref.Adnan Begovic2015-11-201-3/+17
| | | | | | | | | The previous migration step should've never happened, change the default shared pref to a different location to force trigger a migration on devices where the previous iteration of settings migration already happened. Change-Id: I6b466d37910c31dbf58d37fd631807d7dd2dbae3
* CMSettings: Validate name and value for System settingsd34d2015-11-191-3/+26
| | | | | | Verify that the name and value being inserted/updated are correct. Change-Id: I0243556701b1d303ca52135178b055c2fd87671c
* CMSDK : Keep track of legacy settingsDanesh M2015-11-161-1019/+8
| | | | Change-Id: I192d8033f2cd65cffc88f97089cb2ef2b02a566d
* cmsdk: Move Notification LEDs settings to CMSettingsAdrianDC2015-11-131-0/+6
| | | | | | | | | * Lights with Screen On * LEDs Brightness * Multiple LEDs Change-Id: I8c3f3cae53c834d1d2798d9dece00e3253ccb1db Signed-off-by: AdrianDC <radian.dc@gmail.com>
* CMSettings: Move Global settings to CMSettingsd34d2015-11-122-0/+81
| | | | Change-Id: Ib054409d5ad790e011e12ecbc6786bf3562a1b80
* CMSettings : Relocate settings to cm settings providerDanesh M2015-11-121-0/+213
| | | | Change-Id: I805d2e384ebbc8a603eb5387ed9d182b87a9b722
* CMSettings: Move Secure settings to CMSettingsd34d2015-11-121-0/+71
| | | | | | | This moves all Settings.Secure.* settings that, were added to CyanogenMod, to CMSettings. Change-Id: Ieaac288bfcb6189b3bc393484d27e441d805aea2
* cmsdk: Move T9_SEARCH_INPUT_LOCALE to CMSettings.Adnan Begovic2015-11-111-0/+9
| | | | Change-Id: I446ecc4e2b5981a86218fa8867ab771d422dce21
* cmsdk: Move NAVBAR_LEFT_IN_LANDSCAPE to CMSettings.Adnan Begovic2015-11-111-0/+9
| | | | Change-Id: I415288feef8d32613f9a7f8bbe1b748eaa7d459d
* cmsdk: Move RECENTS_SHOW_SEARCH_BAR to CMSettings.Adnan Begovic2015-11-111-0/+9
| | | | Change-Id: Ie34d57b547eb27f4f7629ed6d1fd9cced0ce7fff
* cmsdk: Move STATUS_BAR_SHOW_WEATHER to CMSettings.Adnan Begovic2015-11-111-0/+9
| | | | Change-Id: I792e8d04c1b70749db78f0bd5142d489aebd6d51
* cmsdk: Move DOUBLE_TAP_SLEEP_GESTURE to CMSettings.Adnan Begovic2015-11-111-0/+9
| | | | Change-Id: I88b255a5ddeff9520905c4a8b612c9fdbf3b4411
* cmsdk: Move LiveDisplay settings and resources.Adnan Begovic2015-11-101-0/+69
| | | | Change-Id: I6d0c3f8b645e2c8cca059ff343a774eab1933a9b
* cmsdk: Move WIFI_AUTO_CONNECT_TYPE to CMSettings.Adnan Begovic2015-11-101-0/+11
| | | | Change-Id: I3a0447006d29cc8d2b1bbed6f841ce9ae55be94f
* cmsdk: Move lookup provider logic to CMSettings.Adnan Begovic2015-11-101-0/+77
| | | | Change-Id: I239b1d5b56b940e591547ab1c50b6c1d34af586c
* CMSettingsProvider: Map LegacyCMSettings to CMSettings constants.Adnan Begovic2015-11-101-47/+63
| | | | Change-Id: I07537650cc536877ec4492af43e88ce8d60342fd
* CMSettingsProvider: Make sure to migrate proxmity settings.Adnan Begovic2015-11-091-0/+16
| | | | Change-Id: I434a88220191a6491f6e0f001e72a26a45f8043f
* cmsdk: Move battery light settings to CMSettings.Adnan Begovic2015-11-091-0/+42
| | | | Change-Id: I11a80bdeab369f851017c516039adc6400572b09
* cmsdk: Move numerous buttons settings into CMSettings.Adnan Begovic2015-11-091-0/+200
| | | | Change-Id: I7a0832745b9d81ad8d20afad8f17865932c6aad1
* CMSettings: Add migrate step for NAV_BUTTONS.Adnan Begovic2015-11-061-1/+8
| | | | Change-Id: Ia17ccba0e0b66ee35f3ac7f125f909dc010514d6
* cmsdk: Fix cm settings provider tests.Adnan Begovic2015-11-051-1/+2
| | | | Change-Id: Iedb9c3278f5fa872ffd28682fb3ef48ceb163dba