Services/Telephony: cmcc bringup

TeleService: Fix issue can't answer/reject call when at USSD content view

Without appending to the dialog ;)

Change-Id: I4859ba19ee33a05aef940f1d7d8d71e68b591314
Revert "TeleService: Fix issue can't answer/reject call when at USSD content view"

This reverts commit a368bdbbd17d3cf975a85b0973afeeaaef9d264e.

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

Conflicts:
	src/com/android/phone/CallNotifier.java
CDMA: Fix APN setting crash when using CDMA SIM card.

Orginal introduce a incorrect APN activity name, so APN setting crashed.

Change from com.android.settings.ApnSettings to
com.android.settings.Settings$ApnSettingsActivity

Change-Id: Ie1e6fa6ca22cca40d0fcf0911acfade1bee7dde4
Add back noise suppression.

Change-Id: I6538b7ec335ff94d5fa67748e09257c4d352f660
Add up navigation to call barring activity.

Change-Id: I0129f28bbdec280605a31f7ad35086ec970bf8f6
Remove 'cancel all' preference.

It's functionally equivalent to setting incoming and outgoing call
barring to 'Off'.

Change-Id: I18c66cd54449aeb238e4da6fb5bb52d4375383ec
Fix handling of unavailable network in call barring activity.

Also remove some duplicated code.

Change-Id: I98aacd8b8f99824e8b0bd71fa140a6db3e8f4f00
Grey out ok button instead of showing a toast.

Change-Id: Iee46c1c1715c24b672dd41259f87a5206c115563
Improve strings and move arrays to correct place.

Change-Id: I502eb88e21fd9c609f828be69d8a747e24c0d56e
MSIM: Refactor and fix msim settings

This removes all the copy/paste code in CallFeaturesSettings.
Also fixes per subscription voicemail settings.

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

Conflicts:
	res/xml/call_feature_setting.xml
	src/com/android/phone/CallFeaturesSetting.java
Revert "TeleService : Fix the network mode wrong issue for ssss"

This reverts commit 3956bbd0b2e95e0a15ac26fd3a0eab3378c09f9c.

Change-Id: I9afc8502170a064ea3abff77807968c1ff0265b3
TeleService: Support call waiting on CDMA phone

There is no call waiting function on CDMA phone.

Support call waiting on CDMA phone.

CRs-Fixed: 694575

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

Conflicts:
	src/com/android/phone/PhoneGlobals.java
TeleService: Hide sim label 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: I657c5e905ae15e9a1e370a6c874b81ab700bd286
Disable data in manual PLMN search on non-dsda mode.

While doing manual PLMN search disable data if data
is connected on non-dsda mode.

CRs-Fixed: 657194

Change-Id: I16f2e010e492497a2598ee1b9bdd8977f3d7d048
Add MSIM check to avoid phone app crash

Add MSIM check before calling method of MSimCallNotifier as this
class is applicable only for multisim.

Change-Id: I18d91061fd08ac8b64d3a644b11868eb9659b68b
CRs-Fixed: 685937
Phone: Disconnect current call if there is an active call on other sub

UE should disconnect current foregroundCall if answering
a MT call on other sub and current foregroundCall state is dialing.

CRs-Fixed: 679208

Change-Id: I6d16e92f52462050581471600d84f5fedae038bd
MSIM: on permanent failure cause, don't redial

If permanent redial failure cause is recieved for emergency call
from lower layers, then redial shouldn't occur again on that subscription.

CRs-Fixed: 682517
Change-Id: I7a9adb958efacf7e72234974977fa525c8b2a59e
Fix call barring always request from default sub

Update subscription in MSIM mode before enter call barring settings.

Change-Id: Iddba105d3ab4bef42e8f1df93020eebe4dbb1ee9
Telephony: Add Multi SIM support for voicemail ringtone

Do not support Multi SIM for voicemail ringtone settings.

Add Multi SIM support for voicemail ringtone of call feature settings.

CRs-Fixed: 671167

Change-Id: Ia20953ba3cd528f506407651ba5081232e9e3a89
TeleService: Add FDN seting for CDMA network type

FDN Setting is removed when network type is CDMA. Do not remove
it directly, but add resource config for it. Default status is false
which means to enable FDN settings.

CRs-Fixed: 680615

Change-Id: Ib578495a50efff7fc0df54f517c67679e2f5da69
MSIM(DSDA): if any sub is active dont disconnect BT

Don't disconnect BT, when call is active in any of the
subscriptions.

Change-Id: I9b0ab528ded4a1c8e7ef67a81217a6f8aade0613
CRs-Fixed: 679187
CSVT: fix cannot end videocall issues after NFC read contact and lauch another call
      when CSVT call is active back ground
      CRs-Fixed: 678578

Change-Id: I1b0aff348a6d01d7648d1a754ae6168af270f3c4
Stop call waiting timers after waiting call accepted

After user accepted CDMA waiting call, remove call waiting timers.

Change-Id: I1b9f3036c07aee2e14528e05573bd1b106f9a31f
CRs-Fixed: 673246
MSIM: Use DDS data sub if no sub is passed

On a multi-sim device, getDataNetworkType will return data
radio technology value of designated data subscription(DDS).

Change-Id: I6b40431a88a5e17589e1b1d1b759838ff61475ee
CRs-Fixed: 661835
MSIM: Update persist.radio.airplane_mode_on property during APM change.

RIL uses persist.radio.airplane_mode_on property to check if sim
cards need to be powered down when telephony requests RADIO_POWER
OFF during boot up. So telephony needs to update this property
whenever there is a change in airplane mode.
Add the missing code to update the property in MSimPhoneGlobals.

Change-Id: Id5c6b8315ad8329b348a4e527e38e1d7c889bb03
CRs-Fixed: 661325
Telephony: Set the default uri for Ringer according to different sim cards

When the phone ringtone is set as "None", getActualRingtoneUriBySubId()
in framework return null.But null won't be set to Ringer, so the uri
is still the value which was set in the last time.

Set the default uri in Settings.System to the Ringer instead of
the uri returned from the method before.

CRs-Fixed: 661216

Change-Id: I82dd48a8946eebdca477dfae0e09b4ed640e481c
MSIM: Dial emergency call on activated sub

Check if subscription activation status is activated, even if the
sim state is ready before choosing the subscription for making
emergency call. As sim ready state also comes when there is illegal
card event from network.

Change-Id: I1775619201d7cfe39362802b2b59193a67a9a1a7
CRs-Fixed: 662770
MSIM(DSDA): Start the LCH reminder tone properly

During sub switch, lCH reminder tone is stopped but not restarted
properly.

Change-Id: Ia801b205c196c28e9fff9214548d3138a4154e79
CRs-Fixed: 665424
MSIM(DSDA): Use conversation sub to maintain LCH properly

Use conversation sub to maintain LCH properly

Change-Id: I2307d04a9e32a43234a5e56d995e20db464a6187
CRs-Fixed: 659123
Fix FC when phone type switched from GSM to CDMA.

Don't set the view as null after it is removed, otherwise
it would cause exception when trying to update it.

Change-Id: I62aeef7796cd197d7ebc61b290ed48924f5905f1
TeleService: 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: Id9e0bf9c7e41ccb7cf210f8adfa0938ead650f74
Delay setting of active subscription

In case of MT call, delay setting of active subscription till we send
onIncoming to InCallUI. Until onIncoming comes, there is no MT call
in IncallUI call map, hence active sub shouldn't be set much earlier than
sending onIncoming() in order to avoid timing issues.

Change-Id: I7a6ff5bed017d51e540f207093565310e6e9e511
CRs-Fixed: 655859
Fix crash during back to back emergency calls.

Phone process crashes with RuntimeException while
unregister receiver because the receiver is not
registered.

Move code of register receiver at onCreate() to be
sure that receiver will register when call through
bindService() and startService() both the cases.

Add null checks to avoid null pointer exception in
onDestroy() of EmergencyCallbackModeService.

Change-Id: If73bffe251b9f8f64973bcac7399a903bc2183e6
CRs-Fixed: 641312
Fix issue that phone would crash when PLMN search

NetworkSetting apk is only installed on debug build, before calling it,
check it whether exists in the system; if true, use the intent of the
NetworkSetting activity instead.

Change-Id: Ib139874e5f2ffbc20ceaba4f83491f5ce0939353
CRs-Fixed: 659685
Fix to mute/unmute properly while adding a call

Call setMuteInternal instead of setMute while adding
call to an existing active call.

Change-Id: I245f966c6929b5d1a92b2b7dff1f9e79e2a8d04a
CRs-Fixed: 650135
TeleService: Return to previous activity when click back icon in Dual SIM settings

Return to the CallFeaturesSetting directly no matter
the Multi Sim is enabled or not.

Return to previous activity when the Multi Sim is enabled.

CRs-Fixed: 657329

Change-Id: Ia8bf403b81fb050be565fc2a123341bbb58db05d
TeleService: Remove the option menu of the restore defaults

This issue is the Android original bug, Google has delete restore defaults
function in Android 4.4, but they don't delete the menu item in quick
response settings.

Remove the option menu item of the restore defaults.

CRs-Fixed: 655895

Change-Id: I66c90f38f3e499cf8ae07b5c93f9cff8136d754d
Fix crash when call to voicemail with no number.

Initialize dialed number to empty string if it is null,
to avoid NullPointerException in Uri.fromParts().

Change-Id: Ic4c68eaa40b2d2c23199619b15a7277e2a8e77bc
CRs-Fixed: 627677
TeleService: Do not save an empty quick respond message

Can save the quick respond message when it is empty.

When the new quick respond message is empty, do not save it.

CRs-Fixed: 654604

Change-Id: Ifffde3c0ec2272deff5d684509620528ab503992
TeleService : Fix the network mode wrong issue for ssss

mButtonEnabledNetworks is used to replace the  mButtonPreferredNetworkMode.
But mButtonEnabledNetworks is added by third party for 4G/3G, which can not
fullfill the requirement of now. Use the mButtonEnabledNetworks back, and set
the right choice for it.

CRs-Fixed: 640954

Change-Id: Ia81da435effcde5752b76e83c6d1a9750f62c17b
TeleService : Disable network mode select when it is GSM only

Not allow to select network mode again when it is GSM only mode after
setting preferred LTE mode for CMCC.

CRs-Fixed: 653774

Change-Id: I2e4b1f0ddf5683f0acceeb447b75890170fe8517
TeleService: Remove "vibrate when ringing" from multi sim call settings

Remove "vibrate when ringing" item from multi sim call settings.

CRs-Fixed: 653620

Change-Id: I051c851d882eb9641ddcb06ce7bc25305be486a1
TeleService : Add networkmode changed listener and CDMA APN item

 - GSM option screen also has networkmode select list when isLteOnCdma
   is true. Need to add listener for it , or else it will fail to set mode.

 - After set world_phone as false, CDMA option need add APN item according
   to this config. Before it use GSM APN option when world_phone is true.

CRs-Fixed: 640954

Change-Id: I855201506bb77bcd257faf1718cd3daa452d018c
Fix the failure when doing unit test

Change-Id: Ib5df587535c1da8b2e324ae77c30718f20527599
CRs-Fixed: 652947
TeleService: Highlight the forbidden network operator

The network operator preference will be disabled if
it is forbidden.

Don't disable the forbidden network operator.

CRs-Fixed: 651557

Change-Id: Icb69d0ce45206d74e30de750239da8510f836c77
TeleService: Remove the function of MO call on APM

Remove the function of MO call on APM.

CRs-Fixed: 651321

Change-Id: Ifcef2e26a578243630c85174c163f63763f53db5
TelService: Launch NetworkSetting of "com.qualcomm.networksetting"

Launch the NetworkSetting which is in package
"com.android.phone" after clicking "No service" tip.

Launch the NetworkSetting which is in package
"com.qualcomm.networksetting".

CRs-Fixed: 648771

Change-Id: I866eba16d62c5121b8f5b6f31e247617478acf8c
TeleService: Correct the title of mobile network settings

The title of mobile network settings display as "Call settings".

Set the title of mobile network settings as "Mobile network settings".

CRs-Fixed: 643000

Change-Id: I1c3075ad2096825b563fe1f0a722dd52dbf42f85
TeleService: Only show emergency call list in CT Feature

Emergency call list is shown in all features.

Only show emergency call list in CT Feature.

CRs-Fixed: 641049

Change-Id: I5454189e90b9240d7bde5be2a7a89721f3c78d2a
Add UPLMN setting in MSIM device for cta test

Enable UPLMN setting in MSIM device.

Change-Id: If299d18b6c0ed05c5e1a5e78e68e552024767176
Settings: Display error when MO a call in airplane mode without SIMcard

When without SIM card inserted, service state cann't be
"STATE_IN_SERVICE", so cause cann't dismiss the dialog.

Add the judgement that has IccCard or not. First judge has IccCard,
if has not, pop up "Mobile network not available" dialog. If has
IccCard, then judge service state to work.

CRs-Fixed: 633688

Change-Id: Icb1c0216c9196be05177266e4545aa0738b5464d
Remove the item of dialpad autocomplete

- this item is used to control smartdialer in 4.3,it is no
  longer used in 4.4 any more,so remove it

CRs-Fixed: 640261

Change-Id: I20e4fc8e6d28277f621932a17a48e7e74de6fa14
TeleService: Hide the item of X-Divert

X-Divert is shown in any featrue.

Hide the item of X-Divert.

CRs-Fixed: 639559

Change-Id: I3b1bf4f9ed7c1534600d5ba45633b7e019e78210
TeleService: Handle play dtmf tone setting in DSDS mode

Does not handle play dtmf tone setting in DSDS mode.

Handle play dtmf tone setting in DSDS mode.

CR-Fixed: 639612

Change-Id: I99e72db6548e644150cc44c1601cc883616e2a80
Telephony: Set ringtone for SIM2 using SUB ID.

Set ringtone for SIM2 using the subscription ID, instead of using
TYPE_RINGTONE_2, and use new interface defined in framework.

Set incoming call ringtone for SIM2 to play.

CRs-Fixed: 612945

Change-Id: I4a8e674b014ef034613682d2e23df2a884588d2c
Telephony: Mobile networks & Call settings display as grey when disabled Sim Card

Original design is that only sim state is ABSENT then relative settings
will display as grey, so when disabled Sim Card, sim state is not ABSENT,
relative settings still display as highlight.

Change design as that only sim state is READY then relative settings will
display as highlight, other state including disabled Sim Card will display
as grey.

CRs-Fixed: 630984

Change-Id: Ic5b763b926b318e154f07871851a55c46c95a27d
Call proper method to avoid waiting call going into hold state

With Current implementation, when there is active call, hold call
and waiting call, and if user answers waiting call, then below requests
are sent to RIL one after the other resulting in waiting call
moving to hold state instead of active state.
HANGUP_FOREGROUND_RESUME_BACKGROUND
REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE

Call answerAndEndActive method instead of answerCall when there are
already active call & hold call to avoid the issue. With this fix
only below request is sent to RIL and hence solves the issue.
HANGUP_FOREGROUND_RESUME_BACKGROUND

Change-Id: I83eac7f071ac95234357d83a16ee5ae58bc7e877
CRs-Fixed: 605531
Settings: Display error when MO a call in airplane mode without SIMcard

When without SIM card inserted, service state cann't be
"STATE_IN_SERVICE", so cause cann't dismiss the dialog.

Add the judgement that has IccCard or not. First judge has IccCard,
if has not, pop up "Mobile network not available" dialog. If has
IccCard, then judge service state to work.

CRs-Fixed: 633688

Change-Id: Iffc46f1125c535e664857888a742acd5fd7e411c
CSVT: fix the blue tooth related functions.

Change-Id: If8a1b735f8bd2ac9077a75f4daf784dacdc5ba76
TelService: Pass according sub to call setting activity

Use the default subscription when add voicemail number.

Pass according subscription to call setting activity
when add voicemail number.

CRs-Fixed: 630983

Change-Id: Id5d356cfc3afec34573942e4480f7cbf698646c0
MSIM: Add support to send dtmf for SCH tone

Send DTMF to remote party on LCH subscription on regular interval,
so that remote user on LCH sub would hear SCH tone. Stop DTMF as soon
as the subscription is removed from LCH.

Change-Id: I00a305de7be7134c7006e2572bd8c6b02f677244
CRs-Fixed: 610582
Phone: Add sub ID and actual duration time in call log.

Add the slot id in call log.
Add the type of duration(Active time/Call out time) in call log.

Change-Id: Ic9463029e45420321d861187c8fa61e809670808
Phone: Add uplmn setting for cta test

Add preference "preferred network" in settings for cta test.
Add two activities for user to search and edit plmn.

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

Conflicts:
	res/values-zh-rCN/cm_strings.xml
	res/xml/network_setting.xml
Phone: Disable the preferenceScreen when SIM card is absent

Did not check the current sub is inserted or not,
and do nothing when the current sub is not inserted.

Disable the preferenceScreen when SIM card is absent.

CRs-Fixed: 621122

Change-Id: I4b1af68bbecaa716c806520f51270f6b6259d27b
IMS: add ims call log type in Telephoney Service.

Change-Id: Id375c51717ab7dc098cf904ddffb8483880c3fed
Phone: Dial out with the correct sub that Mms has set

It will show the sub selection dialog if user set the voice to
"Prompt User", regardless of which sub the Mms widget has set.

If we can get correct sub from intent, dial out directly.

CRs-Fixed: 618765

Change-Id: I3582b4ed40736cf9275a45a582bd208380535e49
Phone: Add CDMA call forwarding function

Add support for CDMA call forwarding function.

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

Conflicts:
	res/values-zh-rCN/cm_strings.xml
Change the logic to determine a conference call

Currently a call is declared as conference if there are more
than one connections for GSM and for CDMA based on the state
of the call.But actual logic should be based on the number of
ACTIVE connections in a call.

Change-Id: Ie0d67fe10c41e86716b8b39921c9a6269671582d
CRs-Fixed: 619901
TeleService: Adjust UI for telephony service

 - Hide roaming button according to config
 - Remove data button for signle phone
 - Modify call settings strings

Change-Id: I9785fb0646b03ac48cafc006dc13e233aa06b7fb
Add new Network mode menu list

Only "4G/3G/2G mode" and "3G/2G mode" should be shown for CMCC
requirment.

Change-Id: I71444af90e7a110a486b0d492765b486634122b4
CSVT: update csvt in Telephony Service App

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

Conflicts:
	res/values-zh-rCN/cm_strings.xml
	src/com/android/phone/NotificationMgr.java
TeleService: Disable CDMA subscription for carrier requirement

For carrier requirement, disable CDMA subscription settings,
and set summary to indicate current mode.

CRs-Fixed: 596648

Change-Id: I8989878394539a44250ae6f89ed9c29e186e52c5
Phone: Fix can not dial correct number when MO IP call

Correct the setting key of ipcall
CRs-Fixed: 602272

Change-Id: I4af6dab805de6ef8bb08153e069d4a9db80afded
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
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
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	res/values-zh-rCN/cm_strings.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 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
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	res/values-zh-rCN/cm_strings.xml
Phone: Add call barring feature

Add the call barring feature in the call settings.

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

Conflicts:
	res/values-zh-rCN/cm_strings.xml
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
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	src/com/android/phone/CallNotifier.java
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
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	res/values-zh-rCN/cm_strings.xml
	res/xml/call_feature_setting.xml
	src/com/android/phone/CallFeaturesSetting.java
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
Add missing space.

Change-Id: Ibd4b648012dd473468598355b5a58f7309102bd4
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
Add reverse lookup provider "Das Telefonbuch" (DE).

Change-Id: Ic3b5197bb7d6d2955ada9f3d902decff088433ec
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
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	res/values-zh-rCN/cm_strings.xml
	res/values-zh-rTW/cm_strings.xml
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
Phone: Removing the unreachable call forward option

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

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

Conflicts:
	res/values/config.xml
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: 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
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	res/values-zh-rCN/cm_strings.xml
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
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	res/values-zh-rCN/cm_strings.xml
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: 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: 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: 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 back/home action to Subscription Settings Action Bar (MultiSIM)

Change-Id: Ia290b861250fb5477908d3420e7ad290499f2c4c
Handle CALL_IS_WAITING MO notification.

Make that piece of information available to InCallUI so that it can
display it.

Change-Id: Id429824d3af85cf16290b8286b87903c9dc02655
Pass creation time in Call interface so that we can uniquely identify calls in call log

Change-Id: Id235a1fa3b639ad684b4f69d676e55925886d905
Clean up MSimMobileNetworkSubSettings

* Reduce code duplication from MobileNetworkSettings class from where
  this is originally derived.

Change-Id: Icc31d313351dac53fb4597ec31ec1f121425b3a7
Port enabled network mode selection menu to MSIM classes

* MSIM mobile network settings menu will not display network mode
  selection unless world phone is selected. Make it available for GSM
  only as well.

Change-Id: I1bafc6049a7152382af601312361619f2e6256cd
Don't overzealously disable all preferences in airplane mode.

Only disable those prefs that actually need the network connection.
Fixes applying various preference summaries.

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

Conflicts:
	src/com/android/phone/CallFeaturesSetting.java
IMS: Only enable IMS calls if IMS service status shows enabled

Change-Id: I9bd4ce17a62dcf188989dd79dc9deaa78e491fa6
Make incoming call screen style configurable (3/3)

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

Conflicts:
	res/xml/call_feature_setting.xml
Cleanup.

Revert import changes that are both unneeded and violate coding style,
fixup coding style for some of our additions and simplify code.

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

Conflicts:
	src/com/android/phone/CallFeaturesSetting.java
Kill camel case in dialpad t9 search labels

Change-Id: I3e655e94b28f140ce0258d1e8ad9c94f5b92349f
Add setting for t9 search input locale

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

Change-Id: Ic0b97bab0279047cf7598f2c0c805a6975c65345
Merge remote-tracking branch 'legacy/kitkat' into kitkat

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