TeleService: fix event settings NPE

Has a bug in this commit when open Subscription settings:
Event settings already in Subscription settings - GSM call settings

http://review.cyanogenmod.org/#/c/74451/

PS2: This setting is added for non-world GSM phones only.
     Move this logic into the block that only gets executed for this case.
PS3: * Fix Event Notificatons for World Phone use case.
     * Don't call remove optional twice for msim.

Change-Id: I33fa9238b5a1715ce8a045a6d0b80bc66f9387e2
Automatic translation import

Change-Id: Iae5a309ba56f20391e6fbd5a9145b4e148411036
TeleService: use MSimPhoneFactory for MSIM devices

Change-Id: I4b785c550096424498f7e68101d80f4128149987
Automatic translation import

Change-Id: Ie9090638fe640dde93a63c32bec22cd8aaa3cab8
TeleService: Change labels for MSIM

Change-Id: I1fa019357936142132733edfc2d2365d37f55051
TeleService: fix vibrate on answer

A pattern of 100,0,0 essentially never even starts the vibrator.

Change-Id: I69dd232dd6ab98e068fd4a1526727fe843b44336
TeleService: MSIM UI clean up

* Adds functionality for naming sim slots
* Sets the default names on sim change

Change-Id: I218ad5d2181f449497e94407c018c39ec8029f33
Fix Quiet hours for MSim

Change-Id: Iedd78b3bb0f45a28969abaa1326cd3e07ff82584
TeleService: Make string translatable

Change-Id: I136826cc42fe6a2e6926124cb12ca3218c1ced4a
Automatic translation import

Change-Id: I3697f008222cf84dcd29faeefd1a92c1baea81a7
Telephony: Disable MSISDNEditPreference until init complete.

  - Avoids NPE. BACON-1832

Change-Id: I4a8919ecb3116375696f76e99c94b33ce961df41
Telephony: Fix NPE while opening allowed number.

Trying to edit existing allowed number caused NPE:

mNameField and mNumberField setText caused TextWatcher afterTextChanged
event while mButton is still null. So set mButton before setTexts.

Change-Id: If444e2d69c77bc10094a1dfd3fc6b700509c6128
TeleService: For Msim DSDS, set mode to 2g(all sims) prior to change

* DSDS have a wierd behavior that all sims need to be toggle to 2g before switching
to 3g or above.

Change-Id: Iccd409ea0811a2a041d0e707da6285ed5d3375cd
Telephony: bugfix - let us edit 'My phone number' again

http://review.cyanogenmod.org/#/c/75688/3 introduced a change on "My Phone
Number", having the option disabled at the beginning, so it can only be used
after it has been init'd.
This commit now enables the option, when init is done.

Change-Id: I50438ac5231934b9c28d7161c05438ab4519aa8b
TeleService: Refactor sim name / sim label logic

Change-Id: I63a0a2f4d03b91289354cd9d6b51495cd622f760
TeleService: (MSIM) Avoid crashes when clicking actionbar home

Change-Id: I9cded9536cb7a6d4b709b0a70cc2628d2d8c9bda
TeleService: Don't use a progress dialog when setting subscription

Change-Id: I9b34bc8fd213a2668f9e2871fa09d80617245af4
Call recording encoder/format choice 2/3

PS1: Adds a user option between WB AMR (the default) or HE-AAC for the
 encoding of call recording audio. Also changes the output format of the
 file appropriately (WB AMR now uses the WB_AMR output format and HE_AAC
 chooses the MPEG_4 output. File extensions are adjust accordingly as well).

This was in reponse to people complaining the quality of call recording
 audio is poor. It's noticibly better using HE-AAC, but filesizes are larger.

PS2: Made recommended changes to the method of determining whether or not
 call recording is enabled and fixed an erroneous array name.

PS3: Fixed errors in the PS2, should show proper changes now.

PS4: Removed whitespace

PS5: Whitespace again

PS6: Fixed getting the identifier, now works as intended. Altered the
 default value that the preference setting gets in order to show the
 default, untouched, preference summary

Change-Id: I31f4a57042cf9e221ea2292922f071c955170e1e
TeleService: Move IP prefix call setting config to system property

Change-Id: I92651eaaf25ab1a8d8c7ee909a106e54529ccbb4
Mute phone when flipped over while ringing.

When a phone is ringing, flipping it over will silence the ringtone for
that call. This is especially useful when you're in a
meeting/class/other gathering where lots of noise is frowned upon as it
allows for an extra fast silence.

Also has option to hang up the call. Configurable.

PS2: Revert some lines accidentally changed.

PS3: Summary will change depending on the state + some general style
changes.

PS4: Rebased changes

PS5: OFFHOOK.

Change-Id: If7c2e64e002adbf5a3c8a16c6e6e7b7b6a86fbce