Merge (-sours) commit 'e15b35891f5d767f82d407960fbeb5c9f0a5c340' into HEAD

* commit 'e15b35891f5d767f82d407960fbeb5c9f0a5c340':
  Suppressed warnings in TextView.
Merge commit 'bef9c7a59dc020c5cdcbd555b5212ae5a10e8045' into HEAD

* commit 'bef9c7a59dc020c5cdcbd555b5212ae5a10e8045':
  Preventing cursor leaks when a query is interrupted
Merge commit '3067771f8139eb8b60cde036c63796cb4d80aa83' into HEAD

* commit '3067771f8139eb8b60cde036c63796cb4d80aa83':
  Fix bug #2772731 (Start deprecation of "url" Calendars column in favor of "eventsUrl" column)
Merge commit '345cb03315a0813ec57e44f97fc3fa4af6b3c309' into HEAD

* commit '345cb03315a0813ec57e44f97fc3fa4af6b3c309':
  Index out of range problem in TextLine.
Merge commit '3030193dc179b3010f2dd3bffe9c1dec54da38fc' into HEAD

* commit '3030193dc179b3010f2dd3bffe9c1dec54da38fc':
  Removed warnings in LayoutInflater.
Merge commit 'e6ac8b9aade9443ab8456c8f7a47cdfba3b70266' into HEAD

* commit 'e6ac8b9aade9443ab8456c8f7a47cdfba3b70266':
  Removed API changes from CL 54712.
Merge commit '96675b1df3969f2d313b68f60ed9fa36805db8ce' into HEAD

* commit '96675b1df3969f2d313b68f60ed9fa36805db8ce':
  Merging ActionBar menu with options menu.

Conflicts:
	api/current.xml
	policy/src/com/android/internal/policy/impl/PhoneWindow.java
Merge commit 'e4d011201cea40d46cb2b2eef401db8fddc5c9c6' into HEAD

* commit 'e4d011201cea40d46cb2b2eef401db8fddc5c9c6':
  Add libhwui, to hardware accelerate the Canvas API using OpenGL ES 2.0.

Conflicts:
	core/jni/Android.mk
Merge commit '545e6708adda6859932b55fd824794b1401f5318' into HEAD

* commit '545e6708adda6859932b55fd824794b1401f5318':
  HID profile.

Conflicts:
	core/java/android/server/BluetoothEventLoop.java
	core/java/android/server/BluetoothService.java
	core/jni/android_server_BluetoothEventLoop.cpp
Merge commit '0bcd289b99786567931b56658e37c8fcb965b513' into HEAD

* commit '0bcd289b99786567931b56658e37c8fcb965b513':
  move a sqlite test from framework-tests to coretests
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
Merge fix for PduParser.java - Part 1

It looks like there was a merge issue in PduParser.java that duplicated
some code when the gingerbread code was merged.  The change in
gingerbread essentially put the entire PduPart.P_CONTENT_DISPOSITION in
an if statement, and set it to positive for all devices.

This fixes MMS problems on the Nexus One, and possibly other phones.

Change-Id: I47b0f17327f906055e1d358226b5db0ddfb2241f
Reduce Call Answer Delay

This patch sets a boolean acceptingIncomingCall to true on
acceptCall.  In setAudioMode, we set the mode as IN_CALL if the call is
ringing and acceptingIncomingCall is true.  This initializes the
microphone sooner, and should reduce the microphone delay.

Not sure if this is the best way to do this, but this reduces call
delay to under a second for me.  I thought I might as well upload it so
others could have a look at it.

Change-Id: Ied21acb81c8447fc9949cecf861c0be4ca67ebb0