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>
Flip to mute/dismiss call - CM

This patch is based on http://review.cyanogenmod.org/#/c/29894/11
to provide easy mute and dismiss functionality for the phone application.

Available actions:

0: no action
1: mute ringer
2: dismiss call

Patch Set 14: move attachListeners() to a better place to ensure
that it actually gets called.
Patch Set 15: corrected styling issues
Patch Set 16: further corrections
Patch Set 17: remove unused import
Patch Set 18: fix issue when action triggers while facing down
Patch Set 19: detach listener when call is answered
Patch Set 20: move detachListeners() to a more approiprate place
Patch Set 21: reset event listener
Patch Set 22: use the accelerometer to get the orientation data

Change-Id: I1895a1ce985a2f393ea890fd13531310af611498

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

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