Fix windows event loop handling.

This change fixes the windows emulator binary which got stuck
due to changes in the timer implementation that occured during
the last upstream integration.

Change-Id: I090ce4ac9c09b3b95e0df95513446922120b2d9a
emulator-ui: Remove dependencies from qemu sources.

This change removes some QEMU-specifics that crept into the UI code.

Change-Id: Ib1974dc64e54a35dc0cd01aec1eb547a9263a0c8
Fix incorrect orientation at boot.

The goldfish kernel's event driver is very picky about the
state of the virtual device it talks to. Essentially, it can
only listen to h/w events if the corresponding IRQ is raised
_after_ it has completed some initial setup.

If the IRQ is raised before, the driver will refuse to listen
to events, and any interaction becomes impossible.

We changed the way our UI windows are built and managed
previously, and this had the unfortunate effect of sending
one h/w event too soon, which, in the old code, would raise
the IRQ prematurely. This resulted in an input freeze.

To work around this the UI code was modified to not send
the initial h/w event, but this resulted in bad orientation
of the home screen at the end of the boot sequence.

This change allows the virtual device to wait for the kernel
driver before raising the IRQ, in the case any h/w event has
been buffered. It also removes the hack in the UI code,
allowing the send of the initial h/w event at startup.

BONUS MINOR CHANGES:
    EsounD probe: fix error message.
    console: fix compiler warnings
    libpng: proper handling of MMX support.
    android-configure.sh: fix --ignore-audio handling
        The option didn't do anything if the audio development packages
        are properly installed on the system.

Change-Id: Ib134158873d5cb72290c9676d92d20233226c889
Merge "Fix incorrect orientation at boot."
Make state snapshots compatible with SD cards.

This patch introduces a check such that only drives exporting a
snapshot creation function are considered for storing snapshots.
SD cards are mounted with a raw file system, which does not
support snapshots. Since the SD card is now skipped, the actual
snapshot image can be safely mounted on hdb rather than hda.

The contents of the SD card itself are included in the snapshot
however, since they are accessed with the NAND driver (which
saves the contents of the underlying files).

Change-Id: I4816b6e54e227aca356389c15ce9f5c1282d2464
Added state snapshot support for QemuD service "boot properties".

Change-Id: I12383de77917c31d6227fc223753c1dcab31fb56
Fix linux-x86_64 build.

Fix various 64-bitness issues in the source code to
make the --try-64 option work again on Linux. Note that
the generated binary is not faster than its 32-bit variant
when it comes to benchmarking the boot sequence.

Change-Id: Iad248e033757d4cd25524a438a5dbe1cf3aca6cf
Merge "Make state snapshots compatible with SD cards."
Merge "Fix linux-x86_64 build."
Merge "Added state snapshot support for QemuD service "boot properties"."
Load state snapshot rather than booting to start emulator.

This patch adds support for an optional file "snapshots.img" in the
data directory of an AVD. This file should be an image formatted with
the qcow2 file system and will be mounted on -hdb when the emulator
starts up. If present, the emulator will attempt to load the snapshot
named "default-boot" from this image, rather than going through the
full boot procedure.

To control the behaviour of this functionality, this patch introduces
the following new command line options for the emulator:

  -snapstorage <file>: override the default location of the
     snapshot storage file.
  -no-snapstorage: do not load the snapshots file, even if an explicit
     path is given.
  -snapshot <name>: instead of loading "default-boot", load the state
     snapshot with the given name.
  -no-snapshot: do not load a snapshot, but force a full boot
     sequence, even if a snapshots file is mounted. Useful for
     creating snapshots.

Note that this functionality is experimental and will be enabled
only if the constant CONFIG_ANDROID_SNAPSHOTS in
android/config/config.h is set to "1" before building. It is turned
off by default.

Change-Id: Iee2e9096a27f3414bacfc271f90ef93a98730c82
Merge "Load state snapshot rather than booting to start emulator."
Fix ping version reporting.

The emulator version reported through ddms was incorrect
in the SDK r7 emulator binary due to a previous change in our
Makefiles.

Change-Id: I16fc16739de8490c63d802567226b74db7f74e0f
Merge "Fix ping version reporting."
Fix emulator build.

Change-Id: I87f1695d61654a09ef40fa883cbc73acd59ac4c8
Merge "Fix emulator build."
Allow OS X emulator to open host /dev/ devices.

Only Win32 does not allow this, so simplify the tests in the source code
+ Remove compiler warning

Change-Id: I100dd59e4477edcd24dd94becfa3e3b83a2b92ab
Fix invalid "geo fix" formatting bug.

See http://code.google.com/p/android/issues/detail?id=2928
for details.

Change-Id: If192fe2f8dba9e5bd11f0f7fdc6a7445a8573623
Merge "Allow OS X emulator to open host /dev/ devices."
Merge "Fix invalid "geo fix" formatting bug."