DO NOT MERGE. may fix build on some version of gcc

Change-Id: Id99d390862731fd3fbc009dbffdf1d2a59dbe348
CherryPick 988eeeb5 from hc-mr1. do not merge.

Support for custom declare-styleable attr with enum/flag in layoutlib.

Change-Id: I8a5b7cc629d61996ffade9aabd9d4d10961eb411
CherryPick 06942bc4 from hc-mr1. do not merge.

Layoutlib - use the new getParser callback when possible.

Change-Id: I72b867aa573fcc07d610f139da3c90b1b654633c
Bring in more layout lib changes from hc-mr1.

fe051bb2 : Change the way the layoutlib instantiate its XmlPullParser.

A lot of the init code was duplicated so I made a ParserFactory class.

Also created an extension of the KXmlPullParser to override toString().
This allows easier debugging when dealing with multiple parsers (which
is always the case).

Also added some (disabled) debugging printf to deal with parser stack
as it can be tricky figuring out which parsers are in the stack at
which point.

8969147c : Fix case where the int[] attrs doesn't directly match a styleable.

In the case of the FastScroller the int[] is a custom mix of attr
instead of a int[] that exists as R.styleable.foo.

This makes our reflection based mechanism used to find the styleable
fail, so instead we search for each attribute separately (like
we probably should have done from the beginning).

0c264b35: Fix various cases of getDimension to report error if unit is missing.

if getDimention###() is called for a string that has no unit,
then an error is output through LayoutLog, but the rendering keeps
going by using dp as a default.

0beb7eea: Make (Bridge)TypedArray.getInteger() call out to getInt()

Only getInt() resolved attribute flags/enum and I'm not sure why
there's two to begin with.

Change-Id: I015111263d2a2bee76834978ae71eef79defdae3
Add intent actions for new firmware events.

Change-Id: I8129b7812c0d551111f0c85eacc9535a441e5453
Merge "DO NOT MERGE. may fix build on some version of gcc" into gingerbread
Merge "CherryPick 988eeeb5 from hc-mr1. do not merge." into gingerbread
Merge "CherryPick 06942bc4 from hc-mr1. do not merge." into gingerbread
Merge "Bring in more layout lib changes from hc-mr1." into gingerbread
Import revised translations.  DO NOT MERGE

Change-Id: I7d20fc3f79a16adf99cf8dc8465b79adcd8b38d7
Fix missing NL

Orig-Change-Id: I323f0c01d2e9ad4c9f07cad24bf6b63edc28ad62
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
NativeDaemonConnector: Fix SDCard mounting bug in the emulator.

This patch fixes a really annoying bug that prevented the emulator
from properly mounting the SD Card.

The issue was that mOutputStream was not initialized when the onDaemonConnected
callbacks are called, just after the daemon's socket connection is established.

In one specific case (MountService a.k.a. VoldConnector), the corresponding
callback function immediately tried to perform a doCommandList() call on the
connector object. The request failed because mOutputStream was still defined
as null when it happened.

By moving the initialization of the variable just before the callback is
invoked, we ensure that things work properly.

Change-Id: I46726a50ef69eaafe70081ff4eda1244b744beba
merge intel x86 patches into gingerbread branch
Preserve invariant that sService is not null (although NfcAdapter.get() can return null)

Change-Id: I85fcbc5e79549835dac255ce614bd5d65d39fc25
Merge "Preserve invariant that sService is not null (although NfcAdapter.get() can return null)" into gingerbread
Merge "Import revised translations.  DO NOT MERGE" into gingerbread
opengl: Ensure we only load the GLES emulation library when the emulator supports it.

This patch modifies the libEGL.so loader to only load the emulator-specific
EGL/GLES libraries if it detects at runtime that the emulator supports it.

This prevents the system crashing when booting the platform image under an old
emulator version, or one without GPU emulation enabled.

Change-Id: I711b3f0a4ee1f3b080263780726ce7ec28ff11d6
Display headset icon in notification bar

Change-Id: Ia0249209cb8f6314ca4b1c02223d07691f0b5219
Updated headset icons

Change-Id: I32ed06c709de8f6161bd37604d468a1ee1677c6e
performance tuneup

Add glFinish() to prevent the impedence mismatch
   between software-rendered surfaceflinger surfaces
   in another thread.

Bug 814812

Change-Id: Ie5c24c8829e9b90a95e86e013fec9dae946deaaa