Phone: Fix forced closure when change language during adding SIP account

Phone will force close when you change system language
during adding a SIP account and then save it.

Make sure mSipProfileList is not null before
addProfile(profile) beginning.

CRs-fixed: 549841

Change-Id: Id1320e68bfc617dbefdacc32c94cbe3761822e3b
Add reverse lookup provider "Das Telefonbuch" (DE).

Change-Id: Ic3b5197bb7d6d2955ada9f3d902decff088433ec
Phone: PIN2 shouldn't be seen when make passwords invisible

Since the attribute android:imeOptions is set to actionDone,
and as the result after rotating the phone, the EditText become
full screen, and the content of EditText can be seen.

Change the attribute android:imeOptions to flagNoFullscreen.

CRs-Fixed: 426558

Change-Id: Id1a7106c32d46a89e1332114143cad470050dd3c
Phone: It should stay at Sip account details interface after unlock phone

When the SipEditor was paused, it auto save the editing Sip account
and finish the Sip account details interface.

Don't finish the Sip account details interface when the SipEditor
paused, then make sure it can stay at Sip account details interface
after unlock phone.

CRs-Fixed: 424610

Change-Id: I2f6c9eb85ed57531338fd88ffec7de2c8d2f6a21
Phone: Prompt port number invalid when the port number length too long

The number format exception occurs if the length of the port
number is too long, but it does not catch this exception,
so the phone force closed.

Add the handle of number format exception, then show a alert dialog.

CRs-Fixed: 412220

Change-Id: I3c37e4d19ce6f50bb4820716c8d7533e43c7cfc9
Phone: Add one dialog to prompt the SIM is turned off

If aiplane mode is on, add a dialog to prompt SIM is turned off
when call.
Taped positive button can turn off airplane mode and then call out.

Change-Id: I8fdd4d4db657b49a89730a23d75e836fcc86438e

Conflicts:
	res/values-zh-rCN/cm_strings.xml
Phone: Disbale the network item and update the titile

Disbale the network item and update the titile when the network is forbidden

CRs-Fixed: 522564

Change-Id: I13a788dd918356e6fc0dd76ef28db197a8a6f7cd
Settings: DUT can register on a forbidden network operator

In NetworkSetting.java, when networksListLoaded() is called,
it disabled the FORBIDDEN Preferences. But when tap the
available one to register it done, the FORBIDDEN Preferences
will be enabled again by invalidate() operation.

After selection operation is done, we should disable FORBIDDEN
preferences again when receive an EVENT_NETWORK_SELECTION_DONE
message in NetworkSetting.java.

CRs-Fixed: 529690

Change-Id: Ie27823f5165882102e206107a21357d7482f5d2c
Phone: Removing the unreachable call forward option

Some carriers require to remove the  unreachable
call forward option in GSM mode.

Change-Id: I18b782fe83256dcf57956b23e11cdf478a48979e
Phone: The option should be clickable after pressing OK

If there's something wrong with the setting, it will return
response error and set the preference unable.

Don't set the preference unable when it returns error.

CRs-Fixed: 402479

Change-Id: I3ce8aef17ce11fbaec64d01cbbc5b00ea7efe3e7
TeleService: Prompt user the fixed dialing number can’t be empty

It does not check if the fixed dialing number is null or not,
so it also can be saved as FDN when the fixed dialing number is null.

When the number is null, we do not save it as FDN, and show a toast
to prompt user the fixed dialing number can’t be empty.

CRs-Fixed: 522515

Change-Id: I0a78be0657cdd35ed00058bb825d2e077f52b471

Conflicts:
	res/values-zh-rTW/cm_strings.xml
Add missing space.

Change-Id: Ibd4b648012dd473468598355b5a58f7309102bd4
Fix FDN validity check UX.

Use a text watcher to enable/disable the save button instead of showing
a toast that the save button should not be used at that point.

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

Add the setting for enable proximity sensor or not when calling

ps2: Enable via overlay

Change-Id: I42bc05ae1c22443cca782ac1ae66d5d5bb4ac858

Conflicts:
	res/values-zh-rCN/cm_strings.xml
	res/xml/call_feature_setting.xml
	src/com/android/phone/CallFeaturesSetting.java
TeleService: Fix issue can't answer/reject call when at USSD content view

When show the USSD dialog, MT a call to the device at this time and
the IncallScreen will show behind the USSD dialog. That's because
the USSD dialog has the WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG
and WindowManager.LayoutParams.FLAG_DIM_BEHIND properties.
So it always show on top of screen.

We should add the function to hide the USSD dialog when a new ringing
connection comes and show it again after disconnect this connection.

CRs-Fixed: 551995

Change-Id: I5ea315c012ecd17f8d0e5e3b36299a80d6f20fc8
Phone: Add call barring feature

Add the call barring feature in the call settings.

Change-Id: Idc79e83e783f421655991ba5091c99fd478ce32a

Conflicts:
	AndroidManifest.xml
Phone: Add emergency call list setting feature

Enable the feature of emergency call setting, user can add/remove/edit
emergency call numbers with this feature.

Change-Id: I2e3a15fdd34a328373f53d802b18d4e42d56e6f5

Conflicts:
	AndroidManifest.xml
Add config to control disable SUB2 apn.

When disable_data_sub2 is true in DSDS mode, disable apn of SUB0.

Change-Id: Ie10803e791e3cc3d3ba30c9d940f56feb3df7935
Phone: Add support for IP call prefix

Add a preference screen to edit IP call prefix, and add the
prefix when MO a IP call.

Change-Id: I258ee4b15a52ac7612fc72243db1f08d66bd71d0
Phone: Enable incremental search for PLMN

As per existing implementation Modem sends all the PLMN list information
in single request. once all the PLMN list is available then it is displayed
in UI.

As part of these changes Modem will send incremental PLMN list available
to telephony. When the list is available from Modem to telephony, the
PLMN list is displayed in UI.The UI gets refreshed with incremental PLMN
list whenever there is an indication from Modem.

Change-Id: I7aff3a28047f8fe98fdd1027c4da157d70f9f996