Merge commit 'e29f3e74f71ea730519ff8ae1d8dd4c1630bbaf9' into HEAD

* commit 'e29f3e74f71ea730519ff8ae1d8dd4c1630bbaf9':
  Begin using reflected files.
Merge commit 'c857740f242169f2ca7fd42f0d1268661b399ad6' into HEAD

* commit 'c857740f242169f2ca7fd42f0d1268661b399ad6':
  Adding support for minimum number of non letter characters.

Conflicts:
	api/current.xml
Merge commit '5e4d9a04fdf9bf28650853cb19a1b06b0d543c51' into HEAD

* commit '5e4d9a04fdf9bf28650853cb19a1b06b0d543c51':
  Add invariant check for stylesString size
Merge commit '14f1eb57db8c2b541a7e110cbf5a4eaf9cacc6b3' into HEAD

* commit '14f1eb57db8c2b541a7e110cbf5a4eaf9cacc6b3':
  Should accept "application/vnd.wap.multipart.alternative" message.
Merge commit '293c360ffe2980b4d5d2d7c4aff69166ff265e9c' into HEAD

* commit '293c360ffe2980b4d5d2d7c4aff69166ff265e9c':
  Move pinch-to-zoom logic into ZoomManager.

Conflicts:
	core/java/android/webkit/WebView.java
Merge commit '964be41e9eacb7011c80cf348ef6de52a5d0a18a' into HEAD

* commit '964be41e9eacb7011c80cf348ef6de52a5d0a18a':
  Fix incorrect calculation of start and end indices of changed text
Merge commit '369aca27ec44274d9e70e91513914fa2564c6aef' into HEAD

* commit '369aca27ec44274d9e70e91513914fa2564c6aef':
  Consolidate common zoom code and tighten access to some ZoomManager variables.

Conflicts:
	core/java/android/webkit/WebView.java
Merge commit 'b31e84bc4513e46bac4be8f8d0513f78e360fb11' into HEAD

* commit 'b31e84bc4513e46bac4be8f8d0513f78e360fb11':
  Add Fragment option menu APIs.

Conflicts:
	api/current.xml
Merge commit '35eef702b195a9546fbf9e0293641cf6eef025c5' into HEAD

* commit '35eef702b195a9546fbf9e0293641cf6eef025c5':
  Remove the unused demo data set stuff.

Conflicts:
	services/java/com/android/server/SystemServer.java
Merge commit 'fb3a35e586c08c74a8f9a0c332c9e40753c095c5' into HEAD

* commit 'fb3a35e586c08c74a8f9a0c332c9e40753c095c5':
  Fix the build.
Merge commit '96d719c91708fda5abc0442fcf6d275584d2cad6' into HEAD

* commit '96d719c91708fda5abc0442fcf6d275584d2cad6':
  Remove float8/16 from RS type list. We will not have time to work through ABI issues for these types on arm for our ship date.  Can be re-added later.
Moved the DOWNLOAD_CACHE to /sdcard/.cache
 (Or whatever is exported in init.rc)

Don't use DOWNLOAD_CACHE variable as this is specified sometimes in
boot images that we are unable to change, use EXTERNAL_STORAGE
instead, I understand this may cause a problem if there is none
specified, however most of the time this will not be a problem.
Reverted because it breaks LED notifications.
In particular, those which are received when the screen is on such as missed calls.

The logic doesn't make sense. Instead of using mLedNotification == null to disable the notification, it is using !mPendingPulseNotification, but if the screen is on at any point mPendingPulseNotification is set to false, which disables the notification before it has even happened.
Whatever they were trying to do by writing this code, it doesn't work!

Revert "Only pulse notification light if a new notification has been received since the screen was last turned off"

This reverts commit 2117f6fa3880e55e6a90fbd8b3a12d469c9b738b.
ProcessStats.java: Fix for bootloops.
mBuffer size was too small causing the CPU frequency array to be truncated causing exceptions and then the bootloop issue.
MAX_SPEEDS was too small, due to the additional overclocking steps.

http://code.google.com/p/oxygen-rom/issues/detail?id=507
NotificationManager/KeyguardUpdateMonitor: Charging behaviour
Only turn LED green when battery is actually fully charged, not at 90%
Also, don't display 'charged' on the lockscreen until the battery is fully charged
automatic backlight: Allow level decrease and increase
activitymanager: fix for onstartcommand
onstartcommand is not being called with a null intent, which causes services not to be restarted, in particular the EAS service.
http://groups.google.com/group/android-developers/msg/0968c394999f2967
Should resolve issue 741 providing it doesn't cause any regressions.
audiosystem: Alter audio routing policy
This will work around 2 issues.
1) the stream pause whilst media is playing.
2) the strange camera crashing behaviour when a headset is plugged in. Issue 709.
I don't think this will break anything or alter the behaviour of anything else.
NotificationManager: Don't play notification if in call
Fix for issue 779
Fix for what seems to be a typo responsible for some cases of issue 2207
(http://code.google.com/p/android/issues/detail?id=2207)

Change-Id: I61503990035718fef98e61f020fc7799e848424c