OSDN Git Service

android-x86/packages-apps-Settings.git
8 years agoDisable cellular networks settings menu if airplane mode is enabled
Luis Vidal [Fri, 6 May 2016 22:54:36 +0000 (15:54 -0700)]
Disable cellular networks settings menu if airplane mode is enabled

Cellular networks settings menu will be disabled
if user enables airplane mode

Change-Id: I83d78754918d50c02e19121ffcfb673bb1dc5797
TICKET: CYNGNOS-2697

8 years agoAdd config to hide/show weather menu
Luis Vidal [Wed, 11 May 2016 00:16:47 +0000 (17:16 -0700)]
Add config to hide/show weather menu

This config controls whether the weather menu
should be displayed in settings

Change-Id: I89502d22cb56496825f497e6b19fce3d8e0a7a3c
TICKET: CYNGNOS-2796

8 years agoAutomatic translation import
Abhisek Devkota [Tue, 10 May 2016 23:20:26 +0000 (16:20 -0700)]
Automatic translation import

Change-Id: I534298276780b88f87567ab977bd8ce1d1a856e4
Ticket: RM-232

8 years agoAutomatic translation import
Michael Bestas [Tue, 10 May 2016 15:38:09 +0000 (18:38 +0300)]
Automatic translation import

Change-Id: Idf93c9826109ee82aa18fc78a5fe6dff47bc5588

8 years agoDisable battery pulsing if segmented battery LED is enabled
LuK1337 [Wed, 4 May 2016 15:43:43 +0000 (17:43 +0200)]
Disable battery pulsing if segmented battery LED is enabled

Change-Id: Ic5b4e7ce7830c43e84f9a14919ea85bbe993ac99

8 years agoAdd option to select temperature unit
Luis Vidal [Wed, 27 Apr 2016 05:42:21 +0000 (22:42 -0700)]
Add option to select temperature unit

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

8 years agoUpdate power control widget preview image.
Dave Kover [Thu, 5 May 2016 00:25:21 +0000 (17:25 -0700)]
Update power control widget preview image.

The image was not reflective of the current design of the widget.

Change-Id: Ia3fe45337359edbb0c469ff2e1d2fd1f1351b8f0
Ticket: FEIJ-305

8 years agoWifiSettings : Fix forgetting saved networks crash after rotation
Danesh M [Thu, 5 May 2016 02:10:11 +0000 (19:10 -0700)]
WifiSettings : Fix forgetting saved networks crash after rotation

FEIJ-310

Change-Id: If6e3e28025ae4eba0bf20d53c68b7d840f76ce6c

8 years agoSettings: sync qs invert color with color inversion in Settings
Ankit Gupta [Tue, 3 May 2016 20:41:41 +0000 (13:41 -0700)]
Settings: sync qs invert color with color inversion in Settings

Color inversion in settings is not consistent with the quick
settings tiles for the inverted color.
This patch registers the invert color settings variable to
content resolver to apply any change to it from either
qs tiles or settings menu.

Change-Id: Ib1433238d4985e930f3a1c650198dbeb05ccba52
Issue-id: FEIJ-164

8 years agoPartial revert "Settings : Add per app internet/data control"
Sam Mortimer [Sun, 1 May 2016 18:11:45 +0000 (11:11 -0700)]
Partial revert "Settings : Add per app internet/data control"

This reverts commit a3549a2715e47ce07297315586ea9c5798da2997

Revert changes only to:
src/com/android/settings/privacyguard/PrivacyGuardManager.java
src/com/android/settings/privacyguard/AppInfoLoader.java

We currently have inconsistent behaviour where:

*) if pg is on by default, a newly installed app will not
   have restricted network access

*) if the pg state for an app is toggled off/on it will end
   up with restricted network access

Newly installed apps where pg is on should result in the
same end state compared to flipping pg guard off/on per app.

This partial revert stops the data control setting changing
when pg state is changed on a specific app.

Change-Id: I1eba14204abe0d137ebd45c5a6a3b7db354339bb

8 years agoProtected apps: fix rotation states
Roman Birg [Tue, 3 May 2016 22:37:46 +0000 (15:37 -0700)]
Protected apps: fix rotation states

Don't try to relaunch the activity if it's already been launched.

Ticket: FEIJ-224

Change-Id: I597417570f2f937afb0195fecd7dc406ff2508f3
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoLockPatternView: persist state across rotates
Roman Birg [Tue, 1 Sep 2015 22:25:01 +0000 (15:25 -0700)]
LockPatternView: persist state across rotates

We need to persist and restore the activity states across rotates so the
user doesn't have to restart from the beginning.

Ref: CYNGNOS-141

Change-Id: I18458d55748666b439cf7b6fcecd81ee5c4c7865
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoLLS: Load title and summary from ext. package if avail.
d34d [Tue, 3 May 2016 15:29:28 +0000 (08:29 -0700)]
LLS: Load title and summary from ext. package if avail.

Query for packages that support the
ACTION_OPEN_LIVE_LOCK_SCREEN_SETTINGS and load the title and summary
for the preference from that package.

If no other packages exist or we are unable to load the title AND
summary, then we use the defaults and carry on as usual.

Change-Id: Ibbd5347aa35994877fa067b29cacbe9a9ed12dad
TICKET: CYNGNOS-2696

8 years agoSettings: Make sure to rebuild on app entries loaded.
Adnan Begovic [Tue, 3 May 2016 20:54:42 +0000 (13:54 -0700)]
Settings: Make sure to rebuild on app entries loaded.

  Previously, notifydatasetchanged would only be called in oncreate,
  and any further callbacks from the application state session would
  be ignored. Now, make sure to handle the various scenarios and rebuild
  as necessary, notifying the ui as needed.

Change-Id: I61572ff082629046d1fdf5fedb1e8ec37343f588
TICKET: FEIJ-334

8 years agoSettings: fix backlight illumination wrong summary
Roman Birg [Mon, 25 Apr 2016 22:12:43 +0000 (15:12 -0700)]
Settings: fix backlight illumination wrong summary

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>
8 years agoSettings: refresh ui on foce stop/diable
Roman Birg [Mon, 25 Apr 2016 19:00:02 +0000 (12:00 -0700)]
Settings: refresh ui on foce stop/diable

Fixes the storage summary not updating after force closing, enabling,
or disabling the app.

Ticket: CYNGNOS-2527

Change-Id: I000459d27d06071a36ab0ac6761c1af56c132dde
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: Ensure user has to wait 30 before retrying pattern
cretin45 [Thu, 28 Apr 2016 20:33:51 +0000 (13:33 -0700)]
Settings: Ensure user has to wait 30 before retrying pattern

Issue-id: FEIJ-257, FEIJ-273

Change-Id: I08f16c6863ca5bbdb586d756da813453124851b2

8 years agoAutomatic translation import
Michael Bestas [Thu, 28 Apr 2016 21:45:13 +0000 (00:45 +0300)]
Automatic translation import

Change-Id: Ibcb688db7bff937cd92b2a0be1a784830b2e3dc7

8 years agoSettings: restore proper live display color profile
Roman Birg [Tue, 26 Apr 2016 22:53:43 +0000 (15:53 -0700)]
Settings: restore proper live display color profile

Select currently selected, not default, profile.

Ticket: CYNGNOS-2575

Change-Id: I8db23feefd88776949fe0af356b320b8b4a7b8cb
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSimplify and improve dream, LLS and weather provider layouts.
Danny Baumann [Mon, 11 Apr 2016 11:07:34 +0000 (13:07 +0200)]
Simplify and improve dream, LLS and weather provider layouts.

In particular, make sure the selection ripple extends to the edges of
the screen.

Change-Id: Ie5694dfea8fd14810895581e4e7daef15c8890c3

8 years agoSetting : Don't show search for activities not within same shared user id
Danesh M [Tue, 26 Apr 2016 01:26:37 +0000 (18:26 -0700)]
Setting : Don't show search for activities not within same shared user id

Ticket: CYNGNOS-2522

Change-Id: I00d0a0e4d9ecc619846ce5e4e8fe8f6d7eeb4887

8 years agosettings: Remove LiveDisplay preferences if not available
Steve Kondik [Tue, 26 Apr 2016 05:46:17 +0000 (22:46 -0700)]
settings: Remove LiveDisplay preferences if not available

 * 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

8 years agoSettings: fix incorrect default sim/sms/data selection logic
Roman Birg [Fri, 22 Apr 2016 16:43:18 +0000 (09:43 -0700)]
Settings: fix incorrect default sim/sms/data selection logic

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>
8 years agoThemes: Add tint mode so custom icons can show in power usage detail
Randall Rushing [Tue, 5 Apr 2016 16:24:26 +0000 (11:24 -0500)]
Themes: Add tint mode so custom icons can show in power usage detail

adding to this original commit: http://review.cyanogenmod.org/#/c/136136/

Change-Id: Id38035d8eaa4c3bd004fe747a5df3899646e5cdc
Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
8 years agoMerge tag 'android-6.0.1_r30' into HEAD
Jessica Wagantall [Mon, 18 Apr 2016 18:14:52 +0000 (11:14 -0700)]
Merge tag 'android-6.0.1_r30' into HEAD

Ticket: RM-234
Android 6.0.1 release 30

8 years agoSettings: Move ADB_ENABLED to "Global"
Michael W [Fri, 15 Apr 2016 08:40:45 +0000 (10:40 +0200)]
Settings: Move ADB_ENABLED to "Global"

ADB_ENABLED is in Global now, so move it there
-> Reduces "adb_enabled has moved from x to y" messages

Change-Id: Id5a7fb1c270e95d2c24c3cd60ddca71890bda3be

8 years agoSettings: Save vibration intensity on close
Gabriele M [Tue, 29 Mar 2016 14:34:11 +0000 (16:34 +0200)]
Settings: Save vibration intensity on close

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

8 years agoSettings: Rework vibration intensity slider
Gabriele M [Sun, 27 Mar 2016 20:36:58 +0000 (22:36 +0200)]
Settings: Rework vibration intensity slider

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

8 years agoAutomatic translation import
Michael Bestas [Sat, 16 Apr 2016 14:47:37 +0000 (17:47 +0300)]
Automatic translation import

Change-Id: I5c7350a9323a8d526fcffcd72be0b53a80f10282

8 years agoPrevent crash if weather settings activity can't be found
Luis Vidal [Fri, 15 Apr 2016 17:11:36 +0000 (10:11 -0700)]
Prevent crash if weather settings activity can't be found

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

8 years agoSettings: check current ringtone for non-default sub ids
Roman Birg [Fri, 8 Apr 2016 23:22:03 +0000 (16:22 -0700)]
Settings: check current ringtone for non-default sub ids

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>
8 years agoRestore double tap to wake string from CM 12.1.
Danny Baumann [Fri, 15 Apr 2016 06:37:18 +0000 (08:37 +0200)]
Restore double tap to wake string from CM 12.1.

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

8 years agoFix unavailable wifi icon in wifi priorities
Michael Bestas [Thu, 14 Apr 2016 23:45:15 +0000 (02:45 +0300)]
Fix unavailable wifi icon in wifi priorities

Change-Id: I5a36909d1f99e4ba6986421266d8b91a59fd2b8e

8 years agoSettings: use the actual user id to set pattern size
Scott Mertz [Thu, 14 Apr 2016 02:49:38 +0000 (19:49 -0700)]
Settings: use the actual user id to set pattern size

Ticket: CYNGNOS-2462
Change-Id: I1af2b69dabdc0aa010edb354c6274af57b442618

8 years agoSetting: Disable WPS Push Button/Pin Entry when WiFi is disabled
tao.pei [Wed, 23 Mar 2016 02:06:21 +0000 (10:06 +0800)]
Setting: Disable WPS Push Button/Pin Entry when WiFi is disabled

Change-Id: Ia03c81dd3a6abf01680e2e2e2ba87f15c2f33b97

8 years agoSpamList: Set correct color & remove text from notifications menu item
LuK1337 [Sat, 9 Apr 2016 10:16:34 +0000 (12:16 +0200)]
SpamList: Set correct color & remove text from notifications menu item

Change-Id: I3b938becf2cabe7c58129b78d4d0d2fd2c9d9e04

8 years agolivedisplay: Update Settings for new LiveDisplay API
Steve Kondik [Mon, 11 Apr 2016 01:20:46 +0000 (18:20 -0700)]
livedisplay: Update Settings for new LiveDisplay API

 * 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

8 years agoFix the improper string and increment database version to kick off a new indexing...
Martin Brabham [Wed, 26 Aug 2015 23:40:26 +0000 (16:40 -0700)]
Fix the improper string and increment database version to kick off a new indexing job.

Change-Id: Iec878ec4414a47f05f9d0de03eb2268ef0b3d6ee
Ticket-Id: CYNGNOS-812
(cherry picked from commit 13ccd1c41aaf1238ca128addda3ec4c1b15abb3c)

8 years agoSettings: fix default sim radio selections
Roman Birg [Thu, 7 Apr 2016 18:20:04 +0000 (11:20 -0700)]
Settings: fix default sim radio selections

Change-Id: I8ba32f3b203751e79697c7dcbc2cfcf1c6ae4ad0
Ticket: CYNGNOS-2388, CYNGNOS-2212
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoAllow adding a shortcut icon for carrier selection
Michael W [Fri, 8 Apr 2016 16:44:08 +0000 (18:44 +0200)]
Allow adding a shortcut icon for carrier selection

e.g. to homescreen

Change-Id: I4d16519ee84b50b229c82a41c404690bb2618c29

8 years agoAdd explanation for customizing apps
Michael W [Wed, 6 Apr 2016 22:59:38 +0000 (00:59 +0200)]
Add explanation for customizing apps

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

8 years agoSettings: use ActivityManager method for requesting bug report
Roman Birg [Fri, 15 Aug 2014 18:35:54 +0000 (11:35 -0700)]
Settings: use ActivityManager method for requesting bug report

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)

8 years agoSettings: Disable and hide refresh button on power usage detail.
Adnan Begovic [Wed, 6 Apr 2016 17:58:03 +0000 (10:58 -0700)]
Settings: Disable and hide refresh button on power usage detail.

  Users expect immediate return on their input, so don't allow
  the input.

Change-Id: I5c2553ed6fb5dc617b458123e1e13590d64f4ba1
TICKET: CRACKLING-1035

8 years agoSettings: Use cm build properties correctly.
Adnan Begovic [Wed, 6 Apr 2016 21:53:14 +0000 (14:53 -0700)]
Settings: Use cm build properties correctly.

TICKET: CYNGNOS-2379
Change-Id: I8342589c52d633c044570be02f48c7f5a48f788c

8 years agoAutomatic translation import
Michael Bestas [Tue, 5 Apr 2016 22:18:23 +0000 (01:18 +0300)]
Automatic translation import

Change-Id: I3d5131973925152ad0d2ebd21d4c57f03c5d1cd2

8 years agoRevert "Settings: disable wifi display from search indexing if disabled"
Roman Birg [Tue, 5 Apr 2016 05:43:04 +0000 (22:43 -0700)]
Revert "Settings: disable wifi display from search indexing if disabled"

This reverts commit 8b1fe7d8b3d704ce841f4af12cd9d7b98eb9330d.

Change-Id: I4372a7a52f4b983fbdd5bba930ef7a8fd249ad43

8 years agoRevert "Settings: disable wifi display from search indexing if disabled"
Steve Kondik [Tue, 5 Apr 2016 05:35:43 +0000 (22:35 -0700)]
Revert "Settings: disable wifi display from search indexing if disabled"

 * Breaks the build. Missing variables, bad syntax.

DONUTS-1234

This reverts commit 8b1fe7d8b3d704ce841f4af12cd9d7b98eb9330d.

Change-Id: Idf1a5a9580d85148d117893568515562bea31af2

8 years agoDevelopmentSettings: Synchronize USB connection data state
Ethan Chen [Fri, 1 Apr 2016 18:05:02 +0000 (11:05 -0700)]
DevelopmentSettings: Synchronize USB connection data state

* 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

8 years agoSettings: Use correct LOW_POWER_MODE_TRIGGER default
Ethan Chen [Thu, 31 Mar 2016 23:10:26 +0000 (16:10 -0700)]
Settings: Use correct LOW_POWER_MODE_TRIGGER default

* 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

8 years agoSettings: disable wifi display from search indexing if disabled
Ankit Gupta [Tue, 23 Feb 2016 19:14:59 +0000 (11:14 -0800)]
Settings: disable wifi display from search indexing if disabled

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

8 years agoSettings: fix profiles nw selection with 1 sim in MSIM DUT
Roman Birg [Mon, 4 Apr 2016 15:39:00 +0000 (08:39 -0700)]
Settings: fix profiles nw selection with 1 sim in MSIM DUT

Ticket: CYNGNOS-1463
Change-Id: I2ad9436c17f0c2ecc9aea7cae7d2f6c806eb9ed7
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoAppOps: Don't show option to restrict network usage for platform signed apps
Unpublished [Sun, 3 Apr 2016 11:14:45 +0000 (13:14 +0200)]
AppOps: Don't show option to restrict network usage for platform signed apps

Using the option results in an IllegalArgumentException of the settings app.

Change-Id: Ia3ceddb39fccc6ae445a7e4e307a248794127878

8 years agoImprove cellular data strings
Michael Bestas [Mon, 4 Apr 2016 15:55:50 +0000 (18:55 +0300)]
Improve cellular data strings

* Follow standards

Change-Id: Idab832e96eefd7d3937f60bf8b61af1b12001b7a

8 years agoSettings app Data Usage UI enhancements
Kamaljeet Maini [Tue, 29 Mar 2016 22:46:54 +0000 (15:46 -0700)]
Settings app Data Usage UI enhancements

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

8 years agoLLS: Add config for showing LLS settings at top
d34d [Thu, 31 Mar 2016 17:58:15 +0000 (10:58 -0700)]
LLS: Add config for showing LLS settings at top

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

8 years agoAdd Weather Content Provider [2/5]
Luis Vidal [Mon, 21 Mar 2016 17:08:14 +0000 (10:08 -0700)]
Add Weather Content Provider [2/5]

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

8 years agoSettings: add marquee to Device administrators screen
Roman Birg [Wed, 20 May 2015 16:46:51 +0000 (09:46 -0700)]
Settings: add marquee to Device administrators screen

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)

8 years agoLLS: Add LiveLockScreenSettings to ENTRY_FRAGMENTS
d34d [Wed, 30 Mar 2016 17:58:39 +0000 (10:58 -0700)]
LLS: Add LiveLockScreenSettings to ENTRY_FRAGMENTS

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

8 years agoSettings: implicitly link to lls settings
Roman Birg [Fri, 25 Mar 2016 22:34:31 +0000 (15:34 -0700)]
Settings: implicitly link to lls settings

Ticket: CYNGNOS-2241
Change-Id: I39e883dd52ed4574a1ce1c2becb104c5458e800f
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoLLS: Use LiveLockScreenManager for selecting LLS
d34d [Mon, 14 Mar 2016 16:57:31 +0000 (09:57 -0700)]
LLS: Use LiveLockScreenManager for selecting LLS

Change-Id: Ib404b4fb1cdbad773703e4702490b92cc14a548e

8 years agoSettings: Fix one-time vibration intensity restore
Gabriele M [Mon, 28 Mar 2016 21:23:21 +0000 (23:23 +0200)]
Settings: Fix one-time vibration intensity restore

Change-Id: I8d9f1288dddc98f58f3565c8927be0642b026a64

8 years agoSettings: reflect/inform user of disabled wakelock appop
Roman Birg [Thu, 17 Mar 2016 20:49:50 +0000 (13:49 -0700)]
Settings: reflect/inform user of disabled wakelock appop

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>
8 years agoAutomatic translation import
Michael Bestas [Sun, 27 Mar 2016 21:46:11 +0000 (00:46 +0300)]
Automatic translation import

Change-Id: I9b569411eef8996b0fa20d164062f54d3162e49e

8 years agoImprove data usage strings
Michael Bestas [Tue, 22 Mar 2016 00:00:39 +0000 (02:00 +0200)]
Improve data usage strings

Change-Id: If2770dfdf874006704909f2ec95472956fc4a490

8 years agoSettings: forward decrypt required on boot flag
Roman Birg [Mon, 21 Mar 2016 22:17:16 +0000 (15:17 -0700)]
Settings: forward decrypt required on boot flag

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>
8 years agoSettings : Fix default privacy guard preference
Danesh M [Mon, 21 Mar 2016 20:56:22 +0000 (13:56 -0700)]
Settings : Fix default privacy guard preference

Ensure we write to the correct table.
CYNGNOS-2264

Change-Id: I1260cf665080631e3e2ec19b371a79eee273c6d2

8 years agoSettings: Respect config_proximityCheckOnWakeEnabledByDefault
Gabriele M [Mon, 21 Mar 2016 15:30:52 +0000 (16:30 +0100)]
Settings: Respect config_proximityCheckOnWakeEnabledByDefault

Also, set the correct value for PROXIMITY_ON_WAKE when the feature is
disabled.

Change-Id: Ibf9dd1c64aeb076bc72f328d50825790aef2a50b

8 years agoSettings : Add per app internet/data control
Danesh M [Mon, 7 Mar 2016 23:17:59 +0000 (15:17 -0800)]
Settings : Add per app internet/data control

CYAN-3976
CRACKLING-834

Change-Id: I13192df837c057b5cadde8f31532e12daaf3c1b0

8 years agoSettings: fix BT switch enabling discoverable mode
Roman Birg [Fri, 15 May 2015 00:29:59 +0000 (17:29 -0700)]
Settings: fix BT switch enabling discoverable mode

Signed-off-by: Roman Birg <roman@cyngn.com>
Conflicts:
src/com/android/settings/bluetooth/BluetoothEnabler.java

Bug: CYNGNOS-2271
Change-Id: I6b2dff88fb858d34a1b534705b2c67f5ab4c2d29

8 years agoMove external input tile inclusion to device repo.
Danny Baumann [Wed, 16 Mar 2016 15:18:55 +0000 (16:18 +0100)]
Move external input tile inclusion to device repo.

Change-Id: I1afa10da1b9e0cc35c5198d1cbd5c13e2b4c343d

8 years agoSettings: Update contributors cloud DB
Michael Bestas [Sun, 13 Mar 2016 16:29:01 +0000 (18:29 +0200)]
Settings: Update contributors cloud DB

Change-Id: I2732f74c7271638f02791b26f2fd476b3d6e3440

8 years agoImprove protected apps string
Michael Bestas [Sat, 12 Mar 2016 19:06:23 +0000 (21:06 +0200)]
Improve protected apps string

Change-Id: I3704910d99b5d93bc2f423229da72558d9fe6fb9

8 years agoAutomatic translation import
Michael Bestas [Thu, 17 Mar 2016 19:59:44 +0000 (21:59 +0200)]
Automatic translation import

Change-Id: Ide7fdb04e25ae1d25205a835b37ff8a004660ad4

8 years agoRe-expose hardcoded white text colors
Dave Kover [Thu, 3 Mar 2016 00:48:40 +0000 (16:48 -0800)]
Re-expose hardcoded white text colors

In the original expose pass, all of the hardcoded white text colors
were given a generic color that they all pointed to. This is great,
but very inflexible for themes that might need to tweak just one
of those instances.

With this patch, we will create new text colors (and allow some
textviews to share it when it makes sense) and point all of those
back to the text_color_white so that existing themes are not
broken.

Change-Id: Iae850b7f75d319bd308f001058918e4466c70dca

8 years agoThemes: Expose Hard coded icon tint in power summary settings
Bryan Owens [Sun, 13 Mar 2016 22:34:21 +0000 (17:34 -0500)]
Themes: Expose Hard coded icon tint in power summary settings

Change-Id: I9b41af6ecc8843623815c08561f7bd5d0f3e4d77
Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
8 years agoDisplayColor: clamp maximum value to 1.0f
Dan Elkouby [Sat, 5 Mar 2016 12:08:04 +0000 (14:08 +0200)]
DisplayColor: clamp maximum value to 1.0f

Sometimes when adjusting to 100%, this value can overflow causing the
activity to crash.

Change-Id: If578e98618ddae5d60924189feb3aafc6072d906

8 years agoSettings: ask telephony for network selection
Roman Birg [Wed, 10 Feb 2016 02:14:31 +0000 (18:14 -0800)]
Settings: ask telephony for network selection

When configuring profiles and selecting a network mode override, ask
Telephony to provide the UI for showing the proper network modes. After
the user has selected it, we receive the result, and save it in the
profile.

Ref: CYNGNOS-1463

Change-Id: I866ed1bc1c915ae00804b07dbbafa86e679a5fa7
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings : Add multiuser support for CMHardware
Danesh M [Wed, 9 Mar 2016 19:49:57 +0000 (11:49 -0800)]
Settings : Add multiuser support for CMHardware

- 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

8 years agoMerge tag 'android-6.0.1_r22' of https://android.googlesource.com/platform/packages...
Steve Kondik [Fri, 11 Mar 2016 04:35:32 +0000 (20:35 -0800)]
Merge tag 'android-6.0.1_r22' of https://android.googlesource.com/platform/packages/apps/Settings into cm-13.0

Android 6.0.1 release 22

Change-Id: Ided010bc125199d47ca59d10f0ed5032a26632ff

8 years agosettings: dock battery
Jorge Ruesga [Sat, 4 Jul 2015 16:05:16 +0000 (18:05 +0200)]
settings: dock battery

Change-Id: I2a95e74719175c3f40e2cc7a8414db7e869d92fb
Require: topic:dock_battery
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Improve dock battery strings

Change-Id: I03066cd18c378a1974d4eaa6f084fe75250d1fcc

8 years agoSettings: Modify RU translation for Ambient display
Vladislav Koldobskiy [Tue, 8 Mar 2016 16:27:11 +0000 (19:27 +0300)]
Settings: Modify RU translation for Ambient display

Requested by Vitaly K. Current Google translation is "Disable sleep mode",
which is incorrect and misleading.

Change-Id: I936ff66ce8f9d89ab910dae88971a8a589f6584e

8 years agoSettings: Add PERFORMANCE_ACCESS permission.
Adnan Begovic [Mon, 7 Mar 2016 23:52:29 +0000 (15:52 -0800)]
Settings: Add PERFORMANCE_ACCESS permission.

Change-Id: If95877701a6686b4df2a7fd1bebefb260616043f

8 years agoMSIM: Fix erroneous defaults display in slot selection dialog
Ricardo Cerqueira [Tue, 8 Mar 2016 18:34:56 +0000 (18:34 +0000)]
MSIM: Fix erroneous defaults display in slot selection dialog

Initializing the index at zero was showing the first slot as the default
when none was chosen. Since that's not actually true, leave it outside
the possible range so that the radio selectors stay empty if that's the
case.

Addresses CYNGNOS-2212

Change-Id: I4a74f9c89bbf14bbe39e0d51733a1d5f92c5a1df

8 years agoAppOps: Guard against themes without colorAccent defined
d34d [Fri, 26 Feb 2016 19:45:54 +0000 (11:45 -0800)]
AppOps: Guard against themes without colorAccent defined

If an applied theme omits the colorAccent attribute in their style
AppOpsSummary will crash because typedValue.resourceId is 0.

Check if typedValue.resourceId is 0 and if so use switch_accent_color
for tab indicator color.

Change-Id: Ib294fcdfd3bf3510aeb0d0f612bd5f46354e0b15
TICKET: CYNGNOS-2156

8 years agoSettings: Remove "Learn More" clickable text if not overlaid.
Adnan Begovic [Thu, 3 Mar 2016 19:32:50 +0000 (11:32 -0800)]
Settings: Remove "Learn More" clickable text if not overlaid.

  If the "Learn More" textview's target click intent url is
  not overlaid, settings will throw an NPE. Remove the text
  if not overlaid.

Change-Id: Ib80547a90b8c97485db2529b79172f7c461649c0
TICKET: CYNGNOS-2173

8 years agoSettings: Allow disabling default allcaps state in tabtext.
Adnan Begovic [Fri, 4 Mar 2016 00:50:16 +0000 (16:50 -0800)]
Settings: Allow disabling default allcaps state in tabtext.

  Since the allcaps state is decided via an internal
  style within android, we have to manually override
  it programatically.

  Create "config_gcf_disable_default_tabtext_allcaps"
  for this purpose.

Change-Id: I38c8bd1d50dee7c1e6440ce747368ade4e2dab29
TICKET: PAELLA-167

8 years agoAutomatic translation import
Michael Bestas [Fri, 4 Mar 2016 22:18:26 +0000 (00:18 +0200)]
Automatic translation import

Change-Id: I05b544653c16ee0275a3259bfb604bf583a12212

8 years agoSettings: Default edge gesture service to false.
Adnan Begovic [Thu, 28 Jan 2016 01:32:24 +0000 (17:32 -0800)]
Settings: Default edge gesture service to false.

Change-Id: I77cf96e2848b8fc8b4262b42b376d17c105aa836
(cherry picked from commit e7e05a72139f91832562049dc3a57f320777183f)

8 years agoSettings: no more holo for navbar editor
jrizzoli [Sun, 28 Feb 2016 12:53:49 +0000 (13:53 +0100)]
Settings: no more holo for navbar editor

Change-Id: Ie36c2f6f16a1a911495da5d3fdc7dbe5dbcf57cc
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
8 years agoBetter expose text color for single button panel button
Dave Kover [Wed, 2 Mar 2016 22:21:48 +0000 (14:21 -0800)]
Better expose text color for single button panel button

When we did the original expose pass for 13.0, we lumped too many
values into the same custom color. Let's give this button text color its
own value so that it can be themed individually from other instances of
text_color_white.

Change-Id: I4b76633eee6ebcb0f560ff527f081fa80c16850a
Ticket: CYNGNOS-2179

8 years agoThemes: Expose Hard colors for storage settings
Bryan Owens [Fri, 19 Feb 2016 19:12:35 +0000 (13:12 -0600)]
Themes: Expose Hard colors for storage settings

Change-Id: I74d2492ed5e6f1d34cee065719cbc97d5c237829
Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
8 years agoUse correct icon for ring volume
Michael Bestas [Mon, 22 Feb 2016 18:56:04 +0000 (20:56 +0200)]
Use correct icon for ring volume

Change-Id: If145262562c1409cd8a6cb79ba46b6646c75d1a8

8 years agoSettings: Fix "Fix SecuritySettings filtering" copy pasta
Alexander Martinz [Thu, 3 Mar 2016 15:10:43 +0000 (16:10 +0100)]
Settings: Fix "Fix SecuritySettings filtering" copy pasta

Change-Id: Ib27d4497c84a49a9dca2ec52c059d828518e43c4
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
8 years agoSettings: Fix SecuritySettings filtering.
Adnan Begovic [Tue, 1 Mar 2016 20:21:41 +0000 (12:21 -0800)]
Settings: Fix SecuritySettings filtering.

  Recent changes to SecuritySettings to appease
  CTSVerifier expectations broke filtration for
  the lockscreen intent (would always default as
  external type). This patch also addresses the
  "Installed Blocked" settings intent filter
  not including the unknown sources checkbox.

Change-Id: If6ef7a3913ad90f4d018b26f6c3166fe47d2865a
TICKET: CYNGNOS-2171

8 years agoSettings: improve job upload service
Roman Birg [Thu, 25 Feb 2016 15:04:13 +0000 (07:04 -0800)]
Settings: improve job upload service

We should be removing the job even if the job failed.

Change-Id: I7468af9a972fd88c5ed2a93ad5781637407e3a85
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: fix indexing for saved access point settings
Roman Birg [Tue, 23 Feb 2016 20:27:35 +0000 (12:27 -0800)]
Settings: fix indexing for saved access point settings

We are including custom logic, so we need to set NO_DATA_RES_ID.

Ref: YAM-141

Change-Id: Ibd242bd3a05b06f6a54504543219fc524127b71d
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoExpose values for themes.
Dave Kover [Sun, 2 Aug 2015 19:35:42 +0000 (12:35 -0700)]
Expose values for themes.

Move category margin dimension to exposed value. Add background
to category title textview and make value accessible via
cm_colors. Clean up formatting in cm_colors.

Ticket: CYNGNOS-2154
Change-Id: Ie9241cae3ea067fccbedd43231b52e3c80f8bd97

8 years agoSettings: Meet BYOD check intent filter expectations.
Adnan Begovic [Thu, 25 Feb 2016 00:02:00 +0000 (16:02 -0800)]
Settings: Meet BYOD check intent filter expectations.

  CTS Verifier expects SecuritySettings to contain Lockscreen options, thus
  if SecuritySettings are externally invoked and disambiguated by intent
  resolution, we need to display both lockscreen options and security options.

  AOSP provides an activity that handles android.settings.BATTERY_SAVER_SETTINGS
  thus, we provide an activity-alias that points to the PowerUsage menu
  to meet the expectation of the cts verifier request.

Change-Id: I6f06b031e341e8a63ffdd765884b49fd1c079825
TICKET: CYNGNOS-2105

8 years agoSettings : Fix back button for sim card lock
Danesh M [Thu, 25 Feb 2016 23:21:40 +0000 (15:21 -0800)]
Settings : Fix back button for sim card lock

CYNGNOS-2151

Change-Id: I5420c07931a6aa620328f9f8844512cac9bf1638

8 years agoSplit out drawable to separate from dashboard drawable
Dave Kover [Tue, 23 Feb 2016 22:51:57 +0000 (14:51 -0800)]
Split out drawable to separate from dashboard drawable

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