Cleanup some CAF code.

Instead of exposing the concept of supplementary service notifications
to InCallUI (and then not using it), convert the respective
notifications into boolean flags.

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

Change-Id: Iceea5b948b9d5beb1d0e6c6ff0b376afa4d97217
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_services_Telephony into cm-11.0
Merge "Add reverse lookup provider "Das Telefonbuch" (DE)." into cm-11.0
Merge "Cleanup some CAF code." into cm-11.0
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
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_services_Telephony into cm-11.0
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