Prevent audio players starting on startup.

Previously, (at least) Apollo was started on startup (in that it
appeared in the notification bar) because it listens to the AUDIO_BECOMING_NOISY
intent to silence itself in that case. This intent is broadcast by
AudioService when there's a user switch to silence any potential audio
players for the old user. As the system also sends around a
USER_SWITCHED intent on startup, this led to the aforementioned player
startup.
As the intent of AudioService was to act on a user backgrounding anyway,
send out AUDIO_BECOMING_NOISY as reaction to a USER_BACKGROUND intent
instead of the USER_SWITCHED intent.

Change-Id: Iba35844a1274c9dd195f104068304e6a7ffa809e
Fix ringer mode being unneededly changed by setting ringer mode volume
to 0.

When having set the ringer mode to silent on a device with vibrator and
calling setStreamVolume() for the ringer stream again (e.g. in one of
the volume control dialogs in the settings app), the ringer mode is set
to vibrate, although there's no reason to do so.

Fix that by remembering the last non-normal (that is, either silent or
vibrate) ringer mode and using that when setting the stream volume to 0.

Change-Id: I27f1c75a0fef52bd63ac20f4101042808ce2c458
JIRA: CYAN-1403
framework: packageinstaller :fix logical error in size calculation

fix logical error in available size calculation.

Change-Id: Ic6ce312cf1c146030a20187fcb27b24fbe4c321a
FW: adjust KitKat easter egg to display hardcoded "K"

*Rather than pull the first letter of the build_id for
 the easter egg, just hardcoded it to always display a
 'K' like it should.

Signed-off-by: Whitehawkx <xxwhitehawk@gmail.com>
Speed up notification pullup & pulldown

based on an idea by Mr.Nigma @xda:
http://forum.xda-developers.com/showthread.php?t=2267307

Change-Id: I61213058b5cedddf90e974713af05c038e3af039
WMS: fix no thumbnail image of Gallery in the recent tasks list.

When it takes the screenshot of an application, it will calculate
the minLayer and maxLayer first, and if a window is full screen,
it won't deal with the windows below it. However, the surfaceview
is placed below a window but will be displayed at front, this make
the surface view can not be included when take the screenshot of
an application, then it diaplays a black area in the recent tasks
list.

If the currect window is full screen, no need to finish the
calculation.

CR-Fixed:566752

Change-Id: Iaf3e9a3e6520007571ea545ccc9c05d4b1b416fd
Navigation ring customization.

Change-Id: Iebe4ec7c2519b85cfd5189d060444764a50f3cf6
Framework : Lockscreen - Customizable shortcuts

Forward port lockscreen shortcuts

Change-Id: Ic3b935df5c0da35f31373d96943e442dc39cf11b
"Clear all" button on recent apps

Port forward from cm-10.2

Change-Id: I9ebcf22f85957f61caefb14e0efd4cf2978d92cd
BootMessage: show more info in boot dialog

Tell the users what package we are running dexOpt on currently

Change-Id: I665ab3847ec1846e40915a1fae21c43e2e7ccf6d
Use cm dir for devutils & deviceutils
Changes for immersive mode

Thanks to CM
Fix recentpanel position in landscape mode
Fix missing top task in recent panel.
https://github.com/CyanogenMod/android_frameworks_base/commit/0616667d980db1aa32d6dd1956d6fc2e232cf5a3
SystemUI: fix recents animation in expanded mode.

Change-Id: I63b83763933468c4f1953341aad4317d142e8bb4
Revert "Don't start keyguard in an attempt to exit it."

This reverts commit 36ae7b971af2a00ebce4d3e706be85296e4a7bd2.
Revert "Keyguard: Bring back fast unlock"

This reverts commit df24b7ec77826550b78d5cdd8b5011f29bf7feb9.