Settings: ability to turn off SlimPIE (2/2)

due that we have a problem on i9100 because of damn
exynos drivers we give the ability to turn off PIE
for i9100 via overlay for now

cheers

Change-Id: Iacf5f5db5baeaa1083d9bc632670f52582933a6a

Conflicts:
	src/com/android/settings/slim/InterfaceSettings.java
Fix: show 3 dot menu overflow for navbar devices even

when navbar is disabled

cheers

Change-Id: I3dfe2637d44d0d982cd5371c380c7c864d3d0c79
Add Music Tile [2/2]

Commits a new Media Tile that allows user to
- Play/Pause on click
- Skip track on long click

PS 2 : Media does not make sense

Change-Id: I8c7b52ffdf31cee5818700c7c6b36e33b6e00c70
Fix: Tablets QS setup possible FC

due that tablets do not have the option to disable QS drawer
the instanciation broke (FC) when the user went into Tile Layout and pressed
the back button because of missing main dependency in the
relevant xml

cheers

Change-Id: I51d4fc36f23301f985e89064145ba4655db01965

Conflicts:
	src/com/android/settings/slim/quicksettings/QuickSettings.java
google...that is no lockscreen setting :p

use other string old  pointed to wrong one

Change-Id: I3d57e7633f1684170e6b5fbe8af282f8d76066cb
Settings: SlimPIE the second (2/2)

This commit changes the following:
- add possibility to set trigger height on the left and right trigger
- add possibility to set gravity on the lef and right trigger
- change touch detection logic and calculation (it shows now up immediately...super fast :p)
- reduces values in dimens.xml because of the new touch detection much lesser are needed
- remove on settings the shown values on the left @seekbar on entries where it does not make sense
- reset menu for trigger dimensions
- minor string changes
- cleanup
- minor bugfixes

for me it is now like a PIE should be lol

cheers

Change-Id: Ib31025a05b94da6718d2ff66178a7657075e4c90
Settings: SlimPIE second layer (2/2)

I promissed yesterday to stop working on SlimPIE....but due
team and user whishes I decided to do a last tweak so that
all are happy.

This commit introduces the following:
- enable second buttons row
- up to 7 buttons + 7 longpress buttons
- usual customizations on that buttons
- means it is possible to add 5 + 5 on first row and 7 + 7 on second row
- resource friendly...reusing most of present code
- new introduced observer for second row is just
  observing when second row is really enabled
- due optimizations we can hold the speed and responsive we
  introduced yesterday on same level
- reduce default size back to 1
- some minor changes

Now SlimPIE is finished

Screenshots (first shows default values for first and second row):
https://dl.dropboxusercontent.com/u/106208842/Screenshot_2013-05-01-02-30-47.png
https://dl.dropboxusercontent.com/u/106208842/Screenshot_2013-05-01-02-36-25.png

cheers

Change-Id: Icac694022e051eb3ced986829f7196798c958b8e
Settings: reduce minimum PIE size

due to team request reduce the minimum value
to 0.84 (6% lower)...all below big icons will overlap the button
border

cheers

Change-Id: I6a4f25aca0feebf477160df08509a69e5b8d1f4d
Settings: add back 0dp navbar values

for width, height, and lanscape height due
much user requests

cheers

Change-Id: Ie1a8b4d3deb1cbc1b7eafab94afd2cf1b9625e2b
Settings: make right pie mirror optional (2/2)

due 70% user feedback the wanted to have the right pie
mirrored on the horizontal axis  because of usability...the other 30% want a visual
logic... So a point to make it optional

default value is mirrored

cheers

Change-Id: Id1d9017b7180aa42171abf36721595ab9130d26e
Colour picker text input field: wrong content due to alpha channel.

The field was, effectively, showing AARRGG instead of RRGGBB due to
the alpha component being non-zero. This change fixes that in a
generic way which allows for alpha channel handling even though I see
no use for the alpha channel for the notification light.

Change-Id: I5b71340f3b644c6f6b305dc66d1285cc77427bf5

Conflicts:
	src/com/android/settings/slim/notificationlight/LightSettingsDialog.java
Settings: fcharge for all (2/2)

Thanks roman for the basic idea to use an overlay
to set the fast charge path so each device can set
the propper path to the custom kernel.
As well this commit pays attention if the user
flashed a kernel which does not support fastcharge
or is using another path. Option for tile in settings will be removed
as well.

cheers

Change-Id: Ic78b2aea05cd80de03130cf82f678d5e6b2b180a
Settings: toggleQSShade (2/2)

we have a notfication shade toggle....but we cannot toggle
directly the QS drawer via SlimPIE, navbar or hw keys.

This commit does:
- bind qs shade toggle to slimpie, navbar or hw key
- logic detects if you are already in the notification drawer
  and switches then between qs and notification area. If not
  it closes the notification drawer or qs panel depending
  which of both is open
- icon changed to the same icons which are used in the notification
  drawer to have a visual consistence
- as well like the notificationshade toggle it is toggleable
  in expanded desktop mode or on fullscreen apps
- bindable as usual on normal and longpress actions
- for tablets it is of course just opening and closing
  due they have seperat notfication drawer and qs

small demonstration:

https://dl.dropboxusercontent.com/u/106208842/qstoggle.mp4

Change-Id: I0007a1b4e9b165db9ce69e57d9631d1332815e3d

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
	src/com/android/settings/slim/NavbarButtonSettings.java
Settings: Allow smaller SlimPIE sizes + multiDpi fixes (2/2)

Due team, user and kanger wishes I needed to do again something :p
Hopefully now really the last thing :D Is now in full range as well usable
for higher dpi then our stock dpi

This commit does:
- allow bigger size range for SlimPIE layout
- icon are now resized on smaller sizes (only then) then default size
  which allows much smaller overall size
- slight better positiong of the icons in the button item
- Fix: reported issues custom Icons are sometimes to small
- Fix: reported issue that estimated container size took not PIE_SIZE
  into account (follows now on every dpi and size the activation point)
- Fix: Settings style seekbar resets sometimes to last setted value
- Settings: a bit code rearrangement (not needed but I was bored :p)

And now really finished :p

cheers

Change-Id: I6917830262f1c1bf31f0175368daa7d9e187ad9c
Settings: revert to our old default size (2/2)

played so much with the stock dpi values to optimize that
I set the default value for our slim dpi a bit to low :p

Roms which use stock phon dpi can leaver it like it is

But should kang the correspondent frameworks patch which
allows more flexible size changes

cheers

Change-Id: Id251862be544e2408d8059037708ee84868f6b87
Settings: SlimPie do not got through onPreferenceChange every time

Change-Id: I4ae86f10829ee2c2057e4079d5d25363bb478719
Settings: Always show settings button option for notification drawer -corcoran
gtalk to hangouts