summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Simplify and improve dream, LLS and weather provider layouts.Danny Baumann2016-04-276-215/+139
| | | | | | | In particular, make sure the selection ripple extends to the edges of the screen. Change-Id: Ie5694dfea8fd14810895581e4e7daef15c8890c3
* Setting : Don't show search for activities not within same shared user idDanesh M2016-04-261-1/+2
| | | | | | Ticket: CYNGNOS-2522 Change-Id: I00d0a0e4d9ecc619846ce5e4e8fe8f6d7eeb4887
* settings: Remove LiveDisplay preferences if not availableSteve Kondik2016-04-251-0/+9
| | | | | | | | | * This really shouldn't be the case, but apparently some devices are misconfigured and are overriding the GPU-based CMHW implementation which would ensure the basic capabilities are available. Change-Id: I9f72cb58c9bbb63e0fdec4085b17a089f9d50174
* Settings: fix incorrect default sim/sms/data selection logicRoman Birg2016-04-251-0/+1
| | | | | | | | | | | change id I8ba32f3b203751e79697c7dcbc2cfcf1c6ae4ad0 broke this and assumed all needed a default index of 0; set it to -1 only for the data selection. Ticket: CYNGNOS-2388, CYNGNOS-2212 Change-Id: Ic81d1151aa71017e261107f1d67785cc50f2bd7f Signed-off-by: Roman Birg <roman@cyngn.com>
* Themes: Add tint mode so custom icons can show in power usage detailRandall Rushing2016-04-241-1/+4
| | | | | | | adding to this original commit: http://review.cyanogenmod.org/#/c/136136/ Change-Id: Id38035d8eaa4c3bd004fe747a5df3899646e5cdc Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
* Merge tag 'android-6.0.1_r30' into HEADJessica Wagantall2016-04-180-0/+0
|\ | | | | | | | | Ticket: RM-234 Android 6.0.1 release 30
| * DO NOT MERGE Modify system settings: incorrect UI stateSvetoslav2016-02-161-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The privilege for an app to write to the system settings is protected by an app-op signature permission. App-op permissions are special: if the app-op is deny/allow we deny/allow write access; if the app-op is default holding the permission determies write access. The settings code assumes that CHANGE_NETWORK_STATE is an app op permission (system|appop) while it is a normal permission which any app gets by declaring it used in the manifest. The side effect is that the state of the toggle in the UI for write system settings will initially be in the wrong state if the app uses both WRITE_SETTINGS and CHANGE_NETWORK_STATE. However, the code in the public API an app uses to check write settings access would return the opposite since it checks the WRITE_SETTINGS permission and its app op. Hence, if an app requires write settings to start the user will see in the settings UI it has access but the app will not have access, so the app would prompt the user to allow write settings. The non-obvious fix is for the user to toggle the setting off and on to get the app op in the right state and be able to launch the app. bug:25843134 Change-Id: I3d726a66c7f9857bc7dbd5946fdbb8f340c6eb4d (cherry picked from commit 356fb2d10d9f4c236b0f10d0e2facb93028b9f3c) (cherry picked from commit 119d589ea5aa9c2ccc5164279d718a20d0865f20)
* | Settings: Move ADB_ENABLED to "Global"Michael W2016-04-181-8/+8
| | | | | | | | | | | | | | ADB_ENABLED is in Global now, so move it there -> Reduces "adb_enabled has moved from x to y" messages Change-Id: Id5a7fb1c270e95d2c24c3cd60ddca71890bda3be
* | Settings: Save vibration intensity on closeGabriele M2016-04-171-2/+4
| | | | | | | | | | | | | | | | | | Sometimes the vibrator intensity is not updated quickly enough for the preview. Change the actual intensity rather than waiting for the framework to react to the preference change to keep up with the preview. Change-Id: Ic345978ebd8439a991975f9d004a6fbd6c753b95
* | Settings: Rework vibration intensity sliderGabriele M2016-04-171-16/+16
| | | | | | | | | | | | | | | | Use as many steps as intensity levels. The preference value is still saved as percentage to maintain backward compatibility. Also, make percentToIntensity() actually round the given values. Change-Id: Ib15765d7e077987c6712c59fd8eb43222ea4c878
* | Automatic translation importMichael Bestas2016-04-1698-111/+4733
| | | | | | | | Change-Id: I5c7350a9323a8d526fcffcd72be0b53a80f10282
* | Prevent crash if weather settings activity can't be foundLuis Vidal2016-04-152-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Settings: check current ringtone for non-default sub idsRoman Birg2016-04-151-2/+6
| | | | | | | | | | | | | | | | | | | | Otherwise the default phone sub's selection would always be pre-selected regardless of the actual selection. Ticket: CYNGNOS-2396 Change-Id: Ia33df47228eb2a49d48c80535876756b4ba1abf1 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Restore double tap to wake string from CM 12.1.Danny Baumann2016-04-152-2/+6
| | | | | | | | | | | | | | | | | | | | The AOSP strings/translations of that feature are inconsistent to those of the double tap to sleep feature, so replace the string to keep the translations consistent. As the same string exists in cm-12.1, all translations are already present and will automatically be added in the next translation sync. Change-Id: I613941b586fe60ea6b29e2695120359295289615
* | Fix unavailable wifi icon in wifi prioritiesMichael Bestas2016-04-151-4/+13
| | | | | | | | Change-Id: I5a36909d1f99e4ba6986421266d8b91a59fd2b8e
* | Settings: use the actual user id to set pattern sizeScott Mertz2016-04-142-3/+3
| | | | | | | | | | Ticket: CYNGNOS-2462 Change-Id: I1af2b69dabdc0aa010edb354c6274af57b442618
* | Setting: Disable WPS Push Button/Pin Entry when WiFi is disabledtao.pei2016-04-141-4/+16
| | | | | | | | Change-Id: Ia03c81dd3a6abf01680e2e2e2ba87f15c2f33b97
* | SpamList: Set correct color & remove text from notifications menu itemLuK13372016-04-142-5/+3
| | | | | | | | Change-Id: I3b938becf2cabe7c58129b78d4d0d2fd2c9d9e04
* | livedisplay: Update Settings for new LiveDisplay APISteve Kondik2016-04-12104-1042/+58
| | | | | | | | | | | | | | | | | | * 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
* | Fix the improper string and increment database version to kick off a new ↵Martin Brabham2016-04-112-2/+2
| | | | | | | | | | | | | | | | indexing job. Change-Id: Iec878ec4414a47f05f9d0de03eb2268ef0b3d6ee Ticket-Id: CYNGNOS-812 (cherry picked from commit 13ccd1c41aaf1238ca128addda3ec4c1b15abb3c)
* | Settings: fix default sim radio selectionsRoman Birg2016-04-111-4/+3
| | | | | | | | | | | | Change-Id: I8ba32f3b203751e79697c7dcbc2cfcf1c6ae4ad0 Ticket: CYNGNOS-2388, CYNGNOS-2212 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Allow adding a shortcut icon for carrier selectionMichael W2016-04-113-2/+48
| | | | | | | | | | | | e.g. to homescreen Change-Id: I4d16519ee84b50b229c82a41c404690bb2618c29
* | Add explanation for customizing appsMichael W2016-04-072-0/+13
| | | | | | | | | | | | | | | | | | Settings->Display & LEDs->Notification light->Apps Currently this is header only if no apps are added yet. Populate it with an explanation when it's empty. Change-Id: I83193dfdd01f05bcd1d597033ef710a1b0eb7e82
* | Settings: use ActivityManager method for requesting bug reportRoman Birg2016-04-071-2/+7
| | | | | | | | | | | | | | | | | | | | | | This let's ActivityManagerService handle all the logic for requesting bug reports. Ticket: CYNGNOS-2329 Change-Id: I44e6a9295a0625bcdc0f3a22daf097bdccf0d3c4 Signed-off-by: Roman Birg <roman@cyngn.com> (cherry picked from commit 3d56d11794d8a5c3637a347986c9d2908e096d19) (cherry picked from commit 952b0d9acb2ce0cbf42728a65d77fcba2885adb4)
* | Settings: Disable and hide refresh button on power usage detail.Adnan Begovic2016-04-072-5/+13
| | | | | | | | | | | | | | | | Users expect immediate return on their input, so don't allow the input. Change-Id: I5c2553ed6fb5dc617b458123e1e13590d64f4ba1 TICKET: CRACKLING-1035
* | Settings: Use cm build properties correctly.Adnan Begovic2016-04-061-1/+2
| | | | | | | | | | TICKET: CYNGNOS-2379 Change-Id: I8342589c52d633c044570be02f48c7f5a48f788c
* | Automatic translation importMichael Bestas2016-04-0696-219/+4027
| | | | | | | | Change-Id: I3d5131973925152ad0d2ebd21d4c57f03c5d1cd2
* | Revert "Settings: disable wifi display from search indexing if disabled"Roman Birg2016-04-040-0/+0
| | | | | | | | | | | | This reverts commit 8b1fe7d8b3d704ce841f4af12cd9d7b98eb9330d. Change-Id: I4372a7a52f4b983fbdd5bba930ef7a8fd249ad43
* | Revert "Settings: disable wifi display from search indexing if disabled"Steve Kondik2016-04-042-6/+1
| | | | | | | | | | | | | | | | | | | | * Breaks the build. Missing variables, bad syntax. DONUTS-1234 This reverts commit 8b1fe7d8b3d704ce841f4af12cd9d7b98eb9330d. Change-Id: Idf1a5a9580d85148d117893568515562bea31af2
* | DevelopmentSettings: Synchronize USB connection data stateEthan Chen2016-04-041-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * UsbModeChooserActivity now takes into account whether the user has unlocked USB data for the current composition mode, but the development settings USB mode chooser dialog does not. This patchset makes it aware. * Assume if USB data hasn't been unlocked by the user, that USB charging mode is the current composition mode. This patch makes assumptions that the charging composition mode occurs at position 0 of the resources however. Any devices which have custom USB composition modes set in the overlay should be aware of this change. REF: CYNGNOS-2322 Change-Id: I8789f23b1c58bfb6e23f4fcde2b2c10d5fd4adf2
* | Settings: Use correct LOW_POWER_MODE_TRIGGER defaultEthan Chen2016-04-041-3/+1
| | | | | | | | | | | | | | | | | | | | | | * Low power mode was set to never enable automatically upstream in frameworks/base. We erroneously read from the config_lowBatteryWarningLevel resource for the default in change: 821fd62d952e380a260fc6edae8919284785796a, which is usually 15. * Reset this to 0 to align with the default value set in the provider. REF: CYNGNOS-2274 Change-Id: Iec32f972fe6d67b258ee17eff603c4a67c99d783
* | Settings: disable wifi display from search indexing if disabledAnkit Gupta2016-04-042-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | If wifi display is disabled from the system property or from the overlay file, disable its key indexing to stop appearing it in search result. Also update the database version to reflect the changes. Also fix indexing for saved access point settings. Issue-id: YAM-141 Change-Id: Ia3688e4b294ad67ab8029dd47d1067fd722cbff7
* | Settings: fix profiles nw selection with 1 sim in MSIM DUTRoman Birg2016-04-041-1/+1
| | | | | | | | | | | | Ticket: CYNGNOS-1463 Change-Id: I2ad9436c17f0c2ecc9aea7cae7d2f6c806eb9ed7 Signed-off-by: Roman Birg <roman@cyngn.com>
* | AppOps: Don't show option to restrict network usage for platform signed appsUnpublished2016-04-041-2/+4
| | | | | | | | | | | | Using the option results in an IllegalArgumentException of the settings app. Change-Id: Ia3ceddb39fccc6ae445a7e4e307a248794127878
* | Improve cellular data stringsMichael Bestas2016-04-041-4/+4
| | | | | | | | | | | | * Follow standards Change-Id: Idab832e96eefd7d3937f60bf8b61af1b12001b7a
* | Settings app Data Usage UI enhancementsKamaljeet Maini2016-04-016-31/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified Settings app to support following new features in Data Usage Summary screen: 1) Added two items to overflow menu a) Enable/disable data usage alerts: to enable/disable global switch for data alerts. Shown only when DataUsage provider is installed. b) Reset data statistics: to reset data stats for current tab 2) Added a new per app switch "Mobile Data Alert" 3) Added a new per app switch "Restrict cellular data access" 4) Modified per app background data access feature to support three options a) Over mobile and WiFi b) Only over WiFi c) No access DataUsage provider, service and notification receivers have been refactored into a standalone package to minimize the changes to the Settings App. Change-Id: Ic0e42e57d04dc8e164ebfdab4531cced31c4e6eb Issue-Id: SETTINGS-75 Issue-Id: SETTINGS-76 Issue-Id: SETTINGS-77 Issue-Id: SETTINGS-76
* | LLS: Add config for showing LLS settings at topd34d2016-04-012-2/+9
| | | | | | | | | | | | | | | | | | This config allows the live lock screen settings to be displayed at the top of the Lock screen settings when set to true, by default it is false Change-Id: I051f07c4d7b05e89f4efdc018ce833190a4e14af TICKET: CYNGNOS-2242
* | Add Weather Content Provider [2/5]Luis Vidal2016-03-3110-1/+560
| | | | | | | | | | | | | | | | | | | | 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
* | Settings: add marquee to Device administrators screenRoman Birg2016-03-312-0/+3
| | | | | | | | | | | | | | | | | | Noticed while doing CTS testing that it was really hard to pick the correct receivers to enable when you cannot see their full names. Change-Id: I8f14d04f1037158c94d5501c115b5100456d7619 Signed-off-by: Roman Birg <roman@cyngn.com> (cherry picked from commit 83b4a9951b8aadfba35d8f12d075231e7cb36385)
* | LLS: Add LiveLockScreenSettings to ENTRY_FRAGMENTSd34d2016-03-301-1/+3
| | | | | | | | | | | | | | | | Trying to launch Live lock screen settings will throw an IllegalArgumentException since the fragment is not considered valid. Add it to ENTRY_FRAGMENTS so it is considered valid. Change-Id: I13b52dc2f65f62fe7146b3002720a901dd363338
* | Settings: implicitly link to lls settingsRoman Birg2016-03-303-1/+20
| | | | | | | | | | | | Ticket: CYNGNOS-2241 Change-Id: I39e883dd52ed4574a1ce1c2becb104c5458e800f Signed-off-by: Roman Birg <roman@cyngn.com>
* | LLS: Use LiveLockScreenManager for selecting LLSd34d2016-03-301-16/+10
| | | | | | | | Change-Id: Ib404b4fb1cdbad773703e4702490b92cc14a548e
* | Settings: Fix one-time vibration intensity restoreGabriele M2016-03-281-2/+1
| | | | | | | | Change-Id: I8d9f1288dddc98f58f3565c8927be0642b026a64
* | Settings: reflect/inform user of disabled wakelock appopRoman Birg2016-03-282-6/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an app is marked as "allow-in-power-save" (loaded in as part of SystemConfig), then this app is not susceptible to battery saving optimizations and is required to be active for the system to function properly. This behavior is enforced on the PowerManagerService side when requesting wake locks - inform the user visually as well. Ticket: CYNGNOS-1258 Change-Id: I1c99de703012a09ddbde19838171b7e5659f2523 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Automatic translation importMichael Bestas2016-03-2850-872/+7135
| | | | | | | | Change-Id: I9b569411eef8996b0fa20d164062f54d3162e49e
* | Improve data usage stringsMichael Bestas2016-03-221-2/+2
| | | | | | | | Change-Id: If2770dfdf874006704909f2ec95472956fc4a490
* | Settings: forward decrypt required on boot flagRoman Birg2016-03-211-1/+6
| | | | | | | | | | | | | | | | | | | | This wasn't being pass forward and all of the defaults had it set to true. Ticket: CYNGNOS-2270 Change-Id: I90a6c918bb5b4b52791bcff18a6ea3bcfb194547 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Settings : Fix default privacy guard preferenceDanesh M2016-03-211-2/+2
| | | | | | | | | | | | | | Ensure we write to the correct table. CYNGNOS-2264 Change-Id: I1260cf665080631e3e2ec19b371a79eee273c6d2
* | Settings: Respect config_proximityCheckOnWakeEnabledByDefaultGabriele M2016-03-211-1/+7
| | | | | | | | | | | | | | Also, set the correct value for PROXIMITY_ON_WAKE when the feature is disabled. Change-Id: Ibf9dd1c64aeb076bc72f328d50825790aef2a50b
* | Settings : Add per app internet/data controlDanesh M2016-03-216-48/+143
| | | | | | | | | | | | | | CYAN-3976 CRACKLING-834 Change-Id: I13192df837c057b5cadde8f31532e12daaf3c1b0