Frameworks: Advanced low battery indicator options (1/2)

Based on a idea I saw on Liquid and from CR3C0 (thanks guys) which we
modified to an extended version

This commit introduces following new SlimBean modes to indicate low battery

     * 0 = show dialog + play sound (default)
     * 1 = fire notification + play sound
     * 2 = show dialog only
     * 3 = fire notification only
     * 4 = play sound only
     * 5 = none

Due that notification is a unique SlimBean feature some words on it. Notification
behaviour is the same as Pop-up. User can dismiss it manually or it is
dismissed automatically if charger is connected, click on notification opens
PowerUsageSummary. Also you get a status bar ticker message about the notification
and notification is always on first place of list. And last if vibration is enabled
notification vibrates.

Patchsets:
 - codestyle corrections

Patchst
 - add PowerUsageSummary intent

cheers

Change-Id: I84476626b0ff5424454a1132ea4ef77a696070c1
fb: add back notification shortcuts feature + common slim classes

beside our unique slim feature this patch adds

- all system shortcut icons we need for this and other stuff in future
- basice slim helper and constants classes we need later as well
- device utils helper
- preparation for navbar navring and other shortcut features
- and of course our notification shortcuts feature

compared to 4.3 some fixes were added + adapting to 4.4

xxhdpi icons thanks to kroz again

Change-Id: Ie552480007bde649352c699c8ff9ac10e79ed069
fb: use correct pressed color for new 4.4 UI

Change-Id: I5dcb9875a13130f549a5fd5137897208b364d003
fb: add Battery Styles the new way 1/2

google draws now the battery icon which fits perfectly into our
concept. Beside that the batteryview is as well used on QS.
So we readd our battery icons (icon, percentage, icon with percentage
circle, circle perc, dot circle, dot circle perc) back and all are
drawn. As well the icon does not only change on statusbar as well
on QS it is reflected.

As usual color options are present for the User to style the icon

Change-Id: Iae9021af56a21b8d39efc5162186eb17ecc933e2
[1/2] Power connect/disconnect notification support

Change-Id: I36a6b9f924d2cd52191a8e83a744745b37c5b068
Frameworks: Fix first animation to QS

on click of qs settings button

Change-Id: I7fbc4bc162aabeedb6b88c3046403c12ebb2e6bf
fb: animate carrier lable when collapsing notification drawer

like we do for shortcuts....does not look well that this is the only
part which does not animate. IMO google behaviour is not the best
here

Change-Id: I9a7f4b4564e7cf87ee2477454aff0a9ae6af8e26
fb: fix volume rocker music track seek

based on an idea of DaneSH we use now audioservice
instead of Broadcast as well some minor
fixes in the key handling

Change-Id: If4afda046b9fbebda611615371a718122ffb57b6
fb: correct the google animation on flipping to QS to be nicer

that the carrier text on flipping to qs hides when QS is already present
is not very nice from UX perspective. Correct this behaviour to hide
it directly when the user goes into QS. Same for notification shortcuts

As well reflect this behaviour on manual flippsettings

Change-Id: Ib181bef2022b974e05ec8ebeb195e08cd41a4ffc
fb: show percentage on icon in bold and use for

only percent more width in statusbar and QS
As well show on percent with icon on fully charge not the bolt
and instead the value 100

Change-Id: I4e0b837ff6e217e1c9f78d967aa57c3e2f1bf2ad
Add config_restartRadioAfterProvisioning

Bug: 11673637
Change-Id: Ie758a303fd751d204fd6baa60217e88df6376aae

Conflicts:
	core/res/res/values/config.xml
fb: Slims navbar and navring customizations

add back our navbar and navring tweeks. This is a completly overworked
version compared to the one we carry about a year now. Small glitches
we had are now all fixed. As well it does not need to register extra observers
code was much slimmed down and improved.

Beside that we adapt the 4.4 navbar changes to our system so that it it
consistent with the new 4.4 UI

This patch adds:
- Navbar up to 5 buttons
- navring up to 5 buttons
- dynamic menu behaviour
- landscape navbar options as well now on tablets
- button glow color
- button icon color
- navrign and navbar user can set system or custom icons
- navbar height and width
- enable/disable navbar and navring
- actions are vor navbar and available for the whole system over SlimActions.java
	back
	custom app or activtiy
	home
	kill app
	last app
	notification drawer
	ime switcher
	power menu
	qs pannel
	recents screen
	screen off
	screenshot
	search
	torch if it is available on the device
- navring has targets for handling vib/mute/sound
- added Color class based on blk_jacks idea which first grey an icon out
  and then color it. This gives way better results. As well it fits now
  perfectly with the new 4.4 UI. Put it on a central place so that it is
  from everywhere available. notification shortcuts adapted to the new class
  place
- complete new icons thanks to kroz who has redone all for xxhdpi
- our slim special swipe drag drop press longpress options support
  like on 4.3 this two features
- a lot lot fixes as well on current google code

Change-Id: I8899930b0c84387145e6749271c676bb37efeab9
fb: add general torch support for our app

till now we used an settings overlay. At least all our devices
without torch do not compile the package at all. So check
if package exists if user eg want to setup shortcuts to
torch in settings. Due that our app is needed for torch
and the user will not delete it this is an acceptable way.

see @TorchConstants and @SlimActions

Change-Id: I208fb310fbd0596dd9956d6a2c7fe106859bb4d6
fb: follow new 4.4 transition on center clock and circle battery

Change-Id: I50657071f290e0646193d079ab9319ed15f667b6
Volume Rocker: Do not wake up during track seek.

* After switching to Audioservice track seek works great but it woke the device too if we select both options. Wake only if we do not skip tracks (like raising the volume).

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change "No recent apps" color to white instead of holo blue to follow new UI colors.

Thanks @rascarlo

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
change-Id: Ied4730e321021445baf1191e167d645f39f4c92f
Delete media tests

Media files take up a lot of spce. Deleting them cuts the size of frameworks
almost in half.

Change-Id: I3fd1019df8b41404909b7b4df8ad709526ceff36
Signed-off-by: Evan Anderson <evan1124@gmail.com>
fb: follow on seekbars new UI guideline for 4.4

google forgot some things.....seekbar is one example

Change-Id: I996062a978322c93694e360dff1e4f42dc589062
fb: correct power menu navring icon

had a small jump in it when activated

Change-Id: Ibfb3fc1dbdc6b4d95f366df85dea0d2dfa6f404c
fb: correct seeker fb style for 4.4

based on this commit https://github.com/SlimRoms/frameworks_base/commit/a845169c128c19825a69a0ebdf2e4d366fdd67ad

the idea was good but bad done. A middle in the night action lol.
Problem is that holo light themed app cannot handle the white seekbar of course
So add the complete seekbar into the Holo.Light switch to support both cases

Holo: white seekbar
Holo.Light: drak gray seekbar

Change-Id: I82252d0cb30cd4af47d624a37ccc904cb7e9c1e6