Phone: Disable accelerometer sensor while in-call and screen UI is off

During an active ongoing call, on targets that support proximity sensors,
there is an approximate spike in the current waveform in the order of
1 Hz. Krait is woken up frequently by the sensors even when the Screen UI
is off while in-call. This fix ensures that by disabling the listener
in such a scenario (In-Call + Screen UI turned off) there is no spike
in power consumption

CRs-Fixed: 336244

Change-Id: I076f4674e8368267393ab181491eaf41239b7b02
Phone: Prevent immediate screen-off after call-answer

Acquire the full wakelock with ON_AFTER_RELEASE flag to
ensure screen stays on for a little longer. Therefore
prevent immediate screen-off after call-answer

Change-Id: I834dff823bf2c2b4bbdd8993b5f618a20c1b8b90
CRs-Fixed: 400318
PhoneApp: New in call proximity sensor option

Background: AOSP default behavior is to turn off the proximity sensor when the user have a wired or bluetooth headset connected to the device.

Added option to keep the proximity sensor on during calls using a headset. The option is uncheckd by default, preserving AOSP behavior.

Navigate to Phone -> Settings and check the option Keep proximity sensor on.

Commit includes option in english and translation to portuguese.

Change-Id: I5b09c425f40f918fa616a1c45e6765d4f5c239ab
Phone: Remove strings without default translation

Change-Id: Iaf3d71c1aa64c4298ae712dfdcc421455bfd0503
Phone: Updated italian translation

	Added option to keep proximity sensor on

Change-Id: I13a1f726a66163bec0bb47d77d4d9bb76266c021
Phone: updated romanian translation

Change-Id: Ia48d09a554c42c70206f07d5a8c6f393b5dab4d4
Merge "Phone: Updated italian translation" into jellybean
fix occasional ring volume reset

When PHONE_INCOMING_RING message accidentaly arrives to CallNotifier
immediately after the user answers the call, the call state is still
RINGING instead of OFFHOOK, so ring plays again, causing audio
driver to switch from just entered IN_CALL mode back to RINGING mode,
which can lead to completely mute phone call - no side of call can be
heard.

Above also affects increasing ring feature.

Prevent this scenario by calling silenceRinger() instead of stopRing()
at the beginning of answerCall(), so not only the current ring is
stopped, but also the possible next ring prevented.

Change-Id: I358ffd93f4233ab1a957af18ec40edc0fef04014
PhoneApp: Option to not lock automatically when a call ends (2/2)

Depends on http://review.cyanogenmod.com/23251

When a call ends while the screen is off the phone is automatically locked. This commit adds an option to disable this behavior.

Navigate to Phone->Settings and uncheck the option Lock when call ends under the advanced settings section.

Commit includes option in english and translation to portuguese.

Patch Set 3: Android conventions compliance

Change-Id: Ic0894bc5095fc8263ca350fb6b7ffcad494a4050

Conflicts:

	res/values-pt/strings.xml
	res/values/strings.xml
	res/xml/call_feature_setting.xml
Support GSM AT commands for SMS over bluetooth (2/2)

Modifications required to support the older GSM "AT+" commands for SMS over
the bluetooth transport for use with car radios, etc. This must piggy back
on the existing handsfree code as the spec uses that channel for the commands.
(2 parts: frameworks/base and packages/apps/Phone)

packages/apps/Phone:
hooks into BluetoothHandsfree for watching/sending AT commands via
BluetoothSMSAccess, and also for the special PDU handler done at the JNI
level (see frameworks/base changes.) BluetoothSMSAccess contains all the
functional code for handling the actual SMS related AT commands and the
contentObserver for the SMS database.

Change-Id: Ibb7cf03164cd9ed5e4b8139d137a28c0e0fd986e
Signed-off-by: Gary Dezern <garyd9@gmail.com>
fix occasional ring volume reset take2

Change-Id: If3c3f6fb951d7179c5058cb5db4ef1ce178aa88f
Update Russian Translation-Phone-CM10
Added hungarian translation for proximity sensor settings

Change-Id: I882e52e266f24ea11c0afeaf28fd6e2ea90aeafe
Merge "Update Russian Translation-Phone-CM10" into jellybean
Merge remote-tracking branch 'cm/jellybean' into jb-dev