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

Conflicts:
	media/java/android/media/AudioService.java
Revert "audio: Fixed dead lock in AudioService during volume change"

This reverts commit 2d99ad7f7f4bc2f9124a4fe505c2f8ea699ae74e.

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

Change-Id: If5fb11c354ea0144cdae1434de4c536302dda5b3
HeadsUp: Correctly add and remove the window

isAttachedToWindow() basically works to determine if the view was attached or not.

But on the boot up process when already addHeadsUpView is called but the system is not
fully up and a recreation happens (eg on TRDS...due that the UIModeManager is doing its work as soon as system is ready)
the view gets attached....but not removed on the recreation due that at this time isAttachedToWindow() will return false even though the
window was added.

To solve simply use a boolean instead of isAttachedToWindow()

Change-Id: Ib576a83cadc581683f2a5b0afc922c53b01888b7
improve a calculation method for LTE antenna reception level

This proposal will fix a problem that Android devices could
show different levels of antenna bars under the same radio
environment if each device uses different modem.
This behavior makes confusion toward users and others.

That behavior comes from using RSSNR as a metric for
determining antenna bars. Unfortunately, RSSNR does NOT define
performance requirements and error tolerance level in 3GPP.
Therefore, accuracy of RSSNR measurement could be inconsistent
among Android devices or modems.

The patch we would like to contribute here will be offering
Android device to use RSRQ for antenna bar metric instead of RSSNR.

1.)RSRQ, like RSSNR, takes interference into account
   when measuring the radio quality.
   Android already supports measurement of RSRQ.

2.)The performance requirement for RSRQ is already defined in 3GPP.

3.)DOCOMO and other many mobile operators use RSRP and RSRQ
   when designing LTE coverage areas, and alignment here will
   be very beneficial for both users and operators.

Hope this patch helps to improve Android antenna bar accuracy and consistency today.

Change-Id: Id1c3339764294ef51365ab133a1c7b42e14e1800
Signed-off-by: Kensuke Ueda <uedake@nttdocomo.co.jp>

Conflicts:
	core/res/res/values/config.xml
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
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>
Increase available volume levels

Increase media volume levels from 15 to 30 to have more precise
volume control instead of having only 15 levels from 0-100%

For example, when listening to music it is often the case that one
volume level is too quiet and the next one higher is too loud (especially with Headsets).

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I7a8750c901967ce3c818fb9c33b082af6b86b8d6

Conflicts:
	media/java/android/media/AudioManager.java
Speed up notification pulldown and a few other things
add the missing "L" drawables
from @LorDClockaN
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_back.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_back_ime.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_back_land.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_home.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_home_land.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_menu.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_menu_big.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_recent.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_recent_land.png
	modified:   packages/SystemUI/res/drawable-hdpi/ic_sysbar_search.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_back.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_back_ime.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_back_land.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_home.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_home_land.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_menu.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_menu_big.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_recent.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_recent_land.png
	modified:   packages/SystemUI/res/drawable-mdpi/ic_sysbar_search.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_ime.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_land.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_home.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_home_land.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu_big.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_recent.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_recent_land.png
	modified:   packages/SystemUI/res/drawable-xhdpi/ic_sysbar_search.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_back.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_back_ime.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_back_land.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_home.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_home_land.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_menu.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_menu_big.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_recent.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_recent_land.png
	modified:   packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_search.png
Merge pull request #3 from LiquidSmooth/kitkat3

merge latest liquid changes