Settings: add never sleep screen mode (2/2)

see fb patch

PS2: Rebased.
PS3: fix author.
PS4: Rebased.
PS5: Update commit messages.

Change-Id: I17776173c2f25e3fe1c9bd803340e5ee86cfb272

Conflicts:

	res/values/cm_arrays.xml
enable swipe in navigation bar settings

PS2: use the way how Google setup the tabs and center them

Change-Id: I5f7f9fcd80b89a4aa1aff6153ea4b0f788d4c142
Fix memory leak in ManageApplication

ApplicationsAdapter new a Session member and make it has a reference to
it self. If we don't release it explicitly, the cross reference will
cause memory leak.

Change-Id: Iecce35ae1d56d98cee6347e84d3a3ff57f3b15a5
Settings: Glowpad Torch (3/3)

PS2: String edit & remove from
	devices without torch.

------------------------------------------
PS2: Added Author
PS3: Delete whitespaces
PS4: Fix tabs
PS5: Commenting out some codes for now. Temp fix.
PS6: Add back missing codes, correct remove preference from Glowpadtorch and also add missing patch-set 2 and patch-set 4 messages.

Change-Id: I78851464c41d7e6c06d835f9dda2bb24ce4da509

Conflicts:

	res/values/pac_strings.xml
[2/2] Notification Reminder Thanks SlimRoms

PS2: Missing imports & fix build
PS3: Rebase
PS4: Rebase

Change-Id: Ieb53589a8d1223f9e27717ce5bee17f84c4a3ac6

Conflicts:

	res/values/pac_arrays.xml
	res/values/pac_strings.xml
	res/xml/notification_drawer.xml
	src/com/android/settings/cyanogenmod/NotificationDrawer.java
[2/2] Notification Reminder Interval && Fixes

PS2: update Author

Change-Id: Ib31291a9db6a4c172fd60100cd24f52b58060699

Conflicts:

	res/values/pac_arrays.xml
	res/values/pac_strings.xml
Settings: Add Slim Actions & more for Pie [2/2]

Include partial this commits:

PS2:
Settings: Slims navbar and navring customizations
https://github.com/SlimRoms/packages_apps_Settings/commit/f756dab3ebf2eea5b595f96f7821da32664a036f

Settings: new dslv + Dialog handling
https://github.com/SlimRoms/packages_apps_Settings/commit/f4de69495b2309bc2b748a5d6a66a7211b4b8379

PS3:
Settings: Port Lockscreen Targets and Shortcuts to SlimKat
https://github.com/SlimRoms/packages_apps_Settings/commit/f748a06fd3567f7218b6d87ce17a2cb6f6d7511c

dslv: use the right owner and missing break
https://github.com/SlimRoms/packages_apps_Settings/commit/637ea5b68a7f5071e775b9bee44999704a82c54f

settings: add and pimp several help/reset dialogs
https://github.com/SlimRoms/packages_apps_Settings/commit/16695a4776cc96752fa1234fcd48c498c978c750

PS5:
----Only seekbar-----
Settings: Minimum Vibration Duration (2/2)
https://github.com/SlimRoms/packages_apps_Settings/commit/4fb10ceeefd4e82886c773b2d99c335353500254

Settings: Clean up SeekBar && Fine LongPress (1/1)
https://github.com/SlimRoms/packages_apps_Settings/commit/ea425ec27cdffad23f9ba8f80d67d62c80f7f3fe
----------------------------------------------------------------------------------------------
PS2: updathe message
PS3: more slim updates
PS4: fix derp
PS5: update seekbar code
PS6: fix derp

Change-Id: I4b1f865260c3d64fe6c4b45d43c510055fd5035d

Conflicts:

	res/values/pac_strings.xml
Settings: Lockscreen Colors and Lock Image [2/2]

PS2: Separate settings into mutiple and
	create fragment to hold them
PS3: String change.
PS?: Lock image selector
PS?: Custom Lock-image colorize option
PS4: Add missing "strings"
PS5: Forgot 1 additional string

Change-Id: I46bb16570916645712b75c05f34235fdbd271650

Conflicts:

	res/values/cm_strings.xml
	res/values/pac_arrays.xml
	res/values/pac_strings.xml
	res/xml/security_settings_password.xml
	res/xml/security_settings_pin.xml
Settings: Fix Lock Size

Get lock size for device.

Change-Id: Ie9bcbb7ff2fec73128254b8ad290f3e03c4e2f0b
Settings: Remove Setting From Tablets

Tablets have no expanded-widget
	lock icon.  Remove if user
	uses a secure lock and no
	lock-before-unlock.

PS2: Derp.  Opposite logic.

Change-Id: I174b76988a5ff60680a53a8632e518d99ca49dbd
Settings: Lockscreen Slim Handle

Grab large slim icon and resize
	it rather than process
	another variable while
	the lockscreen initilizes.

PS2: Update image

Change-Id: I1ed51f80d5581b52c232690c2bd3973c994060d3

Conflicts:

	res/values/slim_strings.xml
	res/values/spirit_arrays.xml
settings: fix and pimp custom lockscreen handle (2/2)

problem on current implementation is that it is not
multiDpi compatible. As well it looks a bit weird if
the user set a square image always. This commit does

- introduce central circleimage method to get circle image crops
- before it was assumed that the height of the handle image is
  108px (mdpi base) which is correct but the original handle
  has a lot unused space around to fit better into the view.
  Whatever after messurment of the real height 68px is correct
  of course calculated against the current density
- both above combined results into a always nice looking
  custom circle icon on the lockscreen dpi and device undependent
- saved file in settings calculates the needed image size
  base on the current density.

rebase

Change-Id: Iba46fdf725be0fe785234bda3fd1ff8dbb4c1467
Add reboot tile (2/2)

Thanks to SlimRoms

Change-Id: I898240bba541976b74a4949ae4f51e9a6f7d1058
Lockscreen blur and blur radious (2/2)

- Based on @BigBrother1984 implementation from this commit: 4e061d4b26b06499b3eddfaaf3564094851a4c2a

Change-Id: I11f3fa8ef477d08e4a9398099206f1a7ae3b6d8d

Conflicts:
	src/com/android/settings/cyanogenmod/LockscreenInterface.java

Conflicts:

	res/layout/seek_bar_preference.xml
	res/values/cr_strings.xml
	src/com/android/settings/cyanogenmod/LockscreenInterface.java
Settings: Lock before unlock the new way (2/2)

for more information see fb commit please.
target selection if lock before unlock is activated
will be enabled and shows the repective settings dependend
on if it is a phone or tablet

Based on @kufikugel commit (97d8a510e90a7bad58d8691d6f83c6e64d2b907b) and adapted to work in LockscreenInterface.java of CyanogenMod

Thanks to him!

Change-Id: I60b114e2c7c5adffd079be0ba44ee31d1f02990e

Conflicts:
	src/com/android/settings/cyanogenmod/LockscreenInterface.java

Conflicts:
	src/com/android/settings/cyanogenmod/LockscreenInterface.java

Conflicts:

	res/values/cr_strings.xml
	src/com/android/settings/cyanogenmod/LockscreenInterface.java
Settings: disable keyguard widget frame (2/2)

Change-Id: Ia18c66dc32b65a2e35807bf643e8d3235d4a0a58

Conflicts:

	res/values/cr_strings.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>