Make incoming call screen style configurable. (2/3)

[(3/3) is located in services/telephony ccmc squash commit]

Change-Id: I46db78c9b48fae52530b96789ec2721d51b7185a
InCallUI: cmcc bringup

Improve strings.

Also removed weird toast position code.

Change-Id: I917a35f228e1ca765802f73a2d654a3bf9311578
InCallUI CMCC: disable volume boost by default

The volume boost button in the InCall UI attempts to boost the volume
by setting parameters on the AudioManager.  This only works if there
is hardware support for the volume_boost=on parameter.  If enabling
volume boost with setParameters doesn't work, then getParameters will
not surface the parameter, which creates a confusing user experience
because we will report "volume boost disabled" whenever the user presses
the button (when the expected behavior is to toggle it).

This should really only be enabled if it is supported, so this disables
it by default.

Change-Id: I0b0458f63a9d1524c887c5a8d45cff937aceacf1
MSIM(DSDA): Use new methods in accordance with new design

1. Delete setActiveSubRetainLch and
2. Use setActiveAndConversationSub when both active sub & Conversation
Subscription to be set, for example when user switching sub explicitly.
3. Call setActiveSubscription only for MSIM.

Signed-off-by: anerikg <anerikgames@gmail.com>

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

Change-Id: I1ef194cfbf717bbaea1b66d5c95c3b845dfaa21d
CRs-Fixed: 659123

Conflicts:
	src/com/android/incallui/CallCommandClient.java
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
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
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
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
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
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
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: 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
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: 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
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: 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: 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: 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
Fix no sound hear when one call disconnected.

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

Change-Id: Ie65483a8b2880ae0529a943c6ccb16d0ed9b3b04
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
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
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: 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
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: 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
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
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.

Signed-off-by: anerikg <anerikgames@gmail.com>

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

CRs-Fixed: 548848
Change-Id: I31e0fd445e243fcabbca39eb8498ba99c55a96a1

Conflicts:
	src/com/android/incallui/CallCommandClient.java
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
InCallUI : Update volume boost UI icon

Update volume boost UI new icon.

Change-Id: I3474504c64d0547aa7f6ed411b293e0d28a7a7e4
Enable home location feature

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

Change-Id: I8c08613a2f730d3d2ca3c8078bf87f1226218785
Fix NullPointerException in ProximitySensor initialization

Update the sensor status after all vars initialized

Change-Id: I576a15f0db5c3cba82dcca28a72c44a4b75b361f
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
InCallUI : Support UX enhanced status bar

Add SIM info on outgoing call in status bar.

Change-Id: I9748bbb5274fc8c5bb7cfc1b76a3dbcc8d3541d9
Telephony: Show emergency call number

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

Change-Id: Iec2ec2c31be93b8dd113ba0ef51b6577eaf9d576
Phone: Add a controller for proximity sensor

Add the setting for enable proximity sensor or not when calling

Change-Id: Icecacbda92c265814fe675a9d4d701cf17312b05
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
Automatic translation import

Change-Id: Ibf1ce406a28e68817ea5b82f1226721716b974fb
Fix NPE in dock mode.

Add the call recording button also to the landscape layout. Also
properly add (and hide) button spacers.

Change-Id: Idc4c7669a78a7445a421bc28bd527f6d423f5c6a
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	res/layout-land/call_button_fragment.xml
	src/com/android/incallui/CallButtonFragment.java
Fix display of 'Dialing (waiting...)' state.

Change-Id: I8a659823dd61d452641c4ddb0f3141304b86d613
Add an option in the InCall UI to perform call recording

Change-Id: Icc86a0a7ae9d2493a837d02f321df7cb1387cded
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	res/values/cm_strings.xml
Automatic translation import

Change-Id: Ieea95993997042182d5aec471a0e730107f1637b
Automatic translation import

Change-Id: I5ccecbf50a807c1bc6e98fddc4e26bc348649eaa
Fix call buttons being incorrectly hidden.

They were hidden incorrectly when having full-screen caller photo
enabled and an outgoing call is terminated without being answered.

Change-Id: I817a1f8d37c83aabb5470ee1ed6329b79302d338
Automatic translation import

Change-Id: Idacecf17c39964c5f25ed1f60ba5e57af18ed313
Avoid layout changes on call disconnection.

This avoids showing the call buttons when an incoming call is
disconnected remotely while still ringing, which in turn avoids an ugly
transition when using the full screen caller photo.

Change-Id: If69bce271303ea43dca64925aba895dd3b5b5611
-------------------------------------------------------

Change-Id: I1677a0bd1bcd86fb6023dd7d7aeeca53129e375a
Merge "InCallUI: cmcc bringup" into kitkat
Merge pull request #1 from AOSPA-legacy/kitkat

pulling changes from aospa-legacy