Forward porting CM10 Advanced Phone Settings

Squash of http://review.cyanogenmod.org/#/c/22186/
and http://review.cyanogenmod.org/#/c/23113/

Change-Id: I3674aa2b4cb6c1386458b8bd95566d43dc8cbedd
Port Russian Translation from CM10 to CM10.1-Phone

Removed whitespace
Clean up in-call vibration implementation.

Change-Id: Ic91e8be169f7ba62ea2dc83dee2215df8a59c915
Phone: Add Blacklist functionality
Clean code
Phone blacklist: block private numbers functionality
Change-Id: Ib271a79889e6e5ade6107c024301b045596ee151
Signed-off-by: ChampionSwimmer <android@championswimmer.tk>
Allow notification expansion if multiple calls were missed or
blacklisted.

The expanded notification shows a list of the missed/blacklisted calls (up to 6) in
that case.

Change-Id: I63db3eb6e773119a0bf8c0c430fcaa6f32d5e6f2
Signed-off-by: ChampionSwimmer <android@championswimmer.tk>
Phone: Add blacklist unknown numbers functionality

	This way you can choose to block numbers not
	in your contact list

	Add counters to missed and blacklisted calls
	notifications

Patchset 4:
	- Remove counters for a single call
	- Reformat
	- Move the dependency of the "unknown numbers" preference
	  under that of "private numbers", that is the logical
	  parent

Patchset 5:
	- Fix formatting

Patchset 6:
	- Solve a bug in which a private number would be blocked
	  as unknown, with the message "Unknown number: 0000"
	- Code the dependency between the two preference sets,
	  "Block private numbers" and "Block unknown numbers"
	- Make some code lines cleaner

Patchset 7 - 13
	- Some more corrections, spaces and tabs fixing.

Change-Id: I02ff2eaed4d9b8e60c968349620bf100534390f2
Signed-off-by: ChampionSwimmer <android@championswimmer.tk>
Phone: Add summary to block private numbers functionality

This commit adds a summary text to the block private numbers
functionality to avoid ugly ellipsizes in languages where the
translations get longer (e.g. German).

Change-Id: Ie57cb2a41ec6689855c1d6879f66f439bb9e8b7a
Signed-off-by: ChampionSwimmer <android@championswimmer.tk>
Do not attempt to do any matching against the '0000' number.

Additionally, uncheck 'block unknown' when its dependency 'block
private' is unchecked to make the shared pref values follow the expected
behaviour.

Change-Id: Id62e45a374c8c104924e6397f90c274ec9726cb8
Port network mode toggle from CM10

	commit 43575664b23d2ea1766210cea99f184e1732860b
	Author: Ricardo Cerqueira <github@cerqueira.org>
	Date:   Fri Apr 27 17:39:37 2012 +0100

	    PhoneToggler: Fix toggler on LTE+GSM phones

	    NT_MODE_LTE_GSM_WCDMA was missing from the lists of acceptable
	    network modes

	    Change-Id: I6c3c38d63902c1c59cfa2e61ed5d8bcdd5bcb5f0

	commit d1dc25f1b37fca42ce2834fe3bb3217800422f7e
	Author: Emerson Pinter <dev@pinter.com.br>
	Date:   Sat Feb 18 22:02:22 2012 -0200

	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

Change-Id: I4b68ec178eafdd6a50fa111dd71cc5fa38f3968c
Signed-off-by: kecinzer <kecinzer@gmail.com>
Merge remote-tracking branch 'android/master' into jb-mr2-jwr66v-mod

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