Theme Engine: Add missing changes for MSIM devices

This commit adds some necessary changes for the New Theme Engine on MSIM devices.

Change-Id: I3281b5e865c37b4519d60031856ba787ba8f9c32
msim: Add missing layouts for battery icon on MSIM devices.

This commits adds missing layouts for showing battery icon on notifications bar in MSIM devices.

Change-Id: I1c9675667a0c22a7e35b98f09a177fcf8609ecb1
Quick Settings: Swipe to switch

Adds the ability to switch to/from Quick Settings, using a sideways
swipe gesture.

Video demonstration: http://www.youtube.com/watch?v=jZaDVBIFAuA
(Video for the initial Patch Set only)

Patch Set 2: Flip animation follows your finger
Patch Set 3: Fix commit message
Patch Set 4: Fix commit message (again)
Patch Set 5: Pin down the statusbar during swipe
Patch Set 6: Smooth out animation after releasing swipe
Patch Set 7: Swipe in any direction to switch views
Patch Set 8: Ensure the statusbar is properly pinned down
Patch Set 9: Fix logic and event handling issues
Patch Set 10: Refactor for readability
Patch Set 11: Limit swipe detection to the bottom bar
-----

Quick settings: change behavior of swipe to switch

Now it's working not only in bottom bar but in all QS area

Change-Id: I0cbc336c5a4a6c9a180325791dbd508c6983a1ec

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

fix power switch

Change-Id: Id5b18f3c9227b0d6c4caf2ed28d62d374fe98938
-----

Change-Id: I3cab45f72fe3c5fa40d4631fc6a84ea7bfe51bd1
Systemui: ignore bartransitions if we are not on highend gfx

Change-Id: Ie40fc76b8fce760cd31675d0edad2045d2567643