LegacyUSB: Squashed commit with updates for 4.2

LegacyUSB: add overlay for UMS lun and use existence of lun to enable legacy USB

LegacyUSB: Add support for legacy USB implementations

Rebased for ICS 4.0.3

Option to hide Adb notification icon (framework) - authorship belongs to Rick C

Change-Id: Id14f70f7e21b689c08cadef69f69da711c7dc566

Conflicts:

	core/res/res/values/config.xml
	core/res/res/values/symbols.xml

Conflicts:

	core/res/res/values/symbols.xml

Conflicts:

	core/res/res/values/config.xml
Add UsbDebuggingManager and UsbDebuggingActivity to LegacyUsbManager

The UsbDebuggingManager listens to adbd requests and displays a dialog
when the public key authentification fails, for the user to confirm if it
wants to allow USB debugging from the attached host. If the user chooses
to always allow USB debugging, the UsbDebuggingManager writes the public
key to adbd's config file so that the public key authenfication succeeds
next time.

Change-Id: I819b8a0428ba34b68dadeb9fa67c53abb9a85fbc
services: Fix tethering (softap) startup.

The interface must be started after firmware reload. If it's not
started, the driver is unable to configure it.

Thanks to Emerson Pinter <dev@pinter.com.br> for the jb version of this.

Change-Id: If8819d463d8c3820e2e159cd365f8ba4af8c0064

Conflicts:

	core/res/res/values/symbols.xml

Conflicts:

	core/res/res/values/symbols.xml
frameworks/base: support devices with SoftAp that don't require firmware reload

Partial forward port from ICS.
Original Change-Id: If2db6e8ce675c3214ce645231c7a354f41ea0cc6

Change-Id: Iacb2498ec0f567a0a7c4e0dbf9127b70f09223bd

Conflicts:

	core/res/res/values/public.xml
	services/java/com/android/server/NetworkManagementService.java

Conflicts:

	core/res/res/values/symbols.xml
Volume rocker wake and volume rocker music control

Conflicts:

	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Port "Framework Track Control : Switch from broadcast to audio service"

Ordered broadcast is unreliable.
Switch to using the Audio Service's dispatchMediaKeyWithWakeLockToAudioService
as it sends the event to the correct receiver.

Patchset 2 - Switch power widgets over as well
Patchset 3 - Rename handler 'what' message to be more consistent
Patchset 4 - Fix renaming mishap

Change-Id: I022720a551b94637f7b16258dfb6a22234bcb736

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Lockscreen VolCtrls : Don't raise volume on skipTrack

Set mIsLongPress to true when longpress was successful to avoid
volume from being changed on release

Change-Id: I874f7d66248e30535dddfec53ddd299718e3fa3d
Add 2 APIs (suspend and resume) in MediaPlayer

- API:suspend() will just pause the player and release all the decoders
- instead of release the whole player
- API:resume() will just init the decoders again
- Add a check in onVideoEvent()
- to make sure the first seek operation will seek the next i-frame

Change-Id: Ia4716f7fb3a412eb19c6ded9c0f3056d0490546c

Implement the suspend/resume operation in VideoView

- Using the new APIs in Mediaplayer
  to implement the suspend/resume operation in VideoView
- Add a new status "SUSPENDED"

Change-Id: I00f9daa2d34b3b125b8c3b968bc581708ab2cdf4

HTML5 VideoView change to use the new APIs: suspend/resume

- While suspend and resume, using the new APIs in Mediaplayer

Change-Id: I8530b533501607f681145853d7923fdf2009150b
webkit: Manage video playing state properly when browser goes to background

Issue: Browser App Video streaming not pausing while pressing home Button

Fix : When the Browser goes to the background while the video is playing
      in the fullscreen, the fullscreen mode is exited. While exiting
      the full screen mode the video state is handled properly. So that
      there is no playback in the background.

CRs-Fixed: 509225

Change-Id: I32c306923d2638731d34d216cf006050ce4ad825
Generalize vectorization of Bitmap operation

 * All NEON-capable processors can support this.

Change-Id: I13d448e5864ea804f66cd1bbb93360cb8c0f0806

Conflicts:

	core/jni/Android.mk
Fix merge
Fix merge
fix merge
vendor services (to arrays.xml)

Conflicts:

	core/res/res/values/arrays.xml
	services/java/com/android/server/SystemServer.java

Conflicts:

	core/res/res/values/arrays.xml
	services/java/com/android/server/SystemServer.java

Conflicts:
	core/res/res/values/arrays.xml
	core/res/res/values/public.xml
	services/java/com/android/server/SystemServer.java

Conflicts:

	core/res/res/values/arrays.xml
	services/java/com/android/server/SystemServer.java
Fix cherry-pick
add STREAM_FM
Add fm volume control

Change-Id: I8b3a10e3037c5bb3c7c044b86ddf9de5045d3e9d

Conflicts:
	core/res/res/values/strings.xml
	media/java/android/media/AudioService.java

Conflicts:

	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
	media/java/android/media/AudioService.java