Add P.O.R.N. to ChameleonOS [1/2]

Pimped Out Ring Notifications is an implementation of
on screen notifications similar to that found on the
Motorola Moto X.  When enabled the screen will turn on
and display the incoming notification.  The user can
then open the app for the notification, dismiss the
notification or unlock their device normally.

Additional notifications, if any exist, will be displayed
below the ring notification and can be viewed by touching
the notification icon.  The user can simply slide their
finger across these other notification to quickly view
them.  The last one touched will remain in the ring and
the user can then perform any of the actions listed above.

PS2:
Fix typo

PS3:
* Show the notification's contentView when the user grabs
  the handle.
* Add layout for landscape.
* Delay turning screen on to give view a chance to become
  visible

PS4:
* Use bigContentView when available.
* Allow the outer ring outline to not be drawn.
* Make layout a bit more compact and cleaner.

Change-Id: I51c17cec33b65dc60111a10c5ca2c449596ebe63
Merge branch 'jbam10' into wip-jbam10
FIX P.O.R.N.

Change-Id: I056ee03af423142ac0a52da19af039e0a73e58f6
fwbs: Port lockscreen styles

* Includes: ICS Multiwave, GB Sliding tab, Eclair rotary dial & Optimus 4.

PS2: Cleaned it up

Change-Id: I7e6c7d189a6a843395a037c502e4d1139351abca
P.O.R.N PS5

* Add Pocket mode which allows the device to turn the screen
  on when the proximity sensor changes from near to far and
  the screen is currently off.  Use cases are when the user
  takes the device out of their pocket/purse or when the
  device is sitting out and the screen is off the user can
  simply wave their hand a few centimeters away from the
  device to have it turn on and display the notifications.

Change-Id: I1b11979773246b8a7eee3ffcb4991f902e05406e
Signed-off-by: iGio90 <giovanni.rocca.90@gmail.com>
SystemUI: do not collapse panels if keyevent was canceled.

Change-Id: I9af82e9fa2305142521075938dfd05521adeb9f4
Fix up 'launch player on headset connection' option.

- don't crash system_server if no music player can be found
- use the active user's setting instead of the owner's setting

Change-Id: I38a07fe5c8c3d67ececd0768e1fcc01a6cf7fa5a
P.O.R.N PS6

* Make sure a call is not in progress when using pocket mode
  to turn the screen.
* Include option for displaying ongoing and non-clearable
  notifications.

Change-Id: I22d65faf9bb226cc95b7eebd8e18ca872d18149f
Signed-off-by: iGio90 <giovanni.rocca.90@gmail.com>
Merge branch 'jb-mr2.0.0-release' of https://android.googlesource.com/platform/frameworks/base into cm-10.2

Change-Id: I502969f8a7a4b0ee71b113fbca1de1766e168c79
P.O.R.N PS7:

* Tweaks and optimizations
* True brightness control when auto-brightness is not enabled
* Better javadoc comments in preparation for merge.
Signed-off-by: iGio90 <giovanni.rocca.90@gmail.com>

Change-Id: I1b956e4daf902befc2fe2885b898e43ccc77c0f2
Attempting to bring hardware keys rebinding inline with cm

Also add home double tap action

Change-Id: I858d267c8dd180aae04a5f1a06377c41d77deab0
Signed-off-by: iGio90 <giovanni.rocca.90@gmail.com>
P.O.R.N PS8:

Use icon as the top layer for the target's active state.
Signed-off-by: iGio90 <giovanni.rocca.90@gmail.com>

Change-Id: I0ebbe53f06233660cf7d6c394a77e2c7382525c3
Missing P.O.R.N resources
Signed-off-by: iGio90 <giovanni.rocca.90@gmail.com>

Change-Id: I8a76e0db810ce450869502b05bf6980bf6b24621
Fix status bar brightness control when on secure lock screen

When the notifications panel is disabled no views are handling touch events
on the status bar, so we see nothing beyond each ACTION_DOWN. Intercept touch
events when needed specifically for brightness control.

Also recycle VelocityTracker when we're not using it, as per its documentation.

Change-Id: I84d4c788bcdb1e05244710aca933d97e3e60d1b5
Active Display: Refactor for release

Change-Id: I0f69e0828af1e26cef5e0b043b717d3445a134cd
Signed-off-by: iGio90 <giovanni.rocca.90@gmail.com>
PhoneWindowManager: Hardware key handling fixes and cleanup

-   Call cancelPreloadRecentApps for long presses and double taps of the home
    key at the right time based on the assigned actions.
    (Reverted Ibd16ff07b9910605c95180b54040f3e2b78939cb as the issue is fixed)
-   Do not allow any menu key events through to apps if
    mPressOnMenuBehavior is not KEY_ACTION_MENU.
-   Don't cancelPreloadRecentApps when menu key is released after a long press.
    (Reverted Idf1d27aa725547e0ddc44905e27da6c1b4540fab as the issue is fixed)
-   For the menu, app switch and assist keys don't cancelPreloadRecentApps on
    long press if the long press has no action assigned to it.

Change-Id: I3cc8f9528e5dbd3e0b78308b03440abd9d9351f6

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
PhoneWindowManager: Hardware key handling fixes and cleanup

-   Call cancelPreloadRecentApps for long presses and double taps of the home
    key at the right time based on the assigned actions.
    (Reverted Ibd16ff07b9910605c95180b54040f3e2b78939cb as the issue is fixed)
-   Do not allow any menu key events through to apps if
    mPressOnMenuBehavior is not KEY_ACTION_MENU.
-   Don't cancelPreloadRecentApps when menu key is released after a long press.
    (Reverted Idf1d27aa725547e0ddc44905e27da6c1b4540fab as the issue is fixed)
-   For the menu, app switch and assist keys don't cancelPreloadRecentApps on
    long press if the long press has no action assigned to it.

Change-Id: I3cc8f9528e5dbd3e0b78308b03440abd9d9351f6

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Merge branch 'wip-jbam10' of github.com:BAM-Team/android_frameworks_base into wip-jbam10
PhoneWindowManager: Delay setting updates during window animation.

Change-Id: I90ee5d8f83176a38a32b5ff38c4b191f1b78532e

Conflicts:

	core/java/android/view/WindowManagerPolicy.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
squash in 2 commits:

* Freeze screen while changing expanded desktop mode.

* Add Lock volume keys in silent mode [1/2]

Change-Id: Idc3fc0a1b2031b56eca3b44d80d68856ac8a193a
Signed-off-by: iGio90 <giovanni.rocca.90@gmail.com>