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

Change-Id: I1adfa6d3f172c4331d3d1c0a46ffa1b0660aa67e

Conflicts:
	src/com/android/incallui/InCallPresenter.java
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

Conflicts:
	AndroidManifest.xml
	src/com/android/incallui/InCallPresenter.java
TRDS: Dark InCallUI

PS2:
- moved into right folder

PS3:
- redirect colors of original layout xml

Change-Id: I5bcfeb692bc4653e240df7c47216826452ee7d47

Conflicts:
	res/layout/card_call_incoming.xml
trds: cleanup!

drawables not needed anymore after this
https://gerrit.slimroms.net/#/c/1675/

Change-Id: Ic237384fe60f23dd2b953da5d7be36c9a4c1191d
InCallUI: Open source google dialer and more (2/5)

This is an open source variant of the well known google Dialer which gives the
ability to show nearby places and revese lookup. It uses default the Google
engine to do this. As well you have the ability to use other providers.

Providers which are currently available:

lookup/nearby places:
Google
OpenStreetMap

Reverse lookup:
Google
OpenCnam (US-only)
WhitePages (US-only)
YellowPages (US-only)
ZabaSearch (US-only)

PS
- make sensible user information debug log optional

Change-Id: I88948ccc6556a4246a2c6c316ee065ec134304aa
Derp!

Change-Id: Ibeb5930df6960acca29217e8d5a3bbe79658c5d0
[3/3] Flip to Mute/Reject Call

Ported over from 4.2 implementation (thanks sasikumardr for that)

Original author of this patch was bugadani

We did just a cleanup

Provide easy mute and dismiss functionality for the phone application.

Available actions:

0: mute ringer
1: dismiss call
2: no action (default)

PS:
- fix NPE

Change-Id: Ia10df0045e9919c6b7efc97857abaeba246c365d

Conflicts:

	src/com/android/incallui/InCallPresenter.java
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
RU translation for v52 (InCallUI)
Revert "InCallUI: Open source google dialer and more (2/5)"

This reverts commit 4635386a0826e6fdd0fe5969b7f2714880d58196.
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
Merge pull request #3 from ValeraSh/cm-11.0

RU translation for v52 (InCallUI)
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_InCallUI into cm-11.0