msim: add blacklist and quiethours support

Change-Id: Id5d196b3c8f0a520eb0cd06b0dccb1dcefbd0dc0
JIRA: CYAN-4276
Issue: https://jira.cyanogenmod.org/browse/CYAN-4276
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Telephony: update number of missed calls in notifications

Change-Id: I67a167340dfa4d8d85535a7d72959555cb930a9c
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Network Settings: move APN to common area, both CDMA and GSM use this

Change-Id: I6f01d3eafb65e7bd14e98b0a77461302f7a757d7
FDN: Don't crash when attempting to change the PIN2 without a SIM

Catch the absent SIM runtime exception and pop up a "No SIM" toast
instead

Change-Id: I16fb3db17a52efe25bcc5397845d1b099737a363
Revert "Network Settings: move APN to common area, both CDMA and GSM use this"

This reverts commit f09f2f66dccbafea9e5fa5204b443d19181a78e0.

This causes a major crash on MSIM devices. http://pastebin.com/843G93k0
The setting was moved to network_settings.xml but it is still adding the
preferences from gsm_umts_options.xml
src/android/phone/GsmUmtsOptions.java#L64 hence it can't find the settings key.
Not sure how it even works on single sim this way

Change-Id: I91aa160add0cc0352de5e3704d0adcd12dacbd0b
Telephony: Update ActionBar to match Settings

Even though Telephony is a seperate app, it is accessed
directly in the Settings app and has a different action bar to
all the screens in the Settings app.

Change-Id: I328fd1cdc55dafc53b8b2f99efffa6b74bf83853
msim telephony: do not register call logs for blacklisted phonenumbers

Change-Id: I80016e6cce154670f47df3f4b6a9b42353f76355
JIRA: CYAN-4610
Issue: https://jira.cyanogenmod.org/browse/CYAN-4610
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
IMS: Only enable IMS calls if IMS service status shows enabled

Change-Id: I9bd4ce17a62dcf188989dd79dc9deaa78e491fa6
Handle CALL_IS_WAITING MO notification.

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

Change-Id: Id429824d3af85cf16290b8286b87903c9dc02655
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
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
Clean up MSimMobileNetworkSubSettings

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

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

Change-Id: Id235a1fa3b639ad684b4f69d676e55925886d905
Add back/home action to Subscription Settings Action Bar (MultiSIM)

Change-Id: Ia290b861250fb5477908d3420e7ad290499f2c4c
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
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
	res/values/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

Conflicts:
	res/values-zh-rCN/cm_strings.xml