Settings: Colorpicker margaritov overwork and fixes which were urgent needed

More or less over a year a lot roms are using margaritov's and nillson's colorpicker
Due to the progress of roms this colorpicker needed a lot overwork now. Some fixes, some
improvements etc. etc. Should now be bugfree + additions we added and add now

Before I do a bigger list screenshot here....should explain all:

https://dl.dropbox.com/u/106208842/Screenshot_2013-02-26-02-39-02.png
https://dl.dropbox.com/u/106208842/Screenshot_2013-02-26-02-39-11.png

Important hints for kangers. Due that aosp depreciated hex color values on this stage
I decided to remove also in colorpicker this support in general to be aosp consistent.
This means that for defaultValues only int colors are accepted. Two ways to do this.

1. Set defaultValue in xml code. Like android:defaultValue="0xff33be5e" or link it there
   to a integer color resource (before there was only the possibility to set eg "#33be5e" which
   is depreciated from aosp)

2. Do it with the new integrated method I did about 2 month ago. setNewPreviewColor(int color)
   Of course at this point you can do to get hex resources like it was before, eg
   setNewPreviewColor(getResources().getColor(com.android.internal.R.color.holo_blue_dark)

3. or do both :p

cheers

Change-Id: I822eac92198f7cb3b2c394d8c419d12aa95ce313
Settings: Change color picker consistents in our settings for changed color picker

As described in the color picker commit you have two possibilities to set
the default color. In xml with a int color or in code with method
setNewPreviewColor(int color). We did also in past both (although one of both is
only needed) so I did here to demonstrate the functionalty which bases
on the newest aosp rules on this stage.

cheers

Change-Id: Id5881320bc50de742ab80ff6a9bc00399326e77c

Conflicts:
	res/xml/ram_bar.xml
	src/com/android/settings/slim/RamBar.java
Configurable Notification Behavior [1/2]

Credit: Michele Primavera

Change-Id: I74c422a5acc95fc8ddde17809d6c5b3472772de9

Conflicts:
	res/values/strings.xml
	src/com/android/settings/slim/NotificationDrawerSettings.java
LockscreenPattern : Toggle dots/error pattern visibility (2/2)

Give user ability to hide error pattern / dots.

Patchset 2 : Cleanup commit msg

Change-Id: Ifdd4615c7116f974a0a67079d58a521e84d76367

Conflicts:
	res/values/strings.xml
Icons for all the boys and girls! (2/2)

By popular request!

Added: drive, dropbox, evernote, fitness, gears,
notes, package, pocket, tasks, transit, tv

Changed: file browser, file browser 2, play with thicker lines

Change-Id: I8e4899ede9986845c48d84f9ad4cb12f27e144c2

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
Settings: Extended QS style options (2/2)

Following features are introduced:
- set up tiles per row (3,4,5)
- option to duplicate tiles per row in landscape
- set up tiles bg color
- set up tiles bg pressed color
- set up tiles text color

Thanks AOKP and Evolution rom for the idea of tiles per row.
Compared to other solutions we changed the code in that way
that no other observers are needed, no systemUI restarts,
a better landscape view and some minor code changes
so as usual another slimed new unique SlimBean feature

cheers

Change-Id: I8befbd992bb582b13c3c3f9cf26d38972a81b1d0

Conflicts:
	res/values/strings.xml
	res/xml/quick_settings_panel_settings.xml
QuickSettings: Add LTE Tile (2 of 2)

Thank you to Bjorn Lunden for the drawables
Thanks to David for the base

Both CM

Change-Id: I735d00dc44fc6c3aaf1176f792ff7452efb34b4e

Conflicts:
	src/com/android/settings/slim/quicksettings/QuickSettings.java
Add Quick Settings USB Tether tile (1 of 2)

Patch Set 4: Make tile dynamic

Change-Id: I43fec8c3264b89b647f1626b8d29e459e78672ab

Conflicts:
	res/values/strings.xml
	src/com/android/settings/slim/quicksettings/QuickSettings.java
Fix hide HighEndFX option for devices with native support

cheers

Change-Id: I1cfff3018a58c7b29daca33d2e29297b6787d051
Fix possible NPE on largescreen devices

On special conditions lockscreen interface caused NPE

cheers

Change-Id: I1240baec5b3f74fcc985daea2c9fcbc81769752a

Conflicts:
	src/com/android/settings/slim/LockscreenInterface.java
Settings: percentage text charging indicator and custom color (2/2)

Due some user complains cause of missing charging indicator on
battery percentage and percentage+icon in statusbar this commit
introduces two features

- percentage/percentage + icon color indicator on charging
  (default color = green)
- custom charging color for all battery symbols with percentage text
  (percentage/percentage+icon/circle with percentage/dotted circle with percentage

- a bit code cleanup

Patchset 2
- cleanup to reduce provider settings calls

Patchset 3+4
- cleanup + commit message

cheers

Change-Id: I9bba9a051f9623fb87e6cb95f5520f7eeb991c43

Conflicts:
	src/com/android/settings/slim/StatusBarBatteryStyle.java
Fix code design error to prevent possible FC's

this commit should begin with uuuuuups ;)

Till now this code design error had no negative effect on
functionality because the situation is not given to force the
possible FC (so no one discovered till now this design derp).
Last days I programmed another new feature and
ran into this stackoverflow FC.....and I really wondered why.
Seems to be that I dreamed today about that....and woke up
with the solution that I am an idiot. I did it one time wrong
(no idea why....on half of other files I did it right) and due copy
paste this error went also into some other files. Whatever to rebuild
the preferencescreen that you can call it on every place without
running into an stackoverflow (eg would happen if you call the old
method from a preferencechange) it should be a preference screen method
with returning at the end the preferencescreen.

Beside that I introduced  boolean mCheckPreferences to prevent
unneeded writings on provider.Settings. Just a performance
change and a bit help for color resets.

corrected on all files where this problem is + one cleanup

sorry again for this code design error

cheers

Change-Id: Ie59939dbf8b6d46800e341542b80b55993011d7b
Settings: QuickSettings flip button longpress PowerWidget toggle (2/2)

Change-Id: Ib1a1ccbd63110fba50bdff5b5831706177d1e511

Conflicts:
	AndroidManifest.xml
	src/com/android/settings/Settings.java
LockscreenPattern: Fix toggle dots/error pattern visibility

This fix the issues dot/error pattern state doesn't save.
also cleanup redundant code.

Change-Id: Iebaac9679ad9c621d62effd700689485db7c252a

Conflicts:
	src/com/android/settings/SecuritySettings.java
Fix High-end GFX Toggle

Change-Id: I3a29b7987b0bbbb9d0a5b247331606c05f93f9f7

Conflicts:
	src/com/android/settings/slim/UserInterface.java
readd
Fix unsupported tiles regression

Long pressing the QS Settings tile to add
more tiles was showing all the unsupported tiles
along with the rest.

PS 2 : Kill 'em Tabs!
PS 3 : Less imports
PS 4 : Oops forgot something

Change-Id: I107913a1db18d70cc22949b74e9d3eb6892c4577

Conflicts:
	src/com/android/settings/slim/quicksettings/QuickSettings.java
Fix: disable navigationbar can move when navbar is disabled

cheers

Change-Id: I5cceadc39834994cc78f9084431939691a614c1b
Add Volume Tile [2/2]

Change-Id: Idf5d135fbf9565b91a4745f3d2747c4100abea1e

Conflicts:
	src/com/android/settings/slim/quicksettings/QuickSettingsUtil.java
Add Expanded Desktop Tile [2/2]

Change-Id: I2170ebe67adb54d0f05f0fb8da62f506b0fdc659

Conflicts:
	AndroidManifest.xml
	src/com/android/settings/Settings.java