remove two obsolete functions.

Change-Id: If9358bbcae8d51bf0f456bc5b0a499cc6a1a28ee
(cherry picked from commit 68b8f8b007e98c85d83bf85248d3dcd2553f76fd)
(cherry picked from commit 9e80ce6abf43a3b73e772b5dd28f0c32a81e683b)
Merge "remove two obsolete functions." into studio-1.0-release
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)
(cherry picked from commit 13c2556cab6da297e7d61125be922296578ab342)
Merge "Implement initial screen orientation suport" into studio-1.0-release
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)
(cherry picked from commit b3fa4bc21cb9b093fc1edd1e6972848ca7b68498)
Merge "Fix keyboard emulation." into studio-1.0-release