InCallUI: Update ExtraButtonRow during BACK key press

ExtraButtonRow, that hosts ManageConference button, is not updated
properly when BACK key is pressed after Dialpad is launched during
a conference call as CallButtonFragment API is used. Instead,
CallButtonPresenter API is used to update the UI.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

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

Change-Id: Id4bb1fa1e679824f7501f594ac3fa4280f10998d
CRs-Fixed: 628493
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
InCallUI not dismissing after end call is clicked.

In MT InCallScreen, the customMessage dialog
which appears when user tries to reject a call
with message, is not set to null when user
cancels the dialog.
InCallUIActvity is not finished if there is any
pending dialog which is not null and hence this
issue is seen.

Set the dialog variable to null once the dialog
is cancelled by the user.

CRs-Fixed: 583477
Change-Id: I1726485726338ebd09d7b28aeaed5800087fc419
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
IMS: Deflect call feature

Code changes to support Deflect call feature from UI

Change-Id: I657fb30a558721f0fa14558291b406ac443977b4
CRs-Fixed: 713856
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Fix to resolve misplacing of answer button

In dsda scenario when the tabs are switched request for layout in
case if a new view is created.

CRs-Fixed: 722428

Change-Id: I6bf5a3097db81e7f1a38bfdafe60d8e52e7d1eaf
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
IMS-VT: VideoCall related fixes

-During VT call far end Surface is not passed
-Fix the checks before passing surface texture
-Fix answer as VT

Change-Id: I525bbf3ddfa0217e53fe878dd929e20b3709e5b7
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
IMS: Add participant support

Introduce add participant button in
call UI and send add participant to
Dialer.

Change-Id: I1173c6cc82bb3d008a70a3338c45901a2619f0e5
CRs-Fixed: 720697
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
MSIM: Handle phone account label display properly

On multisim devices irrespective of number of phone
accounts available display subscription info on UI.

CRs-Fixed: 725112
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
src/com/android/incallui/CallCardPresenter.java
Change-Id: I4744c25ccf1b7e11f3517d08bc08d7f7a7174832

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Voice Privacy Icon Support for CDMA

Voice privacy icons are added to InCallUI app.
When VP is enabled corresponding icon is displayed
on the UI.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

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

CRs-Fixed: 599389
Change-Id: Iadf3710f74987eac785f7816abc684d397a691b8
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
IMS-VT: Fixes InCallUI/Dialer crash when there is a VT call.

-Fixes InCallUI/Dialer crash when UE is rotated.
-Fixes InCallUI/Dialer crash when UE VoLTE call
 is upgraded to VT.

Change-Id: I0047d32881c47bf990a4624d72b67cd2f301a92f
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Add support for DSDA.

Add support to show calls from both subscriptions
in a tabbed view format to user. when ever user
swithces sub, inform telecomm service that subscription
is switched.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

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

Change-Id: I3bea71501ce159e189f75db58e710ffc94e8137c
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Deflect call test using answer call button

1. Provide hooks to deflect call through answer
   button in the UI for testing deflect call scenarios.
2. Use system property "persist.radio.deflect.number" to
   set the number to which call should be delfected.

Change-Id: I1b3d039a587f6769939743a2fb307cdc6c650837
CRs-Fixed: 713856
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
MSIM: Don't show redundant prompt to user when making MO call

Fix below issues.
1. When making call with prompt enabled, phone account selection
dialog displayed to user. after user selection the dialong shouldn't
again be displayed to user.
2. Add check whether call is made through emergency account, in which
case subId shouldn't be converted to long.

Change-Id: I934f8f792c6db7f9400116e050543995d8575d4c
CRs-Fixed: 723053 723599
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
MSIM(DSDA): Don't compare subscription for CONNECTING calls

Active subscription is only set when marked as dialling by telecomm
service for outgoing calls. Till then if InCallUi queries for any calls
it will get as no calls. Hence, don't compare calls with active subsription,
if active subscription is not set yet.

Change-Id: I17bd28920d15c14e88eb35e7b13badbb33d649c6
CRs-Fixed: 722203
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Fix to resolve manage conference crash

Request for action bar with overlay in single sim mode

Change-Id: I6f2c65f5b791844d715df2fa72ed216e5b1d22d9
CRs-Fixed: 728663
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Compilation fix

Compilation fix

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
src/com/android/incallui/InCallPresenter.java
Change-Id: I1a8264a74b1925ed34891ebf4e6e77c37f58a7d4

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
IMS-VT: Enable logging

-Add logs for Videocalls

Change-Id: If859776cb4c1373f0d0f8cecdb8b04648f8a1ce5
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
IMS-VT: Fixed surface caching.

Fixed surface caching

Change-Id: Ie4f24f2f498057814ef74757eaf8200883808ca8
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
IMS-VT: Upgrade downgrade and hold resume video calls.

-Add support for upgrade downgrade video calls
-Add support for hold resume and call waiting

Change-Id: If262803e5921d3110b8fb6d88dde3188a1baf3d6
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Fix to display call correctly on UI

When there is a conference call on other sub get the primary
call to display based on subId of the children in conference call.

Change-Id: I8e6a94d43c762fca8886c8d127d287a8968fdf34
CRs-Fixed: 731614,731617
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
IMS-VT: Hold button fix

-For VT calls hold button is not seen. Fix this.

Change-Id: I9be44a5ae133b54c8348627c29b8a0e10f771c90
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>