Merge commit '8cb39de03aef6097a90033600d11a60ae000a6e4' into HEAD

* commit '8cb39de03aef6097a90033600d11a60ae000a6e4':
  Remove RS_KIND from vertex arrays types. Legacy vertex programs now bind by name just like the user programs. This removes the need for two different ways of declairing the same information.
Merge commit '6164ef1b78602a41f81b02355cfbe8516837dcd6' into HEAD

* commit '6164ef1b78602a41f81b02355cfbe8516837dcd6':
  Expose canZoomIn and canZoomOut for WebView.

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

* commit 'f9a166ab8236b5824049f5103c4365e12b52b4ac':
  Fix 2571872: Showing an error message on wrong password/pin entered.
Merge commit 'ec9a104ce99b0338d13b77ed5d8fdc8a9cbc7146' into HEAD

* commit 'ec9a104ce99b0338d13b77ed5d8fdc8a9cbc7146':
  If the WebView can't be scaled, don't check for double tap. This will make the click event on the non-scalable page much responsive.

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

* commit '755fd617258d3f1731b2829d681cab680db0fdd5':
  Prototype Content Provider support for MTP/PTP devices.
Merge commit '8999515f66df3c856af4e51bb26da1cb799b14f4' into HEAD

* commit '8999515f66df3c856af4e51bb26da1cb799b14f4':
  Use stride for source and target buffers when copybit is enabled.
Merge commit 'af39e4b8022c5ac66faf441c38a71387ca20b300' into HEAD

* commit 'af39e4b8022c5ac66faf441c38a71387ca20b300':
  Update EmbeddedZoomControl to use new ZoomManager methods.
Merge commit '812ccbeb3ce55c50463fda1d161b2eeed8b19cd2' into HEAD

* commit '812ccbeb3ce55c50463fda1d161b2eeed8b19cd2':
  Add new hardwareAccelerated manifest attribute to enable HW drawing.

Conflicts:
	api/current.xml
	core/java/android/view/ViewRoot.java
Merge commit '4de2d4d1545c98a34ab7ac00fbcacbe08719c2a5' into HEAD

* commit '4de2d4d1545c98a34ab7ac00fbcacbe08719c2a5':
  Remove stale and inappropriate dependency.
Merge commit 'ab67fb9a80057453e90e29ef72d558d130287053' into HEAD

* commit 'ab67fb9a80057453e90e29ef72d558d130287053':
  Disabble vertex logging. bug 2734616
Merge commit '23241887515ed77687c23e29a4a3ffff671666bd' into HEAD

* commit '23241887515ed77687c23e29a4a3ffff671666bd':
  Fix IndexOutOfBoundsException when measuring text.
Merge commit '92ce5734b52ef014c80cc6335112a027188b3eb6' into HEAD

* commit '92ce5734b52ef014c80cc6335112a027188b3eb6':
  Canvas.drawVertices: correct color range-check
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