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 "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.
Adds ANDROID_AVD_HOME and ANDROID_EMULATOR_HOME

If set, $ANDROID_AVD_HOME will replace the default path
$ANDROID_SDK_HOME(or $HOME)/.android/avd.
If set, $ANDROID_EMULATOR_HOME will replace the default path
$ANDROID_SDK_HOME(or $HOME)/.android.

issue:78577

Change-Id: Ifb6e45aa63cd9e89b9c372f1acdc4e5d38e1a536
(cherry picked from commit 2a6e0b96aafb11db1b535554d908cc02769d09bb)
Merge "Adds ANDROID_AVD_HOME and ANDROID_EMULATOR_HOME" into studio-1.0-dev
Merge "Adds ANDROID_AVD_HOME and ANDROID_EMULATOR_HOME" into studio-1.0-dev
automerge: 1c4e66a

* commit '1c4e66a2216f5493adf8f11460b62d39b3bf1311':
  Adds ANDROID_AVD_HOME and ANDROID_EMULATOR_HOME
Fix missing backspace key

When hardware keyboard is enabled, the backspace key is missing
and text cannot be delete. This commit handles this special case.

Change-Id: Ifad98797649d54fe566ba122abc2f8c63d8e2820
(cherry picked from commit 4aa2dc79ec8045e300bc3a945ea7f9e13f7c2536)
(cherry picked from commit 1549ff1c8512d5222959cd485923c08a0e3a30c8)
Merge "Fix missing backspace key" into studio-1.1-dev
Fix missing enter key

With hardware keyboard enabled, "enter" key is missing and there
is no way to enter multiple line text. This commit handles this
special case.

Change-Id: Id9d77d0c8b786a057f6b44f779a90cd85fa34832
Merge "Fix missing enter key" into studio-1.1-dev
Print more specific error message if avd not found

When an avd is not found, explain where and how emulator
searches for avd so that user can check and hopefully fix
the problem.

Change-Id: I38d12c733a5a6f0bf37e79f35e4060dcf7c44997
Print clearer message when missing kernel file

When kernel file is missing, print more specific message on whether
ANDROID_SDK_ROOT is set and whether it is set correctly.

Change-Id: I80d8ca237a52b6d1f0a82ac88fd4741e108f06ac
Merge "Print more specific error message if avd not found" into studio-1.1-dev
Merge "Print clearer message when missing kernel file" into studio-1.1-dev