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
InCallUI: Get sim name according to system setting

Only use sim name that is accroding to English.

Get sim name according to system setting

CRs-Fixed: 652237

Change-Id: I75ecf011ff989da9a16f0753876164cc3c61ad8c
InCallUI: Dismiss reject sms dialogs when press back key on DSDA mode

On DSDA mode, when the user press back key, it does not dismiss reject sms
dialogs, mCannedResponsePopup and mCustomMessagePopup are not set to null.
Then hasPendingDialogs() will return false, so the user can not finish
InCallUI with back key when the incoming call is hung up.

Dismiss reject sms dialogs and set the dialog to null once the dialog is
cancelled by the user.

CRs-Fixed: 654387

Change-Id: Ic45a0906b38383a9a919df82b00e4f2010fac1cb
InCallUI: Call internalResolveIntent() in onCreat() method

Only call internalResolveIntent() method in onNewIntent() method,
if the user exit InCallUI with back key, and re-enter it via dialer,
the dialpad will not be displayed.

Call internalResolveIntent() in onCreat() method.

CRs-Fixed: 654611

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

Change-Id: I23ef123c556aeb191bd041b478becd149ac408ec
InCallUI: Get sim name according to system setting on DSDS mode

Only use sim name that is accroding to English on DSDS mode.

Get sim name according to system setting on DSDS mode.

CRs-Fixed: 652237

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

Change-Id: I63fe5f05d1f04cdbef58af46677ed4ba7246671e
InCallUI: Use NoActionBar theme for InCallActivity

InCallActivity and MsimInCallActivity has actionBar, however the actionBar
shows faster than the activity, so even though activity hide the actionBar,
it still display for a moment.

Use NoActionBar theme as the parent theme for InCallActivity in stead of
Theme.Holo, and set the theme with actionBar for MsimInCallActivity.

CRs-Fixed: 659881

Conflicts:
	res/values/styles.xml

Change-Id: Iabf539c691389c856f021e0b9e6cfd0e9e8c1650
MSIM(DSDA): Fix incoming call answering issue.

By the time incall answer activity starts, if device has any incoming
calls present on any subscription process all of them.

-Add few log messages which helps in debugging dsda issue.

Change-Id: I8177ad998ecead001ae82df2956abb8a857aadbd
CRs-Fixed: 652167
InCallUI: Fix the repeated appending for the input number from HID.

In DTMFKeyListener,the input numbers would be appended twice by its
parent and itself.
Solution: Don't append the input numbers in DTMFKeyListener.

Change-Id: Ie3f6049a5d4bd7aa541438ce519d86a89e520f63
CRs-Fixed: 656603