Settings: Fix QS unsupported options are shown if called from outside

Change-Id: I179f087bbaed1e3f366f3e65520de09b53beca19
Settings: Add user protection and pie/navbar toggle to SlimActions

Add drawables for it and enable it for navbar, pie, hwkeys
and GlobalMenu and whatever other shorcutfeature want to have it
Keep the user save and do not allow to disable all navigations to keep
the device usable. User will be notified

In Settings user get the choice to enable the other navigation method. Of course
only on navbar devices due that hw key devices always have a working navigation

and a small duplicate cleanup

PS:
- added Jubas suggestions

Change-Id: I3d13a13bf54304b0207b83b54df5c37337bcdaf5

Conflicts:
	res/values/slim_strings.xml
	res/values/sloppy_arrays.xml
	src/com/android/settings/slim/PieControl.java
	src/com/android/settings/slim/PieTriggerSettings.java
	src/com/android/settings/sloppy/NavbarSettings.java
Settings: Slim Actions to Shortcuts (2/2)

Depends on:
https://gerrit.slimroms.net/#/c/3321/

Change-Id: I8c9a524f3628c47e882347225372ff065b4f2b94

Conflicts:
	AndroidManifest.xml
	res/values/slim_strings.xml
Settings: Fix Potential NPE

Change-Id: Ied91344a938fee58827a18c3d555053ea9898c0d
Settings: SlimPie give user ability to reduce trigger heights if IME keyboard shows (2/2)

Add a user option to reduce left and right trigger of SlimPie if keyboard shows up
(especially usefull for swipe keyboard which most keyboards are nowadays). Enabled
by default user can disable it in settings

PS:
- fix category string

rebase

Change-Id: Ia5ae621a5e63b2efd10180cfbe1876b14a63c866

Conflicts:
	res/values/slim_strings.xml
Settings: clean up warnings

rebase

Change-Id: Ib39d58da40a9b3657358223886cecf4f0543e0e3

Conflicts:
	res/values-cs/slim_strings.xml
	res/values-ru/sloppy_strings.xml
Settings: init correctly LockPatternUtils on configuration changes

Steps to reproduce:
- go to security pattern choice
- turn the screen to landscape
- result: crash

LockPatternUtils instance was not passed trough to LockPatternView.
Hence the crash and NullPointerExcpetion.

Fix it with correct initiliaze LockPatternUtils.

Change-Id: I38b495030b2c454effc901854bdcabfcbc10219a
Settings: Respect and handle shorcut custom icon resources (1/2)

If a activity shorcut has an extra icon resource or drawable we need to handle
it. Fix this for all out shortcut features. Most is centralized so a small change

fix as well wrong sizes of custom images in QS custom tile

Change-Id: I53c5b4a2cb503c11dd3bb21e16a69eda0fb36b31

Conflicts:
	AndroidManifest.xml
	src/com/android/settings/slim/HardwareKeysSettings.java
	src/com/android/settings/slim/LockscreenTargets.java
	src/com/android/settings/slim/dslv/ButtonsListViewSettings.java
	src/com/android/settings/slim/util/ShortcutPickerHelper.java
	src/com/android/settings/sloppy/quicksettings/QuickSettingsTiles.java~
Settings: Notification Reminders (2/2)

PS4: Undo Unintentional PS3 change

Change-Id: I6be8d2267154c663a9977118f8e75e220cb7b9f6

Conflicts:
	res/values/slim_strings.xml
	res/xml/notification_drawer_qs_settings.xml
Settings: Fix the memory leak in Settings

Fixed the memory leak in both InstalledAppDetails

Change-Id: I3520b3c1fe1bf98e3baec2ee989eb215164a7cf2
Signed-off-by: Zhijun Peng <pengzhj@marvell.com>
Settings Smart PullDown to SlimActions (2/2)

PS2: Reverse dependency until Recents
	Preload situation decided.

Change-Id: Icacca5c385b843de4e5c690d3cdacdfe003dc948

Conflicts:
	res/values/slim_strings.xml
	res/values/sloppy_arrays.xml
Settings: Recents to SlimActions Shortcut (2/2)

PS2: Reverse dependency
PS3: Simulate Virtual Key Press for Recents

Change-Id: Ia740033db91c235fbfb0be569af7382cbf58a8b1

Conflicts:
	src/com/android/settings/sloppy/SloppyShortcut.java
Fix F/C in TTS settings

This is an attempt to fix uncaught MissingResourceException
that would be thrown if default language of selected engine is
set to a locale that has no 3-letter country/language code.

Please see https://code.google.com/p/android/issues/detail?id=63122

Change-Id: Iccb2a55f5f7a97819310fd888559650fe7febe4a
Signed-off-by: Shuhrat Dehkanov <k@efir.uz>
Settings: SlimRecents scaling + lefty mode (3/3)

    - Add scaling mode....user can scale the overall size down (especially for the
      user with stock dpi requested)

    - Add lefty mode. Recent panel shows up on the left edge instead of the right edge
      for left handed people.

Both are one time accesibility settings. So we put it there.

Change-Id: Ifa7a7299538f3c8f9c592c0c61b48dfa9fbeb2d6

Conflicts:
	res/values/slim_strings.xml
	res/values/sloppy_arrays.xml
Settings: More Lockscreen Colors (2/2)

PS2: fix derp caught by Chandra Poerwanto

Change-Id: I5469c42b4e944aab4b1b0c21d5ef41a8d1a1213a

Conflicts:
	res/values/slim_strings.xml
	src/com/android/settings/slim/LockscreenStyle.java
Settings: Quiet Hours Automatic Switch (2/2)

Given that we have settings that may be useful
	for any time the phone is set to silent
	(automatic reponse/bypass especially):
	enable an automatic switch method

Change-Id: I6abeb6f1716ed230fdb11b426a915acb08c3122b

Conflicts:
	res/values/slim_strings.xml
	res/xml/quiet_hours_settings.xml
	src/com/android/settings/slim/QuietHours.java
Settings: Add "Is Starred" to Quiet Hours (1/1)

Starred contacts only for bypass and response
	settings.

Change-Id: I3b2f216e1138a89751b9864d38e0f7e556d0a4de

Conflicts:
	res/values/slim_strings.xml
	src/com/android/settings/slim/service/SmsCallHelper.java
	src/com/android/settings/slim/service/SmsCallService.java
Settings: Lockscreen Rotation Optional (2/2)

Much more customizable than other implementations

PS2: Allow multiple values
	(enable, disable, portrait, landscape)

PS3: Fix default summary for tablets.

Change-Id: I58d8b4c6db0f0c24787c9c21175040c33567359b

Conflicts:
	res/values/slim_strings.xml
	res/xml/security_settings_lockscreen.xml
	res/xml/security_settings_pattern.xml
	src/com/android/settings/SecuritySettings.java
Settings: disable keyguard widget frame (2/2)

Change-Id: I23cd62d58d345278dc2b1dbeeefd574dc313e6c1

Conflicts:
	res/values/slim_strings.xml
	src/com/android/settings/slim/LockscreenWidgets.java
Settings: QuierHours service: call with qualified user and introduce controller

This commit fixes 2 issues:

1. Call the service with a qualified user.

2. Complete overwork of the handling. Currently the SmsCallHellper is doing
   way to much work. Especially when time change broadcasts trigger the service
   update. Which ended in certain cases to a complete system overload.
   To fix it we use now a single tone controller to take care of this all

Change-Id: Iee4c988f206c9efe90c06114a9030637ba5bac97

Conflicts:
	src/com/android/settings/slim/service/AlarmReceiver.java
	src/com/android/settings/slim/service/AlarmService.java
	src/com/android/settings/slim/service/BootReceiver.java
	src/com/android/settings/slim/service/BypassAlarm.java
	src/com/android/settings/slim/service/SmsCallController.java
	src/com/android/settings/slim/service/SmsCallHelper.java
	src/com/android/settings/sloppy/QuietHours.java
	src/com/android/settings/sloppy/service/SmsCallController.java
	src/com/android/settings/sloppy/service/SmsCallService,java