OSDN Git Service

android-x86/packages-apps-Settings.git
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

8 years agoBreak out text color value from commonly used color.
Dave Kover [Tue, 23 Feb 2016 01:32:36 +0000 (17:32 -0800)]
Break out text color value from commonly used color.

Too many locations are using text_color_white and this will affect
theme options when it comes to the switch_bar_background color.
We can point to a new value, which points to the current value and
all will be right with the world.

Change-Id: I9b1e67b7ce4f31d1e1203cdb11c630682ceb7ba8
Ticket: CYNGNOS-2124

8 years agoPowerUsage : Don't update if profile didn't change
Danesh M [Wed, 17 Feb 2016 02:04:01 +0000 (18:04 -0800)]
PowerUsage : Don't update if profile didn't change

CYNGNOS-786

Change-Id: I4eb47e5f206f9723b7d003ccfac484e377bf7afd

8 years agoRevert "Customize regulatory info."
Danesh M [Wed, 17 Feb 2016 19:48:48 +0000 (11:48 -0800)]
Revert "Customize regulatory info."

This reverts commit 3d299959deb33a86ba2925eb4fa954e0118bd893.

This breaks on the dialer shotcode to access this (*#07#)

CYNGNOS-2050

Change-Id: Ia02512642307b25e9ff7e8c0533da5eaa7233a7f

8 years agoAutomatic translation import
Michael Bestas [Mon, 22 Feb 2016 03:14:00 +0000 (05:14 +0200)]
Automatic translation import

Change-Id: Ie08c59c97a1b0ec263e7430d58387eeecbd8d4d8

8 years agoSettings: regulatory: Wrap the layout in a ScrollView
Diogo Ferreira [Mon, 16 Nov 2015 13:58:33 +0000 (13:58 +0000)]
Settings: regulatory: Wrap the layout in a ScrollView

This screen allows an optional image to be provided via overlay,
this image might be bigger than the screen height, and usually is
when the phone is in landscape. This cuts the image and only
shows what the screen allows.

This patch wraps it in a ScrollView to ensure that the user can
read the whole image.

Additionally, it changes the ImageView width to take the full width
of the parent, making centerCrop work as expected and centering the
image.

Change-Id: Ie8433767fe333cb4b019608208a45cd0a653641b
CYNGNOS-2050

8 years agoRegulatoryDialog : Use String.split to avoid crash on empty args
Danesh M [Wed, 17 Feb 2016 22:51:38 +0000 (14:51 -0800)]
RegulatoryDialog : Use String.split to avoid crash on empty args

If a device only supports SAR image vs values, and empty overlay
will cause TextUtils.split to return an empty array and hence number
of format arguments will be mismatched. Instead use String.split
which returns a non-empty string array in the event that the source is empty.

Change-Id: I3d99e3378264d7b26d69ebe6c9c35c3c925f5c49
CYNGNOS-2050

8 years agoSettings: Add CM-specific settings
Diogo Ferreira [Fri, 5 Feb 2016 15:45:05 +0000 (15:45 +0000)]
Settings: Add CM-specific settings

Change-Id: Iae0f60a62a51e96893766c4fa50a60ac4a214102
Ticket: CYNGNOS-1577

8 years agoSIM: Only trigger sub updates if the lifecycle isn't ending
Diogo Ferreira [Tue, 9 Feb 2016 18:17:43 +0000 (18:17 +0000)]
SIM: Only trigger sub updates if the lifecycle isn't ending

This broadcast would cause a re-rendering of the sim preferences
but the activity context is actually tearing down at that point
which causes common context items such as resources items to be
null.

Change-Id: I5cb23f941c9ace6382dbc324c8e1820f54853eda
TICKET:CYNGNOS-1918

8 years agoDevelopmentSettings: initialize recovery update property at boot
Scott Mertz [Tue, 16 Feb 2016 17:11:23 +0000 (09:11 -0800)]
DevelopmentSettings: initialize recovery update property at boot

Android behavior has changed to load & trigger build.prop & default.prop
at every boot.  Once data is mounted, it reloads & triggers properties
set by the user.  If we set persist.sys.recovery_update to true in build.prop
or default.prop, the user's preference will never be honored.  Instead,
ensure the default always comes from userdata.

Accompanying patches to remove the default properties are required.

OPO-490
Change-Id: I3a5245088059f083554063ba6d345783114fa7a0

8 years agoSettings: Only show multi-sim card configuration for owners
Diogo Ferreira [Thu, 3 Sep 2015 13:36:21 +0000 (14:36 +0100)]
Settings: Only show multi-sim card configuration for owners

Telephony only allows the owner to manage sim card Settings,
currently we are crashing when changing any multisim setting
from eithr a guest or non-owner. This patch addresses the
issue by not adding the tile unless the current user is the
owner.

Change-Id: Ifaeec6c22cdf7318530ef1e6ed6e1ec851317263
Ticket: CYNGNOS-2054

8 years agoSettings: fix 'CyanogenMod legal' link
Roman Birg [Thu, 16 Apr 2015 23:54:23 +0000 (16:54 -0700)]
Settings: fix 'CyanogenMod legal' link

No more WebViews in priv-apps, so open it up in the browser.

CYNGNOS-1895

Change-Id: I263ccc0509e275d17512528deb606341d58e7a0d
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: Allow/Prevent notification light in Zen mode (2 of 3)
DvTonder [Wed, 22 Apr 2015 15:38:21 +0000 (11:38 -0400)]
Settings: Allow/Prevent notification light in Zen mode (2 of 3)

This allows the user to prevent the notification lights from showing during Zen mode

Change-Id: Ia3563d79f5c1fc012411496c7b8901099a78282e

8 years agoSettings: Fix ethernet data usage tab crash
Michael Bestas [Wed, 10 Feb 2016 22:44:18 +0000 (00:44 +0200)]
Settings: Fix ethernet data usage tab crash

* TAB_ETHERNET length is bigger than TAB_MOBILE

Change-Id: Ie7feb819978236d62f951825dbc564d683907700

8 years agoAdd ability to ignore interruptions while active media playback
Danesh M [Tue, 17 Feb 2015 00:15:02 +0000 (16:15 -0800)]
Add ability to ignore interruptions while active media playback

Change-Id: I92e9b6cbab1f167f8abb544a0a8e385e23b16775

8 years agoSettings: Add CMGlobalSettingSwitchPreference
Michael Bestas [Wed, 10 Feb 2016 01:18:54 +0000 (03:18 +0200)]
Settings: Add CMGlobalSettingSwitchPreference

* Also cleanup the Secure/System preference

Change-Id: I10148928240561e6cb496e7cc063ae517ccddbf8

8 years agoSettings: hook up volume tone preference to CMSettings
Roman Birg [Sat, 13 Feb 2016 17:24:21 +0000 (09:24 -0800)]
Settings: hook up volume tone preference to CMSettings

Ref: CYNGNOS-1891

Change-Id: Ic3d07f9eeb099b24526c7c502b189cb3bbbbb420
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoAutomatic translation import
Michael Bestas [Sun, 14 Feb 2016 14:25:14 +0000 (16:25 +0200)]
Automatic translation import

Change-Id: I7edab2a2d800acd4ef514ca1d71d7e2f4f5988c4

8 years agoSettings: launch default music player on headset connect [1/3]
Danesh M [Mon, 7 Jan 2013 18:07:00 +0000 (12:07 -0600)]
Settings: launch default music player on headset connect [1/3]

Change-Id: Id09065638f1279423ceedef87da1a2edf19f46f4

8 years agoRemove duplicate charging sounds option
Michael Bestas [Wed, 10 Feb 2016 00:36:16 +0000 (02:36 +0200)]
Remove duplicate charging sounds option

* CM setting allows charging sounds on any power source, while AOSP
  allows charging sounds only on wireless charging
* The AOSP toggle has been broken since
  fw/base 42f4f2f2ff4278ca8411504617f55a712562c242
* Use the AOSP setting while keeping the improved CM code

Change-Id: Ia747d8949cf7ce94ad2a638f27aaa3c57f9aed19

8 years agoSettings: Add notification light setting to system profiles (2/2)
Petr Sedlacek [Mon, 8 Feb 2016 21:26:50 +0000 (22:26 +0100)]
Settings: Add notification light setting to system profiles (2/2)

Change-Id: I6e0f844362ad5a479b40da08bce8a66be10503ec

8 years agoSimDialogActivity: Check whether there is no default sub
Diogo Ferreira [Tue, 9 Feb 2016 11:54:59 +0000 (11:54 +0000)]
SimDialogActivity: Check whether there is no default sub

On an out-of-the-box device, no data subscription will be
selected by default. If a single SIM is added, it will
become the default data subscription but if two sims are
added at the same time there will be no default.

In this case, this dialog will crash because it's trying
to get the subscription id from a null default. This patch
short-circuits the clause to always update if there is no
default.

Change-Id: Icd4dffaf918d43d85f807cd6a14f93abb118eca4
Ticket: CYNGNOS-1940

8 years agoUpdate textview styles for better theme compatability.
Dave Kover [Sun, 31 Jan 2016 22:47:23 +0000 (14:47 -0800)]
Update textview styles for better theme compatability.

In the battery & notification lights preferences, the textview
attached to the custom color is locked to a color which is only
visible against light backgrounds. If a theme changes to a dark
theme, they are unreadable without modifying a core material
style.

Let's create a new style that points to a better material style
but also allows a themer to change it independently if needed.

Change-Id: I039f154282035c5123fddf8c20c18bdb3be90060
Ticket: CYNGNOS-1790

8 years agolockscreen: Add option to pass swipe-up-to-unlock (2/3)
eray orçunus [Wed, 17 Jun 2015 13:25:45 +0000 (16:25 +0300)]
lockscreen: Add option to pass swipe-up-to-unlock (2/3)

* Option appears on PIN,pattern and password methods
* User should press back button to see notifications, clock etc.
* Instantly hides keyguard if Smart Lock has unlocked phone.

CYNGNOS-1873

Change-Id: I31256770869b20842c69edb4a7a57b2bad7b3ea7
Signed-off-by: eray orçunus <erayorcunus@gmail.com>
8 years agoAdd Sound Panel to Power Menu (Part 2/2)
Italian Quadcore [Tue, 9 Jun 2015 08:50:07 +0000 (10:50 +0200)]
Add Sound Panel to Power Menu (Part 2/2)

Change-Id: Ifa62246acdc59e9529431ae3642b67add89ce7ac

8 years agoSettings: don't allow duplicate APN entries
Roman Birg [Fri, 29 Jan 2016 00:31:26 +0000 (16:31 -0800)]
Settings: don't allow duplicate APN entries

Prompt user with warning if they are about to add a new APN which is a
duplicate.

Change-Id: I86c6a6d272a7ba079b81dedb05b44575fd4d86e7
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agosettings: Add preference for automagic LED colors
Steve Kondik [Sat, 9 Jan 2016 05:01:16 +0000 (21:01 -0800)]
settings: Add preference for automagic LED colors

 * And use the automagic color as the default when picking custom colors.

Change-Id: I9861d3d889dfcb5eba62b69339e7afb0db2fd364

8 years agoSettings: Remove duplicated strings
Elektroschmock [Fri, 5 Feb 2016 14:31:17 +0000 (15:31 +0100)]
Settings: Remove duplicated strings

Change-Id: I0aee338711720194aae25c5c8f4a1d2978dff1dd

8 years agoRemove leftover profiles entry from power menu
Michael Bestas [Thu, 4 Feb 2016 22:47:05 +0000 (00:47 +0200)]
Remove leftover profiles entry from power menu

* No longer available

Change-Id: Ifac7e1181dc53af5788f54444ef75a345a888fa2

8 years agoSettings: Improve hotspot timeout strings
Michael Bestas [Sun, 7 Feb 2016 22:51:53 +0000 (00:51 +0200)]
Settings: Improve hotspot timeout strings

Change-Id: I9fd0d182fd54ddf0d93f2400357e79c5cb36896f

8 years agoSettings: add config for new APN type defaults
Roman Birg [Thu, 28 Jan 2016 20:07:37 +0000 (12:07 -0800)]
Settings: add config for new APN type defaults

This way a specific mcc-mnc combo can overlay some defaults as needed.

Change-Id: I5e0c46830c1ab7845ce3372dcb06a70a144c651a
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoUse settings' theme when inflating account prefs
d34d [Wed, 3 Feb 2016 22:16:46 +0000 (14:16 -0800)]
Use settings' theme when inflating account prefs

When inflating account specific preferences, the settings style is
set so the inflated preferences have the same style.  If a different
theme, than the rest of the system, is set for Settings it is possible
for the inflated preference to try and reference a theme specific item
which won't be part of that apps resources, resulting in an
InflateException.  To avoid this we attach the themed resources that
are applied to settings to the newly created package context so that
those resources can be properly resolved.

Change-Id: I0cf0430db379b146fe80ce3173f050e5b120bbbb
TICKET: OPO-437

8 years agoSettings : Add radio button / selection states for default SIMs
Danesh M [Thu, 4 Feb 2016 00:07:43 +0000 (16:07 -0800)]
Settings : Add radio button / selection states for default SIMs

CRACKLING-928

Change-Id: I786d4d921987d483cd0a5fa77976a0b8047d06db

8 years agoForward port pattern visibility settings (2/2)
Michael Bestas [Sat, 4 Apr 2015 01:43:43 +0000 (04:43 +0300)]
Forward port pattern visibility settings (2/2)

Change-Id: Ic627953c5df854c442671a98b5da539b994da18b

8 years agoString update, change wording from "Mobile" to "Cellular"
razorloves [Tue, 2 Feb 2016 22:49:59 +0000 (16:49 -0600)]
String update, change wording from "Mobile" to "Cellular"

Bring inline with aosp's terminology

Change-Id: I16d21879037beed5171bc5b12975f90459a9ea3c

8 years agoBluetooth: Underp "Accept all files" setting
Ricardo Cerqueira [Wed, 3 Feb 2016 15:50:26 +0000 (15:50 +0000)]
Bluetooth: Underp "Accept all files" setting

This was reading/writing to the wrong database, making the setting
a no-op. My bad.

Still CYNGNOS-1825

Change-Id: Ibf02b186f8e19066b0113ab1c72e31164a686af1

8 years agoLockscreen: Show redaction interstitial when swipe selected
d34d [Mon, 1 Feb 2016 18:06:29 +0000 (10:06 -0800)]
Lockscreen: Show redaction interstitial when swipe selected

If the user is switching from a secure lock screen to an insecure
one and they have chosen to redact sensitive/all notififcations,
show the RedactionInterstitial so the user has the option to change
this setting.

Change-Id: I2bcfd01fb322eb66a10a0f29feb9da696c524cdf
TICKET: YAM-103

8 years agoSettings : Recompute highlight index upon changes
Danesh M [Tue, 22 Dec 2015 01:54:43 +0000 (17:54 -0800)]
Settings : Recompute highlight index upon changes

Change-Id: I7d738f5114fc1eea564360ab5e823abc167caee9

8 years agoSettings : Show search on all panels
Danesh M [Mon, 21 Dec 2015 18:18:03 +0000 (10:18 -0800)]
Settings : Show search on all panels

RM-208

Change-Id: Id8467a6f57e60dfe58e7d1f38acb8d833bd298cf

8 years agoLiveLockScreen: Add live lock screen settings
d34d [Fri, 22 Jan 2016 22:27:22 +0000 (14:27 -0800)]
LiveLockScreen: Add live lock screen settings

This will allow the user to enable and configure their installed
live lock screens.

Change-Id: Id4a6963cc49d1c361c99c95b17a961aaa980ed48
TICKET: CYNGNOS-1686

8 years agoAutomatic translation import
Michael Bestas [Tue, 2 Feb 2016 05:00:20 +0000 (07:00 +0200)]
Automatic translation import

Change-Id: I593d60dbddc30ead5a0830ab4c45ed69b084ced2

8 years agoTethering: Turn off Wi-Fi Hotspot after inactivity (3/3)
d34d [Fri, 29 Jan 2016 19:55:48 +0000 (11:55 -0800)]
Tethering: Turn off Wi-Fi Hotspot after inactivity (3/3)

Turn off the Wi-Fi hotspot after a specified time of inactivity.
The hotspot is considered to be inactive when no clients are
connected to it.

Change-Id: I7030e702328726b72f394b2a64b93830dba54efc

8 years ago[3/3]Settings: add "Accept all files" option for incoming files via BT
Hamster Tian [Wed, 30 Apr 2014 14:11:31 +0000 (16:11 +0200)]
[3/3]Settings: add "Accept all files" option for incoming files via BT

 * Adapted for CM13.
 * PS2: empty line fix
 * PS3: variable name fix

  BT server in AOSP will check MIME type of incoming file. Only those with
explicitly allowed types will be accepted. The MIME type whitelist is in
packages/apps/Bluetooth/src/com/android/bluetooth/opp/Constants.java
  But this can be annoying when we want to transfer RAR, APK or conf files
etc which do not exist in the list.
  This patch adds the option "Accept all files" in
          Settings -> Bluetooth -> menu.
  This option is disabled by default, which ensures security.

Ref CYNGNOS-1825

Change-Id: I76e008211429bf3bd28183713043bee5d326c21a

8 years agoSettings: Cleanup lock screen settings
Michael Bestas [Sun, 31 Jan 2016 22:53:59 +0000 (00:53 +0200)]
Settings: Cleanup lock screen settings

* Group related settings
* Make settings order consistent
* Remove options that do nothing when lock screen is disabled

Change-Id: Ib310e563e44ddc4af2f9f6675c3fc13a38a497ab

8 years agoSimSettings: Disable entry for missing sim
Diogo Ferreira [Fri, 29 Jan 2016 14:10:08 +0000 (14:10 +0000)]
SimSettings: Disable entry for missing sim

Clicking on a missing SIM card will show incorrect information
because the user network preference is indexed by subscription id.

This means that when the SIM is not present we cannot infer which
subscription settings we are actually showing or changing so the
whole screen is effectively useless.

This patch disables configuration entries for invalid subscriptions.

Ticket: CYNGNOS-1794
Change-Id: Ic5125f66f4cdaafe06d03b3b20b80341525d6c87

8 years agoSettings: Use correct icon for lock screen settings entry.
gabriele [Wed, 27 Jan 2016 19:00:07 +0000 (20:00 +0100)]
Settings: Use correct icon for lock screen settings entry.

* Give lock screen entry its own icon rather than using the security one.

Change-Id: I4e4530d97dd3dc691cdd08ab328cd583f70e2edf

8 years agoSettings : Remove cmstats from about phone
Danesh M [Mon, 21 Dec 2015 22:24:40 +0000 (14:24 -0800)]
Settings : Remove cmstats from about phone

It already exists under privacy settings

Change-Id: Id761e66b71cd97e7c5fe0333c04d5778fec2f6c8

8 years agoBluetooth/Wifi: center empty view and set textAppearance to medium
Alexander Martinz [Wed, 27 Jan 2016 21:26:11 +0000 (22:26 +0100)]
Bluetooth/Wifi: center empty view and set textAppearance to medium

 * does not look weird anymore when toggling bluetooth or wifi

Change-Id: Ibbf375e241f091bc27b76c273598da9fc0d67ed9
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
8 years agoFingerprint: do not error out when stopping to listen
Alexander Martinz [Wed, 27 Jan 2016 22:11:49 +0000 (23:11 +0100)]
Fingerprint: do not error out when stopping to listen

 * when stopListening gets called, we cancel via the cancellation signal,
   which calls the onAuthenticationError callback.

 * detect if we are canceling and do not execute the error code

 * fixes the finger print icon hiding when closing the LockPatternActivity,
   which causes the lock pattern to resize

TICKET: RM-208
Change-Id: I5bb62064f885b67836bd78af854cca950c3401fa
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
8 years agoProtectedApps: add up navigation and fix action bar icons
Alexander Martinz [Wed, 27 Jan 2016 21:44:36 +0000 (22:44 +0100)]
ProtectedApps: add up navigation and fix action bar icons

 * ProtectedApps has up navigation, but the lock pattern has not.
   I catch myself many times when trying to press the up arrow and
   noticing later on, that it is not there.

 * the drawable used as action bar icon is not white, tint it white
   and use it instead.

TICKET: RM-208
Change-Id: Icdd24816af47b16efc38e4e8379811d412f50454
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
8 years agoSettings : Finish SimPreferenceDialog on dismiss
Danesh M [Thu, 28 Jan 2016 21:35:03 +0000 (13:35 -0800)]
Settings : Finish SimPreferenceDialog on dismiss

CYNGNOS-1515

Change-Id: I2f69a876419a0ace61a6a8e682496db0d62bbfa1

8 years agoSettings : Fix linked volume crash + inconsistent state
Danesh M [Thu, 28 Jan 2016 18:37:44 +0000 (10:37 -0800)]
Settings : Fix linked volume crash + inconsistent state

- Ensure we fetch from Secure, not System
- Don't initialize every time we toggle
- Set the checkbox state from Settings value since
  the preference assumes a default of 0

CYNGNOS-1638

Change-Id: Ia519cef2295a6b6083b2b168f4c16df78f423cee

8 years agoSettings : Improve app info screen
Danesh M [Thu, 28 Jan 2016 20:26:24 +0000 (12:26 -0800)]
Settings : Improve app info screen

Move packagename label to newline to avoid jank marquee.

CYNGNOS-1649

Change-Id: I060290510e819096dd1496356d592dcfc81f57f4

8 years ago[2/2] Settings: blacklist: update iconography
jrizzoli [Tue, 26 Jan 2016 13:32:31 +0000 (14:32 +0100)]
[2/2] Settings: blacklist: update iconography

Made with Asher and Dave

Change-Id: I0457596078553d170e16d46d7ab30660586d5207
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
8 years agoSettings: hide light pulse settings if not available
Roman Birg [Fri, 10 Jul 2015 22:46:18 +0000 (15:46 -0700)]
Settings: hide light pulse settings if not available

Instead of disabling the pulse length and speed hide them, since they
will not be enabled during the lifetime of the dialog

REF: CYNGNOS-426
Change-Id: Ie0c8b9f27e1de32c9559e5ffdb61c73d8b2ff42f
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: fix a few color picker inconsistentcies
Roman Birg [Thu, 30 Jul 2015 22:20:52 +0000 (15:20 -0700)]
Settings: fix a few color picker inconsistentcies

Don't assume we can pulse when calling setAllValues().

Don't display both on/off pulse values when it cannot pulse.

Default to Always on when we can't pulse.

Ref: CYNGNOS-403
Change-Id: Ie356cdc35cb545dd51896697f89ef265ada1147f
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoMasterClear: update UI
Roman Birg [Mon, 25 May 2015 15:31:32 +0000 (08:31 -0700)]
MasterClear: update UI

Also squashed the following related commits from 12.1:

    MasterClear: fix FRP wipe crash

    Requesting setRequestedOrientation() right after showing a custom dialog
    in a DialogFragment does not play nice. It forces the activity to be
    recreated instantly, so when the task finishes, there original activity
    the AsyncTask is tied to is no longer valid.

    However, if we let fragment manager keep track of all the dialogs, it
    doesn't break the expected behavior.

    REF: CYNGNOS-427
    Change-Id: I0609816182a6b5319d2a88ff0075d53e3c2fed16
Signed-off-by: Roman Birg <roman@cyngn.com>
    Settings: make FRP wipe dialog not cancelable

    User should not be able to interact with the screen after the process
    has started. Otherwise we can get in a bad state and never perform the
    factory reset.

    Ref: CYNGNOS-427
    Change-Id: I197a6ca70487a33b0ce402fda7a2d58828e8e1bb
Signed-off-by: Roman Birg <roman@cyngn.com>
    Settings: don't crash when dismissing FRP

    If the user has pressed home while the dailog is up, there may be
    nothing to dismiss by the time the task finishes.

    Ref: CYNGNOS-427
    Change-Id: Ic4fdec1ecb32f88181feba4bfd3eb337b1b61efd
Signed-off-by: Roman Birg <roman@cyngn.com>
    Settings: continue factory reset if user leaves activity

    If the FRP dialog is up, and the user presses the home button, the FRP
    task will finish, and then try to use the activity context to initiate
    the wipe, and the fragment to retreive args, both of which is no longer
    valid.

    Cache all variables before the task begins, and use the application
    context to complete the calls.

    Ref: CYNGNOS-427

    Change-Id: I5c8b286195a0b57fd879a1022d64ea548363b925
Signed-off-by: Roman Birg <roman@cyngn.com>
Ref: Settings-86

Change-Id: I759de586bf5cb8558d42575d08df63aaf84fffa6
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings : Add overlay for hiding wifi region code
Danesh M [Tue, 26 Jan 2016 22:54:27 +0000 (14:54 -0800)]
Settings : Add overlay for hiding wifi region code

CYNGNOS-1637

Change-Id: Ieb1f6553a2addb17ec6b93b51ab8fb19f6c5ca49

8 years agoFix alignment on dashboard.
Dave Kover [Tue, 19 Jan 2016 23:22:47 +0000 (15:22 -0800)]
Fix alignment on dashboard.

When the switch is present, the text is aligning to the top instead
of centering to the iconography on the left. Shuffle the layout
to make it center where it belongs.

Change-Id: I5f2b497385c9370473df441c79e8fc7ddf3b740f
Ticket: CYNGNOS-1669

8 years agoAutomatic translation import
Michael Bestas [Mon, 25 Jan 2016 17:39:17 +0000 (19:39 +0200)]
Automatic translation import

Change-Id: I976c45499030cc38127e57a9ecec7aa602e6722f

8 years agoRegulatory text color: make this readable
Abhisek Devkota [Thu, 12 Mar 2015 19:45:49 +0000 (12:45 -0700)]
Regulatory text color: make this readable

OPO-320

Change-Id: I944f91f70d18f55542deee14f5153626f539ad29

8 years agoSettings: Apps started on boot shortcut in memory settings
AdrianDC [Fri, 1 Jan 2016 14:21:52 +0000 (15:21 +0100)]
Settings: Apps started on boot shortcut in memory settings

 * Implement an intent extra to retrieve a tab target
 * Use a tab identifer from apps_ops_categories_cm
    to make sure the selection is correct or ignored

Change-Id: I79d963ecbadc624dc45a398387a348691318b6be
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoSettings: Move Do Not Disturb Access under DND settings
AdrianDC [Tue, 19 Jan 2016 11:23:41 +0000 (12:23 +0100)]
Settings: Move Do Not Disturb Access under DND settings

Change-Id: I4763577b4cd5aae01705cc693dfaaf06152bd3e6
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoImprove a SIM enabler string
Michael Bestas [Sun, 24 Jan 2016 23:02:34 +0000 (01:02 +0200)]
Improve a SIM enabler string

Change-Id: I019c5f7676f9870ea170c2bc6c9043953cd9f52f

8 years agoAdd left QS quick pulldown (2/3)
Michael Bestas [Mon, 23 Feb 2015 21:34:33 +0000 (23:34 +0200)]
Add left QS quick pulldown (2/3)

Change-Id: I0e8c944039e5a6702bfbbcdbfbf89a3f734f37e3

8 years agoSettings : Improve usage stats screen
Danesh M [Thu, 14 Jan 2016 23:15:50 +0000 (15:15 -0800)]
Settings : Improve usage stats screen

CYNGNOS-1317

Change-Id: I9df05539c46ea27f8e4e975c8d3bc4aee9823704

8 years agoSettings: Add fingerprint authentication for protected apps.
Adnan Begovic [Fri, 22 Jan 2016 02:43:10 +0000 (18:43 -0800)]
Settings: Add fingerprint authentication for protected apps.

  Protected apps users can now authenticate via fingerprint
  if they have at least 1 fingerprint enrolled.

Change-Id: I47504d9183d42ff974b0e1b0f271a424fd747608
TICKET: CYNGNOS-84

8 years agoSettings: Actually expose protected apps settings.
Adnan Begovic [Wed, 20 Jan 2016 22:11:56 +0000 (14:11 -0800)]
Settings: Actually expose protected apps settings.

  Since protected apps are seemingly useful now,
  promote them within the privacy guard menu.

Change-Id: I9024cd88f2655f18fb2b68fcf9d75b12e4b5a97e
TICKET: CYNGNOS-84

8 years agoBreak out status bar icon from extdesk icon.
Dave Kover [Sat, 9 Jan 2016 01:06:51 +0000 (17:06 -0800)]
Break out status bar icon from extdesk icon.

Create a separate resource for the dashboard category icon for
Status Bar. Rename the extended desktop icons so they are further
distinguished from the dashboard iconography.

The goal is makea sure only dashboard icons are using the
ic_settings_ prefix and rename iconography that is not part of
that view.

Ticket: CYNGNOS-1681
Change-Id: I54165bd4338bb1d73f1d453f75ee1c06cfd62a8f

8 years agoFix up increasing ring tone volume preview behaviour.
Danny Baumann [Fri, 29 May 2015 06:48:46 +0000 (08:48 +0200)]
Fix up increasing ring tone volume preview behaviour.

Change-Id: Ibe7fdf1ee7f0aa1c7c76052df69fa92e8b6a2ffd

8 years agoSettings: update FOTA link to be implicit
Roman Birg [Wed, 25 Nov 2015 20:14:20 +0000 (12:14 -0800)]
Settings: update FOTA link to be implicit

MC-826

Change-Id: Ife9c6a7779d1ff9f74e2ba9e13b1b3948fb2c4d4
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoAllow launching notification manager settings externally
Michael Bestas [Tue, 21 Apr 2015 22:38:22 +0000 (01:38 +0300)]
Allow launching notification manager settings externally

Change-Id: Ic9acab571fc78d139d4924f9a95194423bf1d267

8 years agoSupport multiple SAR values, separate args list with ','
Edward Wang [Fri, 15 Jan 2016 00:04:10 +0000 (16:04 -0800)]
Support multiple SAR values, separate args list with ','

Issue-Id: YAM-68

Change-Id: I21fcb3128a115388ed25d61daae88f4f3356929a
(cherry picked from commit c4ce19ad8fb570d9d561d3a560f6eeeeccc99de5)

8 years agoSettings: show warning in lock screen settings when disabled by qs
Roman Birg [Sat, 9 Jan 2016 00:29:34 +0000 (16:29 -0800)]
Settings: show warning in lock screen settings when disabled by qs

Tapping the setting will re-enable the lock screen.

Ref: CYNGNOS-1513

Change-Id: Ifbd53fb3d1cd199c85dedb0d96b01e8f29e7c024
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: Set regulatory information dialog to non-translatable.
Adnan Begovic [Tue, 12 Jan 2016 22:06:02 +0000 (14:06 -0800)]
Settings: Set regulatory information dialog to non-translatable.

Change-Id: I0d5012dc84ec8e6488b0b09d82e2d7bce1afdd38

8 years agoSettings: Show ringtone per sim for multi sim device
Adnan [Tue, 6 Jan 2015 20:23:30 +0000 (12:23 -0800)]
Settings: Show ringtone per sim for multi sim device

TICKET: CYNGNOS-1589
Change-Id: I56244242cece2c0ab732a2edb8d8c57e9d2c29b3

8 years agoSquash commit of SAR and IC Code.
Adnan Begovic [Fri, 16 Jan 2015 16:31:29 +0000 (16:31 +0000)]
Squash commit of SAR and IC Code.

TICKET: CYNGNOS-1586

Settings: Show SAR on Regulatory Info (from CM11)

This brings these three commits from CM11:

Settings: Create SAR level preference, allow overlay.
Change-Id: I1af616696702f72b8a6276b3b01e940d61735137

Change Regulatory Info Activity to prefer string over image
Change-Id: I9ea5c2bf469af8f654ec4e4bb4f2a8a5738e6a95

Settings: Allow Regulator Information Dialog Title to be overlaid.
Change-Id: I5aead313589f5d5291d20a0388d2d8bc7242b711

Settings: Refactory regulatory dialog. Display IC Code.

Change-Id: Id268830404d09eed318e38474fe1a9062fc4e962

8 years agoSettings: Add CMMetricsLogger constants to proper pages.
Adnan Begovic [Mon, 11 Jan 2016 21:58:26 +0000 (13:58 -0800)]
Settings: Add CMMetricsLogger constants to proper pages.

Change-Id: I6e1d0ec2be4c6da51267c163575472827c9c50cd

8 years agoAutomatic translation import
Michael Bestas [Mon, 11 Jan 2016 20:43:05 +0000 (22:43 +0200)]
Automatic translation import

Change-Id: I6a73233e7c5689c683bc444bcea93b910f69124e

8 years agoLower minimum vertical range for data usage.
Danny Baumann [Wed, 6 Jan 2016 08:56:20 +0000 (09:56 +0100)]
Lower minimum vertical range for data usage.

Both 50MB and 20MB are kinda arbitrary, but the latter provides a better
overview for people with small data plans and/or at the beginning of a
month.

Change-Id: I99bd9e220592f0f7acdb00f40635dfc574b4e81b

8 years agoUpdate vertical axis bounds when resetting network policy.
Danny Baumann [Wed, 6 Jan 2016 08:50:47 +0000 (09:50 +0100)]
Update vertical axis bounds when resetting network policy.

Makes sure axis gets updated when entering app data usage details.

Change-Id: I5a8573a1bcbab08da2c9eee4538b4e133008343c

8 years agoRevert "Hide usage graph on app usage details pages."
Danny Baumann [Wed, 6 Jan 2016 08:10:37 +0000 (09:10 +0100)]
Revert "Hide usage graph on app usage details pages."

This reverts commit 1740ce4f0ca39635eeb8a286bc271dd11438ff09.

The data usage graph is useful information to show for a single app as
well (as it shows the app's share of data usage compared to the total).
Additionally, this commit broke navigation back from data usage when
entering it from an app's details pane.

Change-Id: Ia1de61d24aebfef3537e4d2c358e63b12a588838

8 years agoSome text are missing in eject sdcard warning
Henrik Baard [Mon, 14 Dec 2015 09:16:28 +0000 (10:16 +0100)]
Some text are missing in eject sdcard warning

The eject sdcard warning page shows incomplete texts
in some languages (german) and it is not apparant that
that you can scroll to see the text.

The layout is divided into three parts, the button
and one blank line, and the text. The text and the
blanke space will have equal parts of the screen
since they have the same weight. Because of this the
(complete) text is not shown in som languages.

Remove the blank part and let the text use the whole
screen.

Change-Id: Id8fd88fc6c0aa6105d64c100e3365cd9b00bf851

8 years agoSettings: Set default value for 'Volume keys control ringer stream'
Gabriele M [Wed, 30 Dec 2015 23:39:17 +0000 (00:39 +0100)]
Settings: Set default value for 'Volume keys control ringer stream'

The option is enabled by default, but we show it as disabled,
so set the default value to true.

Change-Id: I757d51b45cf0634497f1aad81e155148f2a688dc

8 years agoSettings: request runtime permissions inside VoiceWakeup
Roman Birg [Fri, 8 Jan 2016 23:14:46 +0000 (15:14 -0800)]
Settings: request runtime permissions inside VoiceWakeup

If the user has selected a Direct dial shortcut for their voice wakeup
action, then the app which launches this intent must hold the dangerous
permission CALL_PHONE.

So when the user picks an intent which would require this permission,
make sure VoiceWakeup requests and grants the permission. Otherwise
reset to default.

Ref: CYNGNOS-1560

Change-Id: I02e2c7a7d9958a5b15f438687f509802e75db704
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: increase default regulatory info drawable dimensions
Scott Mertz [Mon, 11 Jan 2016 18:58:40 +0000 (10:58 -0800)]
Settings: increase default regulatory info drawable dimensions

BitmapDrawable.getIntrinsicWidth/Height returns the bitmap density
scaled to the display density, not the actual bitmap height/width.
The default drawable is 1x1, but on xxhdpi devices, the resolution
is 4x4.  This causes the regulatory information text to never be
shown on xxhdpi devices even when the png has not been overlayed.
Increase the dimension limit to a reasonable 32x32 image.

Change-Id: Id6429d46f8612352d7930fdad4a6d125e7939ea2

8 years agoSettings: EL AOSP translation fixes
Michael Bestas [Fri, 28 Mar 2014 21:28:45 +0000 (23:28 +0200)]
Settings: EL AOSP translation fixes

Come on AOSP, we're fixing these since ICS...

Change-Id: Ic94f25a2335d187c98d8712e8dbd3bcaac82cfb9

Settings: Modify AOSP EL translations

Change-Id: I7e3a59412a2884c26a5eb165676e381d003f0fca

8 years agoImprove DPI warning string
Michael Bestas [Mon, 11 Jan 2016 01:55:02 +0000 (03:55 +0200)]
Improve DPI warning string

Change-Id: I3dae9dfc15a2dcfbbb59dcdf3f6d44d694598c05

8 years agoBlacklistSettings : Ensure contact picker mirrors edit state
Danesh M [Thu, 7 Jan 2016 23:51:15 +0000 (15:51 -0800)]
BlacklistSettings : Ensure contact picker mirrors edit state

Change-Id: I376c6724de733548a2a95ac35e399c1b0ec33015

8 years agoSettings : Disable editing existing entries for blacklist
Danesh M [Thu, 7 Jan 2016 23:51:15 +0000 (15:51 -0800)]
Settings : Disable editing existing entries for blacklist

OPO-322

Change-Id: Ib8971510c2af15b2737755c2c3f10cd31da1652e

8 years agoIntegrate mobile network settings into SIM settings for MSIM.
Danny Baumann [Tue, 5 Jan 2016 09:37:37 +0000 (10:37 +0100)]
Integrate mobile network settings into SIM settings for MSIM.

Change-Id: I3ab67d0dcb2979d2b527d40642d0c0f5b3e07034

8 years agoRemove a few MSIM tab hosts.
Danny Baumann [Tue, 5 Jan 2016 08:44:58 +0000 (09:44 +0100)]
Remove a few MSIM tab hosts.

Change-Id: Idd0b7738685ba05fc7c6a85306fcf5e5b08203ff

8 years agoSettings: add link to statusbar icon config screen
Roman Birg [Mon, 4 Jan 2016 22:29:06 +0000 (14:29 -0800)]
Settings: add link to statusbar icon config screen

The SystemUI tuner allowed you to hide specific statusbar icons. Add a
link in Status bar settings back to the status bar icon config screen.

Change-Id: Ib239c8b893769bcf273664a15e8112caca8a0618
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: remove voice wakeup link as necessary
Roman Birg [Wed, 6 Jan 2016 17:31:10 +0000 (09:31 -0800)]
Settings: remove voice wakeup link as necessary

- Package check wasn't using the package constant
- Hide link for secondary users

Change-Id: Id3c8269311d5cfabd146af7ce1687cdbdb35a19c
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoFix zen mode allowed event preference summary.
Danny Baumann [Mon, 4 Jan 2016 14:24:03 +0000 (15:24 +0100)]
Fix zen mode allowed event preference summary.

Simply using lower-cased versions of other strings might work for
English, but not for most other languages.
Also improve formatting of list: Instead of showing 'a, b, c', show 'a,
b and c'.

Change-Id: I7a809e0655cbde3af1695ec3ddf86ec818fb191d