Phone: Show manage conference call list properly

If one active conference call and one hold call is available,
manage conference call list is showing empty list with
only call end button. With this call end button user can end the
call but don't know the exact call information like name or number.

Modify to show the number and end button in manage conference call
if conference call and hold call is avaialbale.

Change-Id: I4832b3231e48b5dd01d488874b1c56b3cac8250a
Phone: Fix Nullpointer exception in GsmUmtsOptions

EnableScreen is trying to  remove the preference,
But which is already removed in GsmUmtsOptions create().
Thus the findPreference is returning null.

To fix this instead of removing  preference set
mButtonOperatorSelectionExpand setEnabled to false.
CRs-Fixed: 386170

Change-Id: I02f11099970af878f2ed4d21ff636ca27cc23e99

Conflicts:
	src/com/android/phone/GsmUmtsOptions.java
Phone: Remove stale DELAYED_CLEANUP_AFTER_DISCONNECT

During phone switch due to RAT change, any pending
DELAYED_CLEANUP_AFTER_DISCONNECT message in InCallScreen
should be dropped. If they are not dropped they will be
accessing destroyed phone objects even after phone switch.
CRs-Fixed: 370584

Change-Id: I677197b361a92e6e29d7a2072ee3a5f91e4f1a9a

Conflicts:
	src/com/android/phone/InCallScreen.java
Revert "Allow only NT_MODE_GSM_ONLY or NT_MODE_WCDMA_PREF"

This reverts commit 5c7d3167b8372b040d6c0a695f7c0822d80b2c21.

The issue is that this fix is resetting the network mode in the setting
database to NT_MODE_WCDMA_PREF (0) for all non GSM_ONLY modes. So if user
sets the mode to say Global, the network mode is getting set to WCDMA as
soon as the GsmUmtsOptions Activity is getting created. This causes anyone
who uses the Settings.Global.PREFERRED_NETWORK_MODE directly to see value
of NT_MODE_WCDMA_PREF instead of the actual network mode that is set by
the user.
CRs-Fixed: 349523

Change-Id: I6fae6d60bf6525bc65e7a770548c7dd6ecb9b7ca
Phone: Display IncallScreen when dialed using AT command

IncallScreen is not seen when call is initiated through
AT command.

Display IncallScreen when dialed using AT command.

Change-Id: Ifc7435a139098b7e0dede03261f8a354a0c2f734
Add property for RIL to know if phone is in Airplane mode

Set the airplane mode property for RIL to read on boot up to know
if the phone is in airplane mode so that RIL can power down the
ICC card.
CRs-fixed: 325540

Change-Id: Ifd0e1a29d47a431655521d0006fa552d0674f7b7
Phone: Fix to answer MT call when USSD session is on progress.

On receiving MMI Complete event for USSD cancel operation, InCallScreen
session was being ended. Changes done to move InCallScreen to
foreground after cancelling an USSD session if the call state is
not IDLE.

Change-Id: I10decbeddfc72710e27c2accdf1122170b0b1938
CDMA NV mode OTA dialogs

* In Cdma NV mode default to legacy OTA Do not use
"voiceless_cdma_provisioning" for all LTE capable CDMA phones
in NV mode. Default to legacy OTA for CDMA NV mode. For LTE
devices provisioning will happen through card anyway.

* Cleanup undismissed ota dialogs on dialing new call Ota
failure dialog is dismissed during onCreate of
OutgoingCallBroadcaster and not in OutgoingCallReceiver. Because
emergency calls do no go through OutgoingCallreceiver. This
prevents the ota dialog from hiding the emergency call Inscreen.
CRs-Fixed: 328887, 338024

Change-Id: I842107b377384736a5f0935dea79a18f61d74a9a
Phone: Don't call resetInCallScreenMode

Prevent InCallScreen's call buttons from being removed
after a radio technology change.

When an emergency call is initiated in out of service, it is
possible to get a radio technology change if phone is unable
to camp on the one that is currently configured. This causes
an incorrect cleanup, which removes the in-call buttons from
the UI.
CRs-Fixed: 459654

Change-Id: I0624c048dc37c1c7fb9316c6e26e52ca7223a2bf
Phone: Do not cancel PLMN search on touching outside the dialog.

Do not cancel manual PLMN search dialog when user touches
outside the dialog boundaries.
CRs-Fixed: 488370

Change-Id: I1e321caf32f7254360f006be6fbf7d7b144d5059
Phone: Display toast message for blank USSD request

As per spec 24.080, ussd response string should be
between 1 - 160.
When user requests SEND_USSD with blank/no
input, display toast message prompting user
to enter valid input.
CRs-Fixed: 464530

Change-Id: I89707fe2468335f0e9c1cbbd5e7c3a4bf2734cba

Conflicts:
	res/values/strings.xml
	src/com/android/phone/PhoneUtils.java
derp
Phone: Fix class cast exception in Phone app.

While handling CALL_PRIVILEGED intent with scheme type
"content", PhoneApp storing Uri type object in userdata
field of Connection object, but while retrieving it type
casting to CallerInfoToken class and due to that class cast
Exception is observed in PhoneApp.

To fix it, added code to properly type cast the userdata
field of Connection object to Uri type class.
CRs-Fixed: 468596

Change-Id: I74cd29e696f42017fac5957688f24528abe19cc8
Phone: Fix waiting call answer issue

When hold and active call exists, to answer the new incoming call
 -hangupActiveCall() method alone is sufficient
 -Do not call answerCall() method, which is causing to switch
the answered call to hold state.
CRs-Fixed: 436818

Change-Id: Id395abea172adc78c90acd7333806ec1b11173f9
Phone: Managed Roaming feature re-design.

Change-Id: I67118e1e351aab5ce7eabc71bd7ced831bdbb944
Phone: Display message to indicate PIN/PUK status changes.

Changes done to display retry counter on wrong entry of PIN1,
and message to indicate Code accepted/PIN1 blocked during
PIN1 verification as per certain carrier requirements.
PhoneApp: Add APIs that report actual error code on PIN/PUK operations
The current APIs that are used to verify the PIN and PUK only convey
whether the operation succeeded or failed. As a result on ANY failure
clients ask the user to re-enter the PIN.
Add 2 new APIs that report the actual error code in case of failure.
CRs-Fixed: 357021, 441001

Change-Id: I01a4cf9dc1fbccdb8944eb59e10fef8f306a7f6e

Conflicts:
	src/com/android/phone/PhoneInterfaceManager.java
Phone: Display Supplementary Service Notifications

As per spec 27.007 - 7.17, Supplementary services notification
should be displayed to the user.
CallNotifier registers for SVC notifications and the message
is displayed in the form of Toast to the user with the appropriate
text depending on the type of notification.

Change-Id: Idb9226d3aaa23723c5755db79a05c1a1a236d36f

Conflicts:
	src/com/android/phone/CallNotifier.java
	src/com/android/phone/InCallScreen.java
Phone: Display proper message in Call Barring case.

When Call Barring is enabled on MT side, proper
message should be displayed to the user on MO
side.
As part of this change following will be displayed-
-Toast message "Incoming call is barred"
-Pop-up dialog "Party has barred all incoming calls"
CRs-Fixed: 382712

Change-Id: Ia5ced3848170731b279a6a877c1062cc1f14fe04
Fix UI for exception error scenarios for Supplementary srv setting

1. Instead of exiting from activity after displaying the dialog,
just dismiss dialog
CRs-fixed: 445594

Change-Id: I7b41b4292b3843a5ac4413fa2a3e5b029eba9d98
Phone: IMS changes

- Place IMS call if the call domain is PS and the URI scheme is sip
- Add UI for adding IMS settings
- Fix merge call and add call support
- Fix missed PHONE_TYPE_IMS case
- Fix IMS phone to behave like GSM phone in CallNofifier.run
  TONE_BUSY case
- Use Ims Service to create IMS phone
- Handle Ims not registered in App
- Support for emergency calls over IMS
- Handle voLTE call end properly
- UT interface support for IMS
- Support for Conference Event Package UI
- Add support for manage conference when no conf event package
- IMS conference uri
- Expose information via ImsService
- While in 1x call, originate new call on 1x
- Handle ECBM for ImsPhone
- Move CallDetails constants to PhoneConstants
CRs-Fixed: 407196 421082 478436 478439 474115

Change-Id: If3af16a11c41bc351c8399bbc8d0bb1e3fb6c069

Conflicts:
	src/com/android/phone/PhoneUtils.java