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
Signed-off-by: anerikg <anerikgames@gmail.com>

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

Change-Id: Iaf2af6f392ac0096521783cd4febca6c3003635d

Conflicts:
	src/com/android/incallui/InCallActivity.java
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
TeleService: Show answer UI and hide manage conference panel for MT CALL

The answer UI is shown, but it is covered by the manage conference
call fragment.

When show the answer UI, hide the manage conference call fragment.

CRs-Fixed: 657336

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

Change-Id: Ifea4e08e7ea7e2d6dd61632b8cc5d2d92aa09df3
InCallUI: Hide sim label when when calling sub is absent

When make emergency call without sim card, the sim
card index 0 will be used.

If the state of calling sub is absent, hide the sim label.

CRs-Fixed: 683248

Change-Id: Ib912ec0751c0d7942e08e04c34c32df0f2a21bb7
InCallUI: Do not dismiss the keyguard when there is active call

The InCallUI will dismiss the keyguard when there is active call.

Add a config to check whether we need to dismiss the Keyguard screen
when there is active call, we set false as default.

CRs-Fixed: 688484

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

Change-Id: Ifd0dbb322562464efacb9c5a8234d55055c9e8e4
IMS-VT: Fix abandoned GLConsumer

Fix abandoned GLConsumer by correcting sequence mismatch of
surface destroy called when the dialog is dismissed and
surfacetexture release

Change-Id: I9583f28c8a675c4c5859b94965341c22f400d013
CRs-Fixed: 630861
Ims: Handle START_READY_EVT and STOP_READY_EVT

1. These two events will be used by Telephony and the VT library to
synchronize camera recording: Start Recording and Stop Recording.
2. Telephony shall start camera recording only after receiving
START_READY_EVT.
3. After receiving STOP_READY_EVT telephony shall wait for
START_READY_EVENT before starting camera recording.

Change-Id: Iee919158ddc8ade5df7deb7225d897f4b629cb27
CRs-Fixed: 621548
Fix to mute/unmute properly while adding a call

Call setMuteInternal instead of setMute while adding
call to an existing active call.

Change-Id: I9c9efa22d8b5d6ddf00ba19e866cdb153474f5c8
CRs-Fixed: 650135
InCallUI: Update mute state accordingly after adding call

The mute state of sub1 that is stored in the mute table isn't restored to
the previous state when the second call(on sub2) is connected.

Restore the mute state for sub1 in CallButtonPresenter#refreshMuteState().

CRs-Fixed: 660470

Change-Id: I7e829d3eefe246801021571e0028085204f1f499