Revert "PhoneWindowManager: Delay setting updates during window animation."

This reverts commit 450fd826b06621ecb14cc6cc10e4467905485ab1.
Revert "Freeze screen while changing expanded desktop mode."

This reverts commit 51d7c8f12cb77f5407d4f283357b6d8e26d254aa.
Widen fast toggle pull down
Active display: Add sunlight mode. [1/2]

Change-Id: I541e74c5a1a7e6ce5028ab00cf998bba1d4fe0f9
Delay hiding systemui by 100ms
When disabling the keyguard, the systemui visibility is
changed and can occur after we hide it so delaying this
a bit resolves that issue.

Change-Id: Iad432f75195983837d643fa38495e6beb54f3e22
Improve Recents menu (1/2)

-Choose position of recents clear all button (BR, BL, TR, TL)
-Show Carbon background when no recents apps are present

Huge credit to andros11 and RootBox as this is larely based off
their work and credit to Omar Asad for the background image!
Use different method for long press back to kill

This method actually kill apps that just dont want to die
Proper layout for the bottom left clear button
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.

Patch Set 2: -  Fixed not cancelling preload on long press of home when double
                tap is bound to recent apps.
             -  Reduced delta against AOSP.
Patch Set 3: -  Do not perform long press action when key continues to be held
                down after a double tap on home.

Change-Id: I3cc8f9528e5dbd3e0b78308b03440abd9d9351f6
Merge branch 'jb3' of https://github.com/CarbonDev/android_frameworks_base into jb3
Revert "Use different method for long press back to kill"

This reverts commit cf3cacfd802b7b934f6e6861cd144e46f3282404.
Audio: Fix abnormal keytone playback during silent mode changing

Change-Id: Icfc4003c9756b3c33578c137e59dc4a2b4f25647
Author: Chenyang Du <chenyang.du@intel.com>
Signed-off-by: Ertao Zhao <ertaox.zhao@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 19084 4898
PackageManager: Let system-defined permissions take precedence over settings

If a permission was already present in the device's settings due to having
no prior system definition, and the system tried to take it over
(after a version upgrade, for example), it'd fail, since the saved
value would clobber the one previously read from the permissions XML.

This breaks system-behavior changes (gid grants, in particular) unless
the user performs a factory reset after upgrading, which isn't acceptable.

Change-Id: If2e44110f6db735ad29cdf1086e814bd1299e290
Fix certain setting writes being incorrectly skipped.

If a value that previously had a very long value (over the 500 char
threshold) is now set to null, isRedundantSetValue would incorrectly
return true even though the value was changed.

Change-Id: Ia5304743024ec01024be98aa51ed260d38caf93c
Active display: turn off display if device gets pocketed again

Change-Id: Icb4c002add915b75de7607f71c0d400e323feb5b

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Revert "Active display: turn off display if device gets pocketed again"

This reverts commit f540a873ccd5295935638744953b091ba3079b20.
Clean up recents
FW: Toggles vibrate on click (1/2)

PS2: Make also BaseToggle type toggles to vibrate on single click.
PS3: Forget about observer

JB-MR2 Bring-up

PS2: respect global vibrate setting

Change-Id: I11d060d64365256c2f72695eb557c2a10c9c32ce

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/BaseToggle.java
Merge remote-tracking branch 'upstream/jb3' into jb3

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java