HeadsUp: Only remove heads up if attached to window

Attempting to remove mHeadsUpNoficiationView from the window manager
when it is not currently attached will throw an IllegalArgumentException
so we check if it is attached and if so remove it, otherwise carry on.

As well remove possible left children in statusbarview

Change-Id: Ida916eba496c4183e47288ef24a8a93c46a7eddf
SystemUI: improve one finger notification expansion

Sometimes the quick settings ribbon would eat the initial ACTION_DOWN
setting mInitialTouchY in the expand helper, but we are clearly not in a
notification that we can expand here. So only set the initial y point if
we are inside the notification scrollview.

Change-Id: I628553ac15cc6b4ee3c682fe46bd1d96c6bc154d
Revert "audio: Inform audio HAL if it is a voice call initiated by Telephony"

This reverts commit 69c312fd14d06cdae6213cdbdddbc851918b41fd.

Change-Id: I1130da5141d6116ad05d9466283fd3275fcbfd58
Revert "audio: Fixed dead lock in AudioService during volume change"

This reverts commit 2d99ad7f7f4bc2f9124a4fe505c2f8ea699ae74e.

Change-Id: I7c6f288b5761618ac13cd0d275e5d45c9f177c50
PackageManager: Fix logic around upgrading text display

* This code has all threads writing into the integer keeping track of
  the number of packages at once.
* Make this integer an atomic one, preventing all threads from racing
  when updating it.

Change-Id: I727306f8ab20edb7ec2a955ca20e6de0146c7737
MountService: Check for null pointer when looking for vold code

* There is actually no code path that will set an event into
  NativeDaemonConnectorException, so any reference to the event code
  will result in a null pointer exception, taking down MountService and
  the rest of the system with it.

Change-Id: Id62f724953aacc363b3455584c6a3ad1381c6138
inputdevices: update from aosp (master)

Change-Id: If5fb11c354ea0144cdae1434de4c536302dda5b3
Merge commit 'refs/changes/03/10703/1' of https://gerrit.slimroms.net/SlimRoms/frameworks_base into HEAD
Revert "BootMessage: show more info in boot dialog"

This reverts commit f5c35eaa9d9b1c7ce117b00a6b4e61b9405a5048.
PackageManager: Fix logic around upgrading text display

* This code has all threads writing into the integer keeping track of
  the number of packages at once.
* Make this integer an atomic one, preventing all threads from racing
  when updating it.

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

Tell the users what package we are running dexOpt on currently

Carbon change id: I665ab3847ec1846e40915a1fae21c43e2e7ccf6d

Fix derp

Conflicts:
	services/java/com/android/server/pm/PackageManagerService.java

Change-Id: Idb7e3beef14c4df7e68e03ce5fe78b10bf864337

Conflicts:
	services/java/com/android/server/pm/PackageManagerService.java
Merge branch 'head' into kitkat

Conflicts:
	services/java/com/android/server/pm/PackageManagerService.java

Change-Id: I1c072a1c2c260ded3f1efa5bf3de28fbca14163f
quiethours: do not play screenshot sound

If we are in quiet hours do not play any sound when we take a screenshot.

Change-Id: Ideaa5c11611b7e3c9d6ca4d27e801cd2fb4eadac
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>