Cleanup and fix CAF SSN handling code.

Use boolean flags in the call object instead of parsing supplementary
service notification objects.

Change-Id: I62828eac871453bf485e23c6455ccd85574da718
Automatic translation import

Change-Id: I1f76701b849656cb520f5db43bbb0144c4df1513
Merge "Cleanup and fix CAF SSN handling code." into cm-11.0
Phone: Add a controller for proximity sensor

Add the setting for enable proximity sensor or not when calling

Change-Id: Icecacbda92c265814fe675a9d4d701cf17312b05
Telephony: Show emergency call number

Show emergency call number when calling.
CRs-Fixed: 515433

Change-Id: Iec2ec2c31be93b8dd113ba0ef51b6577eaf9d576
InCallUI : Support UX enhanced status bar

Add SIM info on outgoing call in status bar.

Change-Id: I9748bbb5274fc8c5bb7cfc1b76a3dbcc8d3541d9
InCallUI: add volume boost UI in call UI.

Add volume boost UI in calling screen to enable volume boost and volume
enhancement function during calling.

Conflicts:
	res/layout/primary_call_info.xml
	res/values-zh-rCN/strings.xml
	res/values/strings.xml
	src/com/android/incallui/CallCardFragment.java

Change-Id: Ic42d8a24602939038c60e6a1a2812a4125200c99
Fix NullPointerException in ProximitySensor initialization

Update the sensor status after all vars initialized

Change-Id: I576a15f0db5c3cba82dcca28a72c44a4b75b361f
Enable home location feature

Check whether home location provider exist and if yes, query the location.

Change-Id: I8c08613a2f730d3d2ca3c8078bf87f1226218785
InCallUI : Update volume boost UI icon

Update volume boost UI new icon.

Change-Id: I3474504c64d0547aa7f6ed411b293e0d28a7a7e4
InCallUI : volume boost unexpected turn off

Fix the volume boost unexpected turn off when hold phone or Call status
changed.

CRs-Fixed: 601169

Change-Id: I32370189e1e4cdcb975df756f48d683752dc619c
MSIM(DSDA): Retain LCH mode of other active sub for MT far-end disconnect.

When a call is ended by remote party on one sub, if an active call is
present in other sub, set the other sub as active while retaining
it's LCH state.
If the call was disconnected locally, disable LCH for the other active
sub.

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

CRs-Fixed: 548848
Change-Id: I31e0fd445e243fcabbca39eb8498ba99c55a96a1
InCallUI: Disable volume boost during IMS call

Extracted from 7ecc9d97de6c3c9bb74d6ad5ccdcda257d801a25 caf/LNX.LA.3.7.2.1
to separate it out from call recording changes we don't want to pickup

Change-Id: Idc3c989d6808d690232d4405a9e4fb201cb839bf
InCallUI: Update AddParticipant and Modifycall buttons when reject call

When reject a call, the AddParticipant and Modifycall buttons are not
updated because the isEnabled is false, so they are still visible.

Set AddParticipant and Modifycall invisible when isEnable is false.

CRs-Fixed: 621909

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

Change-Id: I35513bd5b98376721596354a24d6b01fa07dab9d
VolumeBoost : Add support for TTY HCO mode.

Enable volume boost icon in TTY HCO(TTY + Earpiece) in UI layer.

CRs-fixed: 530337

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

Change-Id: Ic60a561e0ed9dad4ccb87cea964b24cfc4783883
InCallUI: Use the correct key to get the multi sim cards' name

Sim1 card gets its value from "perferred_name_sub0", it should gets its value
from "perferred_name_sub1".

Use the correct key to get the multi sim cards' name.

CRs-Fixed: 625174

Change-Id: I610bfc442523ef2752fe128993a1df72a38168b2
Fix can not active the call in the other sub when one sub is calling

The active sub is changed to a incorrect sub on phone state changed
event which is earlier than incoming call event, so set the incoming
call sub as active sub again when incoming call event got.
CRs-Fixed: 625303

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

Change-Id: Ibcbfc59f7d7f059d8fc04e0fd4f0c385152f9307
InCallUI: Set system bar enabled when InCallScreen goto background

During an incomming call and InCallScreen goto background,
the system bar is still disabled.

Set system bar enabled when InCallScreen goto background.

CRs-Fixed: 637132

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

Change-Id: Iaf2af6f392ac0096521783cd4febca6c3003635d
InCallUI: Do not show subscription info during an Internet call

Show subscription info during an Internet call.

Do not show the subscription info when isSipCall is true.

CRs-Fixed: 643468

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

Change-Id: I7cdee61a2f04b20d7040201bd264b5679678de25
Fix no sound hear when one call disconnected.

Reset current activated subscription when call state changed.
CRs-Fixed: 638094

Change-Id: Ie65483a8b2880ae0529a943c6ccb16d0ed9b3b04