Phone blacklist: block private numbers functionality

Change-Id: I3a8ef9b12e67892a0cb24e2af4b0f26c68965e07
Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	res/values/cm_strings.xml
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
Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	res/values/cm_strings.xml
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
Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	res/values/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
Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	src/com/android/phone/Blacklist.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
Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	res/values-it/cm_strings.xml
	res/values/cm_strings.xml
	src/com/android/phone/Blacklist.java
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: Set default preference values for blacklist option

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

Change-Id: I0b2d3482d75abe9c9fc161f199782f27b9baa46b
Fix a Cursor leak

When cursor is done, the cursor must be closed to avoid cursor leak.

AOSP Merge: https://android-review.googlesource.com/#/c/57100/2

Change-Id: I627cf2c8a64a220d6fd104505b852daca0928190
Fix a Cursor leak

When cursor is done, the cursor must be closed to avoid cursor leak.

AOSP Merge: https://android-review.googlesource.com/#/c/56982/2

Change-Id: I5f750a6bb499f86d4c76da40d171e9edfe6981d2