Phone: Fix NPE in PhoneUtils::toLogSafePhoneNumber

When PhoneGlobals.DEBUG_LEVEL is set to 2, there
will be NullPointerException when receiving an
incoming call from an unknown number.

Change-Id: I2a730b891420695f3a410164e611b66cf757edc8
Signed-off-by: Bin Li <libin@marvell.com>
Phone: Forward port Add Missed call and Voicemail specific notification lights

This commit adds the ability to use the configured missed call and voicemail
light settings

Change-Id: I321f20e882b7680e5b1836342440b095b0505f9b
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
NetworkSettings: Cannot dismiss progress dialog sometimes.

When "Load Network List" dialog is shown, move
NetworkSettings activity to backgroud by pressing
HOME key. After several minutes, go to
NetworkSettings again. Network list is shown under
the progress dialog, but user cannot dismiss the
Progess dialog.

Steps to reproduce this issue:
1) Settings->wireless & networks->mobile networks;
2) Press "network operators";
3) "Searching" progress dialog is shown;
4) Press HOME key to return to home;
5) Wait several minutes;
6) Goto "network operators" activity again.

Expected result: "Searching" dialog is dismissed;
Actual result: "Searching" dialog is still shown.

Change-Id: Ib411a89be2bcf907e6cca4c1d5693f8445f2d681
Signed-off-by: Bin Li <libin@marvell.com>
Phone: IncomingCallWidget shows indefinitely sometimes.

This issue happens when following 3 conditions meet.
Usually cpu load is high at the moment.

1) Two ACTION_UP events on glow view is triggered;
2) Time from press the answer button to call state
   changed is more than 500ms;
3) Aniation of HideIncomingCallWidget did not start
   before handle 2nd event

Reset mIncomingCallWidgetIsFadingOut to false while
cancel HideIncomingCallWidget Animation, next time
HideIncomingCallWidget will be excuted when call
state is changed.

CQ00024038

Change-Id: I44ad728cdd624d2053397f463e44024527671840
Signed-off-by: Bin Li <libin@marvell.com>
Advanced phone settings.
- Vibrate on answer
- Vibrate on call waiting
- Vibrate on hang up
- Vibrate every 45 second
- Vibrate at the second mark of every minute during outgoing calls

Conflicts:
	res/values/strings.xml
	src/com/android/phone/PhoneUtils.java

Change-Id: I33f0a6e735f15bee58c6fb91713d7660c81cb87d
Signed-off-by: Paul Beeler <sparksco@gmail.com>