Merge (-sours) commit '81950cd2605224823011d4764438935139804b89' into HEAD

* commit '81950cd2605224823011d4764438935139804b89':
  Update api/current.xml after URL pattern update.
  Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt
Merge commit '0b9d2ca6b6fc4574898cfff6acdee821d4723a96' into HEAD

* commit '0b9d2ca6b6fc4574898cfff6acdee821d4723a96':
  Fix selection off-by-one bug.
Merge commit '79a63f7ddb5bfb32a37dfbfd3e7748389c5076ad' into HEAD

* commit '79a63f7ddb5bfb32a37dfbfd3e7748389c5076ad':
  Make sure that a drawable replacing a layer in a LayerDrawable gets a callback.
Merge commit '6430c943f9c32ea1503c6723302a944dcb18dac5' into HEAD

* commit '6430c943f9c32ea1503c6723302a944dcb18dac5':
  Set a layered drawable's child callback to be the container.
Merge (-sours) commit 'cbeaf2d0aef5c8de9ce86b8f1dde17459f9227e3' into HEAD

* commit 'cbeaf2d0aef5c8de9ce86b8f1dde17459f9227e3':
  Revert "Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt"
  Revert "Update api/current.xml after URL pattern update."
Merge (-sours) commit '6a367f5cb0aac91ec420e00e5b12fd1748d9f4dd' into HEAD

* commit '6a367f5cb0aac91ec420e00e5b12fd1748d9f4dd':
  Provide a getter to tell the index of the current found match.
Merge commit 'f121be737c59390d97e21a92be8e166001534c7d' into HEAD

* commit 'f121be737c59390d97e21a92be8e166001534c7d':
  Improvements to fragment API:

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

* commit '4b71913ea717da4cca55cc2f91a7c16491d7ff89':
  Add the HTML5Audio class, to support the audio tag. The corresponding webkit C++ CL is https://android-git.corp.google.com/g/#change,41405
Merge commit 'db990751ef8e535ea5cb3d527e36936e119095e8' into HEAD

* commit 'db990751ef8e535ea5cb3d527e36936e119095e8':
  Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt

Conflicts:
	api/9.xml
	api/current.xml
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
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