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 "HeadsUp: Only remove heads up if attached to window" into kk4.4-caf
Merge "SystemUI: improve one finger notification expansion" into kk4.4-caf
Merge "Revert "audio: Inform audio HAL if it is a voice call initiated by Telephony"" into kk4.4-caf
Merge "Revert "audio: Fixed dead lock in AudioService during volume change"" into kk4.4-caf
Merge "PackageManager: Fix logic around upgrading text display" into kk4.4-caf
Merge "MountService: Check for null pointer when looking for vold code" into kk4.4-caf
Merge "inputdevices: update from aosp (master)" into kk4.4-caf
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
Merge "HeadsUp: Correctly add and remove the window" into kk4.4-caf
fb: translation - RU

If5fb11c354ea0144cdae1434de4c536302dda5b3

Change-Id: I1a69f0941f2435fb6b2dc2a8551a74b90f3a60bd
fb: translation - RU

Translate rest of heads up
PS2: added missing on/off dots

Thanks @zujasehet

Change-Id: I2fbd682cb1d99ef4c8501bad1fbb038bb5aa82f3