Phone: Add Blacklist functionality

Original code written for CM7 by Cytown, Cyanogen and nhnt11.

Modified for CM10.1 by Danny Baumann and dvtonder.
Drawables by Björn Lundén

Change-Id: Ib6b8ed4b3410d8553ca061086ba7bcf3b059b1d0

Conflicts:
	res/values/strings.xml
	res/xml/call_feature_setting.xml
	src/com/android/phone/CallFeaturesSetting.java
	src/com/android/phone/CallNotifier.java
	src/com/android/phone/PhoneUtils.java
Phone blacklist: block private numbers functionality

Change-Id: I3a8ef9b12e67892a0cb24e2af4b0f26c68965e07
Fix rebase derp.

Change-Id: Ie009eda79be04a4eb76272bbfdf4766e642d0918
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: I2ce7659d5f721368000dca254f9d1a2e01ea8379
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: I471cad405aabe055f1757831ce7293ee182b3e6a

Conflicts:
	src/com/android/phone/NotificationMgr.java
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: I0497dff62f5278da6bd5d441b8359294a9b2afd3

Conflicts:
	res/values-it/cm_strings.xml
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
Fix up 'add to blacklist' button behaviour

- Don't crash in landscape, as button isn't present in landscape layout
- Only show it for incoming calls with number (it makes no sense to
  blacklist outgoing calls, and calls without number can't be
  blacklisted on a per-call basis anyway)

JIRA: CYAN-865
Change-Id: Ie98e09abc4f4e62e67ccf12322e2a0cea0e26d60
Hide additional blacklist separator

When there is no blacklist func enabled we dont need
2 separators at the end of row

Change-Id: Ieef2d2b5f553c2b4dd48ae528e7a0de185f4b2ad
phone: Enable the blacklist by default

Change-Id: I0b2d3482d75abe9c9fc161f199782f27b9baa46b
phone: Set default preference values for blacklist option

Change-Id: Iac33c84e19f30dd78226989977af90891d65018a
Make contacts app aware of blacklist setting (2/3)

Also fix up notify option key while we're at changing the user's
settings ;-)

Change-Id: I51069235693ee9fd055d11e62f8f152ff7bc0210