InCallUI: Add initial smart cover support

Change-Id: I7bd476a725efff9a3b9cfce91771750e231ea50f
Signed-off-by: Roman Birg <roman@cyngn.com>
Merge "InCallUI: Add initial smart cover support" into cm-11.0
Revert "Merge "Make incoming call screen style configurable. (2/3)" into cm-11.0"

This reverts commit 3b6c5a9b06779396fd70ca3d9cbd843ffe5cc26f, reversing
changes made to 93e21ddf88b0b7a017fedf8063b1baae57664d5b.

Conflicts:
	src/com/android/incallui/AnswerFragment.java
	src/com/android/incallui/InCallActivity.java
Revert "Fix derp."

This reverts commit 511565bfc867070b90162818859d4cf3adacec74.
Revert "Don't expand the contact picture behind the call buttons during call."

This reverts commit 43e6be2588058cb09338517f302350b046251066.
Revert "Merge "incallui: make navigation bar translucent + other fixes" into cm-11.0"

This reverts commit acce9b9390d7db3f15d58060cc3211b496bb95b2, reversing
changes made to db221939fde437d56870dd89281d1fad83e8ecdb.

Conflicts:
	res/layout/primary_call_info.xml
InCall Text Shadow styles & themes support
Russian dialer buttons
[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

InCallUI: Flip to Mute/Reject Call cleanup: fix ITelephony access

Using reflection to access ITelephony is a strange idea

Change-Id: Ia34b135460cc2b85fbd5db4585228a015c2a52b1
[3/3] InCallUI: Incoming Call in Background

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

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

InCallUI: Set Ticker to contact

Display contact/number/confrence
	in notification ticker.

PS2:
Implement Kufikugel's suggestion.
	Incoming call ticker only.

Change-Id: Ie89cceb67aecbf3dd15abd07dc35110f7fddc2f9
[1/2] InCallUI: Disable Statusbar and Navbar during call by Proximity Sensor
UI 4.4. guidelines
[2/3] InCallUI: Add Google Reverse Lookup