Add NT_MODE's for NETWORK_MODE's 8 and 10

as defined in RILConstants.java
and fix force closes when phone is not yet ready

Change-Id: I225bb776152e4c63ade1f70669edb2df3986634c
Signed-off-by: dhacker29 <davidhackerdvm@gmail.com>
Makes network mode toggle work. Port from CM9.

Added LTE_ONLY needed code to PhoneToggler.
Added LTE to the double check MODE_GLOBAL condition on Settings and
PhoneToggler.

Integrated patch by Danny Baumann to make PhoneToggler accept the same
values as are configurable in settings, from change:
http://review.cyanogenmod.com/#change,14120

Tested-by: Emerson Pinter
Signed-off-by: Emerson Pinter <dev@pinter.com.br>

*** Settings.java and PhoneToggler.java original authors:

commit 3e6b2ca4c969aedeefa9a10bb85e9c52bc43a574
Author: Emilio López <turl@tuxfamily.org>
Date:   Wed Sep 14 23:50:06 2011 +0000

    Phone: Double check mode before changing, part 2

    A modem might report world phone mode when it really is only GSM or
    CDMA capable, making the system switch to an invalid mode which
    will later break the telephony code.
    This simple check enforces the world phone overlay which is already
    in place and will only consider it a correct value in that case.

    This complements a commit with the same title by applying the same
    logic to another code path that uses similar checks.

    Change-Id: Ib7332511a693d40f53a79ba98844c9117871228a

commit 19215c8f614e30211b2aca1512bb8444da55bdda
Author: Emilio López <turl@tuxfamily.org>
Date:   Wed Sep 14 23:50:06 2011 +0000

    Phone: Double check mode before changing

    A modem might report world phone mode when it really is only GSM or
    CDMA capable, making the system switch to an invalid mode which
    will later break the telephony code.
    This simple check enforces the world phone overlay which is already
    in place and will only consider it a correct value in that case.

    Change-Id: Iedbc529497b2779f3a12ff56ca1b028cc9434227

commit 0d396f79514173e06c5334a40f23090933e0a806
Author: piaf <piaf@mediacenter-desktop.(none)>
Date:   Tue Aug 3 00:56:09 2010 +0100

    Added permission control for the 2G/3G switch

commit 5c85d5417a67b02be895a8878c7fa86bc992cd8e
Author: Mediacenter <mediacenter@mediacenter-desktop.(none)>
Date:   Sat Jul 31 01:45:03 2010 +0100

    Added support for Changing Phone network mode
    Todo: Add permission control

Change-Id: I84db8082b4e35262f1c6cdb8d1156f3cbf997a99

Conflicts:

	AndroidManifest.xml
	res/values-cs/strings.xml
	res/values-de/strings.xml
	res/values-es/strings.xml
	res/values-fr/strings.xml
	res/values-hu/strings.xml
	res/values-it/strings.xml
	res/values-ja/strings.xml
	res/values-ko/strings.xml
	res/values-nl/strings.xml
	res/values-pl/strings.xml
	res/values-pt/strings.xml
	res/values-sk/strings.xml
	res/values-sv/strings.xml
	res/values-tr/strings.xml
	res/values-uk/strings.xml
	res/values-zh-rCN/strings.xml
	res/values-zh-rTW/strings.xml
	res/values/strings.xml
	src/com/android/phone/MobileNetworkSettings.java
PhoneToggler: Fix toggler on LTE+GSM phones

NT_MODE_LTE_GSM_WCDMA was missing from the lists of acceptable
network modes

Change-Id: I6c3c38d63902c1c59cfa2e61ed5d8bcdd5bcb5f0
packages/apps/Phone: Dismiss previous dialog before updating network list

* After the network list is updated, the previous
"searching" dialog needs to be dismissed
even if the activity is paused.

* Manual network search query and responses are not synchronous.
This leads to multiple responses being processed consecutively.
A dialog is cleared on receiving the first response
and subsequent responses through exception when attempting to dismiss
the same dialog. Ignore the exception thrown by
dialogs as it is not benign.

Change-Id: Icc092b093af04ddfb15b2e5b30ac123577eab05c
Crs-Fixed: 319580, 326736
Remove  stale DELAYED_CLEANUP_AFTER_DISCONNECT

During phone switch due to RAT change,
any pending DELAYED_CLEANUP_AFTER_DISCONNECT
message in InCallScreen should be dropped.
If they are not dropped they will be accessing destroyed
phone objects even after phone switch.

Change-Id: Iec801f4150fbbcd36aaa3e207eb116c9597ba2c2
CRs-Fixed: 370584
Phone: Shows the list of the status PLMNs

Shows all the list of the PLMNs available but does not
highlight the status (unknown,available,current,forbidden)
PLMNs amongst them.

Shows the list of status (unknown,available,current,forbidden)
PLMNs.

Change-Id: If9986634116d3ebea8bf4a12882ac0b7adb8e420
Phone: Ignore touch during network operators search

When network search is in progress, the progress dialog is
dismissed if user taps the screen. This in-turn cancels
manual search and switches to the previous screen.
This behavior can be avoided if the dialog property is set
to ignore user touch events.
If required BACK key can be used to cancel search and move
to previous screen.

Change-Id: I00da1dfec78498d2f35f6bb5d49e42bb3ad43cc2
CRs-Fixed: 367631
Phone: Handle NullPointerException for Call Waiting functionality.

Display the processing dialog as soon as user enters "Additional
Call Settings" screen.This will avoid the user from clicking
on the checkbox, which is resulting in null pointer exception.

Change-Id: Ia5f22faf60ba3c680587f1376d0245ba400f6d46
CRs-Fixed: 303517
Phone: Fix to answer MT call when USSD session is on progress.

On receiving MMI Complete event for USSD cancel operation, InCallScreen
session was being ended. Changes done to move InCallScreen to
foreground after cancelling an USSD session if the call state is
not IDLE.

Change-Id: Id4c44152b64a6ff3334df31d27ccb64b303055a9
CRs-Fixed: 304191
Phone: Fix for emergency call display issue.

The callerInfo is not updated with connection address in case of
emergency and voice mail numbers.

Change-Id: If7187b5667dd469b96b4d30c25a2638e865d628c
packages/apps/Phone: Set initial focus for SimContacts.

Unable to navigate the contacts stored in SIM card thru keypad due to there is no intial focus.
Add mInitialSelection to zero, which is used to set the initial focus.

Change-Id: I97b7f5f085cdb97470a21171f00bde44a3ac73d3
Display IncallScreen when calling using AT command

Change-Id: Ia5cf3a54eebcc75677c8acdd4a21505ef0c86faf
Add property for RIL to know if phone is in Airplane mode

Set the airplane mode property for RIL to read on boot up to know
if the phone is in airplane mode so that RIL can power down the
ICC card.

Change-Id: Ic817e885bb02faa2a4183d9b16878f7851af5bde
CRs-fixed: 325540
Telephony: Add SAFE_WIFI_CHANNELS protected broadcast

Change-Id: Ic741b61d1035ede21d6549427b34c8a04a937de9
Fix airplane mode issue introuduced by a change picked up from
ICS to JB

Fix the issue introduced by the change 141931.

Change-Id: I5a004d9d2a95587acb57ff4054d4ba03f282ca5d