QuietHours: Y U NO REFRESH!

Updates QuietHours state when user changes through the toggle and reflects current state.
QuickSettings: fix GPS graphic state logic

Current logic shows the gps_off icon once the requesting
app has terminated (inUse = false). expected graphic is
gps_on. To reproduce:
1. Start with the GPS off. Tile has gps_off graphic and
   off text.
2. Tap the tile, graphic turns to gps_on, text turns to on
   (this is the idle state where GPS is on and available,
   but does not acquire satellites).
3. Start Google-Maps, once GPS is locked, graphic changes
   to gps_locked.
4. Now stop Google-Maps. Graphic will change to gps_off
   though you would expect it to return to state (2) above.

PS2: always set iconId=0 unless we have a GPS fix

Change-Id: Id044635016a848bb6bc02032b87e977ba0782f06
Quicksettings: fix updating 2G,LTE and WifiTether tiles

adding an observer to listen for state changes

also move updating torch and navbarhide

Change-Id: I8dc8f9d804fcd47daaec50f0169fd5148d494cc6
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
SwaggerTile: Added Swagger - SundaysFTW

PS2: Icons Added && Attempt at refresh
PS3: Revert DerpRefresh && add IDKMaybeRefresh
PS4: Working, see here:
http://www.youtube.com/watch?v=zQqnv06Lz-k
PS5: DerpyTaco Fix.  Go away on Syndays.
PS6: Refresh TileIcons only as needed (day change)
PS7: Rebase && Update Boolean Logic
PS1: Rebase, method & formatting cleanup

Change-Id: I33cd98c14d44a81a92228d309e2ee66ff0ec1ae9
Sound Toggle: Improve logic with new icons.
AwesomeAction: Performance update

Use hashmap and switch case, also use containskey() to
bypass switch/case if its a custom app.

oops sorry marc
double oops..

rebase

Change-Id: I90b353df3de035c58e1871b8a3085c82f7d24145
Low battery warning policy (1/2)
Option to choose how low battery warning will be indicated
- Popup dialog and sound
- Popup dialog only
- Sound only
- Off

Change-Id: I9e4f984f89cab8fab626ea1e8e03d7123a8b3cb5
PIE: animation revamped (back to the first draft), style changes

Change-Id: I9e521ed4f7be2df629f58d933bad286486ec4a71
Policy: fix keyguard statusbar showing while in ext desktop, fixes it in
apps like currents as well

Change-Id: Id3e4b99d60c33e4050e0e97c365d1ae739f603ec
Bugfix : Quick pulldown sometimes flips when it should not

When your Quick Settings Panel is set to

Quick pulldown : right

Sometimes (very intermittently) the tray flips (to Quick Settings) as you pull it down from the right side.

This is happening because the pull down happened so fast you can see the top 0-10 pixels of the tray,
and because it was showing the notifications, not the Quick Settiings

However the user expects the tray not to flip, but to just be on the Quck Settings.

The new code simply checks to see that the Event was a pull down event and that the event started in the top status bar.
If this is the case, then the quick panel is swapped to (without flip)

Special Thanks to my daughter Jenny fo painstakingly reproducing this bug.

Change-Id: I8fdbedb1aa6d4fd672bd4cb58b7c99557469ab62
SystemUI: highlight quick settings and notification clear buttons

Actually make use of the drawables bestowed upon us by the Google

Change-Id: I54ed68cf529eec0a0b76e9e35599d70a7d38f686
Workaround until gps can be fixed, force gps to stay in standalone mode when
ro.agps.allow=false

tested and working on t0ltecdma devices

Change-Id: I917de8cf3c59865a423dafa605ee4f10a5838bb6
Fix some stuff in Profile Tile

Tile works now if you use Power Menu to change profile first.
Lockscreen see through (1/2)

Also add a few missed headers
Allows notification behiavour selection
Revert "BitMapFactory: inDither option off by default"

This reverts commit 3e9ce7bef82038dc4a2ab5b124be00029e88c7d1.
Merge branch 'jb-mr1' of git://github.com/Root-Box/frameworks_base into rb-jb-mr1

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I3277c06e78d8c80342dd3128b406c03d68ff2844