Make "SD Card removed" notification dismissible if the removed SD Card is not the primary storage

The Galaxy S uses the "external SD Card" as the extended storage
and it the notification should be dismissible as it's okay not
to have it.

Additionally, this patch also not hide the USB storage mount dialog
if the removed storage is not the primary storage

Change-Id: I524b294c57ba80f19cf1af808af65ce1308f5a0b
Hiding media from folder with .nomedia file.

This patch allows media files present in a folder with
a .nomedia file to be hidden after these files have been
previously indexed.

Bug: http://code.google.com/p/android/issues/detail?id=24162

Change-Id: Ia42133d0a7b119c76b5eaaffabd054aa1a739817
Signed-off-by: David Sobreira Marques <dpsmarques@gmail.com>
AudioManager: Handle KEYCODE_VOLUME_MUTE

Implements muting in KeyguardViewBase and PhoneWindowManager too.

Change-Id: I732ac5c918ed66ebd9376ccad7bcc0cf88cad778
Add option for switching between UMS and MTP/PTP mode. (1/2)

This adds support for switching between UMS and MTP/PTP.
Framework part (this part) will only enable UMS if the config setting is set.
Standard is to enable UMS if the primary volume supports UMS.

p2: Fix compile error
p3: Some code styling
p4: Fix mysterious bug where USB notification is not fired when switching from UMS.
p5: Revert last commit.

Change-Id: I753b7dd3823958da1b043ca44b50118d67637cc1
use utf8_length() instead of local function, isValidUtf8()

utf8_length() from libutils returns -1 when source not contains
valid sequence for UTF-8. Fixed to use it and removed the local
function isValidUtf8().

Change-Id: If2834ce1d1ae07fd8526ce8bc5df3fd3f44e85c8
Signed-off-by: Homin Lee <suapapa@insignal.co.kr>
Change default Wallpaper

Change-Id: I2fb095dd0f280181e504ebdc91562387464cb3bc
Frameworks/SystemUI: Hide expanded dialog when screen is off

Hide the expanded dialog while screen is off. Otherwise it
causes continuous buffer updates to SurfaceTexture
even when SCREEN is turned off and while In-Call causing a
spike in power consumtion. This fix ensures that the
power consumption is kept to a minimum in such a scenario.

CRs-Fixed: 339815

Change-Id: Ib9154528d4f88ba12ca234be7f929a61ed098be7
Add Hot Reboot Options to Power Menu

Conflicts:

	core/java/com/android/internal/app/ShutdownThread.java

Change-Id: Ib2c280eb50e53db2bfaeb0bef5a416eaed230d3d
Add Suspend Mode to Power Menu
Allow configuration of DHCP lease time in tethering

Make lease time for DHCP offers configurable via
Settings.Secure.TETHER_LEASE_TIME which is either the lease time in
seconds or Settings.Secure.TETHER_LEASE_TIME_DEFAULT for the default
lease time defined by netd.

This change depends on Ic65818fdb472a49c72fb56b1ad3ac33e4136a9a4 and
I0b369889f7f790f43f9c89da0c4e133a342debd7.

Change-Id: I2a83242bcacccb55780716845d4f67728612cc74
audioflinger: Optimze ditherAndClamp with ARM NEON

Change-Id: Ifc436e39f15b103cec404e8a81fa8b8a6b5f0e5f
Add Flip to Mute Ringer (framework part) 1/2
frameworks/base: Fix aliasing violations

This makes it possible to build the code without
disabling the strict-aliasing optimization in gcc.

Change-Id: I5b3b01406c5c91e8659e84aa13ac7af6f89b2795
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:

	opengl/libs/GLES2_dbg/src/server.cpp
Distance max set incorrectly

The distance max used in the MotionRange is calculated
incorrectly.

Looks like a copy-and-paste error.

Change-Id: I2b6daab088df0fb69e05682b67ca33524ff35987
GCC patches for CM9
FLACExtractor: Don't check size of first STREAMINFO

The size of the first STREAMINFO is not necessarily 042, as some
encoders may fill it with padding. The metadata parser handles
premature EOF just fine, so we don't need to be strict about it.

Change-Id: Ic077633c2622bb54402cdd8f04d30cd2b7776727
Add support for using a custom USB management service.
Add support for USB tethering interfaces that are always present.

Previously, the state machine assumed that the USB tethering interfaces
appear/disappear when reconfiguring USB or changing the USB status. Add
some fallback handling for devices where this isn't the case.
Some fixes for custom USB service handling.
Workaround for Reboot with Stock Music App