Fix crash on KeyguardViewManager when lockscreen hasn't been shown

If lockscreen has never appeared (first rom boot), and you enable see
through, you will end up crashing system_server. This fixes it

Patchset 2: fix comment typo
Allow theming of lockscreen (aokp/bamf)

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java
Fixup kill all location in recents panel.
FW : Rework NavBar UI in ROMControl.

This turned out to be a little more in depth than I planned.
Decided to do some integration with AwesomeAction while
overhauling the UI.  This required adding some methods to
AwesomeConstants so that we can get the list of actions and
their 'ProperNames'  from a single object.

ToDo:  Do a similar move of objects/names for the icons.
   This will allow a single copy of each icon rather than
two like now.

Themers and Translaters are gonna be pissed when this is done.

PS2:  Created a method to return the Drawable/Icon associated
with a given action.  I've imported the XHDPI icons only at this
time (so non-xhdpi test builds will not work!)
Also, some of our 'actions' didn't have associated icons so I
copied a few from other areas.  They will need to be looked at
for 'appropriateness'.

ps3:  Moved NavBarHelpers into frameworks.  Copied over the rest
of the DPI icons (Resized quite a few too) - the images still need
review/updating to be more holified, but they will work as is.
Todo: started a way to subract subsets of Actions for the appropriate
function (ie, NavBar might not need access to *all* Actions.  I didn't
implement yet as I need a clever/clean way to subtract Array sets.

ps4:  Had to remove a few references to moved icons in SystemUI

ps5: Moved Icons back to SystemUI made a SystemUIResource getter method.
     Made navring use navbar icons.

ps6: update a few icons - thanks to Nitroz

Change-Id: Ia58f25f600fb92b70a4658e16a512e9a9ea8430f

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/util/aokp/AwesomeConstants.java
	core/java/com/android/internal/util/aokp/NavRingHelpers.java
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_back_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_land.png
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
PIE: fix stuck pixel on screen redraw

Reverts: PWM: disable HW overlays for PIE de1cb4e
Uses a dummmy view to force the screen to be redrawn on screen update

Change-Id: Ia12e596f81583a3b6be1bef64ae9d46b32d410d2
Two REMOVE_PROVIDER messages caused by race condition.

Fix a bug in unstable ContentProvider.
IllegalStateException: ref counts can't go to zero here: stable=0 unstable=0
IllegalStateException: unstable count < 0: -1

There is a race between main thread and background database thread. Main thread
is responsible for handling the REMOVE_PROVIDER message. Database thread starts
insert or query request again and again. acquireProvider in db thread will often
snatch provider from the jaws of death, sometime it fails to remove REMOVE_PROVIDER
which is already fired out from MessageQueue. But completeRemoveProvider in main
thread gets suspended when trying to execute the critical section. If db thread
released the provider before main thread resumes the execution, then two
REMOVE_PROVIDER messages will be executed.

Change-Id: I8588aa1d1a8bc444dcd2adf6f8bc3f055cebbdc4
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Fix spurious ANR occurence when MOTION batch event is not served by the InputTransporter

Sometimes Batch event of MOTION type is not processed by the Input Transporter
even though it is queued to the waitQueue-Responsible for ANR whenever any event
response does not come from the App. To fix this issue, one Boolean lock is added.
Thus InputTransporter wont ignore the Batch event.
Issue: https://code.google.com/p/android/issues/detail?id=41755

Change-Id: I3bb2eb4cf1f8ecdd1d04671c0e8205dee4ad3a6c
add option to daydream on wireless charger (1/2)

Change-Id: Id2773a0ff6e2631ae67d1a61ca8155a55404e383
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
FW : Bring Scrollable toggles back

ps 1:  Implements scrolling toggles.
	We might need to play with the spacing/padding
	but it apears to work
ps 2:  Apply some padding/dimens to the scrollable toggles
	bring background for tile into the traditional/
       scrollable toggles as well.

Change-Id: Ie9b9146f1d8d4e902f3f3b5660f511585ea7c895
Signed-off-by: Zaphod <mwilson@acesappraisal.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
add option to daydream on wireless charger (1/2)

Change-Id: Id2773a0ff6e2631ae67d1a61ca8155a55404e383
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
Merge branch 'jb2' of git://github.com/CarbonDev/android_frameworks_base into jb2
Remove recents_gb.
Derp.
Merge branch 'jb2' of git://github.com/CarbonDev/android_frameworks_base into jb2hybrid

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java