OSDN Git Service

android-x86/packages-apps-Settings.git
8 years agoSettings: allow Profiles to be launched externally
Roman Birg [Thu, 22 Jan 2015 18:55:38 +0000 (10:55 -0800)]
Settings: allow Profiles to be launched externally

Change-Id: I620be76139989722ac722f00259425c237a1c66e
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoThemes: Use SRC_ATOP tintMode for external tile icons
d34d [Wed, 9 Dec 2015 22:46:35 +0000 (14:46 -0800)]
Themes: Use SRC_ATOP tintMode for external tile icons

For more elaborate themes that use a drawable with color and no
need for tinting, the tint mode needs to be changed to SRC_ATOP
instead of the default SRC_IN.  This means that the alpha value
from the tint color is discarded and the alpha of the drawable is
used instead.  Stock still looks as expected so this should be
an acceptable compromise to accommodate themes that supply a
transparent tint with the intention of no tint being applied.

Change-Id: I6852792b6b71ef73c5c0ba6073c88bff8c19456b

8 years agoFix FC when trying to adjust radio band via *#*#4636#*#* dialer code.
Andrew Xie [Thu, 7 Feb 2013 03:51:46 +0000 (21:51 -0600)]
Fix FC when trying to adjust radio band via *#*#4636#*#* dialer code.

Fixes:

1. Add additional strings to BAND_NAMES array for additional bands from ril.h
2. Fix logic when adding band strings to selection list (for loop ends before entire array is read)

Change-Id: I5ff883a469f757a30c71d7d72c8f6ace19ce7a4d
Signed-off-by: Andrew Xie <andrew.w.xie@gmail.com>
(cherry picked from commit 4845045bb2dfd9b1a67f9f0c62bb44bfc5152284)

8 years agoSettings : Port over reorganization from 12.1
Danesh M [Thu, 3 Dec 2015 00:08:08 +0000 (16:08 -0800)]
Settings : Port over reorganization from 12.1

Change-Id: I3d77bb96aba4a501d3223e72be60403694828a34

8 years agoCM PlatLogo: CyanogenMod version preference (2/2)
Danesh Mondegarian [Sun, 9 Dec 2012 21:59:15 +0000 (16:59 -0500)]
CM PlatLogo: CyanogenMod version preference (2/2)

Binds the CyanogenMod version preference to launch CM easter egg
upon multiple taps.

Change-Id: I8e06642944d24581c0932c9964f2d9615bfcb832

8 years agoSettings: add quick-quick settings pulldown setting
Roman Birg [Fri, 21 Nov 2014 22:26:21 +0000 (14:26 -0800)]
Settings: add quick-quick settings pulldown setting

Change-Id: I986ea9d5e7037e58b1d185aba3daaa8fa7f6a9a7
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoMerge tag 'android-6.0.1_r3' of https://android.googlesource.com/platform/packages...
Steve Kondik [Tue, 8 Dec 2015 02:49:15 +0000 (18:49 -0800)]
Merge tag 'android-6.0.1_r3' of https://android.googlesource.com/platform/packages/apps/Settings into HEAD

Android 6.0.1 release 3

Change-Id: If54bacef03fc826fd02ca48db5ef3a25c8fc7127

8 years agoRevert "Themes: Expose forced tint on fingerprint enrollment checkmark"
Danesh M [Tue, 8 Dec 2015 01:16:54 +0000 (17:16 -0800)]
Revert "Themes: Expose forced tint on fingerprint enrollment checkmark"

This reverts commit fd00d2d93b9889e57a937f0b5631b82d83770621.

Change-Id: I1d1d6688c817a4964c2d97980d4d70275bf8715f

8 years agoSettings: Always enable the per-app pulse light settings
Gabriele M [Wed, 19 Aug 2015 14:26:03 +0000 (16:26 +0200)]
Settings: Always enable the per-app pulse light settings

All the per-app light settings, including the pulse light settings,
were made dependent on config_multiColorNotificationLed.

The code to enable the notification color settings depending on the
value of config_multiColorNotificationLed is already in place, so
enable the advanced light settings unconditionally.

Change-Id: Ie396f5e6e190c6d3f08c83dd0b38b038f0653b85

8 years agoSettings: make dashboard icons color consistent
gabriele [Mon, 7 Dec 2015 11:48:39 +0000 (12:48 +0100)]
Settings: make dashboard icons color consistent

Use color defined in android:attr/colorAccent attribute for cm icons,
this will make them consistent with the stock ones and easier themable.

Change-Id: I77e6610f595de829696ca4a4a240279fea8aa7b3

8 years agoSettings: skip Misc/Overcounted battery stats in builds
myfluxi [Mon, 7 Dec 2015 13:13:47 +0000 (14:13 +0100)]
Settings: skip Misc/Overcounted battery stats in builds

Quadruple battery lifez.

Change-Id: I251af69d9a4c3fe4a5856e23b8d7dfeca7c3213e
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
8 years agoSettings: we do not ship Google Now Launcher wallpapers
jrizzoli [Mon, 7 Dec 2015 13:10:37 +0000 (14:10 +0100)]
Settings: we do not ship Google Now Launcher wallpapers

Change-Id: I615664b5e82bea90b431e308a50fee7080b057a2
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
8 years agoApp Notifications: remove peek option when headsup is disabled
Altaf-Mahdi [Sat, 14 Nov 2015 23:01:11 +0000 (23:01 +0000)]
App Notifications: remove peek option when headsup is disabled

Change-Id: I45605f3524fdc5bd84dce7bcf63875a6201d2c79

8 years agoThemes: Expose forced tint on fingerprint enrollment checkmark
Nicholas Chum [Wed, 18 Nov 2015 03:45:49 +0000 (22:45 -0500)]
Themes: Expose forced tint on fingerprint enrollment checkmark

Allow themers to manually tint the checkmark in SetupWizard.

Change-Id: I32f2264eadc13b7ebc98721551f0b5b4a955c26f

8 years agoContributorCloud: Remove rank from dialog
Matt Mower [Fri, 4 Dec 2015 16:05:18 +0000 (10:05 -0600)]
ContributorCloud: Remove rank from dialog

Let's tone down the ego aspect of contributors. Listing number of
commits is fine, but ranking contributors sends the wrong message
(not to mention the current implementation puts equal weight on all
commits).

Change-Id: I15c24827e734bdeea20ac2dfb8ad38d6bc0046d7

8 years agoProtected apps: get protected components settings from secure instead of system
Yvonne Wong [Thu, 3 Dec 2015 23:31:41 +0000 (15:31 -0800)]
Protected apps: get protected components settings from secure instead of system

Change-Id: Iebe1a0e5587b844d29524d25da1f7556dd935599

8 years agoExpose styles in the manifest for themes
Bryan Owens [Sat, 28 Nov 2015 23:00:48 +0000 (17:00 -0600)]
Expose styles in the manifest for themes

Change-Id: I639cf5cde1632ec010a28f986fd657d91b21e6d0
Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
8 years agoRemove 'Pulse if battery low' if unsupported
Alberto97 [Sat, 12 Sep 2015 21:48:59 +0000 (23:48 +0200)]
Remove 'Pulse if battery low' if unsupported

Change-Id: Ie58f5c0c148b7f8acbf61d8e808b0cb78e9fb581

8 years agoBatteryLight: Reset all settings back to default
d34d [Mon, 15 Jun 2015 23:05:13 +0000 (16:05 -0700)]
BatteryLight: Reset all settings back to default

This patch resets all the settings for BatteryLightSettings when
the user presses reset, for a more consistent UX.

Change-Id: I5b705a02b9df686eea8af5afd4d552897926d0e3

8 years agosettings: wifi priorities
Jorge Ruesga [Wed, 3 Jun 2015 23:01:52 +0000 (01:01 +0200)]
settings: wifi priorities

Added the ability of graphically set the priority of any of the saved Wi-Fi networks
through Settings -> Wi-Fi -> Saved networks

Require: http://review.cyanogenmod.org/100830
         http://review.cyanogenmod.org/100831

JIRA: CML-118

Change-Id: Id535a7bd8865897bfed0570675ef837a5d410779
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
8 years agoSettings: use CMHW serial number
Pawit Pornkitprasan [Wed, 8 Jan 2014 15:42:38 +0000 (22:42 +0700)]
Settings: use CMHW serial number

See http://review.cyanogenmod.org/57164

Change-Id: If328ca7b487435b88246d1f8c47b04770183f09e

8 years agoThemes: Expose color for external settings icons
d34d [Tue, 1 Dec 2015 21:52:03 +0000 (13:52 -0800)]
Themes: Expose color for external settings icons

Marhsmallow now allows for system apps to add settings.  An icon is
loaded from the external package and a tint is applied to the icon
so that it matches other icons in the dashboard.  The tint color
uses the colorAccent attribute from the currently applied style.
Themes can overlay the colorAccent but this color is also used for
other elements of the UI which may not be ideal.

This patch adds a new color external_tile_icon_tint_color which
points to the attribute ?android:attr/colorAccent when not themed.
This retains the original look but offers better flexibility for
theme designers.

Change-Id: I95fe8da0768f29e0b762af3a74fd2afad7b15cd2

8 years agoAdd toggle for heads up notifications
Michael Bestas [Tue, 21 Apr 2015 21:37:26 +0000 (00:37 +0300)]
Add toggle for heads up notifications

Change-Id: Ie2f50e3fac70268d1cf0c0cab6cd23d9aec7cdc7

8 years agoCorrect development shortcut summary
Michael Bestas [Tue, 2 Dec 2014 11:38:38 +0000 (13:38 +0200)]
Correct development shortcut summary

Change-Id: Ia776d25c8f58789c3eedf16b7d5c705b04130b5f

8 years agoCorrect double tap to sleep summary
Michael Bestas [Tue, 2 Dec 2014 03:01:20 +0000 (05:01 +0200)]
Correct double tap to sleep summary

Change-Id: If2e7ab2c138e72eeb7d862738bb7dd3ad43d4b16

8 years agoSettings: Fix IllegalArgumentException in AppGroupConfig
lion0738 [Mon, 30 Nov 2015 14:53:22 +0000 (23:53 +0900)]
Settings: Fix IllegalArgumentException in AppGroupConfig

Change-Id: I772d5f8e443699ff3f45e8d1c50debb2c7730b17

8 years agoSettings: update contributors cloud db
Brinly Taylor [Tue, 1 Dec 2015 22:14:32 +0000 (08:44 +1030)]
Settings: update contributors cloud db

Change-Id: I92486df58bead02960ac1263f1ca32d8be77aaa4

8 years agosettings: contributors cloud
Jorge Ruesga [Tue, 11 Aug 2015 23:05:08 +0000 (01:05 +0200)]
settings: contributors cloud

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>
8 years agoUse ScreenType util from cmsdk
LorDClockaN [Fri, 23 Jan 2015 14:48:57 +0000 (15:48 +0100)]
Use ScreenType util from cmsdk

Change-Id: I07874c68802674695877c6bd0329c8973dd1c653

8 years agosettings: Remove direct usage of CMHardware
Steve Kondik [Sun, 29 Nov 2015 00:45:03 +0000 (16:45 -0800)]
settings: Remove direct usage of CMHardware

 * No need to reference this jar, all calls go thru the service.

Change-Id: Id51f4156618e6d91750a2164cd95f65bef437e39

8 years agoSettings: Allow launching display rotation settings externally
Michael Bestas [Sat, 7 Mar 2015 03:22:23 +0000 (05:22 +0200)]
Settings: Allow launching display rotation settings externally

Change-Id: I69168fea2a43cfa7f2b8474042c35720f4431040

8 years agoUse SystemSettingSwitchPreference.
Danny Baumann [Sat, 15 Nov 2014 12:26:41 +0000 (13:26 +0100)]
Use SystemSettingSwitchPreference.

Change-Id: I14fe1c9b1c5ead1ddb20c61ba080bb005f2130d7

8 years agoSettings: fix profile triggers not showing up for RTL languages
Roman Birg [Mon, 8 Dec 2014 18:59:59 +0000 (10:59 -0800)]
Settings: fix profile triggers not showing up for RTL languages

The layout was placing the title and summary off the screen for RTL
layouts.

Change-Id: I30e560fb9565581b2f55a826e90e110383581f28
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: Change 'Model Number' to 'Model Name'
Kyle Laker [Wed, 24 Dec 2014 23:35:10 +0000 (18:35 -0500)]
Settings: Change 'Model Number' to 'Model Name'

Most devices have the Model Number set to something like 'One' rather
than 'PN072', therefore they are using the Model Name not the Model
Number. Therefore, either every device should update to properly refer
to the Model Number, or we should update Settings to correctly state
that it is the Model Name.

Change-Id: I70981d3a46e7a7e26f4bfcb6c5d768a00314e3b9

8 years agowifi: forward port avoid poor connection setting
Jonathan Dean [Tue, 23 Dec 2014 04:38:39 +0000 (23:38 -0500)]
wifi: forward port avoid poor connection setting

Squash:
fixup "wifi: forward port avoid poor connection setting"

Author: : Evisceration <eviscerationls@gmail.com>

Change-Id: I3545e874bd6519a586744fc36297f7f3f3cb1f42

Change-Id: I22d0866e2c5d9b7f119b7ad42cc66e78bfd6ada0

8 years agoSettings: Clean duplicated permissions
AdrianDC [Thu, 19 Nov 2015 20:32:54 +0000 (21:32 +0100)]
Settings: Clean duplicated permissions

Change-Id: I31e2569a5ffd294c9ac5ad0b657a8aa519085756
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoRevert "update the permissions for the AccountManagerService"
AdrianDC [Thu, 19 Nov 2015 20:29:29 +0000 (21:29 +0100)]
Revert "update the permissions for the AccountManagerService"

 * Remove the duplicate USE_CREDENTIALS from commit 43c6978

This reverts commit 0e3b960a5eaa371b57e30aafefec267a420a09db.

Change-Id: I67a8113ba6fe82310992ca66721403ded7d335eb

8 years agowifi: Allow configuration of country code for wifi (3/3)
Andrew Dodd [Thu, 13 Sep 2012 01:59:20 +0000 (21:59 -0400)]
wifi: Allow configuration of country code for wifi (3/3)

Wifi country code handling is a nightmare - Most retail devices
have region customization in /system for each country a device
is shipped to.

This doesn't work very well for a firmware like Cyanogenmod,
where we try to support all target countries with one firmware
package.  For whatever reason, with newer Broadcom drivers/
firmware blobs, the old trick of using a universal region code
(ccode=ALL in nvram_net.txt) does not seem to work.  Who knows
what the deal is for other wifi chipsets.

The good thing is that wpa_supplicant has a standardized
cross-chipset method for setting the region code, and we
use that here.

Cherry-Pick: http://review.cyanogenmod.org/#/c/54904/
Require: I429326a77649c77ba40b00eb2236de3ca8839e57
         Id9f00d3a678642c6c142fd1511af820d729507a7

JIRA: CML-118

Change-Id: Ia9f5133f61f56d89ccb290e37a393f5de507e1cf

8 years agoSettings: Remove screen rotation from accessibility
Michael Bestas [Tue, 20 May 2014 23:02:38 +0000 (02:02 +0300)]
Settings: Remove screen rotation from accessibility

We have a more advanced option in display settings

Change-Id: I8be43e899a14d184374b422a381b0db839709fbf

8 years agoDevelopment Settings: fix advanced reboot state on resume
Altaf-Mahdi [Wed, 3 Dec 2014 03:37:39 +0000 (03:37 +0000)]
Development Settings: fix advanced reboot state on resume

Change-Id: I5475bec978c9cf50c02769091dbb43c6eff6c020

8 years agoHide LCD density preference from secondary users
LuK1337 [Sat, 19 Sep 2015 17:00:52 +0000 (19:00 +0200)]
Hide LCD density preference from secondary users

Change-Id: I44bcb804962748a254719cd6b7e0403a16fbc796

8 years agoSettings: use WindowManager to set custom DPI
Roman Birg [Thu, 28 May 2015 22:21:37 +0000 (15:21 -0700)]
Settings: use WindowManager to set custom DPI

Change-Id: I719bf391cc8746466c466b4b5a9a0e2bf9fc0056
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoAdd LCD density setting
Tom Marshall [Thu, 3 Oct 2013 20:49:37 +0000 (20:49 +0000)]
Add LCD density setting

Change-Id: I3d55615127cc735ea0443d519520d0cb6cfbfb38

8 years agosettings: Fix crash when saving button backlight enabled/disabled
Christopher R. Palmer [Tue, 24 Nov 2015 11:49:51 +0000 (06:49 -0500)]
settings: Fix crash when saving button backlight enabled/disabled

Change-Id: I2b6de8e9c908803dcc510a378188e40fac4141f1

8 years agosettings: Only show mobile_networks if we have telephony
Christopher R. Palmer [Tue, 24 Nov 2015 11:50:12 +0000 (06:50 -0500)]
settings: Only show mobile_networks if we have telephony

Change-Id: I937eaca7abefb4354cc274d5d5934a33149f4414

8 years agoperf: Enable app-profile pref only if profile has support
Khalid Zubair [Tue, 24 Nov 2015 17:42:29 +0000 (09:42 -0800)]
perf: Enable app-profile pref only if profile has support

Use new perf manager APIs to query if a perf profile has support for
app profiles. Enable the pref only when supported.

Currently, only the 'Balanced' profile has app specific rules.

Change-Id: I9aa96bd869c6e80a4d3ba3b97646647db3b47d57

8 years agoperf: Add CM secure settings for app profile pref
Khalid Zubair [Tue, 24 Nov 2015 17:32:26 +0000 (09:32 -0800)]
perf: Add CM secure settings for app profile pref

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

8 years agostorage: Do not allow eject for volumes on non-removable disks
Tom Marshall [Tue, 24 Nov 2015 23:30:20 +0000 (15:30 -0800)]
storage: Do not allow eject for volumes on non-removable disks

Change-Id: Ib10747f27ef46ebdca906a904271f7c1e9bc3e73

8 years agoSettings - Display Rotation: Checkboxes to Switches
STELIX [Tue, 9 Dec 2014 15:11:05 +0000 (16:11 +0100)]
Settings - Display Rotation: Checkboxes to Switches

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>
8 years agoRe-Implementation of Protected App Settings
Vineet Patil [Thu, 13 Nov 2014 01:14:27 +0000 (17:14 -0800)]
Re-Implementation of Protected App Settings

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

8 years agoSettings: Fix hiding button backlight option
Konsta [Sun, 4 Jan 2015 18:30:55 +0000 (20:30 +0200)]
Settings: Fix hiding button backlight option

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

8 years agoRevert "Settings : Nav ring"
LuK1337 [Tue, 24 Nov 2015 17:07:46 +0000 (18:07 +0100)]
Revert "Settings : Nav ring"

* M no longer has nav ring

This reverts commit 9cf9098e3f3a6d71ec600b862005452068db86b8.

Change-Id: I1484c3b2b9d3656a9f928977ee2eeaec37170bbc

8 years agoSettings: Add CM Updater
DvTonder [Sun, 25 Nov 2012 12:44:13 +0000 (07:44 -0500)]
Settings: Add CM Updater

Squashed commit of the following:

Author: DvTonder <david.vantonder@gmail.com>
Settings: Add Updater and Changelog
Change-Id: I8cf09962d9ba667bcdba78d7214fd6b5bb0feedc

Author: Jorge Ruesga <jorge@ruesga.com>
settings: hide settings of disabled components

Change-Id: I977bd0c9668b479773802f99d03ecd1072e12f75
JIRA: CYAN-3552
Issue: https://jira.cyanogenmod.org/browse/CYAN-3552
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Author: Michael Bestas <mikeioannina@gmail.com>
Move CM updater & remove summary

* Move CM Updater to the top, like the fota app
* Use android's default 'System updates' empty summary
Change-Id: Ia3358397be97bc0ac19dd73598d053eb29efe31d

Change-Id: I8cf09962d9ba667bcdba78d7214fd6b5bb0feedc

8 years agoSettings: Add FOTA updater
Ricardo Cerqueira [Thu, 3 Oct 2013 19:33:28 +0000 (20:33 +0100)]
Settings: Add FOTA updater

Squashed commit of the following:

Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Support the signed-builds FOTA updater, too
Change-Id: I2724881d6252ce7ce17ed9b3cfa94f6fecae1f7d

Author: Brint E. Kriebel <bekit@cyngn.com>
settings: Rename FOTA package
Change-Id: Ic1131261c275c15de308dded0aea36b61942a986

Change-Id: I2724881d6252ce7ce17ed9b3cfa94f6fecae1f7d

8 years agoSettings: implement metrics logging interface from aosp.
Adnan Begovic [Mon, 23 Nov 2015 17:49:40 +0000 (09:49 -0800)]
Settings: implement metrics logging interface from aosp.

Change-Id: I4a656471a12821de2c16c2a19be01b7d9eba4e9a

8 years agoSettings: utilize STATS_COLLECTION from CMSettings.
Adnan Begovic [Fri, 20 Nov 2015 23:36:11 +0000 (15:36 -0800)]
Settings: utilize STATS_COLLECTION from CMSettings.

Change-Id: Id57336c400ebabcb525f1a5e741c49bfa11c2916

8 years agoSettings: add fallback strings to device versioning for metrics
Roman Birg [Mon, 20 Jul 2015 18:21:26 +0000 (11:21 -0700)]
Settings: add fallback strings to device versioning for metrics

Change-Id: Ia82f19d4248d5807282f076cfd76a462b1189f26
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: add opt out stats event
Steve Kondik [Mon, 28 Sep 2015 21:38:16 +0000 (14:38 -0700)]
Settings: add opt out stats event

- Get rid of keeping track of queued jobs, job scheduler does this and
  all we really want is a new job id to not interfere with old ones
  (unless we hit the max jobs allowed, then start the count over).

- Persist whether we have reported metrics for the owner user (once per
  device)

Ref: CYNGNOS-1131
Change-Id: Ib5bac2944b5ca4259ea82a357b24708377c1dc4c

8 years agoSettings: report stats upload immediately
Roman Birg [Mon, 10 Aug 2015 16:59:36 +0000 (09:59 -0700)]
Settings: report stats upload immediately

We should report the upload status immediately to the job service and
not let the executor leave doInBackground() even after the job
successfully finished, and report a potential failure in onPostExecut().
Otherwise if conditions are no longer met, and the job has finished, it can
result in the job reporting as failed, even though it has succeeded.

Ref: CYNGNOS-714

Change-Id: I5e06ae9dbca5c1412641eed51acded7c67522ded
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: fix reversed name/id fields in metrics
Roman Birg [Fri, 17 Jul 2015 18:22:03 +0000 (11:22 -0700)]
Settings: fix reversed name/id fields in metrics

Ref: CYNGNOS-471
Change-Id: Icfe5bf69b30afcddc1f23ae9ce1589e1c6ca2f6d
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: improved stats upload logic
Roman Birg [Sat, 8 Aug 2015 00:34:34 +0000 (17:34 -0700)]
Settings: improved stats upload logic

We don't get onStopJob() callbacks after the job is finished.

Ref: CYNGNOS-714

Change-Id: I1906cb80854a193efaba0f662d66823fec5f7073
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: update community metrics
Roman Birg [Mon, 15 Jun 2015 21:42:37 +0000 (14:42 -0700)]
Settings: update community metrics

- Send community metrics to CM.org as well as Cyanogen server

- Kill off Google Analytics

- Use JobScheduler to intelligently schedule uploads when network
  connection is available

Change-Id: Ibd7d84a961dda4af20db9226191380e9f977b5de
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: Move CMStats under Privacy settings.
Adnan Begovic [Fri, 24 Apr 2015 17:28:29 +0000 (10:28 -0700)]
Settings: Move CMStats under Privacy settings.

Change-Id: Ib1eaf2deee4de0854a64051fe7b0487a0d9bdc8c

8 years agoSettings: Rebase against GoogleAnalyticsV3.
Adnan Begovic [Fri, 24 Apr 2015 02:54:17 +0000 (19:54 -0700)]
Settings: Rebase against GoogleAnalyticsV3.

Change-Id: Ia015847be4bf985e206a5b4b2362959c6220e2ba

8 years agoSettings: Map to new Secure Setting for Stats Collection.
Adnan Begovic [Thu, 23 Apr 2015 22:44:18 +0000 (15:44 -0700)]
Settings: Map to new Secure Setting for Stats Collection.

Change-Id: I7de094ed9d0621f8744f8fb6236ae0085832d7ca

8 years agoSettings: Migrate stats opt out to global settings.
Adnan [Mon, 14 Jul 2014 21:17:21 +0000 (14:17 -0700)]
Settings: Migrate stats opt out to global settings.

Control newly introduced global setting

Change-Id: Iea22206cd8ac8bf7d45e4b7dabfb9f0d1e602e0e

8 years agoUse SSL for submitting stats
Chris Soyars [Fri, 4 Apr 2014 18:26:53 +0000 (11:26 -0700)]
Use SSL for submitting stats

Change-Id: If830c05ee121d3951ffcf34cd3bbd499c5107f1d

8 years agoReportingService: Fix service startup
Ricardo Cerqueira [Sun, 22 Dec 2013 17:24:25 +0000 (17:24 +0000)]
ReportingService: Fix service startup

Turns out the service wasn't starting at all until someone looked at the data,
so no reports were being sent for CM11...

Change-Id: Ib64ddbed4e0cae9c2f71d6c0c79f8081d6f15301

8 years agoSettings: Update Anonymous Stats Implementation.
Adnan Begovic [Thu, 23 Apr 2015 22:40:01 +0000 (15:40 -0700)]
Settings: Update Anonymous Stats Implementation.

Change-Id: I0347b4401563acff1a9f488cde5d53bb76b02c10

8 years agoSettings: Anonymous Statistics (CMStats)
Danesh Mondegarian [Sat, 4 Feb 2012 02:02:21 +0000 (21:02 -0500)]
Settings: Anonymous Statistics (CMStats)

CMStats is now integrated into settings.

Change-Id: Ice1b2c0c4882620eef774aca26b91a39d27f7b47

8 years agoapn: Update the add actionbar icon
Diogo Ferreira [Wed, 14 Jan 2015 14:53:32 +0000 (14:53 +0000)]
apn: Update the add actionbar icon

The add icon was using pre-L drawables and looked out of place.

Change-Id: Icd2a522590b3ed01da99d8b1dc093019b5f46218

8 years agoUse Theme.SettingsBase for notification log
LuK1337 [Sat, 19 Sep 2015 15:06:42 +0000 (17:06 +0200)]
Use Theme.SettingsBase for notification log

Change-Id: I9241eb308926048ab4b59c63a4aa3d8c7f3a3209

8 years agoOnly use device custom icon if it provides one
Keith Mok [Fri, 20 Nov 2015 19:51:04 +0000 (11:51 -0800)]
Only use device custom icon if it provides one

In function updateTileToSpecificActivityFromMetaDataOrRemove
it tries to get devices specific icon from the meta data
and set the iconPkg to the device specific package without
checking the device actually provides one.

This override the Settings default icon whatever the
device specific icon is provided or not.

Change-Id: I5d973617948a5dae0c7c1797f6f2b6bd7787a75a

8 years agoSettings: update layouts
jrizzoli [Mon, 16 Nov 2015 21:15:32 +0000 (22:15 +0100)]
Settings: update layouts

Settings: update layouts
- User materialish oval shapes instead of rectangles
- Rearrange notifications, wireless, display and sound entries
- Update some strings

Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
Settings: update control ring stream string
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
WirelessSettings: Remove NFC category if there's no NFC adapter

+ Settings: add mobile network entry to dashboard

Change-Id: I3fcd758f77a217e5c37a22f4d797398a7613b5a2
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
8 years agoAdd isSupported() method to VibratorIntensity class
Sam Mortimer [Thu, 19 Nov 2015 23:12:52 +0000 (15:12 -0800)]
Add isSupported() method to VibratorIntensity class

Change-Id: I801af80f7b1e15954c50f6f9c5eca4f31f949575

8 years agoSettings : Update settings reference for powerButton/bugReport
Danesh M [Tue, 17 Nov 2015 23:02:55 +0000 (15:02 -0800)]
Settings : Update settings reference for powerButton/bugReport

Switch INCALL_POWER_BUTTON_BEHAVIOR and BUGREPORT_IN_POWER_MENU to
Settings reference

Change-Id: I0a14e8b1a667e3922540a77479bfc1932cad7130

8 years agoSettings: Buttons: remove all camera button preferences if unsupported
Scott Mertz [Tue, 17 Nov 2015 06:55:15 +0000 (22:55 -0800)]
Settings: Buttons: remove all camera button preferences if unsupported

Change-Id: Ib32263eabb2608b4324d756affd311dfb8dfc5bb

8 years agoExpose "ALL" hardcoded and @android colors
Bryan Owens [Thu, 12 Nov 2015 15:20:15 +0000 (09:20 -0600)]
Expose "ALL" hardcoded and @android colors

Change-Id: I8ef92ae66d4828ca85d624a300ef7cf29f7367d8
Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
8 years agoMerge branch 'LA.BF64.1.2.2_rb4.7' of git://codeaurora.org/platform/packages/apps...
Steve Kondik [Mon, 16 Nov 2015 22:43:08 +0000 (14:43 -0800)]
Merge branch 'LA.BF64.1.2.2_rb4.7' of git://codeaurora.org/platform/packages/apps/Settings into cm-13.0

8 years agoMultiple LEDs [2/3]: Illumination Bars support
AdrianDC [Thu, 12 Nov 2015 13:01:58 +0000 (14:01 +0100)]
Multiple LEDs [2/3]: Illumination Bars support

Implement the support of a multiple LEDs settings.

The setting is deactivated by default
and will be ignored by the unimplemented phones.
Current LibLights will simply not use the new variable.

Changes includes :
  frameworks/base
  hardware/libhardware
  packages/apps/Settings

Change-Id: I5531093cd0543d7730a8c3f83c0aebb3678436d5
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoLEDs Brightness [1/2]: Lights notifications brightness support
AdrianDC [Tue, 18 Aug 2015 17:18:49 +0000 (19:18 +0200)]
LEDs Brightness [1/2]: Lights notifications brightness support

Implement the support of an overall brightness control for the LEDs.

The setting is deactivated by default
and will be ignored by the unimplemented phones.
Current LibLights will simply not use the new variable.

Changes includes :
  frameworks/base
  packages/apps/Settings

Change-Id: I6ff14ee0de8200f211302a868c5b43e3ec6f9f3a
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoLights with Screen On [2/2]: Optional allowment of lights
AdrianDC [Sat, 18 Jul 2015 10:20:48 +0000 (12:20 +0200)]
Lights with Screen On [2/2]: Optional allowment of lights

Implement a setting allowing lights to be activated
for new notifications even if the screen is on.

Lights with screen on and Custom values are separated
in an advanced section for a cleaner overview.

This setting gives the user an oportunity to activate lights
with the screen on and also during DayDream screensaver.
The option is not activated by default.

Changes include :
  frameworks/base
  packages/apps/Settings

Change-Id: I3650a014554ce50eb9030cc41e5ce1780bcc2dfe
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoSettings: fix restoring DEV_FORCE_SHOW_NAVBAR setting on boot
Altaf-Mahdi [Sat, 14 Nov 2015 18:11:50 +0000 (18:11 +0000)]
Settings: fix restoring DEV_FORCE_SHOW_NAVBAR setting on boot

Change-Id: Ic6014149aed4367561c011c485c528dbd13289ad

8 years agoRevert "Fully deprecate Power Control widget."
Ethan Chen [Mon, 17 Nov 2014 02:48:22 +0000 (18:48 -0800)]
Revert "Fully deprecate Power Control widget."

This reverts commit d12748d6351aa2c043c75c1be29bff1c31681278.

Change-Id: I379a920129d1c87a9d1390d27a21189dc5a7b790

8 years agoFix profiles toggle
LuK1337 [Sat, 14 Nov 2015 11:15:06 +0000 (12:15 +0100)]
Fix profiles toggle

* Also implement CMBaseSystemSettingSwitchBar used for it.

Change-Id: I1109cf06066a6c5f57044a484b0af6bbb38dc1b1

8 years agoProfileGroupConfig: Use correct metrics category
LuK1337 [Sun, 8 Nov 2015 11:20:39 +0000 (12:20 +0100)]
ProfileGroupConfig: Use correct metrics category

Change-Id: Ieedeaf03a3ba8246a643bfb9003c45f25b4facf5

8 years agoSettings: Fix FC on Notification Light settings
AragaoAnderson [Fri, 13 Nov 2015 10:23:53 +0000 (08:23 -0200)]
Settings: Fix FC on Notification Light settings

AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.ClassCastException: com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference cannot be cast to com.android.settings.cyanogenmod.SystemSettingSwitchPreference

Change-Id: I3afa8bb4cfe9dcd76054b9c9bd9ba87a069f74e0

8 years agosettings: Fix merge collision
Steve Kondik [Fri, 13 Nov 2015 08:36:18 +0000 (09:36 +0100)]
settings: Fix merge collision

Change-Id: I6cfb35e3d2b58a0ea7f79f2d400544d3baec6178

8 years agoprivacy: Actually set the blacklist preference
Diogo Ferreira [Wed, 3 Dec 2014 15:02:57 +0000 (15:02 +0000)]
privacy: Actually set the blacklist preference

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

8 years agoMove Blacklist and Notif Filter to Privacy
Abhisek Devkota [Tue, 2 Dec 2014 23:31:44 +0000 (15:31 -0800)]
Move Blacklist and Notif Filter to Privacy

Match CM 11

Change-Id: I5e3f9c26b68a89ba1622d95e2d0e4f4a93361c5e

Cleanup Security/Privacy settings code

Cleanup:
* Mismerges
* Code style
* Copyright headers
* File permissions

Change-Id: I6c34586680f0ccbaa613a0acfee366113c32a81c

8 years agoAdd back blacklist settings.
Danny Baumann [Thu, 13 Nov 2014 01:14:27 +0000 (17:14 -0800)]
Add back blacklist settings.

Change-Id: Iae35717acfa9af4da75c07d24352acf981d19fc7

Improve translatability of summaries.

Change-Id: I362b335cbe219d6e371a458c9d50fcd66bdf19fe

Settings: Alert user when they attempt to add an invalid number to BL.

  - BlacklistProvider will reject numbers that aren't valid, silently. So instead of
  resuming to a blank screen, we should alert the user that the number they attempted to
  add is invalid by utilizing BlacklistUtils#addOrUpdate method.

Change-Id: I1ca32427baad41c1c9379e18046e6ca7937b6d32

Add missing blacklist xxhdpi drawables.

Change-Id: I327f408ff344e9358c479cf5fe9dc341918511b2

Blacklist: Fix launching blacklist settings

Change-Id: I0043503e6ac0d3536941394ee5057001b72f9114

Settings : Launch only contacts picker for blacklist entry

Change-Id: I266d1ad7f1aab745728b33490268cb197188f2b3

8 years agoSettings : Filter spam notifications
Danesh M [Thu, 13 Nov 2014 01:14:29 +0000 (17:14 -0800)]
Settings : Filter spam notifications

Change-Id: I4056aceada3cf8397827037bcb52388de9f8b9fc

8 years agoForward port SMS rate limit setting
Roman Birg [Thu, 13 Nov 2014 01:14:28 +0000 (17:14 -0800)]
Forward port SMS rate limit setting

Change-Id: Ie8fea98e9e24b0f6302eaed22af9241f85ca965a

8 years agoadd Voice Wakeup switch
Roman Birg [Wed, 26 Mar 2014 23:14:58 +0000 (16:14 -0700)]
add Voice Wakeup switch

 * 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

8 years agoSettings: Move Global settings to CMSettings
d34d [Thu, 12 Nov 2015 21:00:17 +0000 (13:00 -0800)]
Settings: Move Global settings to CMSettings

Change-Id: I73e3477ccc3c804de0f32974d926e6bc9df9b227

8 years agoSettings : Move System settings to CmSettings
Danesh M [Thu, 12 Nov 2015 19:36:10 +0000 (11:36 -0800)]
Settings : Move System settings to CmSettings

Change-Id: Id8d5e36c0a61b93d8785a7b9b88a7829c37f66a5

8 years agoSettings: Move Secure settings to CMSettings
d34d [Tue, 10 Nov 2015 18:49:22 +0000 (10:49 -0800)]
Settings: Move Secure settings to CMSettings

Change-Id: If2e4f1e44b448c953f6fb1f3a0689b73cc3958c0

8 years agoSettings: Move NAVBAR_LEFT_IN_LANDSCAPE to CMSettings.
Adnan Begovic [Wed, 11 Nov 2015 21:33:04 +0000 (13:33 -0800)]
Settings: Move NAVBAR_LEFT_IN_LANDSCAPE to CMSettings.

Change-Id: I2a741c29c5ca9be5990bf21fd63a4272199b2074

8 years agoSettings: Move RECENTS_SHOW_SEARCH_BAR to CMSettings.
Adnan Begovic [Wed, 11 Nov 2015 21:17:49 +0000 (13:17 -0800)]
Settings: Move RECENTS_SHOW_SEARCH_BAR to CMSettings.

Change-Id: If5f6a31bdf2799ee1e760ee629a50a6764b32db2

8 years agoSettings: Add option to disable search bar in recents (1/2)
Yashar Ahmedizadeh [Tue, 2 Dec 2014 14:49:53 +0000 (16:49 +0200)]
Settings: Add option to disable search bar in recents (1/2)

Coded from scratch by yashade2001.
Firstly written for Project D.I.S.C.O. ROM.
Thanks to TheMrcool212 for his help.

Change-Id: I8a7665e7c796a584baf0e457b09f9a5af62439cd