android/skin: Move SDL function to sdl_utils.h

Preliminary work to slightly abstract the SDL implementation
from android/skin.

Change-Id: Ie82263ed7277d4124e58be9c8cd3dd5770147e08
android/skin/scaler.c: Use SkinRect instead of SDL_Rect.

Change-Id: Ibb3dd9517489e56a631b7d7b6f976cd8f1a707ec
android/skin/image.h: Abstract from SDL

Make SkinImage implementation depend directly on SkinSurface,
and not SDL_Surface. This is a small step to abstract the SDL
implementation from the rest of the skin code.

+ Fix a bug that prevented _sdl_surface_create_rgb_from() from
  working properly (swapping two function call parameters).

+ Fix a bug in the RGBA mask definitions in surface.c

Change-Id: I737db324224c5ae2a76a8aff45a6dc8d0f866d85
android/skin/surface.h: More SkinSurface methods.

Augment SkinSurface with more methods that will allow to better
hide the SDL_Surface underlying implementation.

Change-Id: I025ca73344e62061e1b23010cb18f1e8571322a3
android/skin/window.c: Use SkinSurface instead of SDL_Surface.

+ Use SDL_FillRect and SDL_BlitSurface to implement
  skin_surface_fill() and skin_surface_blit() instead of
  our custom pixel processing functions.

Change-Id: I1f5e965e285f57f932f73bad305c016b69e65b81
android/skin/scaler: Use SkinSurface instead of SDL_Surface.

Change-Id: I464aa20d0dde85accca50950561a67226f00f887
android/skin/trackball.c: Use SkinSurface instead of SDL_Surface.

Change-Id: I1d4ac4f15fe0b63a61e05745af8edbbd49f1bd64
android/skin/winsys.h: new header to abstract window manager.

Change-Id: I4e067c7616b639d517b39d80c877f23efb18fe15
android/skin/surface-sdl.c: Renamed from android/skin/surface.c

Change-Id: I6c719c674fa8631d6ef3af0c7c5a22540237cced
android/skin/winsys.h: Add new functions.

Change-Id: I97fd2a30fbf49d24e3c02d0ccecb0c7eb058aab5
android/main-common-ui.c: Remove SDL usage, use skin_winsys_xxx() instead.

Change-Id: I56709b659c5b561bcde4d827c121c4e04c0adea2
android/skin/sdl_utils.c: Remove obsolete files.

Change-Id: I8bb4a6130d9ace5b1c65d097bba33cb904deea64
android/skin/winsys.h: Implement skin_winsys_set_relative_mouse_mode()

This makes it easier to switch to SDL2, see "Input" section of the
SDL migration guide.

Change-Id: I8b323bc50217c5b3e93e19dd58113347d92888b7
android/skin/keyboard.h: Abstract SDL 1.x implementation.

This moves the SDL-specific portions to android/skin/keyboard-sdl.c,
and moves non-SDL specific code to android/skin/keycode.c

Change-Id: I732b864828084a98919eb0beaea5268736fceb6e
android/skin/event.h: New event abstraction.

Adds a small wrapper for user input events in order to hide the
underlying SDL backend for it.

+ get rid of keyboard-int.h and keyboard-sdl.c which are no longer
  needed.

+ get rid of SDL.h from android/ (except the *-sdl.c files under
  android/skin/)

Change-Id: Ifad5461a8aeefe0ff387d97aef2f4102ee8f9bff
bulk rename: QEmulator -> EmulatorWindow

Since the name is much more logical.

Change-Id: I4c1c563213258330e96307134c0483e6f05e2b2c
file rename: android/qemulator.[hc] -> android/emulator-window.[hc]

Change-Id: I0b716ae5888051a35fac51998aee37208f7fc149
android/skin/keyboard.h: Remove obsolete function.

Change-Id: I3fb45ad7340385d5521c23701d4327a622bace43
android/skin/ui.h: New header.

This introduces a new component in android/skin/ that is used
to manage the whole user interface (while android/skin/window.h
only models the window itself). This is a means to move more stuff
from android/emulator-window.c to android/skin/ and thus make
it more portable.

Change-Id: Idfccc9367dcba6964881ed6d8366fb9d3d660e2b
Merge changes Idfccc936,I3fb45ad7,I0b716ae5,I4c1c5632,Ifad5461a, ...

* changes:
  android/skin/ui.h: New header.
  android/skin/keyboard.h: Remove obsolete function.
  file rename: android/qemulator.[hc] -> android/emulator-window.[hc]
  bulk rename: QEmulator -> EmulatorWindow
  android/skin/event.h: New event abstraction.
  android/skin/keyboard.h: Abstract SDL 1.x implementation.
  android/skin/winsys.h: Implement skin_winsys_set_relative_mouse_mode()
  android/skin/sdl_utils.c: Remove obsolete files.
  android/main-common-ui.c: Remove SDL usage, use skin_winsys_xxx() instead.
  android/skin/winsys.h: Add new functions.
  android/skin/surface-sdl.c: Renamed from android/skin/surface.c
  android/skin/winsys.h: new header to abstract window manager.
  android/skin/trackball.c: Use SkinSurface instead of SDL_Surface.
  android/skin/scaler: Use SkinSurface instead of SDL_Surface.
  android/skin/window.c: Use SkinSurface instead of SDL_Surface.
  android/skin/surface.h: More SkinSurface methods.
  android/skin/image.h: Abstract from SDL
  android/skin/scaler.c: Use SkinRect instead of SDL_Rect.
  android/skin: Move SDL function to sdl_utils.h