InCallUI: Incoming Call in Background (1/3)

Patch ported from 4.2 which was done by our lovely HCP. A
very popular one so we bring it back and adapt it to 4.4

Allows user to set that Incoming Call UI will remain in background
if screen is on. Instead, a notification is added to StatusBar, which
can be used to bring up the Incoming Call UI. Ringtone and vibration
still occur as per system settings.

This has the same effect as apps marked as "immersive". It prevents
the incoming call from backgrounding the current activity.

PatchSet:
- show normal inCallUI if keyguard is currently active

PS:
- cleanup

PS
- do not try to get the services if the feature is disabled

PS:
- do not disable notificationshade and navbar if it is a background call

PS:
- derp

InCallUI: add decline and answer  incoming call action on notifications

Add decline and answer call action on notification if an call is incoming. Especially
usefull for call in background feature to have the ability to directly
decline or answer a incoming call. But as well usefull to decline/answer a second call
during one is incomming.

PS:
- found a better way for the answer button

PS:
- fix keep flip action alive
- fix collapse notification shade when answering call
- answer call before starting the UI to do not have
  shown the incall screen for a brief second

PS:
- fix wrong user on sending close system dialogs

Change-Id: I92d8f5a2de74f9877a61c4da4c3eaf2e25230895

----------

PS2: Squash answer/decline buttons.

Conflicts:
	src/com/android/incallui/InCallPresenter.java

* Squashed of above two commits, thanks Lars.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I68e432a548c10d07cc9d668782cb544fbb4d421d
InCallUI: Store dialpad showing state (2/2)

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
[3/3] InCallUI: Flip to Mute/Reject Call

Actual Logic for this functionality.

PS2: Remove unwanted space

Base: https://gerrit.omnirom.org/#/c/4668/
Telephony: https://gerrit.omnirom.org/#/c/4670/

Change-Id: Ia10df0045e9919c6b7efc97857abaeba246c365d

Conflicts:
	src/com/android/incallui/InCallPresenter.java
InCallUI: Flip to Mute/Reject Call cleanup: fix ITelephony access

Using reflection to access ITelephony is a strange idea

Change-Id: Ia34b135460cc2b85fbd5db4585228a015c2a52b1
[3/7] InCallUI: Blacklist support

Base: https://gerrit.omnirom.org/#/c/5668/
telephony: https://gerrit.omnirom.org/#/c/6347/
Mms: https://gerrit.omnirom.org/#/c/5671/
Settings: https://gerrit.omnirom.org/#/c/5011/
TelephonyProvider: https://gerrit.omnirom.org/#/c/5012/
Telephony: https://gerrit.omnirom.org/#/c/5010/

Change-Id: I38e3f38ec4a773485c065d258e1ab5d40b9ddd53
Merge remote-tracking branch 'PA/kitkat' into remix-staging
InCallUI: Fix location of answer ring on incoming call

Previous commit, https://gerrit.paranoidandroid.co/#/c/3931/ changed the location
of the ring and lowered it too far. This commit reverts only the dimens.xml package
to put it back to default location.

Change-Id: I684edf26ca1af94d1884cf8df1c41a72ea41e22e
Merge remote-tracking branch 'PA/kitkat' into remix-staging