Save network mode on GSM devices.

We save the mode in OnClick and handleGetPreferredNetworkTypeResponse
so the preferred network mode tracks the UI as best as possible.

On GSM devices when "Use only 2G networks" was
checed in Settings > More > Mobile Networks the
value wasn't saved. Thus when rebooting the mode
would revert to the previous value.

Looking at the history, it has been this way a
long time, but it must have worked because the
radio preserved the value, returning when the
current PREFERRED_NETWORK_TYPE was requested.

With ICS Samsung upgraded the Crespo radio and the value
doesn't always appear to be preserved. In any case
its better for the framework to preserve the value
rather than relying on actions of the many radio
implementations.

Bug: 5764203
Change-Id: I9ed5db4e5c2db01cdd54bc1cc36395326b209fe3
Allow only NT_MODE_GSM_ONLY or NT_MODE_WCDMA_PREF

Bug: 5771503
Change-Id: Ic69440d6dd32358182a5658039c702649ae60315
Import translations. DO NOT MERGE

Change-Id: I6b1b7ed4c2d2263c6c4dbc4485d96b094915ae78
Correctly hide in-call panel when dialpad is shown

Cherry pick of Ia673f7c08abfdf240c792ce6a457c743f0db0b8e

Fixing issue 5497680 Device shows background Incall screen for
fraction of sec in DTMF call pad screen, if power button is turned
ON.

We're calling setInCallScreenMode(NORMAL) from onResume(), which
should take care of dialpad status correctly.

Bug: 5497680
Change-Id: Ib8346cfd5b1c98190d66603b24ceddf234754496
Correctly hide in-call panel when dialpad is shown

Cherry pick of Ia673f7c08abfdf240c792ce6a457c743f0db0b8e

Fixing issue 5497680 Device shows background Incall screen for
fraction of sec in DTMF call pad screen, if power button is turned
ON.

We're calling setInCallScreenMode(NORMAL) from onResume(), which
should take care of dialpad status correctly.

Bug: 5497680
Change-Id: Ib8346cfd5b1c98190d66603b24ceddf234754496
Disable horizontal detection during phone call

Aggressive horizontal orientation ignoring of prox should only be when
outside of the phone call. There is no UI at the top of the screen in
the call except notifications.

Bug: 6006756
Change-Id: Idc615ebcfa96ed59a71c2fb1e67e9a905e1cc2c8
merge in ics-mr1-release history after reset to ics-mr1
Introduce vibration options for voicemail notification

Bug: 6014374
Change-Id: I1e0dff2e958b804e140b2d0d1d286f3392efecd1
merge in ics-mr1-release history after reset to ics-mr1
Fix in-call notification icon flicker when screen goes on/off

We currently suppress the "in-call" status bar notification if the
InCallScreen is the foreground activity.  This helps reduce clutter in the
status bar, since it's already obvious that you're on a call.

Unfortunately, when the screen is off (like when the prox sensor is
active), the InCallScreen is technically not the foreground activity, so
we *were* enabling the status bar icon in that state.  This was causing a
brief flicker of the status bar icon any time the screen turned on during
a call (like when pulling the phone away from your face.)

The fix is simple: just suppress the notification when the screen is off.
This way the transition from "screen off" to "InCallScreen in foreground"
doesn't cause the notification to change state.

TESTED:

  - While on a call, with in-call UI visible, trigger prox sensor several
    times
    ==> no glitches; icon is never visible.

  - While on a call, bail out to Home screen, then, trigger prox sensor
    several times
    ==> no glitches; icon is steadily visible whenever the screen is on.
        (Specifically, this test shows that this CL has no effect if some
        other app is active.  That's because once you bail out of the
        in-call UI, the updateInCallNotification() method doesn't even get
        called when the screen goes on and off; it's only called for phone
        state transitions, or when the InCallScreen gets paused or
        resumed.  So the notification remains enabled the whole time.)

  - Launched an outgoing call
    ==> no glitches; icon doesn't appear at all (even as a brief flicker)
        during the transition from the dialer to the InCallScreen.

  - Incoming call
    ==> no glitches; icon is visible while ringing (which is WAI),
        disappears cleanly when you answer the call.

Bug: 6021909
Change-Id: I43625f4f69ce75c662c211dadc7292fb14641073
Merge "Fix in-call notification icon flicker when screen goes on/off" into ics-mr1
Setup a flag to detect when the screen is on and we are in call mode.

Fixes b/6029570 Proximity turns screen on and off repeatedly for no reason, when device is flat

Change-Id: Ie727dd779bb957cd6da948dbe1584a4382d9935a
Import translations. DO NOT MERGE

Change-Id: I5753adbd0904a4c9ac3d8780421ef773fd67909a
merge in ics-mr1-release history after reset to ics-mr1
mute/unmute fix for vibrants
Czech translation for missing strings.
Merge pull request #6 from kecinzer/master

New czech translation for some missing strings
Merge tag 'android-4.0.4_r1.1' into HEAD

Android 4.0.4 release 1.1

Conflicts:
	res/values-cs/strings.xml
Czech translation for missing strings.

Conflicts:

	res/values-cs/strings.xml
Quiet Hours (3/3)

Change-Id: I7392ffcdb2363c54292d1783120fd1dde54448c4
Signed-off-by: sethyx <sethyx@gmail.com>