Merge commit '99969da3772d9a0f5079672847ca4f2ad819c1bb' into HEAD

* commit '99969da3772d9a0f5079672847ca4f2ad819c1bb':
  Fix bug 2771204
Merge commit '6e90ddb2d8dd26bc7c27c9876f2c6ec18451bbaa' into HEAD

* commit '6e90ddb2d8dd26bc7c27c9876f2c6ec18451bbaa':
  Move WebViewDatabase initialization into a background thread.
Merge commit '14f2ef4c9da27a3d58d65dc9f684c5f764ee279a' into HEAD

* commit '14f2ef4c9da27a3d58d65dc9f684c5f764ee279a':
  Move the net transition wakelock to ConnService.

Conflicts:
	core/java/android/net/ConnectivityManager.java
	core/java/android/net/IConnectivityManager.aidl
	services/java/com/android/server/ConnectivityService.java
Merge (-sours) commit '00a50872b0103c9039c74c699f449c722991076e' into HEAD

* commit '00a50872b0103c9039c74c699f449c722991076e':
  Quiet down some log spew.
Merge commit 'f70036bc91e93cf6834c835beb832861c0dbd9db' into HEAD

* commit 'f70036bc91e93cf6834c835beb832861c0dbd9db':
  Modified first animation and visibility change behavior for ViewFlipper

Conflicts:
	api/current.xml
	core/res/res/values/public.xml
Merge commit '505635583bf49339a0ec8da00851b2fba2db3478' into HEAD

* commit '505635583bf49339a0ec8da00851b2fba2db3478':
  Fix bug# 2772317 (CalendarDatabaseHelper internal cleanup)
Merge commit '4846032ac7be7c28c7cfeb3096b8cb656312a382' into HEAD

* commit '4846032ac7be7c28c7cfeb3096b8cb656312a382':
  Fix bug with layout animations when apps are auto-scaled.

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

* commit 'c76c15e255b01412e5cda33b606d7672713b6665':
  Reorder ThrottleService startup to avoid race.
Merge (-sours) commit '5e81e5b96b20bddf90adff33d50f5d003ab619ad' into HEAD

* commit '5e81e5b96b20bddf90adff33d50f5d003ab619ad':
  Fixed breakage with previous API change (I34b3abad3310)
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
aapt: Allow raw "%" in unformatted string-arrays

Commit 15fe2cb added format checking for translatable strings, enforcing
the use of positional args.  This check can be disabled on <string>
values with translatable="false" or formatted="false".  But they didn't
check for those attributes on <string-array>, so some of CM's strings
fail when they're not really format strings, just because they contain
percent signs.  (e.g. brightness widget's "Auto/Dim/40%/100%")

So now the formatted/translatable attributes are checked in string-array
too, and we can restore our proper percent signs.

Change-Id: I88df7b9ae38760be202d9d75e68f707abdbf3d95