Fix bug in parsing attributes for MediaRouteButton

Change-Id: Ib61506f7b09b1e043f3f21d2fd46281fbced00f4
Changed to obtain a parcel in each notify() call in jni.

Change-Id: I5faf0f5d1fdf76a5b4bd1cff37aa58df79d18e85
related-to-bug: 6785452
Import translations. DO NOT MERGE

Change-Id: I8e0e293c98a3659ef6e9a07c3a62e0056f5ea4cb
Auto-generated-cl: translation import
Replace LruCache implementation for layoutlib. do not merge.

The android version depends on a custom version of LinkedHashMap
which is not present on desktop VMs. This new implementation is done
in a way that minimizes the difference between the two.

Also some minor fixes.

(cherry picked from commit 01b6c755dbcf24e71192dc44757e2eea2a426091)

Change-Id: Idc7bca820e472e281a3024a5b610fd55606cf428
Properly resize paletted bitmaps when adjusting for density

If an app used a GIF file in the wrong density bucket, the auto-scaling
code would not properly resize the bitmap.

This issue affects third party applications, here is the external bug
report:

http://code.google.com/p/android/issues/detail?id=34619

DO NOT MERGE

Change-Id: I7f99b28ad6e6c28bdbcb29bbbadcb215268ff710
Doc update: GCM doc cleanup.

Change-Id: Ie84a6ebdd12a05c8dbe1fff97539aea90c93554c
Fix for bug 6716343. Use correct offset for mPos reset. DO NOT MERGE

The mPos field in the MeasuredText object is relative to the start of
the text (mTextStart), but the pos passed in by the caller of the
setPos() method is relative to the character sequence. When spans
overlap break boundaries and the paragraph doesn't start at 0, the
result is an out of bounds error. This fix uses the correct offset.

Change-Id: I64ef06df0eb06f75aedd25de97e9f347eeb52979
Remove the unnecssary intent call.

Change-Id: Ia0a460ca8532ccb2f4b0f0205d192b1ba907b5b6
Remove gradients from navbar glow highlights.

Should reduce unsightly banding.

Bug: 6789484
Change-Id: I1bd552d571651ff614a867c2e52b8532b6e22749
Replace AndroidEmoji.ttf for UI optimization

Bug: 6785630
Change-Id: Ie236c59704138263831930e3682a7ee9ac2f84b1
Doc change: New TTL error code.

Change-Id: I99844d28243e0d6592219f532db08855d73f338e
Import translations. DO NOT MERGE

Change-Id: Idabf12464d73bf707daf0f870de2349731b574e2
Auto-generated-cl: translation import
Handle keyguard visibility states separately. DO NOT MERGE

Previous to this change the forceHiding variable was a boolean. This
change recognizes the different configurations of the keyguard by
defining separate states for forceHiding and testing for window
visibility differently in each state.

Fixes bug 6786114.

Change-Id: I3460c45ea6da772a4ff76bb016de7aa4b051a673
docs: ADK 2012 IDE for Windows download link update, plus minor content fixes/updates

Change-Id: I53fed5504b6d77185dc9715afcd3bdf0bc9182a8
Import translations. DO NOT MERGE

Change-Id: I115e6356599b76597f52d5f0006d61f4324ae48b
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: I11573dc6817d3ef1756ecb6c889e83129317d239
Auto-generated-cl: translation import
Force invalidates on non-visible views. DO NOT MERGE

An optimization prunes invalidates on views which are not inside their
parent's bounds. This works in most cases, but it is possible to run
a situation where a view has been invalidated (and is thus waiting to
be redrawn), but the pruning logic ensures that that draw call
will not happen. Further, when/if the view comes into the bounds
of its parent again, it may still not be redrawn, because now future
invalidates on the view are noop'd because it is already in an invalidated
state (and thus will not propagate invalidates up the hierarchy).

The fix is to remove the optitmization. This will cause some overhead
sending the invalidation request up to the view root, but this
overhead is minimal (and only extra for cases of out-of-bounds views),
and the more expensive part of rendering these views will still not be done
since the view root will avoid re-drawing the hierarchy when the dirty
rectangle is empty.

Issue #6813661 offscreen views don't get invalidated properly (may remain invisible when returning onscreen)

Change-Id: Ic4b439540084a7163be9afc585bea6560d073280
Properly switch MediaRouter to wired audio over a2dp.

The system gives priority to physically connected
headphones/speakers/docks/etc. Reflect this in MediaRouter and
associated UI.

Bug 6777592

Change-Id: Ibabf3d7512207117e892c99f004443490c3d0612
Import translations. DO NOT MERGE

Change-Id: Iac7759bb253431f5b75c246938a3cc3a726c8439
Auto-generated-cl: translation import
Text shadow alpha handling incorrect
DO NOT MERGE

External bug: http://code.google.com/p/android/issues/detail?id=34879
This is a regression from ICS.

This CL also fixes a bug where a View's alpha would be applied twice.

Change-Id: I13a1546228f44d4c169259414b6fa103a6e4a0fa