Turn emugen unittests back on

Previously disabled, since it depends on some un-merged CLs;
now those CLs are all merged and we should turn the emugen
unittests back on.

Change-Id: Iaa1711a48cbcf26b6ebe2e513071035781a52903
(cherry picked from commit 81e9011e4fb3d3a9f315779cbaf3a1319d564179)
Merge "Turn emugen unittests back on" into studio-1.0-dev
Merge "Turn emugen unittests back on" into studio-1.0-dev
automerge: c4319d3

* commit 'c4319d3d3b6331770aeb7744b647f3f0810fafd8':
  Turn emugen unittests back on
Fix emulator freeze due to infinite loop

When probing items in the PointerSet, current implementation
gets stuck in an infinite loop, sometimes. This commit breaks
the loop when it detects that each item has already been visited.

Change-Id: Ie9b00ca39395f2c8555069ff8c1048ea381bfe33
(cherry picked from commit 70166d63b0f6a2196dafc84dd253fe6f7a3fab76)
Merge "Fix emulator freeze due to infinite loop" into studio-1.0-dev
Merge "Fix emulator freeze due to infinite loop" into studio-1.0-dev
automerge: c71c5bb

* commit 'c71c5bbf8d190aa40c9bb7f6d42ba4c005ecae4c':
  Fix emulator freeze due to infinite loop
Merge "Turn emugen unittests back on" into studio-1.0-dev automerge: c4319d3
automerge: 0ddbb91

* commit '0ddbb91474650399b45c1a7d489c13a83661d5c6':
  Turn emugen unittests back on
Merge "Fix emulator freeze due to infinite loop" into studio-1.0-dev automerge: c71c5bb
automerge: ca06892

* commit 'ca06892c393c9942f5fe21feccb494d073cfbfde':
  Fix emulator freeze due to infinite loop
remove two obsolete functions.

Change-Id: If9358bbcae8d51bf0f456bc5b0a499cc6a1a28ee
(cherry picked from commit 68b8f8b007e98c85d83bf85248d3dcd2553f76fd)
Merge "remove two obsolete functions." into studio-1.0-dev
Merge "remove two obsolete functions." into studio-1.0-dev
automerge: cc475a1

* commit 'cc475a1a2d95352610e61e4cbdca4f501ff8db87':
  remove two obsolete functions.
Implement initial screen orientation suport

New AVD manager requires the emulator to suport portrait or
landscape as initial orientation. This implementation adds
a new field in the config.ini
hw.initialOrientation=portrait|landscape
default is portrait

Change-Id: Ifb4c7c72da3b0ca1ce5e681ca7088fbbfb584644
(cherry picked from commit ff2c689d32dabf59b0830f967a4713a2735eae58)
Merge "Implement initial screen orientation suport" into studio-1.0-dev
Fix keyboard emulation.

Previous patch 5a4a159898e79ce88d1a2f85843e973036d6e057 broke
keyboard emulation. For example, typing '@' would enter '2@'
in the guest, due to duplicate but slightly incompatible Linux
keycodes being sent to the kernel.

More precisely:

  - Fix a bug in the computation of the 'modifier' bitmask
    from SDL 1.x

  - Do not send keydown events that were not handled as UI keyboard
    shortcuts to the guest. Rely on kEventTextInput events to send
    Unicode-based key events instead.

    This actually removes some code that was actually dead before
    the 5a4a15989 patch, but became live after it due to a tiny
    developer error (and explained the buggy behaviour) :-(

  - Add docs/ANDROID-KEYBOARD-EMULATION.TXT to explain how all of
    this works at the moment.

NOTE: To test this, you will need to use a Skin that explicitly
      supports a hardware keyboard, or modify your AVD's config.ini
      file to have 'hw.keyboard=yes'

Change-Id: I011cc6da328f6a00d43e02c62733f22dbaa88d1c
(cherry picked from commit c98fa778d4a8b1b78f0467478800faf363700460)
Merge "remove two obsolete functions." into studio-1.0-dev automerge: cc475a1
automerge: 9081438

* commit '9081438dc0ccd8b9f92597cd7174ae39cfc3eefe':
  remove two obsolete functions.
Merge "Fix keyboard emulation." into studio-1.0-dev
Merge "Implement initial screen orientation suport" into studio-1.0-dev
automerge: e504e79

* commit 'e504e79cb9184d17f873741f9d850073bf138266':
  Implement initial screen orientation suport
Merge "Fix keyboard emulation." into studio-1.0-dev
automerge: 2d5b21e

* commit '2d5b21e40d4ef27bbdc81921305fd65e4586683a':
  Fix keyboard emulation.
Merge "Implement initial screen orientation suport" into studio-1.0-dev automerge: e504e79
automerge: cea24dd

* commit 'cea24ddbf1e8c8eae6a4f3b9ed9032fd3362361f':
  Implement initial screen orientation suport
Merge "Fix keyboard emulation." into studio-1.0-dev automerge: 2d5b21e
automerge: 67f7768

* commit '67f776894b0af4dd2dd57b864029415cff7b4c8d':
  Fix keyboard emulation.